/* ═══════════════════════════════════════════════════════════════════
   Gyandeep Academy — Main Stylesheet
   Theme: Galaxy of Knowledge
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables ─────────────────────────────────────────────── */
:root {
  /* Palette - Playful & Joyful (Soft Cream, Sky Blue, Sunshine Yellow, Orange, Green, Pink) */
  --navy:         #fffbeb;          /* Soft Cream page background */
  --navy-mid:     #fef3c7;          /* Slightly darker warm cream */
  --navy-light:   #fde68a;          /* Light amber / yellow highlight */
  --indigo:       #0284c7;          /* Cheerful Sky Blue */
  --indigo-mid:   #0369a1;          /* Mid sky blue */
  --electric:     #0ea5e9;          /* Electric sky blue */
  --electric-light:#38bdf8;         /* Light sky blue */
  --violet:       #d946ef;          /* Playful Pink/Magenta */
  --violet-light: #f472b6;          /* Soft Pink */
  --white:        #ffffff;          /* White cards */
  --off-white:    #0f172a;          /* Dark Navy slate for body text */
  --muted:        #475569;          /* Muted slate text */
  --accent-gold:  #f97316;          /* Playful Orange */
  --accent-teal:  #22c55e;          /* Mint Green */
  --danger:       #ef4444;
  --success:      #22c55e;

  /* Typography */
  --font-main:    'Quicksand', system-ui, sans-serif;
  --font-alt:     'Fredoka', system-ui, sans-serif;

  /* Spacing */
  --section-gap:  100px;
  --container-w:  1200px;

  /* Effects - Playful Rounded and Soft Shadows */
  --glass-bg:     rgba(255, 255, 255, 0.85);
  --glass-border: rgba(2, 132, 199, 0.15);
  --glass-blur:   blur(15px);
  --shadow-glow:  0 8px 30px rgba(2, 132, 199, 0.15);
  --shadow-card:  0 10px 30px rgba(15, 23, 42, 0.05);
  --radius-sm:    12px;
  --radius-md:    24px;
  --radius-lg:    36px;
  --radius-xl:    50px;

  /* Transitions */
  --t-fast:       150ms ease;
  --t-mid:        300ms ease;
  --t-slow:       600ms ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background-color: var(--navy);
  color: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--indigo); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--indigo-mid); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

address { font-style: normal; }

/* ── 3. Loading Screen ────────────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}

.rocket-svg {
  width: 80px;
  animation: rocketLaunch 2s ease-in forwards;
  animation-delay: 0.5s;
  filter: drop-shadow(0 0 20px rgba(99,102,241,0.8));
}

.flame {
  animation: flamePulse 0.15s ease-in-out infinite alternate;
  transform-origin: center top;
}
.flame-inner { animation: flamePulse 0.1s ease-in-out infinite alternate; transform-origin: center top; }

@keyframes rocketLaunch {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  60%  { transform: translateY(-20px) scale(1.05); opacity: 1; }
  100% { transform: translateY(-200px) scale(0.5); opacity: 0; }
}
@keyframes flamePulse {
  from { transform: scaleY(0.8) scaleX(0.9); }
  to   { transform: scaleY(1.1) scaleX(1.1); }
}

.loader-text {
  font-size: 1.1rem; font-weight: 600; color: var(--off-white); letter-spacing: 0.02em;
  animation: fadeInUp 0.5s ease forwards;
}

.loader-dots { display: flex; gap: 8px; }
.loader-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--indigo);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%,80%,100% { transform: scale(0.8); opacity: 0.4; }
  40%         { transform: scale(1.2); opacity: 1; }
}

/* ── 4. Page Transition ───────────────────────────────────────────── */
#page-transition {
  position: fixed; inset: 0; z-index: 8888;
  background: var(--navy);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
#page-transition.active { opacity: 1; pointer-events: all; }

/* ── 4b. School Banner ────────────────────────────────────────────── */
.school-banner-wrap {
  position: relative;
  width: 100%;
  margin-top: 80px; /* height of fixed navbar */
  height: clamp(180px, 28vw, 340px);
  overflow: hidden;
  display: block;
}

.school-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  transition: transform 8s ease;
}
.school-banner-wrap:hover .school-banner-img {
  transform: scale(1.04);
}

.school-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(2, 28, 60, 0.70) 0%,
    rgba(2, 28, 60, 0.40) 50%,
    rgba(2, 28, 60, 0.10) 100%
  );
  display: flex;
  align-items: center;
}

.school-banner-content {
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: 700px;
}

.school-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 12px;
  display: block;
}

.school-banner-title {
  font-family: var(--font-alt);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.school-banner-title em {
  font-style: normal;
  color: #38bdf8;
}

.school-banner-tagline {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

@media (max-width: 600px) {
  .school-banner-wrap { margin-top: 70px; height: 160px; }
  .school-banner-tagline { display: none; }
}

/* ── 5. Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--t-mid), padding var(--t-mid), box-shadow var(--t-mid);
}
.navbar.scrolled {
  background: rgba(255, 251, 235, 0.92);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-alt); font-size: 1.4rem; font-weight: 700;
  color: var(--off-white); text-decoration: none; white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo em { color: var(--indigo); font-style: normal; }
.logo-icon { font-size: 1.8rem; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0px; left: 12px; right: 12px;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid);
}
.nav-link:hover, .nav-link.active { color: var(--indigo); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.btn-nav {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: var(--white);
  border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  flex-shrink: 0;
}
.btn-nav:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4); color: var(--white); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--off-white); border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-mid);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. Mobile Drawer ─────────────────────────────────────────────── */
.mobile-drawer { display: none; }

/* ── 7. Container & Layout ────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }
.section-sm { padding: 60px 0; }

/* ── 8. Typography ────────────────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--indigo);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 50px; padding: 6px 18px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-alt);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.2;
  color: var(--off-white);
  margin-bottom: 16px;
}
.section-title span { color: var(--indigo); }

.section-subtitle {
  font-size: 1.1rem; color: var(--muted);
  max-width: 600px; line-height: 1.7;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── 9. Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-family: var(--font-main); font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: all var(--t-mid);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.4);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
}
.btn-outline:hover {
  background: rgba(2, 132, 199, 0.05);
  border-color: var(--indigo-mid);
  transform: translateY(-2px);
  color: var(--indigo-mid);
}
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.18); color: var(--danger); }

/* ── 10. Scroll Reveal Animations ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── 11. Hero Section ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-image: url('../school_banner.png');
  background-size: cover;
  background-position: center;
}

#star-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  max-width: var(--container-w); margin: 0 auto; padding: 80px 24px;
}

.hero-text {}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(2,132,199,0.08);
  border: 1px solid rgba(2,132,199,0.2);
  border-radius: 50px; padding: 8px 18px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--indigo); text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-alt);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.15;
  color: var(--off-white); margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--indigo), var(--accent-gold), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem; color: var(--muted); line-height: 1.8;
  margin-bottom: 36px; max-width: 480px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stat-num {
  font-family: var(--font-alt); font-size: 2.2rem; font-weight: 800;
  color: var(--indigo);
}
.hero-stat-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* School Building SVG */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: floatBuilding 6s ease-in-out infinite;
  position: relative;
}
@keyframes floatBuilding {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-20px) rotate(1deg); }
}

.hero-visual svg { width: 100%; max-width: 420px; filter: drop-shadow(0 0 40px rgba(99,102,241,0.5)); }

/* Nebula gradients */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(13, 13, 43, 0.78) 0%, rgba(13, 13, 43, 0.6) 50%, rgba(13, 13, 43, 0.85) 100%),
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(99,102,241,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(139,92,246,0.15) 0%, transparent 60%);
}
.hero .hero-title {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero .hero-title .gradient-text {
  background: linear-gradient(135deg, #38bdf8, var(--accent-gold), var(--violet-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .hero-desc {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}
.hero .hero-tag {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}
.hero .hero-stat-num {
  color: #38bdf8;
  text-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}
.hero .hero-stat-label {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 12. Planets / Orbits Section ────────────────────────────────── */
.planets-section {
  padding: var(--section-gap) 0;
  position: relative; overflow: hidden;
}

.orbit-system {
  position: relative;
  width: 500px; height: 500px;
  margin: 60px auto 40px;
}

.orbit-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--indigo-mid), var(--indigo));
  border-radius: 50%;
  border: 4px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.25);
  z-index: 10;
}

.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  border: 2px dashed rgba(2, 132, 199, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.planet {
  position: absolute; top: 50%; left: 50%;
  width: 70px; height: 70px;
  margin: -35px 0 0 -35px;
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  transition: transform var(--t-fast);
}

.planet-inner {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(15,23,42,0.1);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.planet:hover .planet-inner { transform: scale(1.2); box-shadow: 0 8px 20px rgba(2,132,199,0.3); }

.planet-label {
  font-size: 0.75rem; font-weight: 700; text-align: center;
  color: var(--off-white); margin-top: 4px; white-space: nowrap;
}

/* Orbit animation — each planet at different radius & speed */
.planet-1 { animation: orbit1 8s linear infinite; }
.planet-2 { animation: orbit2 12s linear infinite; }
.planet-3 { animation: orbit3 10s linear infinite; }
.planet-4 { animation: orbit4 15s linear infinite; }
.planet-5 { animation: orbit5 9s linear infinite; }
.planet-6 { animation: orbit6 13s linear infinite; }
.planet-7 { animation: orbit7 14s linear infinite; }

@keyframes orbit1 {
  from { transform: rotate(0deg)   translateX(110px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: rotate(60deg)  translateX(175px) rotate(-60deg); }
  to   { transform: rotate(420deg) translateX(175px) rotate(-420deg); }
}
@keyframes orbit3 {
  from { transform: rotate(120deg) translateX(140px) rotate(-120deg); }
  to   { transform: rotate(480deg) translateX(140px) rotate(-480deg); }
}
@keyframes orbit4 {
  from { transform: rotate(200deg) translateX(200px) rotate(-200deg); }
  to   { transform: rotate(560deg) translateX(200px) rotate(-560deg); }
}
@keyframes orbit5 {
  from { transform: rotate(280deg) translateX(120px) rotate(-280deg); }
  to   { transform: rotate(640deg) translateX(120px) rotate(-640deg); }
}
@keyframes orbit6 {
  from { transform: rotate(330deg) translateX(190px) rotate(-330deg); }
  to   { transform: rotate(690deg) translateX(190px) rotate(-690deg); }
}
@keyframes orbit7 {
  from { transform: rotate(150deg) translateX(165px) rotate(-150deg); }
  to   { transform: rotate(510deg) translateX(165px) rotate(-510deg); }
}

.orbit-ring-1 { width: 220px; height: 220px; }
.orbit-ring-2 { width: 350px; height: 350px; }
.orbit-ring-3 { width: 400px; height: 400px; }

/* Department cards grid (below orbit) */
.dept-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; margin-top: 60px; }

.dept-card {
  background: var(--white);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.dept-card:hover {
  transform: translateY(-8px);
  border-color: var(--dept-color, var(--indigo));
  box-shadow: 0 15px 35px rgba(15,23,42,0.08);
}
.dept-icon { font-size: 2.8rem; margin-bottom: 12px; }
.dept-title { font-weight: 700; color: var(--off-white); margin-bottom: 6px; }
.dept-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ── 13. Stats Section ────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, rgba(2,132,199,0.05), rgba(217,70,239,0.05));
  border-top: 1px solid rgba(2, 132, 199, 0.1);
  border-bottom: 1px solid rgba(2, 132, 199, 0.1);
  padding: 80px 0;
}

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; text-align: center; }

.stat-item {}
.stat-num {
  font-family: var(--font-alt); font-size: clamp(2.5rem,4vw,3.5rem); font-weight: 800;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suffix { color: var(--accent-gold); }
.stat-label { color: var(--muted); font-size: 1rem; margin-top: 4px; font-weight: 700; }
.stat-icon { font-size: 2.2rem; margin-bottom: 8px; }

/* ── 14. Cards (3D Tilt) ──────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--indigo); box-shadow: 0 15px 35px rgba(2, 132, 199, 0.1); }

.card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, var(--indigo), var(--navy-mid));
}
.card-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--indigo), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}

.card-body { padding: 24px; }

.card-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--indigo);
  background: rgba(2,132,199,0.08); border-radius: 6px;
  padding: 4px 12px; margin-bottom: 10px;
}

.card-title { font-weight: 700; font-size: 1.2rem; color: var(--off-white); margin-bottom: 8px; line-height: 1.4; }
.card-text  { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.card-meta  { font-size: 0.85rem; color: var(--muted); margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.card-link  { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--indigo); font-weight: 700; font-size: 0.95rem; transition: gap var(--t-fast); }
.card-link:hover { gap: 10px; color: var(--indigo-mid); }

/* ── 15. News Section (Homepage) ──────────────────────────────────── */
.news-section { padding: var(--section-gap) 0; }
.featured-news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }

.featured-news-card { border-radius: var(--radius-md); overflow: hidden; }
.featured-news-card:first-child { grid-row: span 2; }

/* ── 16. Gallery Masonry ──────────────────────────────────────────── */
.gallery-masonry {
  columns: 4; column-gap: 16px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; position: relative;
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,43,0.8), transparent);
  opacity: 0; transition: opacity var(--t-mid);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span { color: var(--white); font-size: 0.85rem; font-weight: 500; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--t-mid);
  backdrop-filter: blur(10px);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(99,102,241,0.3);
  animation: lightboxZoom 0.3s ease;
}
@keyframes lightboxZoom { from { transform: scale(0.8); } to { transform: scale(1); } }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 50%; width: 48px; height: 48px;
  color: var(--off-white); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: var(--glass-blur);
  transition: background var(--t-fast);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(99,102,241,0.3); }
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 0.9rem; text-align: center;
}

/* ── 17. Form Styles ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--off-white); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 18px;
  background: var(--white);
  border: 2px solid rgba(2, 132, 199, 0.15);
  border-radius: var(--radius-sm);
  color: var(--off-white); font-family: var(--font-main); font-size: 0.95rem;
  outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--white); color: var(--off-white); }

/* ── 18. Section Divider ──────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0;
}

/* ── 19. Featured Banner / CTA Strip ─────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { font-size: clamp(1.8rem,3.5vw,2.6rem); color: var(--white); margin-bottom: 12px; font-weight: 800; position: relative; z-index: 1; }
.cta-banner p  { color: rgba(255,255,255,0.9); margin-bottom: 28px; font-size: 1.1rem; position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; background: var(--white); color: var(--indigo); font-weight: 700; }
.cta-banner .btn:hover { background: var(--navy-mid); color: var(--indigo-mid); }

/* ── 20. Testimonials ─────────────────────────────────────────────── */
.testimonials { padding: var(--section-gap) 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.testimonial-quote {
  font-size: 3rem; line-height: 1; color: var(--indigo);
  font-family: Georgia, serif; margin-bottom: 12px;
}
.testimonial-text { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--white); font-weight: 700;
}
.author-name { font-weight: 700; color: var(--off-white); font-size: 0.95rem; }
.author-role { font-size: 0.8rem; color: var(--muted); }
.stars { color: var(--accent-gold); font-size: 1rem; margin-bottom: 14px; }

/* ── 21. Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  min-height: 320px;
  display: flex; align-items: center;
  padding: 130px 0 65px;
  position: relative; overflow: hidden;
  background-image: url('../school_banner.png');
  background-size: cover;
  background-position: center 60%;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.78) 0%,
    rgba(15, 23, 42, 0.65) 60%,
    rgba(15, 23, 42, 0.85) 100%
  );
  z-index: 1;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-hero .section-title {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.page-hero .section-title span {
  color: var(--electric-light);
}
.page-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.page-hero .breadcrumb a {
  color: var(--electric-light);
  transition: color var(--t-fast);
}
.page-hero .breadcrumb a:hover {
  color: var(--white);
}
.page-hero .breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--indigo); }
.breadcrumb span { color: var(--muted); }

/* ── 22. Contact Page ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--white); border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: var(--radius-md); padding: 32px;
  box-shadow: var(--shadow-card);
}
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(2,132,199,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.contact-detail h4 { font-weight: 700; color: var(--off-white); margin-bottom: 4px; }
.contact-detail p  { color: var(--muted); font-size: 0.95rem; }
.map-embed {
  width: 100%; height: 300px; border: none;
  border-radius: var(--radius-md); margin-top: 24px;
  border: 1px solid rgba(2, 132, 199, 0.12);
  background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* ── 23. Admissions Timeline ──────────────────────────────────────── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--indigo), var(--violet), transparent);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute; left: -36px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border: 3px solid var(--white);
  box-shadow: 0 0 12px rgba(2,132,199,0.3);
}
.timeline-step { font-size: 0.8rem; color: var(--indigo); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.timeline-title { font-size: 1.2rem; font-weight: 700; color: var(--off-white); margin-bottom: 6px; }
.timeline-desc  { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── 24. About Page ───────────────────────────────────────────────── */
.principal-card {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-card);
}
.principal-img {
  width: 150px; height: 150px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-glow);
}
.principal-quote { font-size: 1.1rem; color: var(--muted); line-height: 1.8; font-style: italic; }
.principal-name  { font-weight: 700; color: var(--off-white); margin-top: 16px; font-size: 1.25rem; }
.principal-title { color: var(--indigo); font-size: 0.9rem; font-weight: 600; }

/* ── 25. Staff Grid ───────────────────────────────────────────────── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 24px; }
.staff-card {
  background: var(--white); border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: var(--radius-md); padding: 28px 20px; text-align: center;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  box-shadow: var(--shadow-card);
}
.staff-card:hover { transform: translateY(-8px); border-color: var(--indigo); box-shadow: 0 12px 25px rgba(2,132,199,0.1); }
.staff-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.staff-name  { font-weight: 700; color: var(--off-white); margin-bottom: 4px; }
.staff-role  { font-size: 0.85rem; color: var(--indigo); font-weight: 600; margin-bottom: 8px; }
.staff-dept  { font-size: 0.85rem; color: var(--muted); }

/* ── 26. Alert / Message Boxes ────────────────────────────────────── */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 0.95rem; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 600;
}
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #16a34a; }
.alert-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2);  color: #dc2626; }
.alert-info    { background: rgba(2,132,199,0.08); border: 1px solid rgba(2,132,199,0.2); color: var(--indigo); }

/* ── 27. Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: #0a192f;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 80px 0 0;
  position: relative; overflow: hidden;
}
.footer-stars {
  position: absolute; inset: 0; opacity: 0.2;
  background-image: radial-gradient(1px 1px at 20% 30%, white, transparent),
                    radial-gradient(1px 1px at 80% 10%, white, transparent),
                    radial-gradient(2px 2px at 50% 70%, rgba(2,132,199,0.8), transparent),
                    radial-gradient(1px 1px at 10% 80%, white, transparent),
                    radial-gradient(1px 1px at 90% 60%, white, transparent);
  pointer-events: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 60px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  text-decoration: none; margin-bottom: 16px;
  font-family: var(--font-alt);
}
.footer-brand p { color: #94a3b8; font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: rgba(2,132,199,0.2); color: var(--white); border-color: var(--indigo); }

.footer-col h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-alt); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #94a3b8; font-size: 0.95rem; transition: color var(--t-fast), padding-left var(--t-fast); display: inline-block; }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-col address p { color: #94a3b8; font-size: 0.95rem; margin-bottom: 8px; }
.footer-col address a { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: #94a3b8; font-size: 0.9rem; }
.footer-bottom a { color: var(--white); font-weight: 600; }

/* ── 28. Badge & Tag styles ───────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 6px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-indigo { background: rgba(2,132,199,0.08); color: var(--indigo); }
.badge-gold   { background: rgba(249,115,22,0.08); color: var(--accent-gold); }
.badge-teal   { background: rgba(34,197,94,0.08);  color: var(--accent-teal); }
.badge-green  { background: rgba(34,197,94,0.08);  color: var(--success); }

/* ── 29. Academics Page ───────────────────────────────────────────── */
.academic-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px; display: flex; gap: 20px;
  backdrop-filter: var(--glass-blur);
  transition: transform var(--t-mid), border-color var(--t-mid);
}
.academic-card:hover { transform: translateY(-4px); border-color: var(--electric); }
.academic-card-icon { font-size: 2.5rem; flex-shrink: 0; }
.academic-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--off-white); margin-bottom: 8px; }
.academic-card p  { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.docs-list { }
.doc-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  transition: border-color var(--t-fast);
}
.doc-item:hover { border-color: var(--electric); }
.doc-name { color: var(--off-white); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.doc-date { color: var(--muted); font-size: 0.82rem; }

/* ── 29b. Table Styles ────────────────────────────────────────────── */
.admin-panel {
  background: var(--white);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 16px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th, .admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(2, 132, 199, 0.08);
}
.admin-table th {
  background: rgba(2, 132, 199, 0.05);
  font-family: var(--font-alt);
  font-weight: 700;
  color: var(--indigo-mid);
  font-size: 0.95rem;
}
.admin-table td {
  color: var(--off-white);
  font-size: 0.95rem;
  font-weight: 500;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr:hover td {
  background: rgba(2, 132, 199, 0.02);
}

/* ── 30. Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-news-grid { grid-template-columns: 1fr 1fr; }
  .featured-news-card:first-child { grid-row: auto; grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
}

/* Centered homepage hero content rules */
.hero-content-centered {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  max-width: 800px !important;
  margin: 0 auto;
}
.hero-content-centered .hero-desc {
  margin-left: auto;
  margin-right: auto;
}
.hero-content-centered .hero-btns {
  justify-content: center;
}
.hero-content-centered .hero-stats {
  justify-content: center;
  gap: 48px;
}

@media (max-width: 768px) {
  :root { --section-gap: 60px; }

  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  /* Mobile Drawer */
  .mobile-drawer {
    display: block;
    position: fixed; inset: 0; z-index: 1100;
    pointer-events: none;
  }
  .mobile-drawer.open { pointer-events: all; }
  .drawer-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity var(--t-mid);
  }
  .mobile-drawer.open .drawer-overlay { opacity: 1; }
  .drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--navy-mid);
    border-left: 1px solid var(--glass-border);
    padding: 60px 28px 40px;
    transform: translateX(100%); transition: transform var(--t-mid);
  }
  .mobile-drawer.open .drawer-panel { transform: translateX(0); }
  .drawer-close {
    position: absolute; top: 16px; right: 16px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--off-white); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 0.9rem;
  }
  .drawer-panel ul li { margin-bottom: 4px; }
  .drawer-panel ul li a {
    display: block; padding: 12px 16px;
    color: var(--off-white); font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
  }
  .drawer-panel ul li a:hover { background: rgba(2, 132, 199, 0.1); color: var(--indigo); }

  /* Layout adjustments */
  .hero-content { grid-template-columns: 1fr; text-align: center; padding: 60px 24px; }
  .hero-visual { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }

  .orbit-system { width: 320px; height: 320px; }
  .orbit-ring-2, .orbit-ring-3 { display: none; }
  .planet-4, .planet-5, .planet-6, .planet-7 { display: none; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .principal-card { grid-template-columns: 1fr; text-align: center; }
  .gallery-masonry { columns: 2; }
  .featured-news-grid { grid-template-columns: 1fr; }
  .featured-news-card:first-child { grid-column: auto; }
  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .orbit-system { width: 260px; height: 260px; }
}
