/* ============================================================
   IACT TechPro Institute  –  styles.css  v5.0
   Complete unified stylesheet
   Blue × White × Purple · Glassmorphism · Mobile-first
   ============================================================ */

/* ── 1. CSS Custom Properties ──────────────────────────────── */
:root {
  /* Brand palette */
  --blue-900: #0a1628;  --blue-800: #0f2240;  --blue-700: #0e3460;
  --blue-500: #1a5fd4;  --blue-400: #3a7ef0;  --blue-300: #6fa3f7;  --blue-100: #dbeafe;
  --purple-700: #5b21b6; --purple-500: #7c3aed; --purple-400: #a855f7;
  --purple-300: #c084fc; --purple-100: #ede9fe;
  --white: #ffffff;
  --grey-50:#f8fafc; --grey-100:#f1f5f9; --grey-200:#e2e8f0;
  --grey-400:#94a3b8; --grey-600:#475569; --grey-800:#1e293b; --grey-900:#0f172a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--blue-500) 0%, var(--purple-500) 100%);
  --grad-hero:    linear-gradient(150deg, #0a1628 0%, #1a0a3c 100%);

  /* Semantic tokens – light mode */
  --bg:       var(--white);
  --bg-alt:   var(--grey-50);
  --surface:  var(--white);
  --text-primary:   var(--grey-900);
  --text-secondary: var(--grey-600);
  --text-muted:     var(--grey-400);
  --border:   var(--grey-200);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --glass-bg:     rgba(255,255,255,.65);
  --glass-border: rgba(255,255,255,.45);
  --glass-blur:   16px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --section-py: clamp(4rem, 8vw, 7rem);

  /* Radius */
  --radius-sm: .5rem;  --radius-md: 1rem;  --radius-lg: 1.5rem;  --radius-xl: 2rem;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms;  --t-base: 250ms;  --t-slow: 400ms;

  /* Mega menu offset (updated by JS) */
  --mega-offset: 68px;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #080e1a;  --bg-alt: #0d1526;  --surface: #111827;
  --text-primary: #f1f5f9;  --text-secondary: #94a3b8;  --text-muted: #64748b;
  --border: rgba(255,255,255,.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  --glass-bg:     rgba(15,23,42,.7);
  --glass-border: rgba(255,255,255,.08);
}

/* ── 2. Reset ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; -webkit-text-size-adjust:100%; }
body { font-family:var(--font-sans); background:var(--bg); color:var(--text-primary); line-height:1.6; overflow-x:hidden; transition:background var(--t-slow) var(--ease),color var(--t-slow) var(--ease); }
img,svg { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input,select,textarea { font-family:inherit; }
blockquote { quotes:none; }
:focus-visible { outline:2px solid var(--blue-400); outline-offset:3px; border-radius:3px; }
.hidden { display:none !important; }

/* Skip link */
.skip-link { position:absolute; top:-4rem; left:1rem; background:var(--blue-500); color:#fff; padding:.5rem 1rem; border-radius:var(--radius-sm); font-weight:700; z-index:9999; transition:top var(--t-fast); }
.skip-link:focus { top:1rem; }

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

/* ── 3. Utilities ──────────────────────────────────────────── */
.container { width:100%; max-width:1200px; margin-inline:auto; padding-inline:clamp(1rem,5vw,2rem); }
.section { padding-block:var(--section-py); }
.glass { background:var(--glass-bg); backdrop-filter:blur(var(--glass-blur)); -webkit-backdrop-filter:blur(var(--glass-blur)); border:1px solid var(--glass-border); box-shadow:var(--shadow-md); }

.section-label { display:inline-block; font-size:.75rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:var(--blue-500); background:var(--blue-100); padding:.35rem .85rem; border-radius:2rem; margin-bottom:1.25rem; }
[data-theme="dark"] .section-label { background:rgba(58,126,240,.15); color:var(--blue-300); }
.section-title { font-size:clamp(1.75rem,3.5vw,2.75rem); font-weight:800; line-height:1.18; letter-spacing:-.02em; }
.section-title.centered { text-align:center; }
.section-sub { font-size:clamp(1rem,1.5vw,1.15rem); color:var(--text-secondary); max-width:56ch; margin-block:1rem 3rem; }
.section-sub.centered { margin-inline:auto; text-align:center; }

/* ── 4. Buttons ────────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; gap:.5rem; padding:.65rem 1.5rem; border-radius:var(--radius-md); font-weight:700; font-size:.9rem; transition:all var(--t-base) var(--ease); white-space:nowrap; }
.btn-lg { padding:.85rem 2rem; font-size:1rem; }
.btn-block { width:100%; justify-content:center; }
.btn-primary { background:var(--grad-primary); color:#fff; box-shadow:0 4px 14px rgba(124,58,237,.3); }
.btn-primary:hover { opacity:.9; transform:translateY(-2px); box-shadow:0 8px 22px rgba(124,58,237,.4); }
.btn-primary:active { transform:none; }
.btn-ghost { color:#fff; border:2px solid rgba(255,255,255,.35); background:rgba(255,255,255,.07); }
.btn-ghost:hover { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.6); }
.btn-outline { color:var(--blue-500); border:2px solid var(--blue-300); background:transparent; }
.btn-outline:hover { background:var(--blue-500); color:#fff; border-color:var(--blue-500); transform:translateY(-1px); }
.btn-white { background:#fff; color:var(--blue-800); font-weight:800; box-shadow:0 4px 18px rgba(0,0,0,.12); }
.btn-white:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.18); }
.btn-ghost-white { color:#fff; border:2px solid rgba(255,255,255,.5); background:transparent; }
.btn-ghost-white:hover { background:rgba(255,255,255,.12); }
.btn-buy { background:linear-gradient(135deg,#16a34a,#15803d); color:#fff; border:none; border-radius:var(--radius-md); font-weight:800; cursor:pointer; font-family:var(--font-sans); transition:all var(--t-base) var(--ease); box-shadow:0 4px 12px rgba(22,163,74,.28); }
.btn-buy:hover { opacity:.9; transform:translateY(-2px); box-shadow:0 8px 20px rgba(22,163,74,.38); }

/* ── 5. Navbar ─────────────────────────────────────────────── */
.navbar { position:fixed; inset-inline:0; top:0; z-index:1000; padding:1rem 0; transition:background var(--t-base) var(--ease),box-shadow var(--t-base) var(--ease),padding var(--t-base) var(--ease); }
.navbar.scrolled { background:var(--glass-bg); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border-bottom:1px solid var(--border); box-shadow:var(--shadow-sm); padding:.6rem 0; }
.nav-container { display:flex; align-items:center; justify-content:space-between; max-width:1200px; margin-inline:auto; padding-inline:clamp(1rem,5vw,2rem); gap:1.5rem; }
.nav-logo { display:flex; align-items:center; gap:.5rem; font-size:1.35rem; font-weight:800; flex-shrink:0; text-decoration:none; }
.logo-img { width:120px; height:48px; object-fit:contain; object-position:left center; filter:brightness(1.05); transition:filter var(--t-base); }
.navbar.scrolled .logo-img { filter:none; }
.footer-logo .logo-img { filter:brightness(1.1); }
.nav-links { display:flex; align-items:center; gap:.25rem; }
.nav-link { padding:.45rem .85rem; border-radius:var(--radius-sm); font-weight:600; font-size:.9rem; color:rgba(255,255,255,.85); transition:color var(--t-fast),background var(--t-fast); }
.nav-link:hover,.nav-link.active { color:#fff; background:rgba(255,255,255,.1); }
.navbar.scrolled .nav-link { color:var(--text-secondary); }
.navbar.scrolled .nav-link:hover,.navbar.scrolled .nav-link.active { color:var(--text-primary); background:var(--bg-alt); }
.nav-actions { display:flex; align-items:center; gap:.75rem; flex-shrink:0; }
.dark-toggle { width:2.25rem; height:2.25rem; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.1); color:#fff; font-size:1rem; transition:background var(--t-fast); }
.dark-toggle:hover { background:rgba(255,255,255,.2); }
.navbar.scrolled .dark-toggle { background:var(--bg-alt); color:var(--text-primary); }
.toggle-icon { display:none; line-height:1; }
.toggle-icon.sun { display:block; }
[data-theme="dark"] .toggle-icon.sun { display:none; }
[data-theme="dark"] .toggle-icon.moon { display:block; }

/* ── Language switcher ───────────────────────────────────────── */
.lang-switcher { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: .35rem;
  height: 2.25rem; padding: 0 .7rem; border-radius: 2rem;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: .8rem; font-weight: 700; border: none; cursor: pointer;
  transition: background var(--t-fast);
}
.lang-trigger:hover, .lang-trigger.open { background: rgba(255,255,255,.2); }
.navbar.scrolled .lang-trigger { background: var(--bg-alt); color: var(--text-primary); }
.navbar.scrolled .lang-trigger:hover, .navbar.scrolled .lang-trigger.open { background: var(--blue-100); }
[data-theme="dark"] .navbar.scrolled .lang-trigger:hover,
[data-theme="dark"] .navbar.scrolled .lang-trigger.open { background: rgba(58,126,240,.15); }
.lang-globe { font-size: .9rem; line-height: 1; }
.lang-current { white-space: nowrap; }
.lang-chevron { font-size: .6rem; transition: transform var(--t-base) var(--ease); }
.lang-trigger.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + .6rem); right: 0;
  min-width: 190px; z-index: 1001;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: .4rem; display: flex; flex-direction: column; gap: .15rem;
  opacity: 0; transform: translateY(-6px) scale(.97);
  pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.lang-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .55rem .7rem; border-radius: .55rem;
  background: none; border: none; cursor: pointer; text-align: left;
  transition: background var(--t-fast);
}
.lang-option:hover { background: var(--bg-alt); }
.lang-option.active { background: var(--blue-100); }
[data-theme="dark"] .lang-option.active { background: rgba(58,126,240,.15); }
.lang-option-native { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.lang-option-en { font-size: .72rem; color: var(--text-muted); margin-left: auto; margin-right: .4rem; }
.lang-check { color: var(--blue-500); font-weight: 800; font-size: .85rem; flex-shrink: 0; }

.hamburger { display:none; flex-direction:column; gap:5px; padding:6px; border-radius:var(--radius-sm); background:rgba(255,255,255,.1); }
.hamburger span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:transform var(--t-base) var(--ease),opacity var(--t-base); }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.navbar.scrolled .hamburger { background:var(--bg-alt); }
.navbar.scrolled .hamburger span { background:var(--text-primary); }

/* Mobile slide-out drawer */
@media (max-width:900px) {
  /* ── Hamburger always visible, never squeezed ── */
  .hamburger { display:flex; flex-shrink:0; }

  /* Tighten navbar gap so Logo + Globe + Dark + Hamburger all fit */
  .nav-container { gap:.35rem; padding-inline:.75rem; }
  .nav-actions   { gap:.35rem; }

  /* Stack logo image above text on mobile */
  .nav-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-shrink: 0;
  }

  /* Logo image — compact on mobile */
  .logo-img { width:56px; height:22px; }

  /* Text below logo image */
  .logo-text {
    display: block !important;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255,255,255,.75);
    line-height: 1;
    margin-top: 1px;
    white-space: nowrap;
  }
  .logo-accent { color: var(--blue-400, #60a5fa); }

  /* Lang switcher compact — icon only, no text label */
  .lang-current { display:none; }
  .lang-trigger { padding:0 .4rem; }
  .nav-links { position:fixed; top:0; right:-100%; height:100dvh; width:min(300px,85vw); flex-direction:column; align-items:flex-start; background:var(--bg); padding:4rem 1.5rem 2rem; gap:.35rem; box-shadow:var(--shadow-lg); transition:right var(--t-slow) var(--ease); z-index:999; overflow-y:auto; pointer-events:none; }
  .nav-links.open { right:0; pointer-events:auto; }
  .nav-link { color:var(--text-primary) !important; font-size:1rem; width:100%; padding:.65rem 1rem; background:none !important; }
  .nav-link:hover { background:var(--bg-alt) !important; }
  .nav-cta { display:none; }

  /* Hide the desktop mega-menu trigger on mobile.
     The trigger (#mega-trigger) is not needed on mobile because
     the .mobile-courses-nav accordion handles course navigation.
     #mega-menu itself is portalled to document.body by MegaMenu.js
     so display:none on .mega-wrap does not affect it. */
  .mega-wrap { display:none !important; }
  #mega-menu  { display:none !important; }
  .mega-backdrop { display:none !important; }
  #mega-menu  { display:none !important; }
  .mega-backdrop { display:none !important; }

  /* ── Mobile courses nav ────────────────────────────────────────
     Collapsed by default. The toggle button looks identical to
     the other nav links so the menu feels uniform. Clicking it
     adds .open to the wrapper which reveals the category list
     with a smooth height animation. */
  .mobile-courses-nav {
    display: flex; flex-direction: column;
    width: 100%;
  }
  .mobile-courses-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: .65rem 1rem;
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary);
    background: none; border: none; cursor: pointer;
    font-family: inherit; border-radius: .4rem;
    transition: background var(--t-fast);
  }
  .mobile-courses-toggle:hover { background: var(--bg-alt); }
  .mobile-courses-chevron {
    font-size: .75rem;
    transition: transform .25s ease;
    display: inline-block;
  }
  /* Rotate chevron when open */
  .mobile-courses-nav.open .mobile-courses-chevron { transform: rotate(180deg); }

  /* Category list — hidden by default, slides open */
  .mobile-courses-list {
    display: flex; flex-direction: column;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  /* Open state — max-height large enough to show all 7 items */
  .mobile-courses-nav.open .mobile-courses-list { max-height: 420px; }

  .mobile-cat-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem 1rem .55rem 1.75rem;
    font-size: .92rem; font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none; border-radius: .4rem;
    transition: background var(--t-fast), color var(--t-fast);
  }
  .mobile-cat-link:hover,
  .mobile-cat-link:active { background: var(--bg-alt); color: var(--text-primary); }

  /* ✕ Close button inside the drawer */
  .drawer-close {
    position: absolute;
    top: .85rem; right: .85rem;
    width: 2.25rem; height: 2.25rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    transition: background var(--t-fast), transform var(--t-fast);
    flex-shrink: 0;
  }
  .drawer-close:hover { background: #fee2e2; color: #dc2626; transform: scale(1.1); }

  /* lang-current + lang-trigger handled in mobile block above */
  .lang-dropdown { right: -8px; }
}

/* Hide mobile-only elements on desktop */
@media (min-width:901px) {
  .drawer-close        { display: none; }
  .mobile-courses-nav  { display: none; }
}

/* Drawer overlay — toggled via .open class (not inline display) so it
   follows the same single-source-of-truth pattern as every other
   open/close surface in this file. */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 997;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════════════════
   6. MEGA MENU
   ═══════════════════════════════════════════════════════════ */

.mega-wrap { position: relative; display: flex; align-items: center; }

/* ── Trigger ─────────────────────────────────────────────── */
.mega-trigger {
  display: flex; align-items: center; gap: .3rem;
  padding: .45rem .85rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.85);
  background: none; border: none; cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast); white-space: nowrap;
}
.mega-trigger:hover,.mega-trigger.open,.mega-trigger.active { color:#fff; background:rgba(255,255,255,.1); }
.navbar.scrolled .mega-trigger { color: var(--text-secondary); }
.navbar.scrolled .mega-trigger:hover,
.navbar.scrolled .mega-trigger.open,
.navbar.scrolled .mega-trigger.active { color:var(--text-primary); background:var(--bg-alt); }
.mega-chevron { font-size:.65rem; line-height:1; display:inline-block; transition:transform var(--t-base) var(--ease); }
.mega-trigger.open .mega-chevron { transform: rotate(180deg); }

/* ── Desktop panel ───────────────────────────────────────────
   KEY FIX: The panel starts right below the navbar (top = navbar
   height via --mega-offset). There is NO transparent spacer
   inside .mega-menu, so the mouse goes directly from the trigger
   to .mega-inner content without crossing any dead zone.
   Hover is on .mega-wrap (trigger area) and .mega-inner (content).
──────────────────────────────────────────────────────────── */
/* ════════════════════════════════════════════════════════════
   MEGA MENU — Simplilearn-style: left sidebar + right cards
════════════════════════════════════════════════════════════ */
.mega-menu {
  position: fixed;   /* fixed so it spans full width below navbar */
  top: 64px;        /* always 64px — navbar height */
  left: 0;
  right: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  background: transparent;
  /* Ensure it doesn't affect document flow */
  display: block !important;
}
.mega-menu.open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
/* When not open, completely invisible and non-interactive */
.mega-menu:not(.open) {
  visibility: hidden;
}

.mega-inner {
  display: flex;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  height: 78vh;
  max-height: 720px;
  min-height: 420px;
  overflow: hidden;
  width: 100%;
}

/* ── LEFT Sidebar ── */
.mega-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-alt, #f6f7f9);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  padding: .5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.mega-sidebar::-webkit-scrollbar { width: 4px; }
.mega-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.mega-sidebar-head {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .75rem 1.125rem .5rem;
}
.mega-col {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .65rem 1.125rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary, #444);
  cursor: pointer;
  transition: background .12s, color .12s, border-left-color .12s;
  border-left: 3px solid transparent;
  white-space: nowrap;
}
.mega-col:hover {
  background: rgba(var(--blue-rgb, 47,129,247), .07);
  color: var(--blue, #1a5fd4);
  border-left-color: var(--blue, #1a5fd4);
}
.mega-col.active {
  background: rgba(var(--blue-rgb, 47,129,247), .1);
  color: var(--blue, #1a5fd4);
  border-left-color: var(--blue, #1a5fd4);
  font-weight: 700;
}
.mega-cat-icon { font-size: 1rem; flex-shrink: 0; }

.mega-explore-all {
  display: block;
  margin: .75rem .875rem .5rem;
  padding: .55rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue, #1a5fd4);
  border: 1px solid var(--blue, #1a5fd4);
  border-radius: .5rem;
  text-decoration: none;
  text-align: center;
  transition: background .15s;
}
.mega-explore-all:hover { background: var(--blue, #1a5fd4); color: #fff; }

/* ── RIGHT Panel ── */
.mega-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem 1.25rem 0 1.25rem;
  min-width: 0;
}
.mega-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .875rem;
  padding-bottom: .625rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mega-panel-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-primary, #111);
}
.mega-see-all {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue, #1a5fd4);
  text-decoration: none;
  white-space: nowrap;
}
.mega-see-all:hover { text-decoration: underline; }

/* ── Course cards grid ── */
.mega-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;   /* fixed: 140px thumb + 120px body */
  gap: .875rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 0 .25rem 1rem 0;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.2) transparent;
}
.mega-cards-grid::-webkit-scrollbar { width: 5px; }
.mega-cards-grid::-webkit-scrollbar-track { background: transparent; }
.mega-cards-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 4px; }
.mega-cards-grid::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.32); }
[data-theme="dark"] .mega-cards-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); }
/* ═══════════════════════════════════════════════
   MEGA MENU COURSE CARDS
   Thumbnail on top + card body with title,
   duration, price, and View Details button
═══════════════════════════════════════════════ */
.mega-course-card {
  border-radius: .625rem;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--border, rgba(255,255,255,.1));
  background: var(--surface, #fff);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.mega-course-card:hover {
  border-color: #2f81f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(47,129,247,.25);
}
[data-theme="dark"] .mega-course-card {
  background: #161b22;
  border-color: #30363d;
}

/* ── Thumbnail area ── */
.mcc-thumb {
  position: relative;
  width: 100%;
  height: 140px;           /* fixed height — no aspect-ratio that can overflow */
  background: linear-gradient(135deg, #0f1f35, #1e0f2e);
  overflow: hidden;
  flex-shrink: 0;
}
.mcc-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s ease;
  z-index: 1;
}
.mega-course-card:hover .mcc-thumb img { transform: scale(1.06); }
.mcc-thumb-ph {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.75rem;
}
/* Subtle gradient at very bottom of thumbnail for natural transition */
.mcc-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.25), transparent);
  z-index: 2; pointer-events: none;
}
.mcc-popular {
  position: absolute; top: .4rem; left: .4rem; z-index: 3;
  background: #f97316; color: #fff;
  font-size: .58rem; font-weight: 900;
  padding: .18rem .45rem; border-radius: .25rem;
}

/* ── Card body: always visible below thumbnail ── */
.mcc-body {
  padding: .5rem .65rem .65rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
  min-height: 0;
  background: var(--surface, #fff);  /* solid bg so title is always readable */
  position: relative;
  z-index: 5;                         /* above thumbnail */
}
[data-theme="dark"] .mcc-body { background: #161b22; }
.mcc-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-primary, #111);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}
[data-theme="dark"] .mcc-title { color: #e6edf3; }

.mcc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
}
.mcc-duration {
  font-size: .68rem;
  color: var(--text-muted, #777);
  font-weight: 600;
}
.mcc-price {
  font-size: .72rem; font-weight: 900;
  color: #1d4ed8;
}
[data-theme="dark"] .mcc-price { color: #60a5fa; }
.mcc-free {
  font-size: .72rem; font-weight: 900;
  color: #16a34a;
}
[data-theme="dark"] .mcc-free { color: #4ade80; }

/* View Details button */
.mcc-btn {
  margin-top: auto;  /* always pushed to bottom of .mcc-body */
  flex-shrink: 0;    /* never compressed or hidden */
  width: 100%;
  padding: .38rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  font-family: inherit;
  background: transparent;
  color: #2f81f7;
  border: 1.5px solid #2f81f7;
  border-radius: .375rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
}
.mcc-btn:hover, .mega-course-card:hover .mcc-btn {
  background: #2f81f7;
  color: #fff;
}

.mega-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}

/* Dark theme */
[data-theme="dark"] .mega-inner   { background: #161b22; }
[data-theme="dark"] .mega-sidebar { background: #0d1117; border-color: #30363d; }
[data-theme="dark"] .mega-col     { color: #c9d1d9; }
[data-theme="dark"] .mega-col:hover,
[data-theme="dark"] .mega-col.active { background: rgba(47,129,247,.12); color: #58a6ff; }
[data-theme="dark"] .mega-panel-title { color: #e6edf3; }
[data-theme="dark"] .mega-course-card { background: #0d1117; border-color: #30363d; }
[data-theme="dark"] .mcc-title    { color: #e6edf3; }

@media (max-width: 900px) {

  /* Trigger inside the slide-out drawer */
  .mega-trigger {
    width: 100% !important; justify-content: space-between !important;
    color: var(--text-primary) !important; font-size: 1rem !important;
    font-weight: 700 !important; padding: .8rem 1rem !important;
    border-radius: var(--radius-md) !important; background: var(--bg-alt) !important;
    border: 1.5px solid var(--border) !important; margin: .3rem 0 !important;
  }
  .mega-trigger.open {
    background: var(--blue-100) !important; border-color: var(--blue-300) !important;
    color: var(--blue-700) !important;
  }
  [data-theme="dark"] .mega-trigger.open {
    background: rgba(58,126,240,.15) !important; border-color: rgba(58,126,240,.35) !important;
    color: var(--blue-300) !important;
  }

  /* Sheet container – override ALL desktop positioning */
  .mega-menu {
    position: fixed !important;
    top: auto !important; bottom: 0 !important;
    left: 50% !important; right: auto !important;
    /* Closed: slid fully off the bottom edge AND hidden from
       accessibility tree. Using visibility:hidden in addition to
       translateY(100%) ensures the sheet is truly invisible and
       cannot intercept any touch events even if transform fails. */
    transform: translateX(-50%) translateY(100%) !important;
    visibility: hidden !important;
    width: min(520px, 100vw) !important;
    z-index: 1100 !important;
    border-radius: 20px 20px 0 0 !important;
    /* Smooth spring slide */
    transition: transform .4s cubic-bezier(.22,1,.36,1),
                visibility 0s linear .4s !important;
    opacity: 1 !important;
    pointer-events: none !important;
    overflow: visible !important;
    background: transparent !important;
    isolation: isolate;
  }
  .mega-menu.open {
    transform: translateX(-50%) translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    /* Make visible immediately on open (no delay) */
    transition: transform .4s cubic-bezier(.22,1,.36,1),
                visibility 0s linear 0s !important;
  }
  .mega-menu::before { display: none !important; }

  /* .mega-inner is the visible white card */
  .mega-inner {
    display: flex !important; flex-direction: column !important;
    background: var(--surface) !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -4px 40px rgba(0,0,0,.22) !important;
    border-bottom: none !important;
    max-height: 80dvh; overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 1rem);
    /* No blur of any kind on this element */
    filter: none !important; backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Drag handle – injected by JS as .mob-sheet-handle */
  .mob-sheet-label {
    font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-muted); padding: 8px 1.25rem 10px;
    border-bottom: 1px solid var(--border); flex-shrink: 0;
  }
  .mob-sheet-handle {
    width: 40px; height: 4px; background: var(--border);
    border-radius: 2px; margin: 12px auto 0; flex-shrink: 0;
  }

  /* Each category → horizontal row */
  .mega-col {
    display: flex !important; flex-direction: row !important;
    align-items: center !important; gap: 1rem !important;
    padding: 1rem 1.25rem !important; border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    min-height: 68px !important; pointer-events: auto !important;
    cursor: pointer !important; background: var(--surface) !important;
    transition: background .15s ease !important;
  }
  .mega-col:active { background: var(--bg-alt) !important; }
  .mega-col:last-of-type { border-bottom: none !important; }
  .mega-col::after { display: none !important; }

  .mega-cat-icon {
    width: 46px !important; height: 46px !important; font-size: 1.5rem !important;
    border-radius: 12px !important; flex-shrink: 0 !important;
    background: var(--blue-100) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
  }
  [data-theme="dark"] .mega-cat-icon { background: rgba(58,126,240,.18) !important; }

  .mega-cat-head {
    flex: 1 !important; display: flex !important; align-items: center !important;
    gap: .75rem !important; margin: 0 !important; padding: 0 !important; border: none !important;
  }
  .mega-cat-title { font-size: .95rem !important; font-weight: 800 !important; color: var(--text-primary) !important; }
  .mega-cat-sub   { font-size: .74rem !important; color: var(--text-muted) !important; }
  .mega-cat-head::after { content:'›'; font-size:1.4rem; color:var(--text-muted); margin-left:auto; line-height:1; flex-shrink:0; }

  /* Hide desktop-only elements */
  .mega-course-list, .mega-see-all, .mega-promo { display: none !important; }

  /* Backdrop on mobile – solid only, NO blur */
  .mega-backdrop {
    display: block !important; z-index: 1099 !important;
    background: rgba(0,0,0,.5) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
}

/* ── 7. Hero ───────────────────────────────────────────────── */
.hero { position:relative; min-height:100dvh; background:var(--grad-hero); display:flex; align-items:center; overflow:hidden; }
.hero-bg { position:absolute; inset:0; pointer-events:none; }
.hero-orb { position:absolute; border-radius:50%; filter:blur(80px); opacity:.35; }
.orb-1 { width:600px; height:600px; top:-200px; left:-150px; background:radial-gradient(circle,var(--blue-500),transparent 70%); }
.orb-2 { width:500px; height:500px; bottom:-150px; right:-100px; background:radial-gradient(circle,var(--purple-500),transparent 70%); }
.orb-3 { width:300px; height:300px; top:40%; left:40%; background:radial-gradient(circle,var(--blue-400),transparent 70%); opacity:.15; }
.hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:60px 60px; mask-image:radial-gradient(ellipse 70% 60% at 50% 50%,black,transparent); }
.hero-container { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,5rem); align-items:center; max-width:1200px; margin-inline:auto; padding-inline:clamp(1rem,5vw,2rem); padding-block:6rem 4rem; width:100%; }
.hero-badge { display:inline-flex; align-items:center; gap:.5rem; font-size:.8rem; font-weight:700; color:var(--purple-300); background:rgba(168,85,247,.12); border:1px solid rgba(168,85,247,.25); padding:.35rem 1rem; border-radius:2rem; margin-bottom:1.5rem; }
.badge-dot { width:6px; height:6px; border-radius:50%; background:var(--purple-400); animation:pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.hero-headline { font-size:clamp(2rem,4.5vw,3.5rem); font-weight:800; line-height:1.1; letter-spacing:-.03em; color:#fff; margin-bottom:1.5rem; }
.headline-accent { background:var(--grad-primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-sub { font-size:clamp(1rem,1.5vw,1.2rem); color:rgba(255,255,255,.7); max-width:52ch; margin-bottom:2.5rem; line-height:1.7; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:3rem; }
.hero-stats { display:flex; align-items:center; gap:2rem; flex-wrap:wrap; }
.hero-stat { display:flex; flex-direction:column; }
.stat-num { font-size:1.6rem; font-weight:800; color:#fff; letter-spacing:-.02em; line-height:1; }
.stat-lbl { font-size:.75rem; color:rgba(255,255,255,.55); font-weight:600; margin-top:.2rem; }
.hero-stat-divider { width:1px; height:2.5rem; background:rgba(255,255,255,.15); }

/* Hero visual (floating card stack) */
.hero-visual { position:relative; min-height:360px; }
.hero-card-stack { position:relative; width:100%; height:360px; }
.hcard { position:absolute; border-radius:var(--radius-lg); }
.hcard-main { width:min(340px,90%); top:50%; left:50%; transform:translate(-50%,-50%); overflow:hidden; }
.hcard-header { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.2rem; border-bottom:1px solid rgba(255,255,255,.08); }
.hcard-dots { display:flex; gap:6px; }
.hcard-dots span { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.2); }
.hcard-tag { font-size:.7rem; font-weight:700; color:var(--purple-300); letter-spacing:.06em; }
.hcard-body { padding:1.2rem; }
.code-block { font-family:var(--font-mono); font-size:.8rem; line-height:1.8; color:rgba(255,255,255,.8); }
.code-kw { color:#c084fc; } .code-var { color:#93c5fd; } .code-fn { color:#6ee7b7; } .code-prop { color:#93c5fd; } .code-str { color:#fde68a; }
.hcard-float { display:flex; align-items:center; gap:.7rem; padding:.8rem 1.1rem; border-radius:var(--radius-md); animation:floatCard 4s ease-in-out infinite; }
.hcard-f1 { top:5%; right:0; animation-delay:0s; }
.hcard-f2 { bottom:15%; right:5%; animation-delay:1.5s; }
.hcard-f3 { top:60%; left:-5%; animation-delay:3s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.float-icon { font-size:1.4rem; }
.float-title { font-size:.85rem; font-weight:700; color:#fff; }
.float-sub   { font-size:.7rem; color:rgba(255,255,255,.6); }

@media (max-width:900px) { .hero-container { grid-template-columns:1fr; padding-block:7rem 3rem; } .hero-visual { display:none; } }

/* ── 8. About ──────────────────────────────────────────────── */
.about { background:var(--bg); }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(3rem,6vw,6rem); align-items:start; margin-top:2rem; }
.about-para { color:var(--text-secondary); font-size:1.05rem; line-height:1.75; margin-bottom:2rem; }
.about-pillars { display:flex; flex-direction:column; gap:1.5rem; }
.pillar { display:flex; gap:1rem; align-items:flex-start; }
.pillar-icon { font-size:1.6rem; flex-shrink:0; }
.pillar strong { display:block; font-size:1rem; margin-bottom:.25rem; }
.pillar p { font-size:.9rem; color:var(--text-secondary); }
.about-stats { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.stat-card { padding:1.5rem; border-radius:var(--radius-lg); transition:transform var(--t-base) var(--ease); }
.stat-card:hover { transform:translateY(-4px); }
.stat-card-num { font-size:clamp(1.8rem,3vw,2.4rem); font-weight:800; letter-spacing:-.03em; background:var(--grad-primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; line-height:1; margin-bottom:.4rem; }
.stat-card-lbl { font-size:.82rem; font-weight:600; color:var(--text-secondary); margin-bottom:.75rem; }
.stat-card-bar { height:4px; background:var(--border); border-radius:2px; overflow:hidden; }
.stat-card-fill { height:100%; background:var(--grad-primary); border-radius:2px; width:0; transition:width 1.2s ease; }
@media (max-width:768px) { .about-grid { grid-template-columns:1fr; } }
@media (max-width:400px)  { .about-stats { grid-template-columns:1fr; } }

/* ── 9. Courses ────────────────────────────────────────────── */
.courses { background:var(--bg-alt); }
.courses-grid {
  display: grid;
  /* Always 4 columns on wide screens, scales down gracefully */
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  /* CRITICAL: align-items:start means each card is its OWN height — no row stretching */
  align-items: start;
}
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: visible;  /* allow shadow to show */
  display: flex;
  flex-direction: column;
  /* Fixed minimum height so every card always shows all content */
  min-height: 460px;
  height: auto;     /* grows taller if content needs it */
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  /* Clip the image only, not the whole card */
  position: relative;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* Clip only the image, not the card body */
.course-img {
  height: 180px;
  flex-shrink: 0;           /* NEVER compress — always stays 180px */
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.course-img-icon { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:4rem; filter:drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.course-img-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.cat-fs  { background:linear-gradient(135deg,#0f2240,#1a5fd4); }
.cat-ds  { background:linear-gradient(135deg,#1a0a3c,#7c3aed); }
.cat-ux  { background:linear-gradient(135deg,#3b0764,#a855f7); }
.cat-cs  { background:linear-gradient(135deg,#0c1a38,#0e3460); }
.cat-vfx { background:linear-gradient(135deg,#1e1b4b,#6d28d9); }
.cat-dm  { background:linear-gradient(135deg,#0f2240,#1d4ed8); }
.cat-other { background:linear-gradient(135deg,#1f2937,#374151); }
.course-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;           /* take all remaining height */
  overflow: hidden;  /* clip only within body if text overflows */
}
.course-cat-badge { display:inline-flex; align-items:center; gap:.35rem; font-size:.7rem; font-weight:700; letter-spacing:.04em; padding:.2rem .65rem; border-radius:2rem; margin-bottom:.5rem; text-transform:uppercase; }
.course-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.course-desc {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta  { display:flex; gap:.75rem; font-size:.78rem; font-weight:600; color:var(--text-muted); margin-bottom:.5rem; flex-wrap:wrap; }
.course-duration { color:var(--blue-500); }
.course-batch { font-size:.78rem; color:var(--blue-500); font-weight:600; margin-bottom:.85rem; }
.course-price-row { display:flex; align-items:center; gap:.6rem; margin-bottom:1rem; flex-wrap:wrap; }
.course-price { font-size:1.3rem; font-weight:800; color:var(--text-primary); letter-spacing:-.02em; line-height:1; }
.price-free { color:#16a34a; }
.course-price-orig { font-size:.88rem; color:var(--text-muted); text-decoration:line-through; }
.course-discount-badge { font-size:.72rem; font-weight:800; background:#fef2f2; color:#dc2626; border:1px solid #fca5a5; padding:.15rem .5rem; border-radius:2rem; }
[data-theme="dark"] .course-discount-badge { background:rgba(220,38,38,.15); border-color:rgba(220,38,38,.3); }
.course-card-actions {
  display: flex;
  gap: .6rem;
  margin-top: auto;   /* always pushed to bottom of card */
  padding-top: .75rem;
  flex-shrink: 0;     /* never compressed */
}
.course-card-actions .btn { flex:1; justify-content:center; font-size:.82rem; padding:.55rem .75rem; }
.card-badge-popular,.card-badge-seats { position:absolute; top:.75rem; font-size:.68rem; font-weight:800; padding:.25rem .65rem; border-radius:2rem; backdrop-filter:blur(6px); }
.card-badge-popular { left:.75rem; background:rgba(124,58,237,.85); color:#fff; }
.card-badge-seats   { right:.75rem; background:rgba(220,38,38,.85); color:#fff; }

/* Skeleton loaders */
@keyframes shimmer { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
.skel-img,.skel-line { background:linear-gradient(90deg,var(--border) 25%,var(--bg-alt) 50%,var(--border) 75%); background-size:400px 100%; animation:shimmer 1.4s ease infinite; }
.skel-img   { height:160px; }
.skel-line  { border-radius:6px; }
.skel-title { height:20px; width:70%; margin-bottom:.75rem; }
.skel-desc  { height:14px; width:100%; margin-bottom:.5rem; }
.skel-desc.short { width:55%; }
.course-skeleton { pointer-events:none; }

/* Category filter tabs */
.cat-tabs-wrap { margin-bottom:2rem; position:relative; }
.cat-tabs-wrap::after { content:''; position:absolute; right:0; top:0; bottom:0; width:40px; background:linear-gradient(to right,transparent,var(--bg-alt)); pointer-events:none; }
.cat-tabs { display:flex; gap:.5rem; overflow-x:auto; scrollbar-width:none; padding-bottom:.5rem; scroll-snap-type:x mandatory; }
.cat-tabs::-webkit-scrollbar { display:none; }
.cat-tab { display:inline-flex; align-items:center; gap:.45rem; padding:.6rem 1.1rem; border-radius:2rem; font-size:.85rem; font-weight:700; color:var(--text-secondary); background:var(--surface); border:1.5px solid var(--border); white-space:nowrap; cursor:pointer; transition:all var(--t-base) var(--ease); scroll-snap-align:start; flex-shrink:0; }
.cat-tab:hover { color:var(--blue-500); border-color:var(--blue-300); background:var(--blue-100); transform:translateY(-1px); }
.cat-tab.active { background:var(--grad-primary); color:#fff; border-color:transparent; box-shadow:0 4px 14px rgba(124,58,237,.3); }
[data-theme="dark"] .cat-tab:hover { background:rgba(58,126,240,.12); }
.cat-tab-icon { font-size:1rem; line-height:1; }
.cat-active-label { display:flex; align-items:center; justify-content:space-between; background:var(--blue-100); border:1px solid var(--blue-300); border-radius:var(--radius-md); padding:.65rem 1.1rem; margin-bottom:1.5rem; font-size:.88rem; font-weight:700; color:var(--blue-700); }
[data-theme="dark"] .cat-active-label { background:rgba(58,126,240,.12); border-color:rgba(58,126,240,.3); color:var(--blue-300); }
.cat-clear-btn { font-size:.78rem; font-weight:700; color:var(--blue-500); background:none; border:none; cursor:pointer; padding:.2rem .5rem; border-radius:4px; transition:background var(--t-fast); }
.cat-clear-btn:hover { background:rgba(26,95,212,.1); }
.cat-empty { text-align:center; padding:3rem 1rem; color:var(--text-muted); }
.cat-empty-icon { font-size:3rem; margin-bottom:1rem; }
.cat-empty p { font-size:1rem; margin-bottom:1.25rem; }
.filter-enter { animation:filterIn .32s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes filterIn { from{opacity:0;transform:translateY(14px) scale(.97)} to{opacity:1;transform:none} }

/* ── 10. Features ──────────────────────────────────────────── */
.features { background:var(--bg); position:relative; overflow:hidden; }
.features-bg { position:absolute; inset:0; background:radial-gradient(ellipse 60% 50% at 50% 0%,rgba(124,58,237,.06),transparent); pointer-events:none; }
.features-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:1.25rem; }
.feature-card { padding:2rem 1.75rem; border-radius:var(--radius-xl); transition:transform var(--t-base) var(--ease),box-shadow var(--t-base) var(--ease); }
.feature-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.feature-icon  { font-size:2.2rem; margin-bottom:1.25rem; display:block; }
.feature-title { font-size:1.1rem; font-weight:700; margin-bottom:.6rem; }
.feature-desc  { font-size:.9rem; color:var(--text-secondary); line-height:1.65; }

/* ── 11. Testimonials ──────────────────────────────────────── */
.testimonials { background:var(--bg-alt); }
.testi-track-wrap { overflow:hidden; border-radius:var(--radius-xl); margin-bottom:2rem; }
.testi-track { display:flex; gap:1.5rem; transition:transform var(--t-slow) var(--ease); padding-bottom:.5rem; }
.testi-card { flex:0 0 calc(33.333% - 1rem); padding:2rem; border-radius:var(--radius-xl); display:flex; flex-direction:column; gap:1.25rem; transition:transform var(--t-base) var(--ease); }
.testi-card:hover { transform:translateY(-4px); }
.testi-rating { color:#f59e0b; font-size:1.1rem; letter-spacing:.1em; }
.testi-quote  { font-size:.95rem; color:var(--text-secondary); line-height:1.75; flex:1; }
.testi-author { display:flex; align-items:center; gap:.9rem; }
.testi-avatar { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:800; color:#fff; flex-shrink:0; }
.testi-name   { font-size:.9rem; font-weight:700; }
.testi-role   { font-size:.78rem; color:var(--text-muted); }
.testi-nav    { display:flex; align-items:center; justify-content:center; gap:1rem; }
.testi-btn    { width:2.5rem; height:2.5rem; border-radius:50%; background:var(--surface); border:1px solid var(--border); font-size:1rem; color:var(--text-primary); transition:all var(--t-fast); display:flex; align-items:center; justify-content:center; }
.testi-btn:hover { background:var(--blue-500); color:#fff; border-color:var(--blue-500); }
.testi-dots   { display:flex; gap:.5rem; }
.testi-dot    { width:8px; height:8px; border-radius:50%; background:var(--border); transition:background var(--t-fast),width var(--t-base); cursor:pointer; }
.testi-dot.active { background:var(--blue-500); width:22px; border-radius:4px; }
@media (max-width:900px) { .testi-card { flex:0 0 calc(50% - .75rem); } }
@media (max-width:600px) { .testi-card { flex:0 0 90%; } }

/* ── 12. CTA ───────────────────────────────────────────────── */
.cta-section { background:var(--grad-hero); position:relative; overflow:hidden; padding-block:var(--section-py); }
.cta-bg { position:absolute; inset:0; pointer-events:none; }
.cta-orb { position:absolute; border-radius:50%; filter:blur(90px); }
.cta-orb-1 { width:400px; height:400px; top:-100px; left:-100px; background:radial-gradient(circle,var(--blue-500),transparent 70%); opacity:.5; }
.cta-orb-2 { width:400px; height:400px; bottom:-100px; right:-100px; background:radial-gradient(circle,var(--purple-500),transparent 70%); opacity:.5; }
.cta-inner { position:relative; text-align:center; max-width:700px; margin-inline:auto; }
.cta-tag   { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--purple-300); background:rgba(168,85,247,.15); border:1px solid rgba(168,85,247,.3); padding:.3rem .9rem; border-radius:2rem; margin-bottom:1.5rem; }
.cta-title { font-size:clamp(1.75rem,4vw,3rem); font-weight:800; color:#fff; letter-spacing:-.03em; margin-bottom:1rem; line-height:1.15; }
.cta-sub   { color:rgba(255,255,255,.7); font-size:clamp(1rem,1.5vw,1.15rem); margin-bottom:2.5rem; line-height:1.7; }
.cta-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ── 13. Contact ───────────────────────────────────────────── */
.contact { background:var(--bg); }
.contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:clamp(2rem,5vw,4rem); align-items:start; }
.contact-item { display:flex; gap:1rem; align-items:flex-start; margin-bottom:1.75rem; }
.contact-icon { font-size:1.4rem; flex-shrink:0; }
.contact-item strong { display:block; font-size:.9rem; margin-bottom:.2rem; }
.contact-item p,.contact-item a { font-size:.95rem; color:var(--text-secondary); line-height:1.55; }
.contact-item a:hover { color:var(--blue-500); }
.map-placeholder { border-radius:var(--radius-xl); height:200px; display:flex; align-items:center; justify-content:center; }
.map-inner { text-align:center; display:flex; flex-direction:column; align-items:center; gap:.5rem; }
.map-pin   { font-size:2rem; }
.map-inner p { font-size:.9rem; color:var(--text-secondary); }
.map-link  { font-size:.85rem; font-weight:700; color:var(--blue-500); }
.map-link:hover { text-decoration:underline; }
.contact-form { padding:2.5rem; border-radius:var(--radius-xl); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-group { margin-bottom:1.25rem; display:flex; flex-direction:column; }
.form-group label { font-size:.85rem; font-weight:600; margin-bottom:.45rem; color:var(--text-primary); }
.form-group input,.form-group select,.form-group textarea { padding:.7rem 1rem; border:1.5px solid var(--border); border-radius:var(--radius-md); background:var(--bg); color:var(--text-primary); font-size:.95rem; transition:border-color var(--t-fast),box-shadow var(--t-fast); outline:none; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color:var(--blue-400); box-shadow:0 0 0 3px rgba(58,126,240,.15); }
.form-group input.invalid,.form-group textarea.invalid { border-color:#ef4444; }
.form-error { font-size:.78rem; color:#ef4444; margin-top:.25rem; min-height:1rem; }
.form-success { margin-top:1rem; padding:1rem; border-radius:var(--radius-md); background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.3); color:#16a34a; font-size:.9rem; font-weight:600; text-align:center; display:none; }
[data-theme="dark"] .form-success { color:#4ade80; }
@media (max-width:768px) { .contact-grid { grid-template-columns:1fr; } .form-row { grid-template-columns:1fr; } .contact-form { padding:1.5rem; } }

/* ── 14. Footer ────────────────────────────────────────────── */
.footer { background:var(--grey-900); }
[data-theme="dark"] .footer { background:#050b13; }
.footer-top { padding-block:4rem 3rem; }
.footer-grid { display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:2rem 3rem; align-items:start; }
.footer-tagline { font-size:.9rem; color:rgba(255,255,255,.45); margin-top:.75rem; margin-bottom:1.5rem; }
.social-links { display:flex; gap:.6rem; }
.social-link { width:2.2rem; height:2.2rem; border-radius:50%; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700; color:rgba(255,255,255,.6); transition:all var(--t-fast); }
.social-link:hover { background:var(--blue-500); color:#fff; border-color:var(--blue-500); transform:translateY(-2px); }
.footer-heading { font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.4); margin-bottom:1.25rem; }
.footer-links ul { display:flex; flex-direction:column; gap:.6rem; }
.footer-links a,.footer-contact-list li { font-size:.9rem; color:rgba(255,255,255,.55); transition:color var(--t-fast); }
.footer-links a:hover { color:#fff; }
.footer-contact-list { display:flex; flex-direction:column; gap:.75rem; }
.footer-contact-list a { color:rgba(255,255,255,.55); }
.footer-contact-list a:hover { color:#fff; }
.admin-link { font-size:.8rem; color:rgba(255,255,255,.3); transition:color var(--t-fast); }
.admin-link:hover { color:rgba(255,255,255,.65); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.06); padding-block:1.5rem; }
.footer-bottom-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.footer-bottom p { font-size:.82rem; color:rgba(255,255,255,.35); }
.footer-bottom a { color:rgba(255,255,255,.4); transition:color var(--t-fast); }
.footer-bottom a:hover { color:rgba(255,255,255,.7); }
@media (max-width:900px) { .footer-grid { grid-template-columns:1fr 1fr; } .footer-brand { grid-column:1/-1; } }
@media (max-width:500px)  { .footer-grid { grid-template-columns:1fr; } .footer-brand { grid-column:auto; } }

/* ── 15. Back to top ───────────────────────────────────────── */
.back-top { position:fixed; bottom:2rem; right:2rem; width:3rem; height:3rem; border-radius:50%; background:var(--grad-primary); color:#fff; font-size:1.2rem; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(124,58,237,.4); opacity:0; pointer-events:none; transform:translateY(8px); transition:opacity var(--t-base),transform var(--t-base); z-index:500; }
.back-top.visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.back-top:hover { transform:translateY(-3px); }

/* ── 16. Scroll reveal ─────────────────────────────────────── */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .65s var(--ease),transform .65s var(--ease); }
.reveal.in-view { opacity:1; transform:translateY(0); }
.features-grid .feature-card:nth-child(2) { transition-delay:.08s; }
.features-grid .feature-card:nth-child(3) { transition-delay:.16s; }
.features-grid .feature-card:nth-child(4) { transition-delay:.24s; }
.features-grid .feature-card:nth-child(5) { transition-delay:.32s; }
.features-grid .feature-card:nth-child(6) { transition-delay:.40s; }
.about-stats .stat-card:nth-child(2) { transition-delay:.1s; }
.about-stats .stat-card:nth-child(3) { transition-delay:.2s; }
.about-stats .stat-card:nth-child(4) { transition-delay:.3s; }

/* ── 17. Checkout page ─────────────────────────────────────── */
.checkout-page { min-height:100vh; background:var(--bg-alt); font-family:var(--font-sans); }
.checkout-nav { background:#0f172a; padding:1rem 2rem; display:flex; align-items:center; justify-content:space-between; }
.checkout-nav a { color:rgba(255,255,255,.7); font-size:.9rem; transition:color var(--t-fast); }
.checkout-nav a:hover { color:#fff; }
.c-brand { color:#fff; font-weight:800; font-size:1.2rem; display:flex; align-items:center; gap:.4rem; }
.checkout-wrap { max-width:960px; margin:2.5rem auto; padding:0 1.25rem 4rem; display:grid; grid-template-columns:1fr 380px; gap:2rem; align-items:start; }
.checkout-form-card,.checkout-summary { background:var(--surface); border:1px solid var(--border); border-radius:1.25rem; padding:2rem; box-shadow:var(--shadow-md); }
.checkout-form-card h2,.checkout-summary h3 { font-size:1.15rem; font-weight:800; margin-bottom:1.5rem; padding-bottom:.85rem; border-bottom:1px solid var(--border); }
.checkout-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.co-fg { display:flex; flex-direction:column; gap:.4rem; margin-bottom:1rem; }
.co-fg label { font-size:.82rem; font-weight:700; color:var(--text-primary); }
.co-fg input,.co-fg select { padding:.65rem .9rem; border:1.5px solid var(--border); border-radius:.65rem; font-size:.9rem; font-family:var(--font-sans); background:var(--bg); color:var(--text-primary); outline:none; transition:border-color var(--t-fast),box-shadow var(--t-fast); }
.co-fg input:focus,.co-fg select:focus { border-color:var(--blue-400); box-shadow:0 0 0 3px rgba(58,126,240,.12); }
.co-fg input.invalid { border-color:#ef4444; }
.co-err { font-size:.75rem; color:#ef4444; margin-top:.2rem; min-height:.9rem; }
.payment-methods { display:flex; flex-direction:column; gap:.6rem; margin-bottom:1.5rem; }
.pay-opt { display:flex; align-items:center; gap:.75rem; border:1.5px solid var(--border); border-radius:.75rem; padding:.75rem 1rem; cursor:pointer; transition:border-color var(--t-fast),background var(--t-fast); position:relative; }
.pay-opt:hover,.pay-opt.selected { border-color:var(--blue-400); background:var(--blue-100); }
[data-theme="dark"] .pay-opt:hover,[data-theme="dark"] .pay-opt.selected { background:rgba(58,126,240,.1); }
.pay-opt input[type=radio] { accent-color:var(--blue-500); width:1.1rem; height:1.1rem; }
.pay-opt-icon { font-size:1.25rem; }
.pay-opt-label { font-size:.9rem; font-weight:600; }
.pay-opt-sub   { font-size:.75rem; color:var(--text-muted); }
.pay-opt-badge { position:absolute; top:.5rem; right:.65rem; font-size:.65rem; font-weight:800; padding:.1rem .45rem; background:#dcfce7; color:#16a34a; border-radius:2rem; }
.coupon-row { display:flex; gap:.5rem; margin-bottom:1.25rem; }
.coupon-row input { flex:1; }
.btn-coupon { padding:.65rem 1.1rem; border:1.5px solid var(--blue-400); border-radius:.65rem; font-size:.85rem; font-weight:700; color:var(--blue-500); cursor:pointer; background:none; font-family:var(--font-sans); white-space:nowrap; transition:background var(--t-fast),color var(--t-fast); }
.btn-coupon:hover { background:var(--blue-500); color:#fff; }
.coupon-msg { font-size:.8rem; font-weight:700; margin-bottom:1rem; }
.coupon-msg.ok  { color:#16a34a; }
.coupon-msg.err { color:#dc2626; }
.sum-course-title { font-weight:700; font-size:.95rem; margin-bottom:.5rem; }
.sum-course-cat   { font-size:.78rem; color:var(--text-muted); margin-bottom:1.25rem; }
.sum-row { display:flex; justify-content:space-between; align-items:center; font-size:.9rem; margin-bottom:.6rem; }
.sum-row.total    { font-weight:800; font-size:1.15rem; border-top:1px solid var(--border); padding-top:.85rem; margin-top:.5rem; }
.sum-row.discount { color:#16a34a; font-weight:700; }
.sum-divider { height:1px; background:var(--border); margin:1rem 0; }
.sum-trust { display:flex; flex-direction:column; gap:.5rem; margin-top:1.25rem; }
.sum-trust-item { display:flex; align-items:center; gap:.5rem; font-size:.8rem; color:var(--text-muted); }
.btn-place-order { width:100%; padding:1rem; background:linear-gradient(135deg,#16a34a,#15803d); color:#fff; border:none; border-radius:.85rem; font-size:1rem; font-weight:800; font-family:var(--font-sans); cursor:pointer; margin-top:1.5rem; box-shadow:0 4px 16px rgba(22,163,74,.3); transition:opacity var(--t-base),transform var(--t-base); }
.btn-place-order:hover { opacity:.9; transform:translateY(-2px); }
.btn-place-order:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.checkout-success { display:none; text-align:center; padding:3rem 2rem; }
.checkout-success.show { display:block; }
.success-icon  { font-size:4rem; margin-bottom:1rem; }
.success-title { font-size:1.5rem; font-weight:800; margin-bottom:.5rem; }
.success-sub   { color:var(--text-muted); margin-bottom:1.5rem; }
.order-box { background:var(--bg-alt); border:1px solid var(--border); border-radius:.85rem; padding:1.25rem; display:inline-block; text-align:left; margin-bottom:1.5rem; min-width:260px; }
.order-box-row { display:flex; justify-content:space-between; font-size:.88rem; margin-bottom:.4rem; }
.order-box-row strong { font-weight:700; }
@media (max-width:700px) { .checkout-wrap { grid-template-columns:1fr; } .checkout-row { grid-template-columns:1fr; } }

/* ═══════════════════════════════════════════════════════
   HERO BANNER SLIDER
═══════════════════════════════════════════════════════ */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #0d1117;
  /* Ensure slider never causes horizontal scroll */
  max-width: 100vw;
  /* Responsive height: 25vw on desktop (matches 4:1 banner ratio), min 320px, max 520px */
  height: clamp(320px, 25vw, 520px);
}
.hs-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hs-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Fill entire slide with background image */
  background-size: 100% 100%;   /* stretch to fill exactly */
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s ease;
  display: flex;
  align-items: center;
}
.hs-slide.active { opacity: 1; z-index: 2; }
.hs-loading {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1117, #1a2332);
}
.hs-loader {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #2f81f7;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* Dark overlay on slide image */
.hs-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.45) 50%,
    rgba(0,0,0,.15) 100%
  );
}

/* Slide text content */
.hs-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 2.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hs-badge {
  display: inline-block;
  background: rgba(47,129,247,.85);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: .3rem .875rem;
  border-radius: 2rem;
  letter-spacing: .04em;
  width: fit-content;
}
.hs-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin: 0;
}
.hs-sub {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
}
.hs-cta {
  width: fit-content;
  padding: .75rem 1.75rem;
  font-size: .925rem;
  font-weight: 800;
  text-decoration: none;
}

/* Navigation arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.hs-arrow:hover { background: rgba(47,129,247,.75); }
.hs-prev { left: 1.25rem; }
.hs-next { right: 1.25rem; }

/* Dots */
.hs-dots {
  position: absolute;
  bottom: 1.125rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.hs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, width .2s;
  padding: 0;
}
.hs-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .hero-slider-wrap { height: clamp(200px, 50vw, 320px); }
  .hs-content { padding: 1.5rem 1.25rem; gap: .625rem; }
  .hs-arrow { width: 36px; height: 36px; font-size: .9rem; }
}
