/* ============================================================
   Star Academy — Premium Visual System v3.0
   Cinematic Dark Luxury Aesthetic
   Agency-Level Polish & Deep Layering
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --announcement-height: 42px;
  --navbar-height: 84px;
  /* Brand Colors */
  --primary: #FF6B2B;
  --primary-light: #FF8C55;
  --primary-dark: #E5581A;
  --primary-glow: rgba(255, 107, 43, 0.25);
  --secondary: #7C3AED;
  --secondary-light: #9F67FF;
  --secondary-dark: #6025C7;
  --secondary-glow: rgba(124, 58, 237, 0.25);
  --accent: #818CF8;
  --accent-glow: rgba(129, 140, 248, 0.2);
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Background Layers */
  --bg-void: #060912;
  --bg-deep: #0A0F1E;
  --bg-base: #0F172A;
  --bg-surface: #141927;
  --bg-elevated: #1A2236;
  --bg-card: #1E293B;
  --bg-card-alt: #1C2540;
  --bg-highlight: #243050;

  /* Glass Layers */
  --glass-dark: rgba(10, 15, 30, 0.72);
  --glass-mid: rgba(20, 28, 50, 0.65);
  --glass-light: rgba(30, 41, 60, 0.55);
  --glass-ultra: rgba(15, 23, 42, 0.85);

  /* Typography */
  --text-headline: #F8FAFC;
  --text-primary: #E2E8F0;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  /* Borders */
  --border-glow: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(255, 255, 255, 0.18);

  /* Premium Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.7);
  --shadow-glow-primary: 0 0 30px rgba(255, 107, 43, 0.2), 0 0 60px rgba(255, 107, 43, 0.08);
  --shadow-glow-secondary: 0 0 30px rgba(124, 58, 237, 0.2), 0 0 60px rgba(124, 58, 237, 0.08);
  --shadow-glow-accent: 0 0 30px rgba(129, 140, 248, 0.15);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);

  /* Spacing System */
  --space-section: 7rem;
  --space-section-lg: 10rem;

  /* Radius System */
  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.18s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s var(--ease-out-expo);
  --transition-cinematic: 0.8s var(--ease-out-expo);
}

@media (max-width: 1023px) {
  :root {
    --navbar-height: 72px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Cinematic background texture */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 107, 43, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

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

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

/* ---------- Selection ---------- */
::selection {
  background-color: rgba(255, 107, 43, 0.3);
  color: #ffffff;
}

/* ---------- Focus Styles ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- Premium Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-dark), var(--secondary-dark));
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}
* { scrollbar-width: thin; scrollbar-color: var(--bg-highlight) var(--bg-void); }

/* ============================================================
   CINEMATIC PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--primary-glow), 0 0 24px rgba(255, 107, 43, 0.1);
}

/* ============================================================
   PREMIUM NAVBAR
   ============================================================ */
[data-navbar] {
  top: var(--announcement-height) !important;
  transition: all 0.4s var(--ease-out-quart);
}

body.banner-dismissed [data-navbar] {
  top: 0 !important;
}

.navbar-scrolled {
  background: var(--glass-ultra) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

/* Nav links with premium hover underline */
.nav-link {
  position: relative;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-headline);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary) !important;
}

.nav-link.active::after {
  width: 100%;
  background: var(--primary);
}

/* Enroll CTA Button */
.navbar-cta {
  position: relative;
  overflow: hidden;
}

.navbar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.navbar-cta:hover::before { opacity: 1; }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.notification-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(90deg,
    var(--primary-dark) 0%,
    var(--primary) 30%,
    var(--secondary) 70%,
    var(--secondary-dark) 100%);
  color: #ffffff;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: 0 2px 20px rgba(255, 107, 43, 0.3);
}

.notification-banner.hidden {
  transform: translateY(-100%);
}

body.banner-dismissed .notification-banner {
  display: none !important;
}

.notification-banner-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.85;
  transition: all var(--transition-fast);
  padding: 0.2rem 0.4rem;
  line-height: 1;
  border-radius: var(--radius-xs);
}
.notification-banner-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.25);
}

/* ============================================================
   CINEMATIC GLASSMORPHISM SYSTEM
   ============================================================ */

/* Premium glass — deep, rich, with inner light */
.glass {
  background: var(--glass-dark);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
}

/* Mid-tone glass for cards */
.glass-card {
  background: var(--glass-mid);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Ultra-dark glass for modals */
.glass-modal {
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-2xl);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.04);
}

/* ============================================================
   PREMIUM GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #FF9A5A 50%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-text-cool {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-light) 60%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   CINEMATIC REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.88) translateY(16px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-scale.active { opacity: 1; transform: scale(1) translateY(0); }

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }

/* ============================================================
   HERO SECTION — CINEMATIC COMPOSITION
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Deep cinematic background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 60% 120%, rgba(124, 58, 237, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at -10% 30%, rgba(255, 107, 43, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 100% -20%, rgba(129, 140, 248, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Floating ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.5), transparent 70%);
  top: -100px;
  left: -100px;
  z-index: 0;
  animation-duration: 14s;
}

.hero-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
  bottom: -150px;
  right: -80px;
  z-index: 0;
  animation-duration: 16s;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  animation-duration: 18s;
  animation-delay: -8s;
}

@keyframes orb-drift {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.08); }
}

/* ============================================================
   HERO IMAGE SLIDER — PREMIUM FIXED
   ============================================================ */

/* The outer wrapper constrains the slider to its natural
   image proportions — no artificial height imposed */
/* ── Outer frame: clips nothing, just provides border-radius + shadow ── */
.hero-slider-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  /* No overflow:hidden — prevents any edge clipping on the outer shell */
  width: 100%;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(255, 107, 43, 0.12),
    0 0 120px rgba(124, 58, 237, 0.08);
}

/* Subtle depth overlay — sits above images, never clips */
.hero-slider-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.10) 0%,
    transparent 35%,
    rgba(15, 23, 42, 0.14) 100%
  );
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius-2xl);
}

/* Slider viewport — clips the track, round corners, dark bg for letterbox */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  line-height: 0;
  font-size: 0;
  /*
    Deep navy background: fills any letterbox areas around
    the poster so the dark theme stays consistent
  */
  background: #060912;
}

/* Sliding track — flex row, sized by the slides */
.hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Each slide = one viewport slot */
.hero-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

/*
  Result posters are 1:1 square (800×800 / 640×640).
  - aspect-ratio: 1 / 1   → container matches square proportions exactly
  - object-fit: contain   → full poster always visible, zero cropping
  - object-position: center → perfectly centred in the frame
  - background on .hero-slider fills any residual letter-box bars
*/


/* Navigation dots */
.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  line-height: normal;
  font-size: 1rem;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  padding: 0;
  flex-shrink: 0;
}

.hero-slider-dot.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 28px;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Prev / Next arrow buttons — properly centred on the image */
.hero-slider-btn {
  position: absolute;
  /* Centre vertically within .hero-slider — which now = image height */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  z-index: 10;
  font-size: 0.875rem;
  line-height: 1;
}

.hero-slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-glow-primary);
}

.hero-slider-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hero-slider-btn.prev { left: 0.75rem; }
.hero-slider-btn.next { right: 0.75rem; }

/* Tablet / mobile: slightly smaller arrow buttons */
@media (max-width: 767px) {
  .hero-slider-btn { width: 34px; height: 34px; font-size: 0.8rem; }
  .hero-slider-btn.prev { left: 0.5rem; }
  .hero-slider-btn.next { right: 0.5rem; }
  .hero-slider-dot { width: 7px; height: 7px; }
  .hero-slider-dot.active { width: 22px; }
}

/* ============================================================
   PREMIUM CARD SYSTEM
   ============================================================ */

/* Card hover system */
.card-hover {
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    border-color 0.3s ease;
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

/* ============================================================
   TEACHER CARDS — CINEMATIC
   ============================================================ */
.teacher-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition:
    transform 0.45s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo),
    border-color 0.3s ease;
  position: relative;
}

/* Accent line on top */
.teacher-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Inner glow on hover */
.teacher-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 107, 43, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 107, 43, 0.1),
    var(--shadow-glow-primary);
  border-color: rgba(255, 107, 43, 0.15);
}

.teacher-card:hover::before { opacity: 1; }
.teacher-card:hover::after { opacity: 1; }

.teacher-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease-out-expo);
}

.teacher-card:hover .teacher-card-img {
  transform: scale(1.06);
}

.teacher-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.teacher-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.teacher-card-subject {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.teacher-card-bio {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ============================================================
   COURSE CARD PREMIUM
   ============================================================ */
.course-card-premium {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid var(--border-subtle);
}

/* Animated gradient border on hover */
.course-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-card-premium:hover::before { opacity: 1; }

.course-card-premium:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    var(--shadow-glow-secondary);
  border-color: transparent;
}

.course-card-premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(255, 107, 43, 0.3);
}

/* ============================================================
   TESTIMONIAL CARD
   ============================================================ */
.testimonial-card {
  background: var(--bg-card-alt);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

/* Decorative quote mark */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* Subtle glow on hover */
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  border-color: rgba(255, 107, 43, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    var(--shadow-glow-primary);
  transform: translateY(-4px);
}

.testimonial-card:hover::after { opacity: 1; }

.testimonial-card-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-card-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.testimonial-card-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-headline);
  letter-spacing: -0.01em;
}

.testimonial-card-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   STATS CARD
   ============================================================ */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.stat-card:hover {
  border-color: rgba(255, 107, 43, 0.15);
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-6px);
}

.stat-card-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   TRUST BADGE
   ============================================================ */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trust-badge:hover {
  border-color: rgba(255, 107, 43, 0.25);
  color: var(--text-headline);
  background: rgba(255, 107, 43, 0.05);
  transform: translateY(-2px);
}

.trust-badge-icon {
  font-size: 1rem;
  color: var(--primary);
}

/* ============================================================
   COUNTER
   ============================================================ */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item {
  background: var(--bg-card-alt);
  border-radius: var(--radius-lg);
  margin-bottom: 0.625rem;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  border-color: rgba(255, 107, 43, 0.2);
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
  font-family: inherit;
  gap: 1rem;
  letter-spacing: -0.01em;
}

.faq-question:hover { color: var(--primary); }

.faq-question-icon {
  font-size: 1rem;
  transition: transform 0.35s var(--ease-out-expo);
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.8;
}

.faq-item.active .faq-question-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out-expo), padding 0.45s ease;
  padding: 0 1.5rem;
}

.faq-content-inner {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ============================================================
   FLOATING WHATSAPP — PREMIUM
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.625rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0,0,0,0.4);
}

.floating-whatsapp::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  opacity: 0;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ============================================================
   MOBILE CTA BAR
   ============================================================ */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 12, 24, 0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 999;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
  .mobile-cta-bar { display: flex; }
  .floating-whatsapp { bottom: 5.5rem; }
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  text-decoration: none;
}

.mobile-cta-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.mobile-cta-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.mobile-cta-btn-secondary {
  background: rgba(124, 58, 237, 0.12);
  color: var(--secondary-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.mobile-cta-btn-secondary:hover {
  background: rgba(124, 58, 237, 0.22);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 16px var(--primary-glow), 0 2px 8px rgba(0,0,0,0.4);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 43, 0.4), 0 4px 12px rgba(0,0,0,0.5);
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 5.5rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  animation: skeleton-shimmer 2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
}

.loading-spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.loading-spinner-lg { width: 56px; height: 56px; border-width: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TESTIMONIAL SLIDER
   ============================================================ */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.testimonial-slider-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 1rem;
}

.testimonial-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.testimonial-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  padding: 0;
}

.testimonial-slider-dot.active {
  background: var(--primary);
  width: 28px;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ============================================================
   FORM VALIDATION
   ============================================================ */
.is-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.is-invalid:focus {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.form-error-msg {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: none;
  font-weight: 500;
}

.is-invalid ~ .form-error-msg { display: block; }

.form-status {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}

.form-status.show { display: block; }

.form-status.success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out-expo);
  transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.97);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

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

.mobile-nav a {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-headline);
  transition: color var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.45s var(--ease-out-expo);
  letter-spacing: -0.02em;
}

.mobile-nav.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav a:nth-child(2) { transition-delay: 0.13s; }
.mobile-nav a:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav a:nth-child(4) { transition-delay: 0.23s; }
.mobile-nav a:nth-child(5) { transition-delay: 0.28s; }
.mobile-nav a:nth-child(6) { transition-delay: 0.33s; }
.mobile-nav a:nth-child(7) { transition-delay: 0.38s; }

.mobile-nav a:hover { color: var(--primary); }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.06) 70%,
    transparent 100%);
  margin: 0;
  border: none;
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px var(--primary-glow), 0 2px 6px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(255, 107, 43, 0.4), 0 4px 12px rgba(0,0,0,0.4);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-secondary {
  background: transparent;
  color: var(--text-headline);
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(255, 107, 43, 0.4);
  color: var(--primary-light);
  background: rgba(255, 107, 43, 0.06);
  transform: translateY(-2px);
}

/* ============================================================
   MODAL SYSTEM
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.8);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay .modal-content {
  transform: scale(0.94) translateY(16px);
  transition: transform 0.4s var(--ease-spring);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Photo Zoom Modal — stacks above teacher modal */
#photoModal.modal-overlay {
  z-index: 200;
  background: rgba(4, 6, 14, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ============================================================
   RESOURCE MODAL
   ============================================================ */
.resource-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.resource-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.resource-modal {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--border-mid);
  text-align: center;
  transform: scale(0.9) translateY(16px);
  transition: transform 0.4s var(--ease-spring);
  box-shadow: var(--shadow-xl);
}

.resource-modal-overlay.open .resource-modal {
  transform: scale(1) translateY(0);
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.35s var(--ease-out-expo);
}

.video-card:hover {
  border-color: rgba(255, 107, 43, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), var(--shadow-glow-primary);
  transform: translateY(-6px);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.video-card-title {
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ============================================================
   DROPDOWN STYLES
   ============================================================ */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 14px;
}

.custom-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.12);
  outline: none;
}

.custom-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================================
   PREMIUM SECTION HEADING SYSTEM
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-heading {
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-headline);
}

.section-subheading {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto;
}

/* ============================================================
   CINEMATIC SECTION BACKGROUNDS
   ============================================================ */
.bg-section-alt {
  background: linear-gradient(180deg,
    var(--bg-base) 0%,
    var(--bg-surface) 50%,
    var(--bg-base) 100%);
}

.bg-section-deep {
  background: linear-gradient(180deg,
    var(--bg-deep) 0%,
    var(--bg-base) 100%);
}

/* Cinematic edge-light at section boundaries */
.section-light-top {
  position: relative;
}

.section-light-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.07) 30%,
    rgba(255, 255, 255, 0.07) 70%,
    transparent);
}

/* ============================================================
   CARD DEPTH SYSTEM
   ============================================================ */
.depth-1 { box-shadow: var(--shadow-xs); }
.depth-2 { box-shadow: var(--shadow-sm); }
.depth-3 { box-shadow: var(--shadow-md); }
.depth-4 { box-shadow: var(--shadow-lg); }
.depth-5 { box-shadow: var(--shadow-xl); }

/* Cinematic inner edge highlight on dark cards */
.card-inner-light {
  position: relative;
  overflow: hidden;
}

.card-inner-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.08),
    transparent);
  pointer-events: none;
}

/* ============================================================
   GRADIENT ACCENT LINES
   ============================================================ */
.accent-line {
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 8px var(--primary-glow);
}

.accent-line-cool {
  background: linear-gradient(90deg, var(--accent), var(--secondary-light));
}

/* ============================================================
   PREFERS 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;
  }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slider-track, .testimonial-slider-track { transition: none; }
  .card-hover:hover, .teacher-card:hover { transform: none; }
  .hero-orb { animation: none; }
  .floating-whatsapp::after { animation: none; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .scroll-progress, .back-to-top, .floating-whatsapp,
  .mobile-cta-bar, .notification-banner, .hamburger,
  .mobile-nav, #particle-canvas { display: none !important; }

  body { background: #ffffff; color: #000000; }

  .glass, .glass-card, .glass-modal {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    backdrop-filter: none;
  }

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

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 767px) {
  .stat-card-number { font-size: 2.25rem; }
  .video-grid { grid-template-columns: 1fr; }
  /* Ensure resource cards never collapse below readable size */
  .resource-card { min-height: auto; }
  /* Improve touch targets on mobile */
  .faq-question { padding: 1rem 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-balance { text-wrap: balance; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Cinematic shine effect */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out-expo);
  pointer-events: none;
}

.shine:hover::after {
  left: 120%;
}

/* Animated gradient border */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-border {
  background: linear-gradient(270deg, var(--primary), var(--secondary), var(--accent), var(--secondary));
  background-size: 400% 400%;
  animation: gradient-shift 6s ease infinite;
}

/* ============================================================
   HERO SECTION — RESPONSIVE OVERRIDES
   ============================================================ */

/* Mobile: hero becomes single-column stacked layout */
@media (max-width: 1023px) {
  /* On mobile/tablet the right column (slider) comes AFTER the copy */
  .hero-section {
    padding-top: calc(var(--navbar-height) + var(--announcement-height) + 2rem);
    min-height: auto;
    padding-bottom: 4rem;
  }
  /* Remove floating badges that overlap on small screens */
  .hero-badge-float { display: none !important; }
}

/* Tablet: comfortable breathing room */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    padding-top: calc(var(--navbar-height) + var(--announcement-height) + 3rem);
    padding-bottom: 5rem;
  }
}

/* Ultra-wide (>1536px): cap max-width and increase padding */
@media (min-width: 1536px) {
  .hero-section .hero-content {
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
  }
  /* Prevent images from stretching unreasonably on ultrawide */
  .hero-slide img {
    max-height: 560px;
    object-position: center center;
  }
}

/* ============================================================
   RESOURCE CARD — HOVER & FOCUS
   ============================================================ */
.resource-card {
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    border-color 0.3s ease;
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    var(--shadow-glow-primary);
  border-color: rgba(255, 107, 43, 0.15);
}

.resource-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xl);
}

/* ============================================================
   ADVANTAGE CARD
   ============================================================ */
.advantage-card {
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    border-color 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.15);
}

/* ============================================================
   COURSE FILTER BUTTONS
   ============================================================ */
.filter-btn {
  transition: all 0.25s var(--ease-out-expo);
  white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, rgba(255,107,43,0.12), rgba(124,58,237,0.08)) !important;
  border-color: rgba(255,107,43,0.45) !important;
  color: #F8FAFC !important;
}

.filter-btn.active {
  box-shadow: 0 0 0 1px rgba(255,107,43,0.2), 0 4px 16px rgba(255,107,43,0.1);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ============================================================
   TRUST BADGES — RESPONSIVE WRAP
   ============================================================ */
@media (max-width: 479px) {
  .trust-badge { font-size: 0.75rem; padding: 0.4rem 0.875rem; }
  .trust-badge-icon { font-size: 0.875rem; }
}

/* ============================================================
   FOOTER — RESPONSIVE STACKING
   ============================================================ */
@media (max-width: 639px) {
  /* Footer grid collapses to 1 col on very small phones */
  footer .grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MODAL — SMALL SCREEN SAFETY
   ============================================================ */
@media (max-width: 479px) {
  .modal-overlay { padding: 0.75rem; }
  .modal-overlay .modal-content { padding: 1.5rem 1.25rem; max-height: 90vh; }
}

/* ============================================================
   VIDEO LIBRARY DROPDOWNS — DISABLED STATE
   ============================================================ */
select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Firefox scrollbar color — narrower than webkit */
* { scrollbar-color: var(--primary-dark) var(--bg-void); }


/* ============================================================
   ACCESSIBILITY — SKIP LINK
   ============================================================ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 99999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}



/* Hero banner images — prevent CLS */
.hero-slide img {
  /* Explicit aspect ratio prevents layout shift while loading */
  aspect-ratio: 4 / 3;
  background-color: var(--bg-card);
}
