/* ============================================
   SCHOOL WEBSITE - MAIN STYLESHEET
   Design: Refined Editorial with Rich Animation
============================================ */

/* --- VARIABLES --- */
:root {
  --theme-primary: #1a237e;
  --theme-secondary: #0d47a1;
  --theme-accent: #ff6f00;
  --theme-bg: #f0f4ff;
  --theme-text: #1a1a2e;

  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-colored: 0 8px 30px rgba(26,35,126,0.25);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.6s cubic-bezier(0.4,0,0.2,1);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --footer-bg: #0d1b4b;
  --header-height: 80px;
}


/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--theme-text);
  background: var(--theme-bg);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   FESTIVAL BANNER
============================================ */
.festival-banner {
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent), var(--theme-secondary));
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1000;
}
.festival-banner-inner {
  display: flex;
  white-space: nowrap;
  animation: festivalScroll 20s linear infinite;
  padding: 10px 0;
}
.festival-text {
  font-size: 14px;
  font-weight: 600;
  padding: 0 60px;
  letter-spacing: 0.5px;
}
@keyframes festivalScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.close-banner {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
}

/* ============================================
   TOP BAR
============================================ */
.topbar {
  background: var(--theme-primary);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.topbar-left, .topbar-right {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.topbar-left a, .topbar-left span { color: rgba(255,255,255,0.85); font-size: 12.5px; }
.topbar-left a:hover { color: #fff; }
.topbar-left i, .topbar-right .social-link i { margin-right: 6px; }
.social-link {
  color: rgba(255,255,255,0.7); font-size: 13px; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-link:hover { background: var(--theme-accent); border-color: var(--theme-accent); color: #fff; transform: translateY(-2px); }
.social-link i { margin: 0; }
.admission-badge {
  background: var(--theme-accent); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.3px;
}
.admission-badge:hover { background: #e65100; color: #fff; }

/* ============================================
   HEADER
============================================ */
.main-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 900;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(26,35,126,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 20px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-placeholder {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  box-shadow: 0 4px 16px rgba(26,35,126,0.3);
  flex-shrink: 0;
}
.logo-placeholder.small { width: 44px; height: 44px; border-radius: 10px; font-size: 20px; }
.logo-img { width: 60px; height: 60px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.school-name {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  color: var(--theme-primary); line-height: 1.2;
}
.school-tagline { font-size: 11px; color: var(--gray-600); font-style: italic; }
.affiliation { font-size: 10px; color: var(--theme-accent); font-weight: 600; letter-spacing: 0.5px; }

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--gray-800);
  transition: var(--transition); white-space: nowrap;
}
.nav-list > li > a i { font-size: 11px; }
.nav-list > li > a:hover,
.nav-list > li.active > a { color: var(--theme-primary); background: rgba(26,35,126,0.06); }
.nav-list > li.active > a { font-weight: 600; }
.nav-list a.nav-highlight {
  background: var(--theme-accent); color: #fff !important; font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,111,0,0.3);
}
.nav-list a.nav-highlight:hover { background: #e65100; transform: translateY(-1px); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--white); border-radius: var(--radius); min-width: 220px;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: var(--transition); z-index: 100;
  border-top: 3px solid var(--theme-primary);
}
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13.5px; color: var(--gray-800);
  border-radius: 6px; margin: 2px 6px;
}
.dropdown li a:hover { color: var(--theme-primary); background: var(--theme-bg); }
.dropdown li a i { width: 16px; color: var(--theme-accent); }

/* Mobile Toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--theme-primary);
  border-radius: 4px; transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SLIDER
============================================ */
.hero-slider {
  position: relative; height: 90vh; min-height: 560px; overflow: hidden;
  background: var(--theme-primary);
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 6s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,75,0.85) 0%, rgba(13,27,75,0.4) 100%);
}
.slide-content {
  position: relative; z-index: 2; color: #fff;
  max-width: 700px; padding: 0 48px;
}
.slide-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,111,0,0.9); padding: 6px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 20px;
  animation: slideInUp 0.6s ease 0.3s both;
}
.slide-content h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: slideInUp 0.6s ease 0.5s both;
}
.slide-content p {
  font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px;
  animation: slideInUp 0.6s ease 0.7s both;
}
.slide-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--theme-accent); color: #fff;
  padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 30px rgba(255,111,0,0.4);
  transition: var(--transition);
  animation: slideInUp 0.6s ease 0.9s both;
}
.slide-btn:hover { background: #e65100; transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,111,0,0.5); color: #fff; }

/* Slider Controls */
.slider-controls {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px; z-index: 10;
}
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer; transition: var(--transition);
}
.dot.active { background: #fff; border-color: #fff; transform: scale(1.3); }
.slider-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
}
.slider-arrow:hover { background: var(--theme-accent); border-color: var(--theme-accent); transform: scale(1.1); }

/* Stats on Slider */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  z-index: 10;
}
.stat-item {
  padding: 24px; text-align: center; position: relative;
  border-right: 1px solid var(--gray-200);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--theme-bg); }
.stat-number {
  font-family: var(--font-heading); font-size: 2.4rem; font-weight: 900;
  color: var(--theme-primary); line-height: 1; display: block;
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

/* ============================================
   SECTION BASE STYLES
============================================ */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--theme-accent); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-tag::before, .section-tag::after {
  content: ''; width: 30px; height: 2px; background: var(--theme-accent);
}
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--theme-primary); line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc { font-size: 1.05rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }



/* ============================================
   ABOUT / PRINCIPAL SECTION
============================================ */
.principal-section {
  background: var(--white);
  overflow: hidden;
}
.principal-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.principal-image-wrap { position: relative; }
.principal-img-container {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-xl) var(--radius-xl) 0 var(--radius-xl);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
}
.principal-img-container img, .principal-img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}
.principal-img-placeholder {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 12px;
}
.principal-img-placeholder i { font-size: 5rem; opacity: 0.7; }
.principal-img-placeholder span { font-size: 1rem; opacity: 0.7; }
.principal-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--theme-accent); color: #fff;
  padding: 16px 24px; border-radius: var(--radius); box-shadow: var(--shadow-md);
  text-align: center;
}
.principal-badge strong { display: block; font-size: 1.4rem; font-weight: 900; }
.principal-badge span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.principal-content { padding: 20px 0; }
.quote-icon { font-size: 3rem; color: var(--theme-accent); opacity: 0.4; line-height: 1; margin-bottom: 16px; }
.principal-message {
  font-size: 1.05rem; line-height: 1.85; color: var(--gray-800);
  margin-bottom: 32px; font-style: italic;
}
.principal-signature { display: flex; align-items: center; gap: 16px; }
.signature-line { width: 50px; height: 2px; background: var(--theme-accent); }
.principal-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--theme-primary); }
.principal-title { font-size: 13px; color: var(--gray-600); }

/* ============================================
   NEWS CARDS
============================================ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-colored); border-color: transparent; }
.news-card-img {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card-img img { transform: scale(1.08); }
.news-cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--theme-accent); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.news-card-body { padding: 24px; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--gray-600); margin-bottom: 12px; }
.news-meta i { color: var(--theme-accent); }
.news-card-body h3 {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
  color: var(--theme-primary); margin-bottom: 10px; line-height: 1.3;
}
.news-card-body p { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--theme-primary); font-weight: 600; font-size: 13.5px;
}
.read-more i { transition: transform 0.2s; }
.read-more:hover i { transform: translateX(4px); }

/* ============================================
   FACULTY / STAFF CARDS
============================================ */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.faculty-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-colored); border-color: transparent; }
.faculty-photo {
  height: 200px; background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  overflow: hidden; position: relative;
}
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.faculty-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 5rem;
}
.faculty-card.principal-card .faculty-photo {
  background: linear-gradient(135deg, var(--theme-accent), #e65100);
}
.principal-crown {
  position: absolute; top: 12px; right: 12px;
  background: var(--theme-accent); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.faculty-info { padding: 20px 16px; }
.faculty-info h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--theme-primary); margin-bottom: 4px; }
.faculty-info .designation { font-size: 13px; color: var(--theme-accent); font-weight: 600; margin-bottom: 4px; }
.faculty-info .dept { font-size: 12px; color: var(--gray-600); }

/* ============================================
   GALLERY GRID
============================================ */
.gallery-masonry {
  columns: 4 200px; gap: 16px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,75,0.8) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay span { color: #fff; font-size: 13px; font-weight: 600; }

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials-section { background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)); color: #fff; }
.testimonials-section .section-title { color: #fff; }
.testimonials-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 16px;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 340px; scroll-snap-align: start;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.stars { color: #ffd700; font-size: 14px; margin-bottom: 16px; }
.testimonial-text { font-style: italic; line-height: 1.8; margin-bottom: 24px; opacity: 0.9; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--theme-accent); display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 14px; }
.author-class { font-size: 12px; opacity: 0.7; }

/* ============================================
   QUICK INFO CARDS (FACILITIES)
============================================ */
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.facility-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.facility-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-colored);
  border-bottom-color: var(--theme-accent);
}
.facility-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--theme-bg), #dce4ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--theme-primary);
  transition: var(--transition);
}
.facility-card:hover .facility-icon { background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)); color: #fff; }
.facility-card h4 { font-size: 15px; font-weight: 600; color: var(--gray-800); }

/* ============================================
   PAGE HERO (INNER PAGES)
============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  padding: 80px 0 60px; position: relative; overflow: hidden; color: #fff;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--theme-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-bg {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }

/* ============================================
   FORMS
============================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 2px solid var(--gray-200); font-family: var(--font-body); font-size: 14.5px;
  color: var(--gray-800); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 4px rgba(26,35,126,0.08); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--theme-primary); color: #fff; box-shadow: 0 4px 16px rgba(26,35,126,0.3); }
.btn-primary:hover { background: var(--theme-secondary); transform: translateY(-2px); color: #fff; }
.btn-accent { background: var(--theme-accent); color: #fff; box-shadow: 0 4px 16px rgba(255,111,0,0.3); }
.btn-accent:hover { background: #e65100; transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; color: var(--theme-primary); border: 2px solid var(--theme-primary); }
.btn-outline:hover { background: var(--theme-primary); color: #fff; }

/* ============================================
   FESTIVAL CANVAS
============================================ */
.festival-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; display: none;
}

/* ============================================
   FOOTER
============================================ */
.main-footer { background: var(--footer-bg); color: rgba(255,255,255,0.8); position: relative; }
.footer-wave { margin-bottom: -2px; }
.footer-wave svg { height: 60px; width: 100%; }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo strong { display: block; font-size: 16px; color: #fff; }
.footer-logo small { font-size: 11px; color: rgba(255,255,255,0.5); }
.footer-col p { font-size: 13.5px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition);
}
.social-btn:hover { background: var(--theme-accent); border-color: var(--theme-accent); color: #fff; transform: translateY(-3px); }
.footer-heading {
  font-family: var(--font-heading); font-size: 1.1rem; color: #fff;
  margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--theme-accent); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13.5px; color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.footer-links a i { font-size: 10px; color: var(--theme-accent); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; gap: 12px; font-size: 13px; }
.footer-contact-list i { color: var(--theme-accent); margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.7); }
.footer-contact-list a:hover { color: #fff; }
.newsletter-form {
  display: flex; overflow: hidden; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15); margin-bottom: 20px;
}
.newsletter-form input {
  flex: 1; padding: 10px 16px; background: transparent;
  border: none; color: #fff; font-family: var(--font-body); font-size: 13.5px; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 10px 18px; background: var(--theme-accent); border: none;
  color: #fff; cursor: pointer; font-size: 15px; transition: var(--transition);
}
.newsletter-form button:hover { background: #e65100; }
.admission-notice {
  background: rgba(255,111,0,0.15); border: 1px solid rgba(255,111,0,0.3);
  border-radius: var(--radius); padding: 12px 16px; font-size: 13px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.admission-notice strong { color: #fff; }
.admission-notice a { color: var(--theme-accent); font-weight: 600; }
.affiliation-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 10px 16px; font-size: 12.5px;
}
.affiliation-badge i { color: var(--theme-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.9); }

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--theme-primary); color: #fff; border: none; cursor: pointer;
  box-shadow: var(--shadow-md); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--theme-accent); transform: translateY(-3px); }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ============================================
   FESTIVAL THEMES
============================================ */
/* Diwali */
body.theme-diwali {
  --theme-primary: #b5451b;
  --theme-secondary: #f4a100;
  --theme-accent: #ffe066;
  --theme-bg: #fff8e1;
  --footer-bg: #1a0a00;
}
body.theme-diwali .main-header { border-bottom: 2px solid #f4a100; }

/* Holi */
body.theme-holi {
  --theme-primary: #9c27b0;
  --theme-secondary: #e91e63;
  --theme-accent: #ff9800;
  --theme-bg: #fce4ec;
}

/* Independence / Republic Day */
body.theme-independence, body.theme-republic {
  --theme-primary: #ff6600;
  --theme-secondary: #138808;
  --theme-accent: #ff6600;
  --theme-bg: #f5f5f5;
}

/* Christmas */
body.theme-christmas {
  --theme-primary: #c0392b;
  --theme-secondary: #27ae60;
  --theme-accent: #f1c40f;
  --footer-bg: #1a2e1a;
}

/* New Year */
body.theme-newyear {
  --theme-primary: #1a237e;
  --theme-secondary: #7b1fa2;
  --theme-accent: #ffd700;
  --theme-bg: #f3f0ff;
  --footer-bg: #0a0a0a;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .principal-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--white); flex-direction: column; justify-content: flex-start;
    padding: 80px 24px 24px; box-shadow: var(--shadow-lg);
    transition: right 0.3s ease; z-index: 800;
  }
  .main-nav.open { right: 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-list > li > a { padding: 12px 16px; border-radius: var(--radius); }
  .dropdown {
    position: static; transform: none; box-shadow: none; opacity: 1;
    pointer-events: all; display: none; background: var(--theme-bg);
    margin: 4px 0 4px 16px; border-top: none; border-left: 3px solid var(--theme-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; z-index: 900; }
  .topbar-left { display: none; }
}
@media (max-width: 680px) {
  section { padding: 56px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .gallery-masonry { columns: 2 150px; }
  .school-name { font-size: 1rem; }
}