/* ═══════════════════════════════════════════════════════════════
   ELS ACADEMY — "Luminous Ascent" Design System
   A premium dark-mode school website with 3D effects,
   glassmorphism, and scroll-triggered animations.
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep:        hsl(225, 50%, 4%);
  --bg-primary:     hsl(225, 42%, 8%);
  --bg-elevated:    hsl(225, 35%, 12%);
  --bg-surface:     hsl(225, 30%, 15%);

  /* Accents */
  --accent-azure:   hsl(207, 90%, 54%);
  --accent-violet:  hsl(265, 75%, 62%);
  --accent-gold:    hsl(42, 92%, 56%);
  --accent-emerald: hsl(162, 73%, 46%);

  /* Text */
  --text-bright:    hsl(0, 0%, 96%);
  --text-primary:   hsl(225, 15%, 78%);
  --text-muted:     hsl(225, 12%, 48%);

  /* Glow Effects */
  --glow-azure:     hsla(207, 90%, 54%, 0.25);
  --glow-violet:    hsla(265, 75%, 62%, 0.25);
  --glow-gold:      hsla(42, 92%, 56%, 0.2);

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.04);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-hover:    rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-azure), var(--accent-violet));
  --gradient-gold:    linear-gradient(135deg, var(--accent-gold), hsl(30, 90%, 55%));
  --gradient-surface: linear-gradient(180deg, var(--bg-primary), var(--bg-deep));

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Borders */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-base: 400ms var(--ease-out-expo);
  --transition-slow: 600ms var(--ease-out-expo);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:  0 16px 64px rgba(0,0,0,0.6);
  --shadow-glow-azure:  0 0 40px var(--glow-azure);
  --shadow-glow-violet: 0 0 40px var(--glow-violet);
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent-azure);
  color: var(--text-bright);
}

/* ─── 3D WORLD CANVAS ───────────────────────────────────────── */
.world-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Content always paints above the world */
section, footer, .navbar {
  position: relative;
  z-index: 1;
}

/* When the 3D world is live, section backdrops become translucent
   glass so the world glows through; opaque values below remain the
   no-WebGL fallback. */
.webgl .about,
.webgl .gallery-section,
.webgl .events {
  background: rgba(12, 16, 29, 0.72);
}

.webgl .programs,
.webgl .testimonials,
.webgl .contact {
  background: rgba(5, 8, 15, 0.55);
}

.webgl .footer {
  background: rgba(5, 8, 15, 0.9);
}

.webgl .hero-orbs {
  display: none;
}

/* ─── NOISE OVERLAY ──────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* ─── SKIP TO CONTENT (A11Y) ─────────────────────────────────── */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: var(--space-xl);
  z-index: 10000;
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-azure);
  color: var(--text-bright);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
}

/* ─── FOCUS VISIBLE (Keyboard A11Y) ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-azure);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-azure);
  outline-offset: 3px;
}

/* ─── UTILITIES ──────────────────────────────────────────────── */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Space Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-azure);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent-azure);
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-bright);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header .section-label::before {
  display: none;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ─── SCROLL ANIMATION BASE ─────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-bright);
  box-shadow: 0 4px 20px var(--glow-azure);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-azure));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-azure), 0 0 60px var(--glow-azure);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--accent-azure);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--glow-azure);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  width: calc(100% - 40px);
  max-width: 1300px;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(10, 14, 26, 0.45);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo),
              transform 1.2s var(--ease-out-expo),
              top 400ms var(--ease-out-expo),
              width 400ms var(--ease-out-expo),
              padding 400ms var(--ease-out-expo),
              background-color 400ms var(--ease-out-expo),
              border-color 400ms var(--ease-out-expo);
  will-change: transform, opacity, background-color;
}

body.loaded .navbar {
  opacity: 1;
  transform: translate(-50%, 0);
}

.navbar.scrolled {
  top: 10px;
  padding: 8px 0;
  background: rgba(10, 14, 26, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: calc(100% - 60px);
}

.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.logo-long {
  display: inline;
}

.logo-short {
  display: none;
}

@media (max-width: 1200px) {
  .logo-long {
    display: none;
  }
  .logo-short {
    display: inline;
    font-size: var(--text-lg);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-cta {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(43, 139, 232, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 139, 232, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-link {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  position: relative;
}

.mobile-link:hover {
  color: var(--text-bright);
  text-shadow: 0 0 20px var(--glow-azure);
}

.mobile-cta {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-bright);
  padding: 0.875rem 2.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px var(--glow-azure);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10, 14, 26, 0.48); /* Solid dark mask directly over background image */
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 800px;
  margin: 0 var(--space-md);
}

/* Specific Staggered Entrance delays for Hero children */
.hero-content .animate-on-scroll:nth-child(1) { transition-delay: 0.3s; }
.hero-content .animate-on-scroll:nth-child(2) { transition-delay: 0.45s; }
.hero-content .animate-on-scroll:nth-child(3) { transition-delay: 0.6s; }
.hero-content .animate-on-scroll:nth-child(4) { transition-delay: 0.75s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: 'Space Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0e1a; /* Solid dark readable text */
  margin-bottom: var(--space-2xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626; /* Strong red matching brand colors */
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.title-line {
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.8));
}

.title-accent {
  color: #dc2626; /* Solid bold high-contrast red */
  text-shadow: none;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.25));
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--text-bright);
  max-width: 650px; /* Constrained reading measure */
  margin: 0 auto var(--space-2xl); /* Centered layout */
  line-height: 1.8;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  opacity: 0.95;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* Specific Premium Brand CTA styles */
.hero-ctas .btn-primary {
  background: #1d4ed8; /* Premium brand solid Blue */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-ctas .btn-primary::before {
  background: #2563eb;
}

.hero-ctas .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.5);
}

.hero-ctas .btn-ghost {
  background: rgba(10, 14, 26, 0.45); /* Frosted glass */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Matches refined navbar border */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-ctas .btn-ghost::before {
  background: rgba(255, 255, 255, 0.05);
}

.hero-ctas .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: scrollBounce 2.5s infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-azure), transparent);
  animation: scrollLine 2.5s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */
.about {
  padding: var(--space-5xl) 0;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--glass-border);
}

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

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-bright);
  display: inline-block;
  line-height: 1.2;
}

.stat-suffix {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent-azure);
  display: inline-block;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: var(--space-xs);
}

/* About visual */
.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out-expo);
}

.about-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);
}

.about-image-accent {
  position: absolute;
  inset: 0;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-xl);
  pointer-events: none;
}



.about-floating-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: var(--text-bright);
  flex-shrink: 0;
}

.floating-card-icon svg {
  width: 24px;
  height: 24px;
}

.floating-card-text strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-bright);
}

.floating-card-text span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Decorative diagonal */
.about-diagonal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--bg-deep);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRAMS SECTION
   ═══════════════════════════════════════════════════════════════ */
.programs {
  padding: var(--space-5xl) 0;
  background: var(--bg-deep);
  position: relative;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

/* 3D Flip Card */
.program-card {
  perspective: 1200px;
  height: 420px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-out-expo);
  transform-style: preserve-3d;
}

.program-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.card-front {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
}

.card-image-wrapper {
  height: 55%;
  overflow: hidden;
  position: relative;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.program-card:hover .card-image-wrapper img {
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-elevated), transparent 50%);
}

.card-front-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--accent-azure);
  margin-bottom: var(--space-sm);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-bright);
}

.card-brief {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Card Back */
.card-back {
  background: var(--bg-elevated);
  border: 1px solid var(--accent-azure);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
  box-shadow: 0 0 30px var(--glow-azure);
}

.card-back-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: var(--space-lg);
}

.card-back-description {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.card-back-link {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-azure);
  transition: all var(--transition-fast);
}

.card-back-link:hover {
  color: var(--text-bright);
  text-shadow: 0 0 12px var(--glow-azure);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   CAMPUS GALLERY
   ═══════════════════════════════════════════════════════════════ */
.gallery-section {
  padding: var(--space-5xl) 0;
  background: var(--bg-primary);
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  grid-auto-rows: 280px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  transform-style: preserve-3d;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-azure);
  z-index: 2;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(10, 14, 26, 0.9), transparent);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h4 {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-xs);
}

.gallery-caption p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  transition: color var(--transition-fast);
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--text-bright);
}

.lightbox-image {
  max-width: 85vw;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-caption {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

/* Video lightbox */
.lightbox--video {
  cursor: default;
}

.lightbox-video {
  width: min(1000px, 92vw);
  max-height: 78vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 60px var(--glow-azure);
  background: #000;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.lightbox--video.active .lightbox-video {
  transform: scale(1);
}
/* Watch-the-film button */
.watch-film-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: 0.75rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-bright);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.watch-film-btn:hover {
  border-color: var(--accent-azure);
  background: var(--glass-hover);
  box-shadow: 0 0 24px var(--glow-azure);
  transform: translateY(-2px);
}

.watch-film-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 16px var(--glow-azure);
}

.watch-film-icon svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
.testimonials {
  padding: var(--space-5xl) 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  min-height: 360px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateX(80px) scale(0.9);
  transition: all 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.testimonial-card.prev {
  opacity: 0.3;
  transform: translateX(-60px) scale(0.85);
  z-index: 1;
}

.testimonial-card.next {
  opacity: 0.3;
  transform: translateX(60px) scale(0.85);
  z-index: 1;
}

.testimonial-quote-mark {
  font-family: 'Outfit', sans-serif;
  font-size: 6rem;
  font-weight: 900;
  line-height: 0.6;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  position: absolute;
  top: var(--space-xl);
  left: var(--space-2xl);
}

.testimonial-text {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: var(--space-2xl);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-bright);
}

.author-name {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-bright);
  display: block;
}

.author-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--glass-hover);
  color: var(--text-bright);
  border-color: var(--accent-azure);
  box-shadow: 0 0 16px var(--glow-azure);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  gap: var(--space-sm);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glass-border);
  transition: all var(--transition-fast);
  padding: 0;
}

.dot.active {
  background: var(--accent-azure);
  box-shadow: 0 0 12px var(--glow-azure);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   EVENTS TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.events {
  padding: var(--space-5xl) 0;
  background: var(--bg-primary);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-azure), var(--accent-violet), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.timeline-left {
  padding-right: var(--space-3xl);
  text-align: right;
}

.timeline-right {
  margin-left: 50%;
  padding-left: var(--space-3xl);
}

.timeline-dot {
  position: absolute;
  top: var(--space-2xl);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-azure);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 16px var(--glow-azure);
  z-index: 1;
}

.timeline-left .timeline-dot {
  right: -8px;
}

.timeline-right .timeline-dot {
  left: -8px;
}

.timeline-card {
  display: flex;
  gap: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.timeline-left .timeline-card {
  flex-direction: row-reverse;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--glow-azure);
  border-color: var(--accent-azure);
}

.timeline-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
}

.date-day {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
}

.date-month {
  font-family: 'Space Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

.timeline-content {
  flex: 1;
  text-align: left;
}

.timeline-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.timeline-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-azure);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--space-5xl) 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.contact-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.contact-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-azure);
  top: -20%;
  right: -10%;
}

.contact-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-violet);
  bottom: -20%;
  left: -10%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-text {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--accent-azure);
  flex-shrink: 0;
}

.detail-icon svg {
  width: 22px;
  height: 22px;
}

.contact-detail-item strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-bright);
  display: block;
  font-size: var(--text-base);
}

.contact-detail-item span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  perspective: 600px;
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease-out-back);
}

.social-link:hover {
  color: var(--accent-azure);
  border-color: var(--accent-azure);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 16px var(--glow-azure);
  transform: translateY(-2px);
}

.social-link:hover svg {
  transform: rotateY(360deg);
}

/* Contact form */
.contact-form-wrapper {
  position: relative;
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  backdrop-filter: blur(16px);
}

.form-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-2xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  position: relative;
  margin-bottom: var(--space-xl);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md) 0;
  font-family: 'Sora', sans-serif;
  font-size: var(--text-base);
  color: var(--text-bright);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group label {
  position: absolute;
  top: var(--space-md);
  left: 0;
  font-size: var(--text-base);
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  font-size: var(--text-xs);
  color: var(--accent-azure);
  font-weight: 600;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.form-group input:focus ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
  width: 100%;
}

.form-group input.error,
.form-group select.error {
  border-bottom-color: hsl(0, 70%, 55%);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: var(--text-lg);
  margin-top: var(--space-md);
  position: relative;
}

.btn-loading,
.btn-success {
  display: none;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; }
.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-success {
  display: inline;
  font-size: var(--text-lg);
}

.btn-loading svg {
  width: 24px;
  height: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  background: var(--bg-deep);
  padding-top: var(--space-3xl);
}

.footer-wave {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 300px;
}

.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-lg);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links-list a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-links-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-azure);
  transition: width var(--transition-base);
}

.footer-links-list a:hover {
  color: var(--text-bright);
}

.footer-links-list a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-credits {
  font-family: 'Space Mono', monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--accent-azure);
  opacity: 0.6;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: var(--text-bright);
  box-shadow: var(--shadow-md), 0 0 20px var(--glow-azure);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 32px var(--glow-azure);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .about-visual {
    order: -1;
  }

  .about-image-wrapper {
    transform: none;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Small-laptop band (1025–1200px): short logo + tighter links so the
   full nav still fits on one line before the hamburger takes over */
@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-container {
    padding: 0 var(--space-lg);
  }

  .nav-link {
    padding: 0.5rem 0.7rem;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
  }
}

/* Mobile & Tablet Navigation Collapse */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(var(--text-3xl), 10vw, var(--text-5xl));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .program-card {
    height: 380px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: var(--space-4xl);
    padding-right: 0;
    text-align: left;
  }

  .timeline-left {
    padding-right: 0;
  }

  .timeline-right {
    margin-left: 0;
  }

  .timeline-left .timeline-dot,
  .timeline-right .timeline-dot {
    left: 12px;
    right: auto;
  }

  .timeline-left .timeline-card {
    flex-direction: row;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .section-container {
    padding: 0 var(--space-md);
  }

  .hero-content {
    padding: var(--space-md);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .about-floating-card {
    left: var(--space-md);
    right: var(--space-md);
    bottom: -16px;
  }

  .testimonial-card {
    padding: var(--space-xl);
  }

  .testimonial-quote-mark {
    font-size: 4rem;
    top: var(--space-md);
    left: var(--space-lg);
  }

  .contact-form {
    padding: var(--space-xl);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ─── PREMIUM EFFECTS ────────────────────────────────────────── */

/* Hero badge shimmer */
.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

/* Contact form gradient border animation */
.contact-form {
  position: relative;
  background: var(--bg-elevated);
  background-clip: padding-box;
}

.contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-xl) + 1px);
  background: linear-gradient(135deg, var(--accent-azure), var(--accent-violet), var(--accent-gold), var(--accent-azure));
  background-size: 300% 300%;
  animation: gradientBorder 8s ease infinite;
  z-index: -1;
  opacity: 0.4;
  transition: opacity var(--transition-base);
}

.contact-form:hover::before {
  opacity: 0.7;
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Stats number glow on hover */
.stat-item:hover .stat-number {
  text-shadow: 0 0 20px var(--glow-azure);
  transition: text-shadow var(--transition-fast);
}

/* Gallery item subtle border */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  pointer-events: none;
  transition: border-color var(--transition-fast);
}

.gallery-item:hover::after {
  border-color: var(--accent-azure);
}

/* Timeline animated connector */
.timeline-line {
  background: linear-gradient(to bottom,
    transparent,
    var(--accent-azure) 20%,
    var(--accent-violet) 80%,
    transparent
  );
  animation: timelinePulse 3s ease-in-out infinite alternate;
}

@keyframes timelinePulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Nav link hover glow */
.nav-link:hover {
  text-shadow: 0 0 12px var(--glow-azure);
}

/* Smooth page load */
body {
  animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGE STYLING (About, Academics, Admissions, Life, Dagbani, Contact)
   ═══════════════════════════════════════════════════════════════ */
body.subpage {
  background: var(--bg-primary);
  background-image: radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.12) 0%, transparent 50%),
                    radial-gradient(circle at 10% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 40%);
}

.subpage-header {
  padding: 160px 0 var(--space-3xl);
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subpage-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  margin: var(--space-sm) 0 var(--space-md);
  letter-spacing: -0.02em;
}

.subpage-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-lg);
  color: var(--text-primary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sections & Grids */
.about-intro-section,
.values-section,
.crest-anthem-section,
.staff-section,
.fees-section,
.payments-scholarships-section,
.faq-section,
.wellness-section,
.dagbani-mission-section,
.dagbani-announcements-section,
.word-week-section,
.contact-details-section,
.campus-map-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.about-grid,
.crest-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
}

/* Cards & Content containers */
.about-text-card,
.about-welcome-card,
.value-card,
.crest-symbolism-card,
.anthem-card,
.staff-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.about-text-card p {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.about-text-card p:last-child {
  margin-bottom: 0;
}

.about-welcome-card {
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.05);
}

.welcome-quote {
  position: relative;
}

.welcome-heading {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.quote-text {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--text-bright);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  position: relative;
}

.quote-author {
  display: flex;
  flex-direction: column;
}

.quote-author strong {
  color: var(--text-bright);
  font-weight: 700;
}

.quote-author span {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* Values & Staff */
.value-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-md);
}

.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.values-list li {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
}

.values-list li strong {
  color: var(--text-bright);
}

.staff-card {
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-fast);
}

.staff-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-azure);
}

.staff-avatar {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.staff-name {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-xs);
}

.staff-role {
  font-size: var(--text-sm);
  color: #dc2626;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-md);
}

.staff-bio {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Crest & Anthem */
.crest-title,
.anthem-title {
  font-family: 'Outfit', sans-serif;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: var(--space-sm);
}

.crest-item {
  margin-bottom: var(--space-md);
}

.crest-item:last-child {
  margin-bottom: 0;
}

.crest-item strong {
  font-family: 'Outfit', sans-serif;
  color: var(--text-bright);
  font-size: var(--text-base);
  display: block;
  margin-bottom: var(--space-xs);
}

.crest-item p {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
}

.anthem-lyrics {
  font-size: var(--text-base);
  color: var(--text-bright);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.anthem-lyrics p {
  margin-bottom: var(--space-md);
}

.audio-anthem-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.anthem-audio-player {
  width: 100%;
}

/* Table styles */
.table-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.admissions-table th {
  color: var(--text-bright);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admissions-table td {
  color: var(--text-primary);
  font-size: var(--text-sm);
}

/* FAQ Details tags */
.faq-accordion details summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-accordion details summary::after {
  content: '+';
  font-size: var(--text-lg);
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.faq-accordion details[open] summary::after {
  content: '−';
  color: var(--text-bright);
}

.faq-accordion details p {
  color: var(--text-primary);
  line-height: 1.6;
}

/* Responsive adjustment for subpages */
@media (max-width: 991px) {
  .about-grid,
  .crest-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ═══ Template additions (PGEN CMS edition) ═══ */
/* Program cards without an uploaded photo get a branded gradient front */
.card-image-fallback {
  position: absolute;
  inset: 0;
}
