/* ============================================================
   EDMENTECH — style.css
   Architecture: Mobile-first, CSS Grid + Flexbox, CSS Custom Properties
   Font: Plus Jakarta Sans (via Google Fonts)
   ============================================================ */

/* ── 1. GLOBAL COMPONENTS & UTILITIES ──────────────────────────── */
/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-white-20);
  border-top-color: var(--color-orange);
  border-radius: 50%;
  animation: spinner-spin 1s linear infinite;
}

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

/* ── 2. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Palette - Ultra Premium Light */
  --color-navy:       #FFFFFF;   /* Pure white background */
  --color-navy-mid:   #F8FAFC;   /* Very light gray for cards */
  --color-navy-light: #E2E8F0;   /* Borders, hover states */
  --color-slate:      #F1F5F9;   /* Marquee, secondary bg */
  --color-orange:     #FF6B00;   /* PRIMARY CTA */
  --color-orange-hover: #E05E00;
  
  /* Text Colors for Light Theme */
  --color-white:      #0B1120;   /* Primary text (Almost black) */
  --color-white-90:   rgba(11, 17, 32, 0.9);
  --color-white-70:   rgba(11, 17, 32, 0.7); 
  --color-white-50:   rgba(11, 17, 32, 0.5); 
  --color-white-20:   rgba(11, 17, 32, 0.15); 
  --color-white-08:   rgba(11, 17, 32, 0.05); 

  /* Typography */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-size-xs:   0.75rem;   /*  12px */
  --font-size-sm:   0.875rem;  /*  14px */
  --font-size-base: 1rem;      /*  16px */
  --font-size-md:   1.125rem;  /*  18px */
  --font-size-lg:   1.25rem;   /*  20px */
  --font-size-xl:   1.5rem;    /*  24px */
  --font-size-2xl:  2rem;      /*  32px */
  --font-size-3xl:  2.5rem;    /*  40px */
  --font-size-4xl:  3.25rem;   /*  52px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-btn:  0 4px 16px rgba(255,107,0,0.35);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;

  /* Navbar height for offset anchoring */
  --nav-height: 72px;

  /* WhatsApp widget safe margin — ensures it never overlaps footer items or form submit on mobile */
  --widget-bottom-mobile: 1.5rem;
  --widget-right-mobile:  1rem;
  --widget-z: 900;   /* Below any future modal (z:1000+) but above page content */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-navy);
  color: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

/* ── 4. UTILITY CLASSES ──────────────────────────────────────── */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

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

.section-eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.75rem, 5vw, var(--font-size-2xl));
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-white-70);
  max-width: 560px;
  margin-inline: auto;
}

.desktop-break { display: none; }

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--color-orange) 0%, #FFB703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ── 5. BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-8);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  text-align: center;
  justify-content: center;
  white-space: normal; /* allow wrapping to prevent grid explosion on mobile */
  line-height: 1.3;
  text-decoration: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Primary — Vibrant Orange */
.btn-primary {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  box-shadow: 0 6px 24px rgba(255,107,0,0.5);
  transform: translateY(-2px);
}

/* Secondary — White outline */
.btn-secondary {
  background-color: transparent;
  border-color: var(--color-white-70);
  color: var(--color-white);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-white);
  background-color: var(--color-white-08);
  transform: translateY(-2px);
}

/* Hero-size buttons */
.btn-hero {
  padding: var(--space-4) var(--space-6); /* Smaller mobile padding */
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .btn-hero {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-md);
    white-space: nowrap; /* lock to single line on desktop */
  }
}

/* Small button */
.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
}

/* Focus ring for keyboard nav */
.btn:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

/* ── 6. SECTION 1: HEADER ────────────────────────────────────── */
.site-header {
  position: fixed; /* Changed from sticky for smart behavior */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Fixed missing variable */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05); /* Lighter border for light mode */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-base);
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  gap: var(--space-6);
}

/* Logo */
.nav-logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-icon {
  display: none; /* Safely hide any lingering SVGs */
}

.site-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-logo-img:hover {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 64px; /* Slightly larger in footer */
}

.logo-text {
  font-size: var(--font-size-lg);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
}

.logo-accent {
  color: var(--color-orange);
}

/* Desktop Nav Links */
.nav-links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white-70);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: var(--space-1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-white);
}

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

/* Desktop Actions in nav */
.nav-actions {
  display: none; /* hidden on mobile, flex on desktop */
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-icon-btn {
  background: transparent;
  border: none;
  color: var(--color-white-90);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-icon-btn:hover {
  background-color: var(--color-white-08);
  color: var(--color-orange);
}

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

.nav-cta {
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  margin-left: auto;
}

.hamburger:focus-visible {
  outline: 3px solid var(--color-orange);
}

.hamburger:hover {
  background-color: var(--color-white-08);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 490;
  backdrop-filter: blur(3px);
}

.mobile-overlay.is-visible {
  display: block;
}

/* Mobile Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background-color: var(--color-navy-mid);
  z-index: 495;
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid var(--color-white-20);
  box-shadow: -10px 0 20px rgba(0,0,0,0.05);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-white-08);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--color-white);
  transition: background-color var(--transition-fast);
  align-self: flex-end;
}

.mobile-menu-close:hover { background: var(--color-white-20); }
.mobile-menu-close svg { width: 20px; height: 20px; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-white-70);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background-color: var(--color-white-08);
  color: var(--color-white);
}

.mobile-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-white-08);
}

.mobile-contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-white-70);
  transition: color var(--transition-fast);
}

.mobile-contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--color-orange);
}

.mobile-contact-link:hover { color: var(--color-white); }

.mobile-drawer-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ── 7. SECTION 2: HERO (ELITE VIDEO EDITION) ────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: var(--space-8); /* Reduced from space-16 to prevent vertical overflow */
  padding-inline: var(--space-5);
  overflow: hidden;

  /* Ambient Mesh Fallback if video fails to load */
  background: var(--color-navy) radial-gradient(circle at 50% 0%, rgba(255,107,0,0.06) 0%, transparent 60%);
}

/* Video Background positioning */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Brightened overlay so the video punches through cleanly */
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.70) 0%, rgba(11, 17, 32, 0.45) 100%);
}

/* Gradient vignette at bottom for smooth section transition into bright theme */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--color-navy));
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px; /* Highly compressed to force inline elegance */
  margin-inline: auto;
  text-align: center; /* Reverted to center-aligned */
}

/* Elite Glassmorphism Panel */
.hero-glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-glass-panel {
    padding: var(--space-8);
  }
}

/* Force text inside glass panel to be light, overriding the bright theme defaults */
.hero-glass-panel .hero-h1,
.hero-glass-panel .hero-h2,
.hero-glass-panel .hero-eyebrow,
.hero-glass-panel .badge-label,
.hero-glass-panel .badge-number,
.hero-glass-panel .form-label,
.hero-glass-panel .form-input,
.hero-glass-panel .form-microcopy {
  color: #FFFFFF;
}

.hero-glass-panel .hero-h2,
.hero-glass-panel .form-microcopy {
  color: #FFFFFF;
  opacity: 1;
}

.hero-glass-panel .hero-eyebrow {
  color: #FFFFFF;
  background: var(--color-orange);
  border-color: var(--color-orange-hover);
}

.hero-glass-panel .form-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.hero-glass-panel .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-6);
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); /* Compressed down for V4 */
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4); /* Tighter margin */
  color: var(--color-white);
}

.hero-h2 {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); /* Compressed */
  line-height: 1.5;
  margin-bottom: var(--space-5); /* Tighter margin */
  color: var(--color-white-90);
}

.hero-h2 strong {
  font-weight: 800;
  display: inline; /* Keep inline for V4 compactness */
}

/* Hero Form - V4 Inline Architecture */
.hero-form {
  margin-block: var(--space-6);
  margin-inline: auto; /* Centered inherently */
  width: 100%;
  max-width: 100%; /* Prevent stretching out of panel */
}

.form-row-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: stretch;
}

@media (min-width: 768px) {
  .form-row-inline {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

#hero-syllabus-btn {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white-70);
}

.form-input {
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  color: var(--color-white);
  background: var(--color-navy);
  border: 1.5px solid var(--color-white-20);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  width: 100%;
}

@media (min-width: 768px) {
  .form-input {
    font-size: var(--font-size-base);
    padding: var(--space-4) var(--space-5);
  }
}

.form-input::placeholder {
  color: var(--color-white-50);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-orange);
  background: rgba(255,107,0,0.08);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-microcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  margin-top: var(--space-5);
  opacity: 0.8;
}
.form-microcopy svg { width: 14px; height: 14px; }

/* Hero Trust Badges */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center; /* Center aligned for V4 */
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .hero-badges {
    gap: var(--space-4);
  }
}

.hero-badge {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.badge-number {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
}

.badge-label {
  font-size: var(--font-size-xs);
  color: var(--color-white-70);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-badge-divider {
  width: 1px;
  height: 36px;
  background-color: var(--color-white-20);
}

/* ── 8. SECTION 3: TRUST MARQUEE ─────────────────────────────── */
.marquee-section {
  background-color: var(--color-slate);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-white-08);
  border-bottom: 1px solid var(--color-white-08);
  overflow: hidden;
}

.marquee-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.marquee-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white-50);
}

.marquee-track-wrapper {
  overflow: hidden;
  /* Fade edges for polish */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

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

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Removed logo-placeholder styles as we are using pure text logic now */

.logo-name {
  display: none; /* Hide names in favor of real logos */
}

.logo-img {
  height: 40px; /* Slightly taller for SVGs */
  width: auto;
  object-fit: contain;
  opacity: 0.7; /* Keep them slightly muted initially */
  transition: opacity var(--transition-base), transform var(--transition-base), filter var(--transition-base);
}

.logo-img:hover {
  opacity: 1;
  transform: scale(1.05); /* slight hover bump */
}

/* ── 9. SECTION 4: COURSE PORTFOLIO ──────────────────────────── */
.courses-section {
  padding-block: var(--space-12);
}

@media (min-width: 768px) {
  .courses-section {
    padding-block: var(--space-20);
  }
}

/* Scroll wrapper — KEY mobile constraint: horizontal swipe, no vertical stack */
.courses-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-orange) var(--color-navy-light);
  padding-bottom: var(--space-4);
  /* Pull out to full bleed on mobile */
  margin-inline: calc(var(--space-5) * -1);
  padding-inline: var(--space-5);
}

.courses-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}
.courses-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--color-navy-light);
  border-radius: var(--radius-full);
}
.courses-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-orange);
  border-radius: var(--radius-full);
}

.courses-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;   /* Forces horizontal scroll on mobile */
}

/* Individual course card */
.course-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 320px;
  flex-shrink: 0;
  background: var(--color-navy-mid);
  border: 1px solid var(--color-white-20);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

@media (min-width: 768px) {
  .course-card {
    padding: var(--space-6);
  }
}

/* Flashlight Hover Effect */
.course-card::before, .bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255,107,0,0.06), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.course-card:hover::before, .bento-tile:hover::before {
  opacity: 1;
}

.course-card > *, .bento-tile > * {
  position: relative;
  z-index: 1;
}

.course-card:hover {
  border-color: rgba(255,107,0,0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* --- Course Media & Layout --- */
.course-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-navy);
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-image {
  transform: scale(1.05); /* Elite micro-interaction */
}

.course-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.course-desc {
  font-size: var(--font-size-sm);
  color: var(--color-white-70);
  line-height: 1.6;
}

.course-syllabus {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block: var(--space-2);
  flex: 1; /* Pushes meta badges to bottom */
}

.course-syllabus li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-white-90);
  line-height: 1.4;
}

.course-syllabus svg {
  width: 16px;
  height: 16px;
  color: var(--color-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.course-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

.course-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: var(--space-4);
  position: relative;
  z-index: 20;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-orange);
  padding-block: var(--space-2);
  transition: gap var(--transition-fast), color var(--transition-fast);
  position: static; /* Let the ::after absolute span the whole card */
}

.course-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

.course-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.course-link:hover {
  color: var(--color-white);
  gap: var(--space-2);
}
.course-link:hover svg {
  transform: translateX(3px);
}

/* Mobile scroll hint text */
.scroll-hint {
  display: block;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-white-50);
  margin-top: var(--space-4);
  letter-spacing: 0.04em;
}

/* ── 10. SECTION 5: BENTO BOX PROPOSITION GRID ────────────────── */
.value-section {
  padding-block: var(--space-12);
  background-color: var(--color-navy-mid);
}

@media (min-width: 768px) {
  .value-section {
    padding-block: var(--space-20);
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.bento-tile {
  background: var(--color-slate);
  border: 1px solid rgba(0,0,0,0.05); /* Premium light theme border */
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  min-height: 280px;
}

@media (min-width: 768px) {
  .bento-tile {
    padding: var(--space-8);
  }
}

.value-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
  transition: transform var(--transition-slow);
}

.value-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.4) 0%, rgba(11, 17, 32, 0.95) 100%);
  z-index: 1;
}

.bento-tile:hover .value-bg-img {
  transform: scale(1.05);
}

.bento-tile > *:not(.value-bg-img):not(.value-overlay) {
  position: relative;
  z-index: 2;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0,0,0,0.08);
}

.value-icon { width: 56px; height: 56px; }

.value-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: #FFFFFF; /* Forced white for contrast against dark background images */
  margin-top: auto; /* Push text to bottom over the image */
}

.value-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85); /* Forced white */
  line-height: 1.6;
}

/* ── 10A. SECTION 5a: TESTIMONIALS ────────────────────────────── */
.testimonials-section {
  padding-block: var(--space-12);
  background-color: var(--color-navy);
}

@media (min-width: 768px) {
  .testimonials-section {
    padding-block: var(--space-20);
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  /* Horizontal scroll on mobile */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
  margin-inline: calc(var(--space-5) * -1);
  padding-inline: var(--space-5);
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  width: 320px;
  flex-shrink: 0;
  background: var(--color-navy-mid);
  border: 1px solid var(--color-white-20);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.testimonial-quote {
  font-size: var(--font-size-md);
  font-style: italic;
  color: var(--color-white);
  line-height: 1.6;
}

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

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

.author-info strong {
  font-size: var(--font-size-sm);
  color: var(--color-white);
  font-weight: 700;
}

.author-info span {
  font-size: var(--font-size-xs);
  color: var(--color-white-50);
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .testimonial-card {
    width: auto;
  }
}

/* ── 10. SECTION 5b: BATCH DATES ────────────────────────────── */
.batches-section {
  padding-block: var(--space-12);
}

@media (min-width: 768px) {
  .batches-section {
    padding-block: var(--space-20);
  }
}

.batches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.batch-card {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-white-08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: border-color var(--transition-base);
}

.batch-card:hover {
  border-color: rgba(255,107,0,0.4);
}

.batch-course-name {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-orange);
}

.batch-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.batch-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-white-08);
}

.batch-card .btn {
  margin-top: auto;
}

.batch-detail-row dt {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white-50);
}

.batch-detail-row dd {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-white);
}

/* ── 11. SECTION 6: FAQ ──────────────────────────────────────── */
.faq-section {
  padding-block: var(--space-12);
  background-color: var(--color-navy-mid);
}

@media (min-width: 768px) {
  .faq-section {
    padding-block: var(--space-20);
  }
}

.faq-container {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-navy);
  border: 1px solid var(--color-white-08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item[open] {
  border-color: rgba(255,107,0,0.35);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

/* Remove default marker */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

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

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-white-08);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), transform var(--transition-base);
}

.faq-chevron svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-chevron svg {
  transform: rotate(180deg);
}

.faq-item[open] .faq-chevron {
  background: rgba(255,107,0,0.15);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
}

.faq-answer p {
  font-size: var(--font-size-sm);
  color: var(--color-white-70);
  line-height: 1.75;
}

/* ── 12. SECTION 7: FOOTER ───────────────────────────────────── */
.site-footer {
  background-color: var(--color-slate);
  border-top: 1px solid var(--color-white-08);
  padding-top: var(--space-10);
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: var(--space-16);
  }
}

.footer-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

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

@media (min-width: 768px) {
  .footer-grid {
    gap: var(--space-8);
  }
}

.footer-logo {
  margin-bottom: var(--space-4);
}

.footer-about-text {
  font-size: var(--font-size-sm);
  color: var(--color-white-70);
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-white-08);
  border-radius: var(--radius-full);
  color: var(--color-white-70);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover,
.social-link:focus-visible {
  background-color: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

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

.footer-link {
  font-size: var(--font-size-sm);
  color: var(--color-white-70);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-orange);
  padding-left: var(--space-2);
}

/* Contact column */
.footer-contact-col address {
  font-style: normal;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-white-70);
  line-height: 1.6;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--color-orange);
}

/* Footer Bottom Bar */
.footer-bottom {
  margin-top: var(--space-12);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-white-08);
  /* Enough padding-bottom so content doesn't hide behind widget on mobile */
  padding-bottom: calc(var(--space-5) + 80px);
}

.footer-copy {
  font-size: var(--font-size-xs);
  color: var(--color-white-50);
  text-align: center;
}

/* ── 13. WHATSAPP WIDGET ─────────────────────────────────────── */
/*
 * Z-INDEX STRATEGY:
 * - Page content / form elements:   z-index auto (normal flow)
 * - Mobile nav overlay:             z-index 490
 * - Mobile nav drawer:              z-index 495
 * - Sticky header:                  z-index 500
 * - WhatsApp widget:                z-index 900  ← above sticky header but below any modal
 *
 * POSITIONING ON MOBILE:
 * - bottom: 1.5rem keeps it above the mobile browser chrome bar.
 * - right:  1rem   keeps it from edge without touching scrollbar.
 * - The footer has extra padding-bottom (calc 80px) so the widget
 *   never physically overlaps footer links when the user is at the bottom.
 * - Form submit buttons are in the normal document flow, so the widget
 *   (fixed, out of flow) never overlaps them as long as the user has
 *   scrolled past the hero — and the widget appears only after the fold.
 */
.whatsapp-widget {
  position: fixed;
  bottom: var(--widget-bottom-mobile);
  right: var(--widget-right-mobile);
  z-index: var(--widget-z);

  display: flex;
  align-items: center;
  gap: var(--space-3);
  background-color: #25D366;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-family);

  /* Entry animation */
  animation: widget-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2s both;

  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.whatsapp-widget:hover,
.whatsapp-widget:focus-visible {
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  transform: translateY(-3px);
}

.whatsapp-widget:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.whatsapp-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  white-space: nowrap;
  /* Hidden on very small screens but icon+label visible from 360px+ */
}

@keyframes widget-pop-in {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* Live Enrollment Pill */
.live-enrollment-pill {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-navy-mid);
  border: 1px solid var(--color-white-08);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  transform: translateY(150px); /* Hidden by default */
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
  pointer-events: none;
}

.live-enrollment-pill.is-active {
  transform: translateY(0);
  opacity: 1;
}

.pill-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pill-text {
  font-size: 13px;
  color: var(--color-white-70);
  line-height: 1.3;
}

.pill-text strong {
  color: var(--color-white);
}

/* Double Marquee */
.marquee-track-reverse {
  animation-direction: reverse;
  margin-top: var(--space-6);
}

/* ── 14. RESPONSIVE: TABLET (≥ 640px) ───────────────────────── */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  /* Bento Box: 2-col on tablet */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-large { grid-column: span 2; }
  
  /* On screens wider than 600px, courses grid replaces scroll */
  .courses-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: var(--space-5);
  }

  .course-card {
    width: auto;
  }

  /* Footer: 2-col tablet */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scroll-hint { display: none; }
  .courses-scroll-wrapper {
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* ── 15. RESPONSIVE: DESKTOP (≥ 1024px) ─────────────────────── */
@media (min-width: 1024px) {
  .desktop-break { display: block; }

  /* Show desktop nav, hide hamburger */
  .nav-links   { display: flex; }
  .nav-actions { display: flex; }
  .hamburger   { display: none; }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  /* Hero: left-aligned on desktop */
  .hero {
    justify-content: flex-start;
    padding-inline: var(--space-12);
  }

  .hero-content {
    margin-inline: 0;
    max-width: 680px;
  }

  /* Bento Box: Asymmetric on desktop */
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }
  .bento-large { grid-column: span 2; grid-row: span 2; }
  .bento-tall  { grid-column: span 1; grid-row: span 2; }
  .bento-wide  { grid-column: span 2; grid-row: span 1; }

  /* Courses: 3-col desktop grid */
  .courses-track {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Batches: 3-col desktop */
  .batches-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer: 4-col desktop grid */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
  }

  /* Footer bottom: restore normal padding */
  .footer-bottom {
    padding-bottom: var(--space-5);
  }

  /* Widget repositioned for desktop — extra right margin */
  .whatsapp-widget {
    bottom: 2rem;
    right: 2rem;
  }
}

/* ── 16. REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }
}

/* ── 17. FOCUS VISIBLE GLOBAL ────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── 18. PHASE 1: AGENCY FEATURES (SEARCH & AUTH) ────────────── */
/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.search-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.search-close:hover {
  background-color: var(--color-white-08);
  transform: scale(1.1);
}

.search-close svg {
  width: 32px;
  height: 32px;
}

.search-container {
  width: 100%;
  max-width: 800px;
  padding: var(--space-5);
  text-align: center;
}

.search-input {
  width: 100%;
  font-family: var(--font-family);
  font-size: clamp(1.5rem, 4vw, var(--font-size-3xl));
  font-weight: 700;
  color: var(--color-white);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-white-20);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-orange);
}

.search-input::placeholder {
  color: var(--color-white-20);
}

.search-results {
  text-align: left;
}

.search-hint {
  font-size: var(--font-size-sm);
  color: var(--color-white-50);
  text-align: center;
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  padding: var(--space-5);
}

.auth-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 10000;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white-50);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  z-index: 2;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.auth-close:hover {
  background-color: var(--color-white-08);
  color: var(--color-white);
}

.auth-close svg {
  width: 24px;
  height: 24px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-white-08);
  background: var(--color-navy-mid);
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white-50);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.auth-tab:hover {
  color: var(--color-white-90);
}

.auth-tab.active {
  color: var(--color-orange);
  border-bottom-color: var(--color-orange);
  background: var(--color-navy);
}

.auth-pane {
  display: none;
  padding: var(--space-8) var(--space-6);
}

.auth-pane.active {
  display: block;
  animation: paneFadeIn 0.3s ease forwards;
}

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  text-align: center;
}

.auth-form .form-field {
  margin-bottom: var(--space-4);
}

/* Course Tabs */
.course-tabs-nav {
  display: flex;
  overflow-x: auto;
  gap: var(--space-6);
  border-bottom: 2px solid var(--color-white-08);
  margin-bottom: var(--space-8);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-4));
  background: var(--color-navy-mid);
  z-index: 100;
  padding-bottom: var(--space-2);
}

.course-tabs-nav::-webkit-scrollbar {
  height: 4px;
}
.course-tabs-nav::-webkit-scrollbar-track {
  background: transparent;
}
.course-tabs-nav::-webkit-scrollbar-thumb {
  background: var(--color-white-20);
  border-radius: var(--radius-full);
}

.course-tab {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-white-50);
  padding: var(--space-2) 0;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
}

.course-tab::after {
  content: '';
  position: absolute;
  bottom: calc(-1 * var(--space-2) - 2px);
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.course-tab:hover {
  color: var(--color-white-90);
}

.course-tab.active {
  color: var(--color-orange);
}

.course-tab.active::after {
  transform: scaleX(1);
}

.course-panel {
  display: none;
  animation: paneFadeIn 0.3s ease forwards;
}

.course-panel.active {
  display: block;
}

