/* ============================================
   SPMV Website - Main Stylesheet
   ============================================ */

:root {
  --primary: #1E3A8A;
  --secondary: #60A5FA;
  --accent: #F59E0B;
  --background: #F8FAFC;
  --text: #1F2937;
  --light-gray: #E5E7EB;
  --dark-gray: #6B7280;
  --success: #10B981;
  --danger: #EF4444;
  --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

img,
video,
iframe,
embed {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* ============================================
   COMMON COMPONENTS
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1E40AF;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.7rem;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-header {
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 4rem;
}

.page-header p {
  font-size: 1.5rem;
}

.error-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E3A8A 0%, #60A5FA 100%);
}

.error-hero .error-title {
  color: white;
  font-size: 8rem;
  margin: 0;
  line-height: 1;
}

.error-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.page-header h1 {
  font-size: 4rem;
}

.page-header p {
  font-size: 1.5rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 24, 66, 0.58);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.07)"/></pattern></defs><rect width="1000" height="1000" fill="url(%23pattern)"/></svg>');
  opacity: 0.25;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: slideDown 0.8s ease-out;
}

.hero .tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.4s both;
}

.hero-buttons .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.slide-left {
  animation: slideLeft 0.6s ease-out forwards;
  opacity: 0;
}

.slide-right {
  animation: slideRight 0.6s ease-out forwards;
  opacity: 0;
}

.zoom-in {
  animation: zoomIn 0.6s ease-out forwards;
  opacity: 0;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.divider {
  width: 100px;
  height: 4px;
  background-color: var(--accent);
  margin: 1rem auto 2rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-features {
  list-style: none;
  margin-top: 1.5rem;
}

.about-features li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--dark-gray);
}

.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-img {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   PRINCIPAL MESSAGE
   ============================================ */

.principal {
  background-color: var(--primary);
  color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.principal-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.principal-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.principal-content h3 {
  margin-bottom: 0.5rem;
}

.principal-designation {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ============================================
   FOUNDER MESSAGE
   ============================================ */

.founder-message {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.founder-img {
  width: 260px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.founder-content h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.founder-designation {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
}

.founder-content p {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .founder-message {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-img {
    width: 70%;
    max-width: 300px;
    height: auto;
  }

  .founder-designation {
    font-size: 1.05rem;
  }
}

/* ============================================
   STATISTICS
   ============================================ */

.statistics {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 0.75rem;
  padding: 3rem;
}

.stat-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FACILITIES GRID
   ============================================ */

.facility-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.facility-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.facility-card h4 {
  margin-bottom: 0.5rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-gray);
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-filter {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: white;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  padding: 2rem;
  animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: var(--transition);
}

.lightbox-nav:hover {
  color: var(--accent);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--accent);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* ============================================
   SCHOLARSHIP NOTIFICATION
   ============================================ */

.scholarship-notification {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  padding: 1.5rem;
  width: 280px;
  color: white;
  z-index: 900;
  animation: slideInRight 0.6s ease-out;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scholarship-notification:hover {
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
  transform: translateY(calc(-50% - 5px));
}

.scholarship-badge {
  font-size: 2.5rem;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.scholarship-content {
  flex: 1;
}

.scholarship-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: white;
}

.scholarship-content p {
  font-size: 0.9rem;
  margin: 0 0 0.75rem 0;
  color: rgba(255, 255, 255, 0.95);
}

.scholarship-link {
  color: white;
  font-weight: 600;
  display: inline-block;
  font-size: 0.85rem;
  text-decoration: underline;
  transition: var(--transition);
}

.scholarship-link:hover {
  color: #fff;
  opacity: 0.8;
}

.scholarship-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scholarship-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.scholarship-notification.hidden {
  animation: slideOutRight 0.6s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
  to {
    opacity: 0;
    transform: translateY(-50%) translateX(100px);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }

  .hero h1 { font-size: 3rem; }
  .hero .tagline { font-size: 1.35rem; }

  .page-header h1 { font-size: 3rem; }
  .page-header p { font-size: 1.25rem; }

  .about-content,
  .principal,
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-items,
  .gallery-grid,
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header-content nav {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: white;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 100vh;
  }

  nav a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--light-gray);
  }

  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .error-hero .error-title {
    font-size: 4rem;
  }

  .error-hero p {
    font-size: 1.2rem;
  }

  div[style*="display: flex;"] {
    flex-wrap: wrap;
  }

  div[style*="justify-content: space-between;"] {
    justify-content: center;
  }

  div[style*="align-items: center;"] {
    align-items: flex-start;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery-item {
    height: 200px;
  }

  nav a::after {
    display: none;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-header p {
    font-size: 1.1rem;
  }

  .about-content,
  .principal {
    grid-template-columns: 1fr;
  }

  .principal-img {
    min-height: 250px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Scholarship Notification Mobile Styles */
  .scholarship-notification {
    position: fixed;
    right: 1rem;
    left: 1rem;
    top: auto;
    bottom: 2rem;
    transform: none;
    width: auto;
    animation: slideInUp 0.6s ease-out;
  }

  .scholarship-notification:hover {
    transform: translateY(-5px);
  }

  .scholarship-notification.hidden {
    animation: slideOutDown 0.6s ease-out forwards;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(100px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideOutDown {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(100px);
    }
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .stat-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery-item {
    height: 200px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.2rem; }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .stat-items {
    grid-template-columns: 1fr;
  }

  .stat-item h4 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .gallery-item {
    height: 150px;
  }

  section {
    padding: 2rem 1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .error-title {
    font-size: 3rem;
  }

  .header-content {
    padding: 0.75rem 1rem;
  }

  .logo {
    gap: 0.5rem;
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
