/* =====================================================================
   Legacy Learning — "Aurora" Premium Design System v2
   Ink + porcelain base · violet/indigo + lime accent · grotesk display
   Bento grids · aurora mesh glows · glassmorphism · refined motion
   ===================================================================== */

:root {
  /* Neutrals */
  --ink: #0c0c10;
  --ink-soft: #16161d;
  --graphite: #2a2a33;
  --slate: #5a5a68;
  --mist: #8a8a98;
  --line: #ececf1;
  --porcelain: #f6f5f3;
  --porcelain-2: #efeeea;
  --paper: #fbfaf8;
  --white: #ffffff;

  /* Brand accents — modern luxe */
  --violet: #6d4aff;
  --violet-700: #5a36e6;
  --indigo: #3a2bd6;
  --plum: #2b1f63;
  --lime: #c8f560;        /* electric chartreuse highlight */
  --lime-deep: #a9e02f;
  --blush: #ff6b8b;       /* warm accent for variety */
  --sky: #4ad7ff;

  /* Gradient tokens */
  --grad-violet: linear-gradient(135deg, #7d5cff 0%, #5a36e6 55%, #3a2bd6 100%);
  --grad-aurora: linear-gradient(120deg, #6d4aff 0%, #9b6bff 35%, #4ad7ff 100%);
  --grad-lime: linear-gradient(120deg, #c8f560, #a9e02f);
  --grad-ink: linear-gradient(160deg, #16161d 0%, #0c0c10 100%);
  --grad-deep-violet: linear-gradient(155deg, #6d4aff 0%, #5a36e6 50%, #3a2bd6 100%);

  /* Typography */
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-xs: 0 1px 2px rgba(12,12,16,0.05);
  --shadow-sm: 0 4px 14px -6px rgba(12,12,16,0.12);
  --shadow: 0 18px 44px -22px rgba(12,12,16,0.30);
  --shadow-lg: 0 40px 90px -30px rgba(43,31,99,0.40);
  --shadow-violet: 0 24px 50px -18px rgba(109,74,255,0.45);

  --maxw: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ----- Back-compat aliases (mapped to the new Aurora palette) ----- */
  --gold-deep: var(--violet-700);
  --gold-soft: var(--lime);
  --warm-grey: var(--slate);
  --slate-200: var(--graphite);
  --slate-300: var(--slate);
  --slate-400: var(--mist);
  --navy-700: var(--graphite);
  --navy-900: var(--ink);
  --ivory-100: var(--porcelain);
  --emerald: var(--lime-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-weight: 700; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

/* ---------- Section helpers ---------- */
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 68px 0; }
/* Light, airy "soft aurora" sections (replaces the old dark gradients) */
.section--dark,
.section--plum {
  background:
    radial-gradient(90% 120% at 12% -10%, rgba(109,74,255,0.16) 0%, rgba(109,74,255,0) 45%),
    radial-gradient(80% 120% at 92% 110%, rgba(74,215,255,0.18) 0%, rgba(74,215,255,0) 50%),
    radial-gradient(70% 90% at 60% 20%, rgba(200,245,96,0.14) 0%, rgba(200,245,96,0) 55%),
    linear-gradient(160deg, #f4f1ff 0%, #eef3ff 45%, #f7f9f4 100%);
  color: var(--slate); position: relative; overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--plum h1, .section--plum h2, .section--plum h3, .section--plum h4 { color: var(--ink); }
.section--porcelain { background: var(--porcelain); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-700);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-violet); box-shadow: 0 0 0 4px rgba(109,74,255,0.14); }
.section--dark .eyebrow, .section--plum .eyebrow { color: var(--violet-700); }

.section-title { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 760px; margin-bottom: 20px; }
.section-lead { font-size: 1.14rem; color: var(--slate); max-width: 620px; line-height: 1.65; }
.section--dark .section-lead, .section--plum .section-lead { color: var(--slate); }
.section-head { margin-bottom: 60px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .section-title, .section-head--center .section-lead { margin-inline: auto; }

/* Aurora glow blobs */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; z-index: 0; }
.glow-violet { background: #6d4aff; }
.glow-sky { background: #4ad7ff; }
.glow-lime { background: #c8f560; }
.glow-blush { background: #ff6b8b; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.97rem; letter-spacing: 0.005em;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.4s var(--ease); white-space: nowrap; line-height: 1; position: relative;
}
.btn i { font-size: 0.9em; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--violet-700); transform: translateY(-2px); box-shadow: var(--shadow-violet); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(169,224,47,0.6); font-weight: 700; }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(169,224,47,0.7); background: #d4ff70; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--violet-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(12,12,16,0.16); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-700); background: rgba(109,74,255,0.04); }
.btn-ghost-light { background: rgba(255,255,255,0.55); color: var(--ink); border-color: rgba(12,12,16,0.16); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { border-color: var(--violet); color: var(--violet-700); background: rgba(255,255,255,0.85); }
.btn-sm { padding: 11px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet-700); font-size: 0.95rem; }
.link-arrow i { transition: transform 0.3s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }
.section--dark .link-arrow, .section--plum .link-arrow { color: var(--violet-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; transition: all 0.35s var(--ease);
  padding-top: 16px; padding-bottom: 16px;
  background: linear-gradient(180deg, rgba(251,250,248,0.9) 0%, rgba(251,250,248,0) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { padding-top: 12px; padding-bottom: 12px; }
.site-header .nav-shell {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 66px; padding: 0 12px 0 18px; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  border: 1px solid rgba(109,74,255,0.1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 10px 30px -16px rgba(58,43,214,0.28), 0 2px 8px rgba(12,12,16,0.04);
  transition: all 0.35s var(--ease);
}
/* Subtle gradient hairline along the top of the pill */
.site-header .nav-shell::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(109,74,255,0.35), rgba(74,215,255,0.3), transparent);
  opacity: 0.7;
}
.site-header.scrolled .nav-shell {
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 16px 40px -18px rgba(58,43,214,0.4), 0 3px 12px rgba(12,12,16,0.06);
  border-color: rgba(109,74,255,0.16);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand-mark {
  position: relative; width: 42px; height: 42px; object-fit: contain; display: block;
  transition: transform 0.4s var(--ease-spring);
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.05) rotate(-2deg); }
.brand-name { font-family: var(--font-display); font-size: 1.26rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.brand-name span { background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-links > li > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans);
  font-weight: 500; font-size: 0.92rem; color: var(--graphite); padding: 9px 14px;
  border-radius: 999px; background: none; border: none; cursor: pointer; transition: all 0.25s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--violet-700); background: rgba(109,74,255,0.07); }
.nav-links > li > button i { transition: transform 0.3s var(--ease); }
.nav-links > li > button:hover i, .site-header.mega-open .nav-links > li > button i { transform: rotate(180deg); }
/* Active link: violet-tinted pill + underline accent */
.nav-links a.active, .nav-links button.active {
  color: var(--violet-700); font-weight: 600; background: rgba(109,74,255,0.09);
}
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 16px; height: 2.5px; border-radius: 999px; background: var(--grad-violet);
}
.nav-cta { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
/* Premium Apply Now button in header */
.nav-apply {
  position: relative; overflow: hidden; padding: 11px 20px !important; font-weight: 700; letter-spacing: 0.01em;
  background: var(--grad-violet); border: none;
  box-shadow: 0 10px 24px -10px rgba(109,74,255,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav-apply::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.nav-apply:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(109,74,255,0.8), inset 0 1px 0 rgba(255,255,255,0.3); }
.nav-apply:hover::after { left: 130%; }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(-10px); top: 92px;
  width: min(1100px, calc(100vw - 40px)); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all 0.35s var(--ease); z-index: 999; overflow: hidden;
}
.mega.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-inner { padding: 30px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; transition: all 0.2s var(--ease); }
.mega-item:hover { background: var(--porcelain); transform: translateX(3px); }
.mega-item .mi-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--porcelain); display: grid; place-items: center; color: var(--violet-700); flex-shrink: 0; transition: all 0.25s var(--ease); font-size: 0.95rem; }
.mega-item:hover .mi-icon { background: var(--grad-violet); color: #fff; }
.mega-item .mi-title { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.mega-aside { background: var(--grad-deep-violet); border-radius: var(--radius); padding: 28px; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.mega-aside::before { content: ''; position: absolute; width: 160px; height: 160px; background: var(--violet); filter: blur(70px); opacity: 0.5; top: -40px; right: -30px; }
.mega-aside h4 { color: #fff; font-size: 1.3rem; position: relative; }
.mega-aside p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin: 0 0 20px; position: relative; }
.mega-tracks { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 11px; position: relative; }
.mega-tracks li { display: flex; align-items: center; gap: 11px; font-size: 0.9rem; }
.mega-tracks li i { color: var(--lime); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; color: var(--ink); cursor: pointer; width: 40px; height: 40px; border-radius: 12px; }
.nav-toggle:hover { background: rgba(12,12,16,0.05); }
.mobile-nav { position: fixed; inset: 0 0 0 auto; width: min(90vw, 400px); z-index: 1100; background: var(--ink); color: rgba(255,255,255,0.72); padding: 26px 24px; transform: translateX(100%); transition: transform 0.45s var(--ease); overflow-y: auto; }
.mobile-nav.open { transform: translateX(0); box-shadow: -30px 0 80px rgba(0,0,0,0.5); }
.mobile-backdrop { position: fixed; inset: 0; background: rgba(8,8,12,0.55); backdrop-filter: blur(4px); z-index: 1090; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.mobile-backdrop.open { opacity: 1; visibility: visible; }
.mobile-nav .mn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav .mn-head .brand-name { color: #fff; }
.mobile-nav a { display: block; padding: 13px 0; font-size: 1.04rem; color: rgba(255,255,255,0.78); border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav a:hover { color: var(--lime); }
.mn-section-title { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lime); margin: 22px 0 6px; font-weight: 700; }
.mn-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.mn-close { background: rgba(255,255,255,0.08); border: none; color: #fff; font-size: 1.1rem; cursor: pointer; width: 40px; height: 40px; border-radius: 12px; }

/* ---------- HERO (all new) ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); padding: 84px 0 96px; }
.hero .glow-violet { width: 520px; height: 520px; top: -160px; right: -120px; opacity: 0.28; }
.hero .glow-sky { width: 360px; height: 360px; bottom: -120px; left: -80px; opacity: 0.22; }
.hero .glow-lime { width: 280px; height: 280px; top: 40%; left: 42%; opacity: 0.14; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; position: relative; z-index: 2; }

.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 8px 7px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--graphite); background: var(--white); box-shadow: var(--shadow-xs); margin-bottom: 28px; }
.hero-badge .pin { background: var(--grad-violet); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; margin-bottom: 24px; letter-spacing: -0.035em; }
.hero h1 .grad { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .mark { position: relative; display: inline-block; }
.hero h1 .mark::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: 8%; height: 28%; background: var(--lime); z-index: -1; border-radius: 4px; opacity: 0.9; transform: rotate(-1deg); }
.hero-sub { font-size: 1.16rem; color: var(--slate); max-width: 540px; margin-bottom: 36px; line-height: 1.68; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--graphite); font-weight: 500; }
.hero-trust i { color: var(--violet-700); }

/* Hero visual — glass program showcase cluster.
   Only TWO floating elements remain (top stat chip + bottom live pill); both
   sit in reserved top/bottom padding. The related-track chips live INSIDE the
   card, so nothing can ever overlap the card text. */
.showcase {
  position: relative; max-width: 460px; margin-inline: auto;
  padding: 56px 24px 52px; /* reserved space for the top & bottom floats only */
}
.showcase::before {
  content: ''; position: absolute; inset: 24px -4px; border-radius: 44px;
  background: radial-gradient(75% 70% at 72% 12%, rgba(109,74,255,0.30), rgba(109,74,255,0) 60%),
              radial-gradient(65% 65% at 12% 92%, rgba(74,215,255,0.22), rgba(74,215,255,0) 60%),
              radial-gradient(60% 50% at 90% 95%, rgba(200,245,96,0.18), rgba(200,245,96,0) 60%);
  filter: blur(20px); z-index: 0;
}

/* Stacked depth layers behind the card */
.sc-stack {
  position: absolute; left: 50%; top: 56px; width: 80%; height: calc(100% - 108px);
  border-radius: 24px; background: var(--white); border: 1px solid var(--line); z-index: 1;
  transform: translateX(-50%);
}
.sc-stack-1 { top: 50px; width: 90%; box-shadow: 0 18px 40px -28px rgba(58,43,214,0.4); opacity: 0.85; }
.sc-stack-2 { top: 44px; width: 82%; box-shadow: 0 10px 30px -28px rgba(58,43,214,0.4); opacity: 0.55; }

/* Main card */
.sc-card { position: relative; z-index: 2; }
.sc-main {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid var(--line); border-radius: 24px; padding: 0 26px 26px;
  box-shadow: 0 40px 80px -30px rgba(58,43,214,0.38), 0 2px 8px rgba(12,12,16,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
  animation: sc-float 8s var(--ease) infinite;
}
/* Gradient accent bar across the top of the card */
.sc-accent {
  position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--grad-aurora); z-index: 4;
}
/* Soft decorative mesh in the top-right corner */
.sc-mesh {
  position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; z-index: 0;
  background: radial-gradient(circle at 65% 35%, rgba(109,74,255,0.14), rgba(109,74,255,0) 70%);
  pointer-events: none;
}
.sc-main > *:not(.sc-accent):not(.sc-mesh) { position: relative; z-index: 1; }

.sc-main-head { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; margin-bottom: 18px; }
.sc-icon {
  position: relative; width: 56px; height: 56px; border-radius: 18px;
  background: var(--grad-violet); color: #fff; display: grid; place-items: center; font-size: 1.5rem;
  box-shadow: 0 12px 28px -8px rgba(109,74,255,0.6), inset 0 1px 0 rgba(255,255,255,0.35);
}
.sc-icon::after {
  content: ''; position: absolute; inset: -5px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(109,74,255,0.4), rgba(74,215,255,0.4));
  z-index: -1; filter: blur(8px); opacity: 0.7;
}
.sc-tag {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--grad-violet); padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(109,74,255,0.7);
}
.sc-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 4px; line-height: 1.15; }
.sc-sub { font-size: 0.9rem; color: var(--slate); margin: 0 0 14px; }

/* Rating row */
.sc-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.sc-stars { display: inline-flex; gap: 2px; color: #f6b73c; font-size: 0.82rem; }
.sc-rating-num { font-weight: 800; color: var(--ink); font-size: 0.9rem; }
.sc-rating-by { font-size: 0.78rem; color: var(--mist); font-weight: 500; }

/* Meta — now a 3-up stat strip */
.sc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.sc-meta-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--porcelain); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px;
}
.sc-meta-item i { color: var(--violet); font-size: 0.95rem; margin-bottom: 3px; }
.sc-meta-item em { font-style: normal; font-weight: 800; font-size: 0.95rem; color: var(--ink); line-height: 1; }
.sc-meta-item small { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--mist); }

.sc-progress { margin-bottom: 20px; }
.sc-progress-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--graphite); margin-bottom: 9px; }
.sc-progress-row span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.sc-progress-row i { color: var(--violet); }
.sc-progress-pct { font-family: var(--font-display); font-weight: 800; font-size: 1rem; background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sc-bar { height: 9px; border-radius: 999px; background: var(--porcelain-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(12,12,16,0.08); }
.sc-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad-aurora); box-shadow: 0 0 12px rgba(109,74,255,0.5); animation: sc-fill 1.6s var(--ease-spring) forwards; transform-origin: left; }
@keyframes sc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sc-avatars { display: flex; align-items: center; gap: 0; }
.sc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; color: #fff; border: 2.5px solid var(--white); margin-left: -10px; box-shadow: 0 4px 10px -4px rgba(12,12,16,0.3); }
.sc-av:first-child { margin-left: 0; }
.sc-av.av-1 { background: var(--grad-violet); } .sc-av.av-2 { background: linear-gradient(135deg,#4ad7ff,#3a7bff); }
.sc-av.av-3 { background: linear-gradient(135deg,#ff6b8b,#ff8f5e); } .sc-av.av-4 { background: var(--ink); }
.sc-av-label { font-size: 0.8rem; font-weight: 600; color: var(--slate); margin-left: 12px; }

/* Related tracks — inside the card */
.sc-related { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sc-related-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
.sc-related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-rchip { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--graphite); background: var(--porcelain); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; max-width: 100%; transition: transform 0.25s var(--ease), border-color 0.25s; }
.sc-rchip:hover { transform: translateY(-2px); border-color: var(--violet); }
.sc-rchip i { color: var(--violet); flex-shrink: 0; }

/* Floating elements — only top & bottom, in reserved padding (never over card) */
.sc-float { position: absolute; z-index: 3; background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px -16px rgba(58,43,214,0.4); }
.sc-float-fields { top: 6px; right: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; animation: sc-float 7s var(--ease) infinite; animation-delay: -2s; }
.scf-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.scf-label { font-size: 0.8rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.scf-label small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--mist); }
.sc-float-live { bottom: 8px; left: 10px; padding: 11px 16px; font-size: 0.82rem; font-weight: 600; color: var(--graphite); display: flex; align-items: center; gap: 9px; animation: sc-float 9s var(--ease) infinite; animation-delay: -4s; }
.sc-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 0 rgba(169,224,47,0.5); animation: sc-pulse 2s infinite; }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(169,224,47,0.5); } 70% { box-shadow: 0 0 0 10px rgba(169,224,47,0); } 100% { box-shadow: 0 0 0 0 rgba(169,224,47,0); } }

@keyframes sc-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.2rem; color: var(--mist); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; }
.marquee-track span::before { content: '✦'; color: var(--violet); font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-xs); transition: all 0.4s var(--ease); height: 100%; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-violet); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(109,74,255,0.25); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--porcelain); display: grid; place-items: center; color: var(--violet-700); font-size: 1.3rem; margin-bottom: 22px; transition: all 0.4s var(--ease); }
.card:hover .card-icon { background: var(--grad-violet); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 1.28rem; margin-bottom: 11px; }
.card p { color: var(--slate); font-size: 0.96rem; margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Reusable two-column "split" layouts. These replace hard-coded inline
   grid-template-columns so they can collapse to a single column on mobile
   (inline styles can't be overridden by media queries). */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-2-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-asym { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
/* Grid items default to min-width:auto, which lets a wide child (e.g. a long
   heading) force the track wider than the container. min-width:0 lets the
   columns shrink to fit the viewport — essential for mobile single-column. */
.split-2 > *, .split-2-top > *, .split-asym > *, .detail-layout > *,
.grid > * { min-width: 0; }

/* Long unbreakable strings (emails, URLs) inside cards must wrap instead of
   forcing the card/flex track wider than the viewport. The contact-card email
   finance@leagacylearning.com was overflowing at 320px. */
.card a, .card { overflow-wrap: anywhere; word-break: break-word; }
/* A flex card (icon + text) must let its text column shrink so long values
   wrap rather than pushing the card past the viewport edge. */
.card > div { min-width: 0; }

/* Bento variation for category preview */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }

/* Program category card */
.prog-card { display: flex; flex-direction: column; }
.prog-card .pc-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.prog-card h3 { font-size: 1.3rem; margin: 0; }
.prog-card .pc-desc { color: var(--slate); font-size: 0.95rem; margin-bottom: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag { font-size: 0.74rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--porcelain); color: var(--graphite); border: 1px solid var(--line); }
.tag-gold, .tag-violet { background: rgba(109,74,255,0.1); color: var(--violet-700); border-color: rgba(109,74,255,0.2); }
.tag-emerald { background: rgba(169,224,47,0.16); color: #5f8a00; border-color: rgba(169,224,47,0.35); }
.tag-blue { background: rgba(74,215,255,0.14); color: #1392b8; border-color: rgba(74,215,255,0.3); }
.tracks-line { font-size: 0.8rem; color: var(--mist); margin-bottom: 18px; }
.prog-card .pc-foot { margin-top: auto; }

/* ---------- Comparison ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.compare-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; position: relative; transition: all 0.4s var(--ease); }
.compare-card.featured { background: var(--grad-deep-violet); color: rgba(255,255,255,0.82); border: none; transform: scale(1.03); overflow: hidden; }
.compare-card.featured::after { content: ''; position: absolute; width: 200px; height: 200px; background: var(--violet); filter: blur(80px); opacity: 0.4; top: -50px; right: -40px; }
.compare-card.featured h3, .compare-card.featured .cc-dur { color: #fff; }
.compare-card:hover { box-shadow: var(--shadow); }
.cc-badge { position: absolute; top: 22px; right: 22px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); z-index: 2; }
.cc-dur { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin: 6px 0 4px; position: relative; }
.cc-best { font-size: 0.86rem; color: var(--slate); margin-bottom: 24px; position: relative; }
.compare-card.featured .cc-best { color: rgba(255,255,255,0.6); }
.cc-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 13px; position: relative; }
.cc-list li { display: flex; gap: 11px; font-size: 0.93rem; }
.cc-list li i { color: var(--violet); margin-top: 4px; flex-shrink: 0; font-size: 0.85rem; }
.compare-card.featured .cc-list li i { color: var(--lime); }

/* ---------- Steps / journey ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 34px 30px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: all 0.4s var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--violet-700); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.step-num::before { content: ''; width: 28px; height: 2px; background: var(--grad-violet); }
.step h3 { font-size: 1.26rem; }
.step p { color: var(--slate); margin: 0; font-size: 0.95rem; }

.journey-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.journey-item { display: flex; gap: 16px; padding: 22px; background: rgba(255,255,255,0.78); border: 1px solid var(--line); border-radius: 18px; transition: all 0.35s var(--ease); position: relative; z-index: 2; box-shadow: var(--shadow-xs); }
.journey-item:hover { background: #fff; border-color: rgba(109,74,255,0.3); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.journey-item .ji-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(109,74,255,0.12); color: var(--violet-700); display: grid; place-items: center; flex-shrink: 0; transition: all 0.3s var(--ease); }
.journey-item:hover .ji-icon { background: var(--grad-violet); color: #fff; }
.journey-item .ji-step { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.journey-item h4 { color: var(--ink); font-size: 1.04rem; margin: 2px 0 4px; font-family: var(--font-sans); font-weight: 700; }
.journey-item p { font-size: 0.84rem; color: var(--slate); margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (min-width: 901px) and (max-width: 1100px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
.testi-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px 28px;
  box-shadow: 0 18px 40px -28px rgba(58,43,214,0.3), 0 1px 3px rgba(12,12,16,0.03);
  height: 100%; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* gradient accent bar that grows on hover */
.testi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; transform: scaleX(0); transform-origin: left;
  background: var(--grad-aurora); transition: transform 0.45s var(--ease);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(58,43,214,0.45), 0 4px 12px rgba(12,12,16,0.05); border-color: rgba(109,74,255,0.22); }
.testi-card:hover::before { transform: scaleX(1); }
/* big decorative quote glyph in the corner */
.testi-glyph {
  position: absolute; top: 22px; right: 24px; font-size: 2.6rem; line-height: 1;
  color: transparent; background: linear-gradient(135deg, rgba(109,74,255,0.18), rgba(74,215,255,0.18));
  -webkit-background-clip: text; background-clip: text; transition: transform 0.45s var(--ease);
}
.testi-card:hover .testi-glyph { transform: scale(1.12) rotate(-6deg); }
.testi-stars { display: inline-flex; gap: 3px; color: #f6b73c; font-size: 0.82rem; margin-bottom: 16px; }
.testi-card p { position: relative; z-index: 1; font-size: 1.0rem; color: var(--ink-soft); line-height: 1.7; margin: 0 0 24px; flex: 1; font-weight: 450; }
.testi-foot { display: flex; align-items: center; gap: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 14px; background: var(--grad-violet); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; flex-shrink: 0;
  box-shadow: 0 8px 18px -8px rgba(109,74,255,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
}
.testi-id { min-width: 0; }
.testi-foot .ti-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.testi-foot .ti-role { font-size: 0.8rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testi-seg {
  margin-left: auto; flex-shrink: 0; align-self: flex-start;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--violet-700); background: rgba(109,74,255,0.1); padding: 5px 10px; border-radius: 999px;
}
/* Varied avatar colours for visual life */
.testi-av-1 .avatar { background: var(--grad-violet); box-shadow: 0 8px 18px -8px rgba(109,74,255,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.testi-av-2 .avatar { background: linear-gradient(135deg, #4ad7ff, #3a7bff); box-shadow: 0 8px 18px -8px rgba(58,123,255,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.testi-av-3 .avatar { background: linear-gradient(135deg, #ff6b8b, #ff8f5e); box-shadow: 0 8px 18px -8px rgba(255,107,139,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.testi-av-4 .avatar { background: linear-gradient(135deg, #19c37d, #0fa968); box-shadow: 0 8px 18px -8px rgba(15,169,104,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
.testi-av-5 .avatar { background: linear-gradient(135deg, #9b6bff, #6d4aff); box-shadow: 0 8px 18px -8px rgba(155,107,255,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }

/* Featured spotlight card (first one) */
.testi-feature {
  grid-column: span 1;
  background: linear-gradient(150deg, #3a2bd6 0%, #6d4aff 55%, #8b6bff 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 30px 60px -26px rgba(58,43,214,0.6);
}
.testi-feature::before { display: none; }
.testi-feature .testi-glyph { background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.15)); -webkit-background-clip: text; background-clip: text; }
.testi-feature .testi-stars { color: #ffd76a; }
.testi-feature p { color: rgba(255,255,255,0.95); font-size: 1.05rem; }
.testi-feature .testi-foot { border-top-color: rgba(255,255,255,0.18); }
.testi-feature .avatar { background: rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.testi-feature .ti-name { color: #fff; }
.testi-feature .ti-role { color: rgba(255,255,255,0.75); }
.testi-feature .testi-seg { color: #fff; background: rgba(255,255,255,0.18); }
.testi-feature:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -28px rgba(58,43,214,0.7); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.stat { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: rgba(255,255,255,0.7); border: 1px solid var(--line); backdrop-filter: blur(8px); box-shadow: var(--shadow-xs); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 700; color: var(--ink); }
.stat .num .accent { background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 0.9rem; color: var(--slate); margin-top: 6px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; background: var(--white); overflow: hidden; transition: all 0.3s var(--ease); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(109,74,255,0.3); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 23px 26px; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q i { color: var(--violet-700); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--slate); font-size: 0.98rem; line-height: 1.7; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--graphite); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 13px; font-family: var(--font-sans); font-size: 0.97rem; color: var(--ink); background: var(--paper); transition: all 0.25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--white); box-shadow: 0 0 0 4px rgba(109,74,255,0.12); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--mist); margin-top: 14px; }
.form-success { display: none; padding: 16px 18px; border-radius: 13px; background: rgba(169,224,47,0.16); border: 1px solid rgba(169,224,47,0.4); color: #5f8a00; font-weight: 600; font-size: 0.92rem; margin-bottom: 18px; }
.form-success.show { display: flex; align-items: center; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 80px 0 32px; position: relative; overflow: hidden; }
.site-footer .glow-violet { width: 400px; height: 400px; top: -150px; left: 30%; opacity: 0.16; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; position: relative; z-index: 2; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.5); margin: 20px 0 22px; max-width: 300px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact .fc-item { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: fit-content; max-width: 100%; }
.footer-contact .fc-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center; color: var(--lime); font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}
.footer-contact .fc-text { font-size: 0.92rem; color: rgba(255,255,255,0.7); transition: color 0.2s; word-break: break-word; }
.footer-contact .fc-item:hover .fc-icon { background: var(--grad-violet); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-contact .fc-item:hover .fc-text { color: #fff; }
.footer-col h5 { color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--lime); }
.footer-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.7; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px; position: relative; z-index: 2; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(80% 120% at 88% -20%, rgba(109,74,255,0.20) 0%, rgba(109,74,255,0) 50%),
    radial-gradient(70% 120% at 5% 120%, rgba(74,215,255,0.20) 0%, rgba(74,215,255,0) 55%),
    radial-gradient(60% 90% at 55% 30%, rgba(200,245,96,0.13) 0%, rgba(200,245,96,0) 60%),
    linear-gradient(160deg, #f3f0ff 0%, #edf3ff 50%, #f7f9f4 100%);
  color: var(--slate); padding: 92px 0 84px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .glow { display: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--ink); font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 780px; }
.page-hero p { color: var(--slate); font-size: 1.14rem; max-width: 640px; margin-top: 16px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 0.85rem; color: var(--mist); margin-bottom: 22px; }
.breadcrumb a { color: var(--graphite); }
.breadcrumb a:hover { color: var(--violet-700); }
.breadcrumb i { font-size: 0.55rem; }

.skill-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-badge { padding: 10px 17px; border-radius: 13px; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--graphite); transition: all 0.3s var(--ease); }
.skill-badge:hover { border-color: var(--violet); color: var(--violet-700); transform: translateY(-2px); background: rgba(109,74,255,0.04); }
.section--dark .skill-badge, .section--plum .skill-badge { background: rgba(255,255,255,0.7); border-color: rgba(109,74,255,0.18); color: var(--graphite); }

.tools-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-chip { display: inline-flex; align-items: center; gap: 9px; padding: 12px 19px; border-radius: 13px; background: var(--porcelain); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.tool-chip i { color: var(--violet-700); }

.module-list { display: flex; flex-direction: column; gap: 14px; }
.module { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; display: flex; gap: 18px; transition: all 0.3s var(--ease); }
.module:hover { box-shadow: var(--shadow-sm); border-color: rgba(109,74,255,0.25); transform: translateX(4px); }
.module .m-num { width: 44px; height: 44px; border-radius: 13px; background: var(--grad-violet); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.module h4 { font-family: var(--font-sans); font-weight: 700; font-size: 1.06rem; margin: 0 0 5px; }
.module p { margin: 0; font-size: 0.92rem; color: var(--slate); }
.module .m-period { font-size: 0.74rem; color: var(--violet-700); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--graphite); }
.check-list li i { color: var(--lime-deep); margin-top: 4px; flex-shrink: 0; }
.section--dark .check-list li, .section--plum .check-list li { color: var(--graphite); }

.callout { background: var(--porcelain); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 0 16px 16px 0; padding: 22px 26px; font-size: 0.92rem; color: var(--slate); line-height: 1.7; }
.callout strong { color: var(--ink); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); margin-bottom: 36px; }
.filter-bar .field { margin: 0; flex: 1; min-width: 150px; }
.filter-bar label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.results-count { font-size: 0.9rem; color: var(--slate); margin-bottom: 24px; }
.results-count b { color: var(--ink); }

/* Sticky mobile CTA */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; background: rgba(251,250,248,0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px 16px; gap: 10px; }
.sticky-cta .btn { flex: 1; }
.float-contact { position: fixed; bottom: 24px; right: 24px; z-index: 850; width: 58px; height: 58px; border-radius: 18px; background: var(--grad-violet); color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow-violet); transition: all 0.35s var(--ease-spring); }
.float-contact:hover { transform: scale(1.1) rotate(-6deg); }

/* Quiz */
.quiz-card { background: var(--white); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.quiz-q { display: none; }
.quiz-q.active { display: block; animation: fadeUp 0.4s var(--ease); }
.quiz-options { display: grid; gap: 12px; margin-top: 24px; }
.quiz-opt { text-align: left; padding: 17px 22px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600; color: var(--graphite); cursor: pointer; transition: all 0.25s var(--ease); display: flex; align-items: center; gap: 13px; }
.quiz-opt:hover { border-color: var(--violet); background: rgba(109,74,255,0.04); color: var(--violet-700); transform: translateX(5px); }
.quiz-opt i { color: var(--violet-700); }
.quiz-progress { height: 7px; border-radius: 999px; background: var(--porcelain-2); overflow: hidden; margin-bottom: 28px; }
.quiz-progress span { display: block; height: 100%; background: var(--grad-violet); transition: width 0.4s var(--ease); }
.quiz-result { display: none; text-align: center; animation: fadeUp 0.4s var(--ease); }
.quiz-result.show { display: block; }

/* Blog cards */
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: all 0.4s var(--ease); height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-thumb { height: 160px; background: var(--grad-deep-violet); display: grid; place-items: center; color: #fff; font-size: 2.6rem; position: relative; overflow: hidden; }
.blog-thumb::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; filter: blur(50px); opacity: 0.6; }
.blog-thumb:nth-child(odd)::before { background: var(--violet); top: -40px; right: -30px; }
.blog-thumb i { position: relative; z-index: 2; }
.blog-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.blog-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-700); margin-bottom: 11px; }
.blog-card h3 { font-size: 1.18rem; line-height: 1.28; margin-bottom: 11px; }
.blog-card p { font-size: 0.92rem; color: var(--slate); margin: 0 0 16px; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--mist); }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .sc-main, .sc-float, .sc-live-dot, .sc-bar span, .marquee-track { animation: none !important; } .sc-bar span { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
/* Tighten nav spacing on mid widths so 8 links + CTAs fit before collapse */
@media (max-width: 1180px) {
  .site-header .nav-shell { gap: 14px; }
  .nav-links { gap: 0; }
  .nav-links > li > a, .nav-links > li > button { padding: 9px 9px; font-size: 0.88rem; }
  .nav-cta { gap: 7px; }
}
/* Collapse the nav links to the hamburger menu when they stop fitting.
   The 'Apply Now' button stays visible at every width. */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  /* The mega menu is a desktop hover dropdown; on mobile the hamburger menu
     handles navigation. Keep it fully out of layout so it never adds to the
     page width (prevents horizontal scroll). */
  .mega { display: none !important; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mega-inner { grid-template-columns: 1fr; }
  .mega-aside { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .showcase { max-width: 460px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  /* Collapse all two-column split layouts to a single stacked column */
  .split-2, .split-2-top, .split-asym, .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-feature { grid-column: span 1; }
  .bento > * { grid-column: span 6; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-card.featured { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .journey-track { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .field-row { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  /* The sticky bottom bar already provides 'Talk to Advisor' + 'Apply Now',
     so the floating chat button is redundant on mobile — hide it to avoid
     overlap/clutter. */
  .float-contact { display: none; }
}

/* ---- Phones (≤ 640px) ---- */
@media (max-width: 640px) {
  .container { padding-inline: 18px; }

  /* Header pill: tighten so brand + Apply Now + hamburger fit without
     overflowing the viewport (was causing horizontal scroll). */
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .site-header .nav-shell { height: 60px; gap: 10px; padding: 0 8px 0 12px; min-width: 0; }
  /* Allow the brand to shrink and truncate so the CTA group always fits */
  .brand { gap: 9px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
  .brand-name { font-size: 1.08rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-cta { gap: 6px; flex-shrink: 0; }
  .nav-apply { padding: 9px 14px; font-size: 0.84rem; white-space: nowrap; }
  .nav-apply i { display: none; } /* drop the arrow to save width */
  .nav-toggle { width: 38px; height: 38px; flex-shrink: 0; }

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

  /* Hero: calmer spacing + headline that scales with the viewport */
  .hero { padding: 40px 0 60px; }
  .hero-grid { gap: 40px; }
  .hero-badge { margin-bottom: 20px; font-size: 0.78rem; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.85rem); line-height: 1.08; margin-bottom: 18px; }
  .hero-sub { font-size: 1.02rem; line-height: 1.6; margin-bottom: 28px; }
  .hero-trust { margin-top: 30px; padding-top: 22px; gap: 9px 16px; }
  .hero-trust span { font-size: 0.82rem; }

  /* Keep decorative glows inside the viewport so nothing looks "cut off" */
  .hero { overflow: hidden; }
  .hero .glow-violet { width: 320px; height: 320px; top: -120px; right: -110px; opacity: 0.22; }
  .hero .glow-sky { width: 240px; height: 240px; opacity: 0.16; }
  .hero .glow-lime { display: none; }

  /* Full-width, comfortably tappable CTA buttons stacked vertically */
  .btn-group { flex-direction: column; gap: 12px; }
  .btn-group .btn { width: 100%; justify-content: center; }

  /* Showcase card */
  .showcase { max-width: 100%; padding: 52px 6px 50px; }
  .sc-main { padding: 0 20px 22px; }
  .sc-main-head { padding-top: 22px; }
  .sc-meta { gap: 8px; }
  .sc-meta-item { padding: 9px 8px; }
  .sc-meta-item em { font-size: 0.85rem; }
  .sc-meta-item small { font-size: 0.6rem; }
  .sc-float-fields { top: 2px; right: 4px; padding: 10px 13px; }
  .scf-num { font-size: 1.6rem; }
  .sc-float-live { bottom: 4px; left: 4px; padding: 9px 13px; font-size: 0.76rem; }

  /* Sections: reduce vertical padding so pages aren't overly long on mobile */
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }

  /* Gradient/feature banners with big inline padding (48px) are too tight on a
     phone — pull the padding in so content has room to breathe */
  .cta-banner-grid { padding: 32px 22px !important; }
  .reveal[style*="padding:48px"], .reveal[style*="padding: 48px"] { padding: 30px 22px !important; }
  .reveal[style*="padding:40px"], .reveal[style*="padding: 40px"] { padding: 28px 20px !important; }

  /* Headings scale down a touch on phones */
  .section-title { font-size: 1.7rem !important; line-height: 1.15; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .page-hero p { font-size: 1rem; }

  /* The program-detail sticky sidebar should not stay sticky once stacked */
  .detail-side { position: static !important; padding-top: 8px !important; }
}

/* ---- Small phones (≤ 400px) ---- */
@media (max-width: 400px) {
  .container { padding-inline: 16px; }
  /* Extra-tight header for narrow phones (≤400px e.g. iPhone SE / 320px) */
  .site-header .nav-shell { gap: 8px; padding: 0 7px 0 10px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 0.95rem; }
  .nav-cta { gap: 5px; }
  .nav-apply { padding: 8px 11px; font-size: 0.78rem; }
  .nav-toggle { width: 36px; height: 36px; }
  .hero h1 { font-size: clamp(1.8rem, 8.8vw, 2.3rem); }
  .hero-sub { font-size: 0.96rem; }
  .hero-badge { padding: 6px 12px 6px 6px; }
  .hero-badge .pin { font-size: 0.62rem; padding: 3px 8px; }
  /* The decorative highlight under "technology" can wrap oddly at tiny widths */
  .hero h1 .mark::after { bottom: 6%; height: 24%; }
  .sticky-cta { padding: 10px 12px; gap: 8px; }
  .sticky-cta .btn { font-size: 0.84rem; padding: 11px 8px; }
}
