/* ============================================================
   SkillShekhai — public storefront design system
   Palette: blue primary, green "free" accent, warm off-white neutrals
   Type: Inter (single family, weights 400-800)
   ============================================================ */

:root {
  /* ---------------------------------------------------------------------
   * Design tokens — SkillShekhai Visual Redesign, Deploy 1.
   *
   * Every variable NAME is unchanged from the previous palette on purpose:
   * ~450 rules across this file already reference these tokens, so swapping
   * only the VALUES re-skins the whole site without editing a single HTML
   * tag. That keeps this deploy small, reviewable and trivially revertible.
   *
   * Each colour is declared twice: a hex fallback first, then the oklch
   * value from the design spec. Browsers that don't understand oklch simply
   * ignore the second declaration and keep the hex — no @supports needed.
   * ------------------------------------------------------------------- */

  /* Surfaces */
  --bg: #F7F5F0;                      /* warm off-white page background */
  --bg: oklch(97% 0.012 80);
  --surface: #FCFBFA;                 /* cards, panels */
  --surface: oklch(99% 0.004 80);

  /* Text */
  --ink: #181A2A;                     /* primary text; also footer bg */
  --ink: oklch(18% 0.02 280);
  --muted: #5C5E6E;                   /* secondary text */
  --muted: oklch(46% 0.02 280);
  --line: #DCDCE2;                    /* borders, dividers */
  --line: oklch(90% 0.012 280);

  /* Brand */
  --brand: #2F6FED;
  --brand: oklch(60% 0.19 258);
  --brand-dark: #1F4FB8;              /* hover / active */
  --brand-dark: oklch(46% 0.18 258);
  --brand-soft: #E8EEFD;              /* tinted chips and backgrounds */
  --brand-soft: oklch(94% 0.03 258);
  /* Inline text links use the darker brand. Measured: --brand on --bg is
   * 4.17:1, which fails WCAG AA (4.5:1) for normal-size text; --brand-dark
   * reaches 7.4:1. --brand is unchanged and still used for buttons, icons
   * and large text, where it passes comfortably. */
  --brand-link: var(--brand-dark);

  /* Status. --accent/--accent-soft/--amber keep their old names because
   * existing rules use them; --success/--warning are added as aliases so
   * markup written against the new spec names works too. */
  --accent: #3ECF7A;                  /* free tag, verified badge */
  --accent: oklch(78% 0.19 140);
  --accent-soft: #DFF6E8;
  --accent-soft: oklch(93% 0.07 140);
  --success: var(--accent);
  --success-soft: var(--accent-soft);

  --amber: #D98A2B;                   /* discount badge */
  --amber: oklch(65% 0.18 60);
  --amber-soft: #F7EAD8;
  --amber-soft: oklch(93% 0.06 60);
  --warning: var(--amber);
  --warning-soft: var(--amber-soft);

  /* Shape */
  --radius: 20px;                     /* cards, sections */
  --radius-sm: 12px;                  /* inputs, small controls */
  --radius-pill: 999px;               /* buttons, chips, pills */

  /* Elevation */
  --shadow: 0 1px 2px rgba(24, 26, 42, .06);
  --shadow: 0 1px 2px oklch(20% 0.02 258 / 0.06);
  --shadow-lg: 0 20px 40px -14px rgba(38, 54, 92, .22);
  --shadow-lg: 0 20px 40px -14px oklch(30% 0.08 258 / 0.22);

  /* Layout */
  --wrap: 1240px;

  /* Type — the spec calls for a single family. --font-display is kept and
   * repointed at Inter rather than deleted, since removing it would break
   * every heading rule that references it. */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-body);

  /* Hero gradient (used from Deploy 3 onward; harmless until then) */
  --hero-gradient: linear-gradient(135deg, #1F4FB8, #2C6BD4 50%, #6FA8DC);
  --hero-gradient: linear-gradient(135deg, oklch(45% 0.16 258), oklch(52% 0.18 245) 50%, oklch(66% 0.14 225));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
a { color: var(--brand-link); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 24px; font-size: 16px; }

/* ---- Header / nav ---- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink); flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; display: block; border-radius: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 18px;
}
/* flex-wrap lets the nav reflow on narrow screens without a breakpoint —
   the search and CTA drop to a second line rather than overflowing. */
.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.main-nav > a { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.main-nav > a:hover { color: var(--brand); }
.nav-cta { background: var(--brand-soft); color: var(--brand-dark) !important; padding: 9px 18px; border-radius: var(--radius-pill); font-weight: 700 !important; font-size: 14px; transition: background .2s ease, color .2s ease; }
.nav-cta:hover { background: var(--brand); color: #fff !important; }
/* Search pill: input + inline magnifier, per the design header. */
.nav-search { display: flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 6px 4px 14px; transition: border-color .2s ease; }
.nav-search:focus-within { border-color: var(--brand); }
.nav-search input { border: 0; background: transparent; padding: 6px 0; font: inherit; font-size: 14px; width: 150px; color: var(--ink); }
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { outline: none; }
.nav-search button { border: 0; background: transparent; padding: 6px 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; border-radius: var(--radius-pill); }
.nav-search button:hover { color: var(--brand); }
.nav-search svg { width: 17px; height: 17px; display: block; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---- Hero (signature) ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  padding: clamp(32px, 5vw, 52px) 0;
  color: #fff;
}
/* Two soft blurred blobs behind the hero copy, per the design. Purely
   decorative: pointer-events:none so they can never intercept a click on
   the search box, and both are disabled under prefers-reduced-motion by
   the global rule added in Deploy 2. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 420px; height: 420px; top: -140px; right: -80px;
  background: rgba(62, 207, 122, .30);
  background: oklch(78% 0.19 140 / 0.32);
  filter: blur(60px);
  animation: heroBlob 9s ease-in-out infinite alternate;
}
.hero::after {
  width: 340px; height: 340px; bottom: -160px; left: -60px;
  background: rgba(120, 180, 235, .30);
  background: oklch(70% 0.15 225 / 0.32);
  filter: blur(70px);
  animation: heroBlob 11s ease-in-out infinite alternate-reverse;
}
@keyframes heroBlob {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, 24px, 0) scale(1.08); }
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 920px; margin: 0 auto; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: #dbe6fb; margin: 0 0 18px; }
.hero__title { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; line-height: 1.15; margin: 0; }
.hero__rotator { color: #fcd34d; white-space: nowrap; }
.hero__rotator::after {
  content: '|'; margin-left: 3px; color: #fcd34d; font-weight: 400;
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.hero__sub { color: #e2ebfb; font-size: 1.15rem; margin: 22px auto 32px; max-width: 560px; }
.hero__search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: var(--radius-pill); box-shadow: 0 24px 60px -12px rgba(20,32,70,.45); max-width: 560px; margin: 0 auto; }
.hero__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 20px; font: inherit; font-size: 16px; color: var(--ink); }
.hero__search input:focus { outline: none; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.pill { background: rgba(255,255,255,.16); color: #fff; padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,.24); transition: background .2s ease; }
.pill:hover { background: rgba(255,255,255,.26); }
.hero__stats { margin-top: 26px; color: #dbe6fb; font-size: 14px; }
.hero__stats strong { color: #fff; }
/* Requirement #7: make the live course/academy counts stand out more. */
.hero__stats--emphasis { font-size: 16px; }
.hero__stats--emphasis strong {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0 2px;
}

/* ---- Sections ---- */
.section { padding: 56px 20px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.section__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; }
.section__link { font-weight: 600; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Course grid + cards ---- */
/* auto-FILL, not auto-fit. Both reflow without breakpoints, but auto-fit
   collapses the empty tracks and lets the remaining items stretch to fill
   the row — so a section with ONE course rendered a single card the full
   width of the page, and because .course-card__media is aspect-ratio 16/10
   that card became ~775px tall. auto-fill keeps the empty tracks, so a card
   is the same size whether the row holds one course or four. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.course-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .15s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--brand-soft); display: block; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; }
.course-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; color: var(--brand); }
.course-card__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.course-card__provider { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; font-weight: 600; }
.course-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; }
.course-card__title a { color: var(--ink); }
.course-card__title a:hover { color: var(--brand); }
.course-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.course-card__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }

.tag { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag--free { background: var(--accent); color: #fff; }
.chip { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); padding: 4px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.chip--type { background: rgba(24,26,42,.05); color: var(--muted); }

/* ---- Academy strip / how ---- */
.academy-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.academy-chip { background: var(--bg); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; font-weight: 600; color: var(--ink); }
.academy-chip:hover { border-color: var(--brand); color: var(--brand); }
.how__title { text-align: center; margin-bottom: 30px; }
.how__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.how__steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font-weight: 500; }
.how__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }

/* ---- Listing + filters ---- */
.listing { padding: 40px 20px 64px; }
.listing__head {
  margin-bottom: 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.listing__title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
.listing__count { color: var(--muted); margin: 6px 0 0; }
.listing__layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; box-shadow: var(--shadow); }
.filters__group { margin-bottom: 18px; }
.filters__group > label, .filters__legend { display: block; font-weight: 700; font-size: 13px; margin-bottom: 8px; letter-spacing: .01em; }
.filters input[type="search"], .filters select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; background: #fff;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.radio { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; margin-bottom: 4px; cursor: pointer; }
.filters__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ---- Pager ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager__btn { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--ink); }
.pager__btn:hover { border-color: var(--brand); color: var(--brand); }
.pager__btn--edge { padding: 9px 14px; font-size: 13px; }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__info { color: var(--muted); font-size: 14px; }
.pager__nums { display: flex; align-items: center; gap: 4px; }
.pager__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--ink); border: 1px solid transparent;
}
.pager__num:hover { border-color: var(--brand); color: var(--brand); }
.pager__num.is-active { background: var(--brand); color: #fff; }
.pager__ellipsis { color: var(--muted); padding: 0 4px; }
.pager__jump { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pager__jump input[type="number"] { width: 72px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; }

/* ---- Budget range slider (Batch 4) ---- */
.budget-slider { position: relative; height: 32px; margin-bottom: 6px; }
.budget-slider__track { position: absolute; top: 14px; left: 0; right: 0; height: 4px; border-radius: 999px; background: var(--line); }
.budget-slider__fill { position: absolute; top: 0; bottom: 0; background: var(--brand); border-radius: 999px; }
.budget-slider__range {
  position: absolute; top: 8px; left: 0; width: 100%; height: 16px; margin: 0;
  background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.budget-slider__range::-webkit-slider-thumb {
  pointer-events: auto; -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%; background: var(--brand);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer;
}
.budget-slider__range::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--brand);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer;
}
.budget-slider__range::-webkit-slider-runnable-track { background: transparent; }
.budget-slider__range::-moz-range-track { background: transparent; }
.budget-inputs { display: flex; align-items: center; gap: 8px; }
.budget-inputs input[type="number"] { width: 0; flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; }
.budget-inputs__sep { color: var(--muted); }

/* The HTML `hidden` attribute normally means display:none, but that comes
   from the browser's default stylesheet — ANY class of ours that sets
   `display` (e.g. .browse-tile { display:flex }) silently beats it. That's
   why JS setting `el.hidden = true` appeared to do nothing on the browse
   pages and the category/subcategory search filter never actually hid
   anything. This makes `hidden` authoritative site-wide. */
[hidden] { display: none !important; }

/* ---- Breadcrumbs ---- */
.crumbs { padding-top: 24px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
/* Only the "/" separators should be faint. The current page name was also a
   bare <span>, so it inherited the pale border colour and was nearly
   invisible against the background. */
/* Separator uses --muted, not --line: against the new off-white background
   a border-grey slash was almost invisible. */
.crumbs__sep { color: var(--muted); opacity: .55; }
.crumbs__current { color: var(--ink); font-weight: 700; }

/* ---- Course detail ---- */
.course-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas: "top side" "facts side" "body side";
  gap: 40px; padding: 24px 20px 72px; align-items: start;
}
.course-detail__top   { grid-area: top; }
.course-detail__side  { grid-area: side; }
.course-detail__facts { grid-area: facts; }
.course-detail__body  { grid-area: body; }
.course-detail__provider { text-transform: uppercase; letter-spacing: .05em; font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.course-detail__title { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.course-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.course-detail__image { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 24px; }
.course-detail__desc h2 { font-size: 1.3rem; margin-bottom: 10px; }
.course-detail__desc p { white-space: pre-line; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.buy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; box-shadow: var(--shadow); }
.buy-card__price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 0 0 16px; }
.buy-card__note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.promo { margin-top: 16px; background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.promo--inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
.promo__label { display: block; font-size: 12px; color: #065f46; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.promo--inline .promo__label { color: #fff; }
.promo__code { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; margin-top: 4px; }
.promo__note { display: block; font-size: 12px; color: #065f46; margin-top: 4px; }
.promo--inline .promo__note { color: #fff; opacity: .95; font-weight: 500; flex-basis: 100%; margin-top: 0; }
.promo--inline .promo__hint { flex-basis: 100%; color: rgba(255,255,255,.75); }
/* Requirement #2: public-facing discount badge — no promo code shown. */
.promo__badge {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 13px; letter-spacing: .03em; padding: 4px 12px; border-radius: 999px;
}
.promo--inline .promo__badge { background: #fff; color: var(--accent, #0d9488); }
.promo__hint { display: block; font-size: 11px; color: var(--muted, #6b7280); margin-top: 6px; }

/* ---- Browse tiles ---- */
/* auto-fill so a category with only one or two subcategories doesn't render
   full-width tiles. */
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
/* NOTE: this rule sets display:flex, which is exactly what used to defeat
   the `hidden` attribute on filtered-out tiles and silently broke category
   search. The global `[hidden] { display:none !important }` guard is what
   keeps that fixed — do not remove it. */
.browse-tile { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-weight: 700; color: var(--ink); font-family: var(--font-display); transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.browse-tile:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.browse-tile__name { display: inline-flex; align-items: center; gap: 4px; }
.browse-tile__arrow { color: var(--brand); }

/* ---- Academy hero ---- */
.academy-hero { position: relative; overflow: hidden; background: var(--hero-gradient); color: #fff; padding: clamp(36px, 5vw, 56px) 0; }
.academy-hero__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: #dbe6fb; margin: 0 0 10px; }
.academy-hero__title { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.academy-hero__link { display: inline-block; margin-top: 14px; color: #fff; font-weight: 700; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26); padding: 8px 18px; border-radius: var(--radius-pill); transition: background .2s ease; }
.academy-hero__link:hover { background: rgba(255,255,255,.28); }

/* Academy-scoped search box (Batch 7) */
.academy-search { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.academy-search input[type="search"] {
  flex: 1; min-width: 200px; padding: 11px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 15px;
}
.academy-search input[type="search"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---- Empty / error ---- */
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 16px; }
.error-page { text-align: center; padding: clamp(60px, 10vw, 100px) 20px; max-width: 720px; margin: 0 auto; }
.error-page h1 { font-size: clamp(3.5rem, 9vw, 5rem); font-weight: 800; color: var(--brand); line-height: 1; margin: 0 0 12px; letter-spacing: -.02em; }
.error-page .lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.error-hint { color: var(--muted); font-size: 14px; margin: 0 auto 24px; max-width: 460px; }
.error-stack { text-align: left; background: var(--ink); color: #e2e8f0; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 13px; line-height: 1.55; max-width: 800px; margin: 24px auto 28px; }

/* ---- Social icons ---- */
.socials { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #cbd0e0;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social:hover { background: #fff; color: var(--brand-dark); transform: translateY(-2px); }
.social--whatsapp:hover { color: #25d366; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #cbd0e0; margin-top: 40px; }
/* Brand + four menu columns (Contact is merged into Help & Contact).
   The footer is allowed to run WIDER than the 1240px content wrap so the
   columns spread into the empty margins instead of bunching in the middle;
   the body of the site keeps its narrower measure for readability. */
.site-footer .wrap { max-width: 1440px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 56px 24px 32px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.35fr 1fr 1.1fr 1.2fr 1fr; gap: 28px; } }
.brand--footer { color: #fff; }
.footer-tagline { color: #9aa1b8; margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; color: #cbd0e0; margin-bottom: 8px; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px; font-size: 13px; color: #9aa1b8; }

/* ---- Footer logo chip (logo on dark background) ---- */
.footer-logo-chip { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border-radius: 10px; }
.footer-logo-chip img { display: block; }

/* ---- Public alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert ul { margin: 0; padding-left: 20px; }

/* ---- Enroll (lead capture) ---- */
.enroll { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 24px 20px 72px; align-items: start; }
.enroll__title { font-size: clamp(1.7rem, 3.2vw, 2.2rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 10px; }
.enroll__lead { color: var(--muted); margin-bottom: 26px; line-height: 1.6; }
.enroll__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 15px; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.enroll__form .btn { margin-top: 8px; }
.enroll__privacy { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.enroll__course-title { font-size: 1.15rem; font-weight: 700; margin: 4px 0 12px; line-height: 1.35; }
/* Honeypot — hidden from real users, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Terms agreement checkbox */
.agree-row { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 14px; color: var(--ink); }
.agree-row input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--brand); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--primary:disabled:hover, .btn--primary[disabled]:hover { background: var(--brand); }

/* ---- Redirect / success ---- */
.redirect { padding: 48px 20px 80px; display: flex; justify-content: center; }
.redirect__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); max-width: 480px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.redirect__continue { margin-top: 8px; }
/* The tick uses a DARKER green than --accent for the glyph: --accent on
   --accent-soft measures 1.78:1, which is effectively invisible. This is
   4.99:1. */
.redirect__check { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: #18763F; display: grid; place-items: center; font-size: 30px; margin: 0 auto 20px; }
.redirect__title { font-size: clamp(1.4rem, 2.6vw, 1.7rem); font-weight: 800; line-height: 1.25; }
.redirect__sub { color: var(--muted); margin: 10px 0 24px; }
.redirect__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.redirect__back { display: inline-block; margin-top: 20px; font-weight: 600; }
.code-box { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 22px; }
.code-box__label { display: block; font-size: 12px; font-weight: 600; color: #065f46; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.code-box__row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.code-box__code { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; color: var(--ink); }
.code-box__note { display: block; font-size: 12px; color: #065f46; margin-top: 10px; }

/* ---- Content pages (Terms, Privacy, FAQ, Contact) ---- */
/* Prose pages sit a touch narrower than the grid pages — ~70 characters per
   line is the comfortable reading measure. */
.page-doc { max-width: 760px; padding: 48px 20px 80px; }
.page-doc__head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-doc__head h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
.page-doc__meta { color: var(--muted); margin: 8px 0 0; }
.page-doc h2 { font-size: 1.35rem; font-weight: 800; margin: 38px 0 12px; letter-spacing: -.005em; }
.page-doc p { margin: 0 0 15px; line-height: 1.7; color: var(--ink); }
.page-doc ul { margin: 0 0 16px; padding-left: 22px; }
.page-doc li { margin-bottom: 8px; line-height: 1.65; }
.page-doc__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* FAQ accordion (native details/summary) */
.faq__group { font-size: 1.1rem; color: var(--brand); margin-top: 36px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq__item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { content: '\2212'; } /* minus */
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__answer { padding: 16px 20px; color: var(--muted); }
.faq__answer p { margin: 0; }
.faq__cta { text-align: center; margin-top: 40px; padding: 32px; background: var(--brand-soft); border-radius: var(--radius); }
.faq__cta p { font-weight: 600; margin: 0 0 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 40px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.contact-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card__icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 8px; }
.contact-card__icon svg { width: 24px; height: 24px; fill: var(--brand); }
.contact-card__label { font-weight: 700; }
.contact-card__value { font-size: 14px; color: var(--muted); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 8px; }
.socials--light .social { background: var(--brand-soft); color: var(--brand); }
.socials--light .social:hover { background: var(--brand); color: #fff; }

/* ---- Focus visibility (accessibility) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(47,111,237,.55); outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  /* Mobile reading order for the course page.
   *
   * The sidebar is ONE <aside> holding three cards (buy / rating / review),
   * so stacking it as a single grid area put the review form directly under
   * the title — before the visitor had seen what the course even is.
   *
   * Switching to flex and setting `display: contents` on the aside lets its
   * three cards become siblings of the other sections, so each can be
   * ordered individually. Desktop is untouched: this lives only inside the
   * max-width media query, and the grid rules above still apply above it.
   *
   * Order: title/category -> price & enrol -> overview -> thumbnail &
   * description -> rating -> review form.
   *
   * The buy card stays high on purpose. It holds the "Enroll now" button,
   * which is the revenue path; pushing it below the full description would
   * mean most phone visitors never scroll to it. */
  .course-detail {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .course-detail__side { display: contents; }
  .course-detail__top { order: 1; }
  .course-detail__side > .buy-card { order: 2; }
  .course-detail__facts { order: 3; }
  .course-detail__body { order: 4; }
  .course-detail__side > .rating-card { order: 5; }
  .course-detail__side > .review-form { order: 6; }
  /* The aside's own child spacing is replaced by the flex gap above,
     otherwise the cards get double margins once they're siblings.
     Prefixed with .course-detail to raise specificity: the global
     `.course-detail__side > * + *` rule is defined LATER in this file, and
     with equal specificity the later rule would otherwise win here. */
  .course-detail .course-detail__side > * + * { margin-top: 0; }
  .buy-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-search { margin-top: 12px; }
  .nav-search input { width: 100%; }
  .listing__layout { grid-template-columns: 1fr; }
  .enroll { grid-template-columns: 1fr; }
  .filters { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .course-card__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .course-card__price { font-size: 1.05rem; }
  .hero__search { flex-direction: column; border-radius: var(--radius); }
  .hero__search .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: 1fr; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Reviews & ratings (Step 10a)
   ============================================================ */
.alert-success { background: #dcfce7; color: #166534; }

/* Star row (uses ★/☆ glyphs) */
.stars { color: var(--amber); letter-spacing: 1px; font-size: 15px; }

/* Small rating line under the course title */
.rating-inline { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; }
.rating-inline__num { font-weight: 700; }
.rating-inline__count { color: var(--muted); }

/* Make selects + textareas match the existing .field inputs */
.field select,
.field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: 15px; background: #fff;
}
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.field__opt { color: var(--muted); font-weight: 400; }

/* Reviews section */
.reviews { padding-bottom: 56px; }
.reviews__heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.reviews__summary { font-size: 14px; color: var(--muted); font-weight: 400; }
.reviews__summary strong { color: var(--ink); }
.reviews__layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.reviews__empty { color: var(--muted); }

.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review__author { font-weight: 600; }
.review__body { margin: 8px 0 6px; }
.review__date { color: var(--muted); font-size: 13px; margin: 0; }
.badge-referred {
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
}

/* Write-a-review card (self-contained so it doesn't depend on admin styles) */
.review-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 88px;
}
.review-form h3 { margin: 0 0 6px; }
.review-form__note { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

@media (max-width: 860px) {
  .reviews__layout { grid-template-columns: 1fr; }
  .review-form { position: static; }
}

/* ============================================================
   Course Comparison (Step 10b)
   ============================================================ */

/* Compare checkbox on course cards */
.compare-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; margin-top: 4px; user-select: none; }
.compare-check input { accent-color: var(--brand); cursor: pointer; }
.compare-check input:disabled + span { opacity: .45; }

/* Requirement #4: per-card "Compare with…" search trigger (All Courses page only) */
.compare-search-trigger {
  display: block; margin-top: 6px; background: none; border: none; padding: 0;
  color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
}
.compare-search-trigger:hover { text-decoration: underline; }

.cmp-panel {
  margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--surface);
}
.cmp-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cmp-panel__title { margin: 0; font-size: 1.15rem; }
.cmp-panel__x { background: none; border: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.cmp-panel__base { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.cmp-panel__picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }

/* Floating compare bar (sticks to bottom of viewport) */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(20,21,42,.1);
  padding: 12px 0;
  animation: slideUp .25s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compare-bar__inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compare-bar__count { font-weight: 700; white-space: nowrap; font-size: 14px; }
.compare-bar__names { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.compare-bar__tag {
  background: var(--brand-soft); color: var(--brand-dark); padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.compare-bar__rm { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.compare-bar__rm:hover { color: #dc2626; }
.compare-bar__actions { display: flex; gap: 8px; margin-left: auto; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--disabled { opacity: .45; pointer-events: none; }

/* Comparison page */
.compare-page { padding: 24px 20px 72px; }
.compare-page__title { font-size: 1.9rem; font-weight: 700; margin-bottom: 24px; }
.compare-page__tip { color: var(--muted); font-size: 13px; margin-top: 16px; }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.compare-table__rm {
  display: block; margin: 0 auto 8px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.compare-table__rm:hover { background: rgba(217,74,74,.12); border-color: rgba(217,74,74,.45); color: #c23434; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.compare-table th,
.compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { border-bottom-width: 2px; }
.compare-table__label { font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; width: 130px; }
.compare-table__course { text-align: center; }
.compare-table__img { width: 100%; max-width: 200px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.compare-table__name { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.35; }
.compare-table__name:hover { color: var(--brand); }
.compare-table__price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.compare-table__rc { color: var(--muted); font-weight: 400; font-size: 13px; }
.compare-table__none { color: var(--muted); font-size: 13px; }
.compare-table__save { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .compare-bar__names { display: none; }
  .compare-table__label { width: 90px; font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 13px; }
}

/* Compare page: readability when 4–5 columns are shown (Step 10 fix) */
.compare-table th, .compare-table td:not(.compare-table__label) { min-width: 190px; }
.compare-table__actions { display: flex; flex-direction: column; gap: 8px; }

/* Academy banner (cover photo) — Step 10 fix */
.academy-banner { width: 100%; aspect-ratio: 4 / 1; overflow: hidden; background: var(--brand-soft); }
.academy-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .academy-banner { aspect-ratio: 16 / 9; }
}

/* Compare table: review snippet + side-by-side buttons */
.compare-table__review { font-size: 13px; color: var(--muted); font-style: italic; margin: 0; line-height: 1.5; }
.compare-table__btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.compare-table__btns .btn { flex: 1; min-width: 110px; text-align: center; }

/* Academy logo icons (Step 10 fix) */
.academy-logo-sm {
  display: inline-block; width: 20px; height: 20px; border-radius: 4px;
  object-fit: cover; vertical-align: middle; margin-right: 5px;
  border: 1px solid var(--line);
}
.academy-logo-md {
  display: inline-block; width: 36px; height: 36px; border-radius: 6px;
  object-fit: cover; vertical-align: middle; margin-right: 8px;
  border: 1px solid var(--line);
}
/* Fallback initial-letter avatar (Batch 6) — shown when an academy hasn't
   uploaded a logo yet, so every academy still shows SOMETHING beside its
   name instead of a blank gap. Sizing comes from the paired
   .academy-logo-sm/.academy-logo-md class; this just adds the look. */
.academy-logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-family: var(--font-display);
  font-weight: 700; line-height: 1;
}
.academy-logo-sm.academy-logo-fallback { font-size: 11px; }
.academy-logo-md.academy-logo-fallback { font-size: 16px; }

/* Verified badge (blue checkmark, like X/Twitter) — Step 10c */
.verified-badge {
  display: inline-block; width: 16px; height: 16px; vertical-align: middle;
  color: #1d9bf0; margin-left: 3px; margin-bottom: 2px;
}
.academy-hero__title .verified-badge { width: 24px; height: 24px; }
/* Compare table verified row */
.verified-yes { color: #16a34a; font-weight: 600; }
.verified-no { color: var(--muted); }

/* Verified academy chip + section sub (Step 10c homepage) */
.section__sub { color: var(--muted); margin: -8px 0 18px; font-size: 14px; }
.academy-chip--verified { display: inline-flex; align-items: center; gap: 6px; }
.academy-chip--verified .verified-badge { width: 15px; height: 15px; }

/* Category landing pages (Step 11b) */
.landing__head { max-width: 780px; margin-bottom: 32px; }
.landing__title { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; margin-bottom: 14px; }
.landing__intro { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.landing__intro p { margin: 0 0 10px; line-height: 1.6; }
.landing__meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.landing-faq { max-width: 800px; }
.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 4px 18px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item:hover { border-color: var(--brand); }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 12px; color: var(--brand); font-size: 22px; line-height: 1; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item__answer { padding: 0 0 14px; color: var(--muted); line-height: 1.6; }
/* Deliberately NOT --hero-gradient: that one lightens toward one corner,
   which drops body-copy contrast to ~2:1 at the light end. This CTA runs
   brand-dark -> brand, both dark enough for white text to clear AA across
   the whole band. */
.landing-cta__box { background: linear-gradient(135deg, #1F4FB8, #2F6FED); background: linear-gradient(135deg, oklch(46% 0.18 258), oklch(60% 0.19 258)); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); text-align: center; box-shadow: var(--shadow-lg); }
.landing-cta__box h2 { margin: 0 0 10px; color: #fff; font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.landing-cta__box p { color: #fff; opacity: .92; margin: 0 0 20px; }
/* On the gradient the solid-blue primary button disappears, so invert it. */
.landing-cta__box .btn--primary { background: #fff; color: var(--brand-dark); }
.landing-cta__box .btn--primary:hover { background: #f0f4ff; color: var(--brand-dark); }

/* Order/Lead ID box on the redirect page (Step: lead ID display) */
.order-id { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 16px; margin: 18px 0; }
.order-id__label { display: block; font-size: 13px; color: var(--brand-dark); font-weight: 600; margin-bottom: 8px; }
.order-id__row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.order-id__code { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; color: var(--brand-dark); }
.order-id__note { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Feedback form (Step 12) */
.feedback-form { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }

/* ============================================================
   Promotions slider + offers (Step 12a)
   ============================================================ */
/* Swiper itself is untouched — only the wrapper is restyled, so the slider
   keeps its existing initialisation, pagination and navigation behaviour. */
.promo-slider-wrap { width: 100%; padding: 0; border-radius: var(--radius); overflow: hidden; }
.promo-swiper { width: 100%; }
.promo-slide {
  position: relative; min-height: 400px; overflow: hidden;
  /* Cool blue -> teal premium gradient (shown when no image, or under the overlay) */
  background: linear-gradient(120deg, #0f2f4f 0%, #0e7490 55%, #14b8a6 100%);
}
.promo-slide__bg { position: absolute; inset: 0; z-index: 0; }
.promo-slide__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Readable overlay: darker on the left where text sits, fading to clear */
.promo-slide__overlay {
  position: relative; z-index: 1; min-height: 400px; display: flex; align-items: center;
  background: linear-gradient(100deg, rgba(8,30,52,.82) 0%, rgba(14,116,144,.55) 55%, rgba(20,184,166,.20) 100%);
}
.promo-slide__content { color: #fff; max-width: 640px; padding: 56px 20px; }
/* Each element fades/slides up in sequence when its slide becomes active */
.swiper-slide-active .promo-slide__logo,
.swiper-slide-active .promo-slide__type,
.swiper-slide-active .promo-slide__title,
.swiper-slide-active .promo-slide__subtitle,
.swiper-slide-active .promo-slide__desc,
.swiper-slide-active .promo-slide__coupon,
.swiper-slide-active .promo-countdown,
.swiper-slide-active .promo-slide__cta {
  animation: promoIn .6s cubic-bezier(.2,.7,.2,1) both;
}
.swiper-slide-active .promo-slide__type { animation-delay: .05s; }
.swiper-slide-active .promo-slide__title { animation-delay: .12s; }
.swiper-slide-active .promo-slide__subtitle { animation-delay: .2s; }
.swiper-slide-active .promo-slide__desc { animation-delay: .26s; }
.swiper-slide-active .promo-slide__coupon { animation-delay: .32s; }
.swiper-slide-active .promo-countdown { animation-delay: .36s; }
.swiper-slide-active .promo-slide__cta { animation-delay: .42s; }
@keyframes promoIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .swiper-slide-active .promo-slide__content > * { animation: none !important; }
}

.promo-slide__logo { height: 48px; width: auto; margin-bottom: 14px; border-radius: 8px; background: #fff; padding: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.promo-slide__type {
  display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
  padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
.promo-slide__title { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin: 0 0 10px; line-height: 1.1; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.promo-slide__subtitle { font-size: 1.2rem; font-weight: 500; margin: 0 0 10px; opacity: .97; }
.promo-slide__desc { font-size: 1rem; opacity: .9; margin: 0 0 18px; max-width: 520px; }
.promo-slide__coupon {
  display: inline-block; background: rgba(255,255,255,.12); border: 1.5px dashed rgba(255,255,255,.7);
  padding: 8px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem;
}
.promo-slide__coupon strong { letter-spacing: .05em; }
.promo-countdown {
  display: inline-block; font-weight: 700; margin-bottom: 16px; font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,.2); padding: 6px 14px; border-radius: 8px;
}
.promo-slide__cta {
  margin-top: 4px; box-shadow: 0 8px 24px rgba(20,184,166,.4);
  background: linear-gradient(135deg, #14b8a6, #0d9488); border: none;
}
.promo-slide__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,184,166,.5); }
.promo-swiper .swiper-button-prev, .promo-swiper .swiper-button-next {
  color: #fff; background: rgba(255,255,255,.12); width: 44px; height: 44px; border-radius: 50%;
  backdrop-filter: blur(4px); transition: background .2s;
}
.promo-swiper .swiper-button-prev:hover, .promo-swiper .swiper-button-next:hover { background: rgba(255,255,255,.28); }
.promo-swiper .swiper-button-prev::after, .promo-swiper .swiper-button-next::after { font-size: 18px; font-weight: 700; }
.promo-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; width: 10px; height: 10px; }
.promo-swiper .swiper-pagination-bullet-active { background: #fff; opacity: 1; width: 26px; border-radius: 5px; }

@media (max-width: 900px) {
  .promo-slide, .promo-slide__overlay { min-height: 340px; }
  .promo-slide__title { font-size: 2rem; }
}
@media (max-width: 640px) {
  .promo-slide, .promo-slide__overlay { min-height: 300px; }
  /* On mobile, darken from the bottom so text is readable over any image */
  .promo-slide__overlay { background: linear-gradient(0deg, rgba(8,30,52,.9) 0%, rgba(8,30,52,.45) 60%, rgba(8,30,52,.25) 100%); align-items: flex-end; }
  .promo-slide__content { padding: 28px 18px 34px; }
  .promo-slide__title { font-size: 1.55rem; }
  .promo-slide__subtitle { font-size: 1rem; }
  .promo-slide__desc { font-size: .9rem; }
}

/* Offers page cards */
/* auto-fill for the same reason as .grid above: offer cards have a fixed
   aspect ratio, so letting one or two stretch across the row blows them up. */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.offer-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.offer-card__img { aspect-ratio: 16/9; overflow: hidden; }
.offer-card__img img { width: 100%; height: 100%; object-fit: cover; }
.offer-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.offer-card__type { font-size: 11px; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; }
.offer-card__title { font-size: 1.15rem; font-weight: 700; margin: 2px 0; }
.offer-card__subtitle { color: var(--ink); font-weight: 500; margin: 0; }
.offer-card__desc { color: var(--muted); font-size: 14px; margin: 0; }
.offer-card__coupon { background: var(--brand-soft); color: var(--brand-dark); padding: 4px 10px; border-radius: 6px; font-size: 13px; align-self: flex-start; }
.offer-card__ends { font-size: 12px; color: var(--muted); margin: 2px 0; }
.offer-card .btn { margin-top: auto; }

/* Discounted price display (Step 13) */
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 500; margin-right: 6px; font-size: 0.9em; }
.price-new { color: var(--brand-dark); font-weight: 700; }
.price-off { display: inline-block; background: #dcfce7; color: #166534; font-size: 0.7em; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Batch countdown on course detail (Step 13) */
.batch-countdown { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; text-align: center; }
.batch-countdown__label { display: block; font-size: 12px; color: var(--brand-dark); font-weight: 600; }
.batch-countdown__time { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--brand-dark); font-variant-numeric: tabular-nums; }

/* Course facts grid (Step 13) */
.course-facts { margin-top: 28px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.facts-grid__item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.facts-grid__item dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.facts-grid__item dd { margin: 0; font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.feature-list li { background: var(--brand-soft); color: var(--brand-dark); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.feature-list li::before { content: '✔ '; }

/* Corner discount badge on course thumbnails (Step 14) */
.discount-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(225,29,72,.35);
}
@media (max-width: 480px){ .discount-badge { font-size: 11px; padding: 4px 8px; } }

/* Clean full-image banner (Step 14 fix) — image only, whole slide clickable */
.promo-slide__bg--full { position: relative; inset: auto; display: block; }
.promo-slide__bg--full img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-slide__imglink { display: block; width: 100%; height: 100%; }

/* On-page similar-course comparison (Step 17) */
.similar-compare { margin: 32px auto; }
.similar-compare__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.similar-compare__title { margin: 0 0 4px; font-size: 1.5rem; }
.similar-compare__sub { margin: 0; color: var(--muted); font-size: 14px; }
.btn--outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand-dark); }
.btn--outline:hover { background: var(--brand-soft); }
.similar-compare__panel { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); box-shadow: var(--shadow); }
.similar-compare__search { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; }
.similar-compare__search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.similar-compare__results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.similar-compare__hint { color: var(--muted); font-size: 14px; margin: 6px 0; }
.sc-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sc-result__info { display: flex; flex-direction: column; }
.sc-result__meta { font-size: 12px; color: var(--muted); }
.similar-compare__table-wrap { margin-top: 20px; }
.sc-table { width: 100%; }
.sc-th { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sc-current { font-size: 11px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.sc-remove { border: none; background: #fee2e2; color: #b91c1c; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: 12px; line-height: 1; }
.sc-remove:hover { background: #fecaca; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Browse pages: search + counts (Step 18) */
.listing__total { color: var(--muted); font-weight: 500; }
.browse-search { margin-bottom: 18px; }
.browse-search__input { width: 100%; max-width: 420px; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; }
.browse-search__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.browse-tile__count { color: var(--muted); font-weight: 500; font-size: 0.9em; margin-left: 4px; }
.browse-tile--secondary { border-style: dashed; }
.browse-tile__type { display: inline-block; color: var(--brand); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-left: 8px; background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.browse-noresults { padding: 24px; text-align: center; color: var(--muted); }

/* Placeholder shown when an image file is missing from the server (see the
   broken-image fallback in main.js). Keeps the same footprint as the real
   image so nothing shifts around it. */
.compare-table__img--missing,
.course-detail__image--missing {
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.compare-table__img--missing { font-size: 24px; }
.course-detail__image--missing { aspect-ratio: 16 / 9; width: 100%; font-size: 40px; }

/* Related-course sections on the course detail page (Suggested Similar
   Courses / More Courses from this Academy). Reuses the standard .grid and
   .course-card, so only the separator above each block is new. */
.related-section { border-top: 1px solid var(--line); padding-top: 32px; }
.related-section + .related-section { border-top: 1px solid var(--line); }

/* ============================================================
   Redesign Deploy 2 — accessibility + motion additions
   ============================================================ */

/* Visible keyboard focus. The browser default outline disappears against
   the new palette on some controls, so this makes tab-navigation obvious
   without affecting mouse users (:focus-visible, not :focus). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect a user's reduced-motion preference: keep the colour/shadow
   feedback, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .course-card:hover { transform: none; }
}

/* ============================================================
   Redesign Deploy 3 — homepage refinements
   ============================================================ */

/* Hero search button: dark ink pill, matching the design. Scoped to
   .hero__search so the shared .btn--primary used elsewhere is unaffected. */
.hero__search .btn--primary {
  background: var(--ink);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.hero__search .btn--primary:hover { background: #000; }

/* Section head: allow the "View all" link to wrap under the title on very
   narrow screens instead of squeezing the heading. */
.section__head { flex-wrap: wrap; gap: 10px 16px; }
.section__link { white-space: nowrap; }

/* Alternating band sections sit on the page background so the white cards
   inside them keep separating cleanly against the warm neutral. */
.band { background: var(--surface); }

/* "How it works" numerals scale with the new heading weight. */
.how__num { font-weight: 800; }
.how__steps li { border-radius: var(--radius); font-weight: 500; }

/* Academy chips pick up the hover lift used by cards. */
.academy-chip { border-radius: var(--radius-pill); transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.academy-chip:hover { transform: translateY(-2px); }

/* ============================================================
   Redesign Deploy 5 — course detail
   ============================================================ */

/* Ratings summary card, sits above the review form in the sidebar. */
.rating-card { text-align: center; }
.rating-card__score { margin: 0; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--ink); }
.rating-card__score span { font-size: .95rem; font-weight: 500; color: var(--muted); display: block; margin-top: 6px; }
.rating-card__stars { margin: 10px 0 4px; font-size: 18px; }
.rating-card__count { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

/* The review form now lives in the sidebar, so it no longer needs its own
   column. The reviews section below becomes a single full-width list. */
.reviews__layout { grid-template-columns: 1fr; }
.reviews__list { max-width: 820px; }

/* Sidebar cards share consistent spacing when stacked. */
.course-detail__side > * + * { margin-top: 18px; }
.course-detail__side .review-form h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.review-form__note { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* Buy card gets the elevated treatment from the design. */
.buy-card { border-radius: var(--radius); box-shadow: var(--shadow); }
.buy-card__price { font-weight: 800; }

/* ============================================================
   Redesign Deploy 6 — academy page + compare
   ============================================================ */

/* Academy hero: same decorative blob treatment as the homepage hero, at a
   smaller scale. Non-interactive, and disabled under reduced-motion. */
.academy-hero::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px; top: -120px; right: -60px;
  border-radius: 50%;
  background: rgba(62, 207, 122, .26);
  background: oklch(78% 0.19 140 / 0.26);
  filter: blur(60px);
  pointer-events: none;
}
.academy-hero > .wrap { position: relative; z-index: 1; }

/* Academy banner image sits flush above the hero. */
.academy-banner img { width: 100%; height: auto; display: block; }

/* Search row on the academy page picks up the pill treatment. */
.academy-search input[type="search"] { border-radius: var(--radius-pill); padding-left: 18px; }

/* Compare table polish. border-collapse is deliberately left as `collapse`
   on the original rule — switching it to `separate` renders the existing
   cell borders twice. */
.compare-table tbody tr:hover td { background: rgba(47,111,237,.03); }
.compare-table__rm { border-radius: var(--radius-pill); transition: background .2s ease, color .2s ease, border-color .2s ease; }

/* ============================================================
   Redesign Deploy 9 — partner / feedback / offers
   ============================================================ */

/* Replaces inline style attributes that were in partner-with-us.ejs.
   Inline styles bypass the design tokens and can't be themed. */
.enroll__form--narrow { max-width: 560px; }
.field__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
}
.field__textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,111,237,.18); }
.redirect__card--narrow { max-width: 520px; }
