/* ============================================================
   EMERALD'S JUNIOR COLLEGE — ANTI-GRAVITY DESIGN SYSTEM
   Navy #0A1F44 | Gold #F4A300 | White #FFFFFF
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors — Overhauled to White/Red */
  --navy: #f8f9fa;
  --navy-deep: #ffffff;
  --navy-mid: #f1f3f5;
  --navy-light: #e9ecef;
  --gold: #DE1F26; /* Red */
  --gold-light: #ff4d4d;
  --gold-dark: #b30000;
  --white: #0A1F44; /* Now used for primary text */
  --white-soft: #112659;
  --text-muted: rgba(10, 31, 68, 0.65);

  /* Glass — Adjusted for light background */
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-glow: rgba(222, 31, 38, 0.15);

  /* Shadows */
  --shadow-gold: 0 0 30px rgba(222, 31, 38, 0.2);
  --shadow-navy: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --ease-float: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-slow: 0.8s;
  --dur-med: 0.45s;
  --dur-fast: 0.25s;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 80px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  width: 100%;
  transition: background var(--dur-slow), color var(--dur-slow);
  cursor: default;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes floatYSlow {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes driftIn {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--glass-glow), 0 0 40px rgba(222, 31, 38, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(222, 31, 38, 0.3), 0 0 80px rgba(222, 31, 38, 0.1);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg) translateX(160px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(160px) rotate(-360deg);
  }
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.5);
  }
}

@keyframes countFlip {
  0% {
    transform: rotateX(0);
  }

  50% {
    transform: rotateX(-90deg);
  }

  100% {
    transform: rotateX(0);
  }
}

@keyframes rippleOut {
  from {
    transform: scale(1);
    opacity: 0.6;
  }

  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes energyLine {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes tiltCard {

  0%,
  100% {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg) translateY(0px);
  }

  25% {
    transform: perspective(800px) rotateY(5deg) rotateX(-3deg) translateY(-10px);
  }

  75% {
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg) translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes badgePop {
  0% {
    transform: scale(0) rotate(-10deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.15) rotate(3deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(222, 31, 38, 0.08);
  border: 1px solid rgba(222, 31, 38, 0.2);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

.section-title span {
  color: var(--gold);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 600px;
}

.text-center {
  text-align: center;
}

/* Glass Card Base */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--dur-med) var(--ease-float);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #FFFFFF;
  box-shadow: 0 6px 25px rgba(222, 31, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(222, 31, 38, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--glass-border);
  box-shadow: inset 0 0 0 0 var(--gold);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244, 163, 0, 0.2);
}

/* Glow dot */
.glow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  display: inline-block;
}

/* Floating element utility */
.float-anim {
  animation: floatY 4s var(--ease-float) infinite;
}

.float-slow {
  animation: floatYSlow 6s var(--ease-float) infinite;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--navy-deep);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1000;
}

.top-bar-left {
  display: flex;
  gap: 20px;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left i {
  color: var(--gold);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-social a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--dur-fast);
  margin-left: 10px;
}

.top-bar-social a:hover {
  color: var(--gold);
}

.top-bar .website-link {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Dark Mode Toggle ---------- */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background var(--dur-med);
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '🌙';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  transition: transform var(--dur-med) var(--ease-float);
}

[data-theme="light"] .theme-toggle::after {
  content: '☀️';
  transform: translateX(20px);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--dur-fast);
}

.main-header.scrolled {
  height: 64px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-wrap img {
  height: 52px;
  width: auto;
  transition: height var(--dur-fast);
}

.main-header.scrolled .logo-wrap img {
  height: 42px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all var(--dur-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--dur-med);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 14%;
  right: 14%;
}

.nav-links a.active {
  color: var(--gold);
  background: rgba(244, 163, 0, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #FFFFFF !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(222, 31, 38, 0.35);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 163, 0, 0.5);
}

.nav-cta::after {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--white);
  padding: 8px;
}

/* Sidebar Mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 48, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--navy-mid);
  z-index: 1200;
  padding: 30px 24px;
  border-left: 1px solid var(--glass-border);
  transition: right var(--dur-slow) var(--ease-float);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav.active {
  right: 0;
}

.sidebar-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: color var(--dur-fast);
  align-self: flex-end;
}

.sidebar-close:hover {
  color: var(--gold);
}

.sidebar-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--dur-fast);
  border: 1px solid transparent;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: rgba(244, 163, 0, 0.1);
  border-color: rgba(244, 163, 0, 0.3);
  color: var(--gold);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: auto; /* Changed from 90vh to auto to show full image */
  display: block;
  overflow: hidden;
  background: var(--navy-deep);
  margin: 0 0 60px 0;
  padding: 0;
  width: 100%;
}

.hero-banner {
  width: 100%;
  height: auto; /* Changed from 100% to auto */
  object-fit: contain; /* Changed from cover to contain */
  object-position: center center;
  display: block;
  position: relative; /* Changed from absolute */
}

/* Particle Canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Space Grid Lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 163, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 163, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* Left — Text */
.hero-text {}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badge {
  background: rgba(244, 163, 0, 0.15);
  border: 1px solid rgba(244, 163, 0, 0.35);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  animation: glowPulse 2.5s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-headline .gold {
  color: var(--gold);
}

.hero-headline .hero-word {
  display: inline-block;
  animation: driftIn 0.7s var(--ease-float) both;
}

.hero-headline .hero-word:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-headline .hero-word:nth-child(2) {
  animation-delay: 0.25s;
}

.hero-headline .hero-word:nth-child(3) {
  animation-delay: 0.4s;
}

.hero-headline .hero-word:nth-child(4) {
  animation-delay: 0.55s;
}

.hero-headline .hero-word:nth-child(5) {
  animation-delay: 0.7s;
}

.hero-headline .hero-word:nth-child(6) {
  animation-delay: 0.85s;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
  animation: driftIn 0.7s var(--ease-float) 0.9s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: driftIn 0.7s var(--ease-float) 1.1s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  animation: driftIn 0.7s var(--ease-float) 1.3s both;
}

.stat-pill {
  text-align: center;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  transition: transform var(--dur-med);
}

.stat-pill:hover {
  transform: translateY(-4px);
}

.stat-pill .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-pill .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Right — 3D Student Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.student-card-3d {
  width: 320px;
  height: 420px;
  position: relative;
  animation: tiltCard 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.student-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 38, 89, 0.9), rgba(6, 20, 48, 0.95));
  border: 1px solid rgba(222, 31, 38, 0.2);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 60px rgba(244, 163, 0, 0.1);
  backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px;
}

.student-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(244, 163, 0, 0.08) 0%,
      rgba(17, 38, 89, 0.5) 40%,
      rgba(6, 20, 48, 0.9) 100%);
  z-index: 1;
}

.student-avatar {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(244, 163, 0, 0.2));
}

.student-card-info {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
}

.student-card-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.student-card-info p {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 4px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  margin-top: 10px;
  box-shadow: 0 4px 16px rgba(244, 163, 0, 0.4);
  animation: glowPulse 2s ease-in-out infinite;
}

/* Floating orbs around card */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  animation: floatY 3s ease-in-out infinite;
}

.hero-orb-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  right: -20px;
  background: rgba(222, 31, 38, 0.05);
  border: 1px solid rgba(222, 31, 38, 0.2);
  backdrop-filter: blur(10px);
  animation-delay: -1s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.hero-orb-2 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: -30px;
  background: rgba(10, 31, 68, 0.8);
  border: 1px solid rgba(244, 163, 0, 0.2);
  backdrop-filter: blur(10px);
  animation-delay: -2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hero-orb-3 {
  width: 48px;
  height: 48px;
  top: 55%;
  right: -40px;
  background: rgba(244, 163, 0, 0.08);
  border: 1px solid rgba(244, 163, 0, 0.2);
  backdrop-filter: blur(10px);
  animation-delay: -3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Energy Line connecting hero to next section */
.energy-line {
  position: relative;
  height: 4px;
  overflow: hidden;
}

.energy-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: energyLine 2s linear infinite;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: floatY 2s ease-in-out infinite;
  z-index: 2;
}

.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ============================================================
   COURSES SECTION
   ============================================================ */
.courses-section {
  padding: 100px 0;
  position: relative;
  background: var(--navy-deep);
}

.courses-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  pointer-events: none;
}

.courses-header {
  text-align: center;
  margin-bottom: 64px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding: 0 10px;
}

/* Flip Card */
.course-flip-card {
  perspective: 1000px;
  height: 320px;
  cursor: default;
}

.course-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform var(--dur-med) var(--ease-float);
}

.course-flip-card:hover .course-flip-inner {
  transform: translateY(-10px);
}

.course-face {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  text-align: center;
  transition: all var(--dur-med);
}

.course-face:hover {
  background: var(--navy-mid);
  border-color: var(--gold);
}

.course-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  animation: floatY 4s ease-in-out infinite;
}

.course-flip-card:nth-child(2) .course-icon {
  animation-delay: -1s;
}

.course-flip-card:nth-child(3) .course-icon {
  animation-delay: -2s;
}

.course-flip-card:nth-child(4) .course-icon {
  animation-delay: -3s;
}

.course-icon-1 {
  background: rgba(244, 163, 0, 0.15);
  border: 1px solid rgba(244, 163, 0, 0.3);
}

.course-icon-2 {
  background: rgba(100, 200, 255, 0.1);
  border: 1px solid rgba(100, 200, 255, 0.25);
}

.course-icon-3 {
  background: rgba(160, 100, 255, 0.1);
  border: 1px solid rgba(160, 100, 255, 0.25);
}

.course-icon-4 {
  background: rgba(100, 255, 180, 0.1);
  border: 1px solid rgba(100, 255, 180, 0.25);
}

.course-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.course-stream {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(244, 163, 0, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.course-desc-back {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.course-highlights {
  width: 100%;
}

.course-highlights li {
  font-size: 0.8rem;
  color: var(--white);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-highlights li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.6rem;
}

/* Glow on card */
.course-face::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 163, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   WHY CHOOSE US — ORBIT LAYOUT
   ============================================================ */
.why-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
}

.why-content {
  position: relative;
  z-index: 2;
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch; /* Changed from center to stretch to match column heights */
  gap: 80px;
}

.reveal-left {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center orbit and card vertically together */
  gap: 24px; /* Reduced gap to pull them closer */
}

/* Orbit */
.orbit-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  border: 2px solid rgba(244, 163, 0, 0.4);
  box-shadow: 0 0 60px rgba(244, 163, 0, 0.35), 0 0 120px rgba(244, 163, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: glowPulse 2.5s ease-in-out infinite;
}

.orbit-center img {
  width: 60px;
  height: auto;
}

.orbit-center-text {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Orbit Ring */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(244, 163, 0, 0.2);
  transform: translate(-50%, -50%);
}

.orbit-ring-1 {
  width: 260px;
  height: 260px;
  animation: spinSlow 20s linear infinite;
}

.orbit-ring-2 {
  width: 380px;
  height: 380px;
  animation: spinSlow 30s linear infinite reverse;
}

/* Orbit Nodes */
.orbit-node {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  transition: all var(--dur-med);
  cursor: default;
  z-index: 2;
}

.orbit-node:hover {
  background: rgba(222, 31, 38, 0.05);
  border-color: rgba(244, 163, 0, 0.4);
  box-shadow: 0 0 30px rgba(244, 163, 0, 0.2);
  transform: scale(1.1);
}

.orbit-node i {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.orbit-node span {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  line-height: 1.2;
}

/* Node positions (clock-face) */
.orbit-node:nth-child(1) {
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-node:nth-child(2) {
  right: -44px;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-node:nth-child(3) {
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-node:nth-child(4) {
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
}
/* Admissions Promo Card (Mini Version) */
.admissions-promo-card {
  background: var(--navy-mid);
  border: 1px solid rgba(222, 31, 38, 0.15);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: all var(--dur-med);
}

.admissions-promo-card:hover {
  transform: translateY(-8px);
  border-color: rgba(222, 31, 38, 0.3);
  background: rgba(17, 38, 89, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admissions-promo-card .promo-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mini-year-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(244, 163, 0, 0.3);
}

.admissions-promo-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.admissions-promo-card h3 span {
  color: var(--gold);
}

.admissions-promo-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.admissions-promo-card .btn {
  width: auto;
  padding: 12px 32px;
  font-size: 0.9rem;
  font-weight: 700;
}

.promo-benefits {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.promo-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
}

.promo-benefit i {
  color: var(--gold);
  font-size: 0.9rem;
}

.promo-footer-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .stat-val {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
}

.stat-item .stat-lab {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .why-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .reveal-left {
    align-items: center;
    gap: 60px;
  }
}

.orbit-node:nth-child(1):hover {
  transform: translateX(-50%) scale(1.1);
}

.orbit-node:nth-child(2):hover {
  transform: translateY(-50%) scale(1.1);
}

.orbit-node:nth-child(3):hover {
  transform: translateX(-50%) scale(1.1);
}

.orbit-node:nth-child(4):hover {
  transform: translateY(-50%) scale(1.1);
}

/* Why Text Side */
.why-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  transition: all var(--dur-med);
}

.why-feature:hover {
  background: rgba(222, 31, 38, 0.06);
  border-color: rgba(222, 31, 38, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.why-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(222, 31, 38, 0.05);
  border: 1px solid rgba(222, 31, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.why-feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.why-feature-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Achievement banner inside Why */
.achievement-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.achievement-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(222, 31, 38, 0.15), rgba(222, 31, 38, 0.05));
  border: 1px solid rgba(222, 31, 38, 0.3);
  border-radius: 14px;
  padding: 12px 18px;
  animation: badgePop 0.6s var(--ease-float) both;
}

.achievement-badge:nth-child(2) {
  animation-delay: 0.1s;
}

.achievement-badge:nth-child(3) {
  animation-delay: 0.2s;
}

.achievement-badge .badge-icon {
  font-size: 1.4rem;
}

.achievement-badge .badge-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.achievement-badge .badge-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--navy-deep) 100%);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-track-wrap {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  position: relative;
  transition: all var(--dur-med);
}

.testimonial-card:hover {
  border-color: rgba(222, 31, 38, 0.35);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(-6px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.testimonial-stars i {
  color: var(--gold);
  font-size: 0.8rem;
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-author-info .name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.testimonial-author-info .role {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

/* Rank Badge Floating */
.rank-float-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), #e09200);
  color: var(--navy-deep);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 4px;
  box-shadow: 0 3px 12px rgba(222, 31, 38, 0.35);
}

/* ============================================================
   ADMISSIONS SECTION
   ============================================================ */
.admissions-section {
  padding: 100px 0;
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.admissions-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(222, 31, 38, 0.08) 0%, transparent 60%);
}

.admissions-inner {
  position: relative;
  z-index: 2;
}

.admissions-banner {
  text-align: center;
  margin-bottom: 56px;
}

.admissions-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  margin-bottom: 12px;
}

.admissions-open-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(222, 31, 38, 0.15);
  border: 1px solid rgba(222, 31, 38, 0.35);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: glowPulse 1.5s ease-in-out infinite;
}

/* Countdown */
.countdown-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.count-box {
  width: 80px;
  height: 80px;
  background: var(--glass-bg);
  border: 1px solid rgba(222, 31, 38, 0.3);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.count-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(222, 31, 38, 0.2);
}

.count-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.3s;
}

.count-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.count-colon {
  font-size: 2rem;
  color: rgba(222, 31, 38, 0.4);
  font-weight: 800;
  align-self: flex-start;
  margin-top: 12px;
}

/* Application Glass Form */
.apply-form-glass {
  max-width: 680px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid rgba(222, 31, 38, 0.2);
  border-radius: 28px;
  padding: 48px 40px;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(222, 31, 38, 0.05) inset;
  animation: floatY 5s ease-in-out infinite;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  text-align: center;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

.form-group input,
.form-group select {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: rgba(10, 31, 68, 0.4);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(222, 31, 38, 0.02);
  box-shadow: 0 0 0 3px rgba(222, 31, 38, 0.06);
}

.form-group select option {
  background: var(--navy-mid);
}

.form-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Magnetic nodes */
.contact-nodes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-node {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  transition: all var(--dur-med);
  cursor: pointer;
  text-decoration: none;
}

.contact-node:hover {
  background: rgba(222, 31, 38, 0.05);
  border-color: rgba(222, 31, 38, 0.25);
  transform: translateX(-6px) scale(1.01);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.05);
}

.node-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(222, 31, 38, 0.05);
  border: 1px solid rgba(222, 31, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
}

/* Ripple on call */
.node-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 2px solid rgba(222, 31, 38, 0.2);
  animation: rippleOut 2s ease-out infinite;
  opacity: 0;
}

.contact-node:hover .node-icon::after {
  opacity: 1;
}

.node-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.node-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 2px;
}

.node-text .node-sub {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 1px;
}

/* Contact Node Grid Styles */
.node-text-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.node-v-line {
  width: 1px;
  height: 38px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.node-text a {
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
}

.node-text a:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .node-text-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .node-v-line {
    display: none;
  }
}

/* Map container */
.map-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  animation: floatY 6s ease-in-out infinite;
  animation-delay: -2s;
}

.map-container iframe {
  display: block;
  width: 100%;
  border: none;
}

.map-label {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--glass-border);
}

.map-label i {
  color: var(--gold);
}

.map-label span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--glass-border);
  padding-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--dur-fast);
  animation: floatY 4s ease-in-out infinite;
}

.footer-social a:nth-child(2) {
  animation-delay: -0.5s;
}

.footer-social a:nth-child(3) {
  animation-delay: -1s;
}

.footer-social a:nth-child(4) {
  animation-delay: -1.5s;
}

.footer-social a:hover {
  background: rgba(222, 31, 38, 0.05);
  border-color: rgba(244, 163, 0, 0.3);
  color: var(--gold);
  transform: translateY(-4px);
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-col ul li a i {
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0.7;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--gold);
}

/* ============================================================
   SECTION DIVIDERS (Energy Lines)
   ============================================================ */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(222, 31, 38, 0.1) 30%, var(--gold) 50%, rgba(222, 31, 38, 0.1) 70%, transparent 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.section-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(222, 31, 38, 0.4), transparent);
  background-size: 30% 100%;
  animation: energyLine 2.5s ease-in-out infinite;
}

/* ============================================================
   SCROLL REVEAL HELPERS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-float), transform 0.7s var(--ease-float);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-float), transform 0.7s var(--ease-float);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-float), transform 0.7s var(--ease-float);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================================
   RESPONSIVE — TABLET 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .main-header {
    padding: 0 20px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .hero {
    height: 65vh;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 24px 40px;
  }

  .hero-text {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-sub {
    margin: 0 auto 36px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .orbit-container {
    margin: 0 auto 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .top-bar {
    display: none;
  }

  .main-header {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: auto;
    min-height: auto; /* Removed fixed min-height */
    width: 100%;
    /* Removed aspect-ratio to allow full image display */
    overflow: hidden;
    padding: 0 16px; 
    box-sizing: border-box;
    margin-bottom: 30px;
  }

  .hero-banner {
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: contain; /* Changed to contain to ensure full visibility when compressed */
    background: var(--navy-deep);
  }

  .hero-inner {
    padding: 30px 16px 40px;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat-pill {
    padding: 12px 14px;
  }

  .stat-pill .num {
    font-size: 1.3rem;
  }

  .student-card-3d {
    width: 260px;
    height: 340px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-flip-card {
    height: 280px;
  }

  .orbit-container {
    width: 300px;
    height: 300px;
  }

  .orbit-node {
    width: 72px;
    height: 72px;
  }

  .orbit-node i {
    font-size: 1.1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .apply-form-glass {
    padding: 32px 20px;
    margin: 0 16px;
  }

  .countdown-row {
    gap: 10px;
  }

  .count-box {
    width: 64px;
    height: 64px;
  }

  .count-num {
    font-size: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .chatbot-bubble {
    bottom: 20px;
    right: 16px;
  }

  .chatbot-panel {
    width: 290px;
  }

  .testimonial-card {
    width: 280px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .achievement-strip {
    flex-direction: column;
  }

  .courses-section {
    padding: 60px 0;
  }

  .why-section,
  .testimonials-section,
  .admissions-section,
  .contact-section {
    padding: 60px 0;
  }
}

/* Utilities */
.mt-5 {
  margin-top: 3rem !important;
}