/* ==========================================================================
   Madras Mathematics Department — Design System
   Light blue / white • premium, calm, conversion-focused
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink-900: #06202e;
  --ink-800: #0b2d40;
  --ink-700: #14415a;
  --ink-600: #2b5b74;
  --ink-500: #4a7791;
  --ink-400: #7295aa;

  --blue-700: #0b5d8a;
  --blue-600: #1179ad;
  --blue-500: #199bd4;
  --blue-400: #48b6e6;
  --blue-300: #8ad3f2;
  --blue-200: #c3e8f8;
  --blue-100: #e2f3fc;
  --blue-50: #f2fafe;

  --white: #ffffff;
  --paper: #fbfdff;

  --line: rgba(17, 121, 173, 0.14);
  --line-strong: rgba(17, 121, 173, 0.26);

  --grad-brand: linear-gradient(135deg, #0b5d8a 0%, #199bd4 52%, #63c8ee 100%);
  --grad-soft: linear-gradient(160deg, #f2fafe 0%, #ffffff 55%, #e8f6fd 100%);
  --grad-glass: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46));

  --shadow-xs: 0 1px 2px rgba(6, 32, 46, 0.06);
  --shadow-sm: 0 2px 8px rgba(6, 32, 46, 0.06), 0 1px 2px rgba(6, 32, 46, 0.04);
  --shadow-md: 0 12px 30px -12px rgba(9, 74, 108, 0.22), 0 2px 8px rgba(6, 32, 46, 0.05);
  --shadow-lg: 0 30px 60px -24px rgba(9, 74, 108, 0.30), 0 8px 20px -10px rgba(6, 32, 46, 0.10);
  --shadow-glow: 0 18px 40px -16px rgba(25, 155, 212, 0.55);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --max: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI Semibold", system-ui, -apple-system, sans-serif;

  --nav-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.45rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
::selection { background: var(--blue-200); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -140%);
  background: var(--ink-900); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 12px 12px;
  z-index: 999; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--tint {
  background:
    radial-gradient(1100px 520px at 12% -10%, #e6f5fd 0%, rgba(230, 245, 253, 0) 62%),
    radial-gradient(900px 480px at 92% 8%, #eef9ff 0%, rgba(238, 249, 255, 0) 60%),
    var(--paper);
}
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }
.mx-auto { margin-inline: auto; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.775rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-700);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.eyebrow--pill::before { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 0.9rem 0.42rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--ink-700);
  font-size: 0.83rem; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(10px);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(25, 155, 212, 0.16);
  animation: pulse-dot 3.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(25, 155, 212, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(25, 155, 212, 0.05); }
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-600); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  border: 0; border-radius: var(--r-pill);
  font-weight: 650; font-size: 0.985rem; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.42) 46%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -18px rgba(25, 155, 212, 0.7); }
.btn--primary:hover::after { transform: translateX(130%); }
.btn--ghost {
  color: var(--ink-800); background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink-900); }
.btn--dark { background: var(--ink-900); color: #fff; box-shadow: var(--shadow-md); }
.btn--dark:hover { background: var(--ink-800); transform: translateY(-2px); color: #fff; }
.btn--sm { padding: 0.66rem 1.15rem; font-size: 0.9rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.03rem; }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 650; font-size: 0.95rem; color: var(--blue-700);
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.65rem; border-color: currentColor; color: var(--blue-600); }

/* ---------- Ambient background ---------- */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aura span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: drift 26s var(--ease-soft) infinite alternate;
}
.aura span:nth-child(1) { width: 460px; height: 460px; top: -180px; left: -120px; background: radial-gradient(circle at 30% 30%, #bfe7fa, rgba(191, 231, 250, 0)); }
.aura span:nth-child(2) { width: 520px; height: 520px; top: -120px; right: -180px; background: radial-gradient(circle at 60% 40%, #d6eefb, rgba(214, 238, 251, 0)); animation-delay: -8s; }
.aura span:nth-child(3) { width: 380px; height: 380px; bottom: -220px; left: 34%; background: radial-gradient(circle at 50% 50%, #e4f4fd, rgba(228, 244, 253, 0)); animation-delay: -15s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(34px, -26px, 0) scale(1.09); }
}
.grid-fade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17, 121, 173, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 121, 173, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 72%);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(6, 32, 46, 0.4);
}
.nav__inner {
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1.25rem;
  max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.brand__logo { width: 42px; height: 42px; border-radius: 11px; box-shadow: var(--shadow-sm); flex: none; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-weight: 750; font-size: 1.02rem; color: var(--ink-900); letter-spacing: -0.02em; }
.brand__sub { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }

.nav__links { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav__link {
  position: relative; padding: 0.55rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.93rem; font-weight: 600; color: var(--ink-600);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--ink-900); background: rgba(25, 155, 212, 0.08); }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; height: 2px; width: 0;
  border-radius: 2px; background: var(--grad-brand); transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav__link:hover::after { width: 16px; }
.nav__cta { margin-left: 0.6rem; flex: none; }

.nav__toggle {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line-strong);
  cursor: pointer; box-shadow: var(--shadow-xs);
}
.nav__toggle span { display: block; position: relative; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-800); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__panel {
  display: none; overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
}
.nav__panel a {
  display: block; padding: 0.85rem var(--gutter); font-weight: 600; color: var(--ink-700);
  border-bottom: 1px solid rgba(17, 121, 173, 0.08);
}
.nav__panel a:last-child { border-bottom: 0; }
.nav__panel a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav__panel.is-open { display: block; animation: panel-in 0.3s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 .hl {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero__sub { max-width: 40ch; font-size: clamp(1.05rem, 1.5vw, 1.17rem); color: var(--ink-600); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero__proof {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.6rem; max-width: 420px;
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero__proof-item { display: grid; gap: 0.1rem; }
.hero__proof-num { font-size: 1.5rem; font-weight: 750; color: var(--ink-900); letter-spacing: -0.03em; line-height: 1.2; }
.hero__proof-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-400); letter-spacing: 0.04em; }

/* Hero visual */
.hero__visual { position: relative; min-height: 430px; padding: 22px 0; }
.hero-card {
  position: relative; z-index: 2;
  background: var(--grad-glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 1.4rem;
  animation: float-soft 9s ease-in-out infinite;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-card__head { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.hero-card__avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center;
  font-weight: 750; font-size: 1rem; letter-spacing: -0.02em;
}
.hero-card__title { font-size: 0.95rem; font-weight: 700; color: var(--ink-900); line-height: 1.25; }
.hero-card__meta { font-size: 0.78rem; color: var(--ink-400); font-weight: 600; }
.hero-card__body { padding-top: 1.05rem; display: grid; gap: 0.6rem; }
.mini-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 121, 173, 0.12);
  border-radius: 14px; padding: 0.7rem 0.85rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mini-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.mini-row__icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700);
}
.mini-row__text { min-width: 0; flex: 1 1 auto; display: grid; gap: 1px; }
.mini-row__title { display: block; font-size: 0.86rem; font-weight: 700; color: var(--ink-800); line-height: 1.3; }
.mini-row__sub { display: block; font-size: 0.76rem; color: var(--ink-400); font-weight: 600; }
.mini-row__tag {
  margin-left: auto; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue-700);
  background: var(--blue-100); padding: 0.24rem 0.55rem; border-radius: var(--r-pill);
  white-space: nowrap;
}
.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-pill); padding: 0.6rem 1rem;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-800);
  backdrop-filter: blur(12px);
}
.float-chip--a { top: -22px; right: -10px; animation: float-a 7.5s ease-in-out infinite; }
.float-chip--b { bottom: -20px; left: -14px; animation: float-b 8.5s ease-in-out infinite; }
.float-chip svg { color: var(--blue-600); flex: none; }
@keyframes float-a { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes float-b { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(12px) rotate(-1deg); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: auto; margin-top: 1rem; }
  .float-chip--a { right: 0; top: -20px; }
  .float-chip--b { left: 0; bottom: -18px; }
}

/* ---------- Logo / proof strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(242, 250, 254, 0.7), rgba(255, 255, 255, 0.9));
  padding-block: 1.5rem;
}
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.1rem; }
.strip__label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-400); margin-right: 0.35rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.85rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  font-size: 0.82rem; font-weight: 650; color: var(--ink-600);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--blue-700); }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head p { color: var(--ink-600); margin-bottom: 0; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.feature {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(320px 200px at var(--mx, 50%) var(--my, 0%), rgba(25, 155, 212, 0.10), transparent 70%);
  transition: opacity 0.45s var(--ease); pointer-events: none;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eaf7fe, #d7effb);
  border: 1px solid rgba(17, 121, 173, 0.16);
  color: var(--blue-700); margin-bottom: 1.1rem;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.feature:hover .feature__icon { transform: rotate(-4deg) scale(1.06); background: linear-gradient(150deg, #ddf1fc, #c7e8f9); }
.feature h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.94rem; color: var(--ink-500); margin: 0; line-height: 1.62; }

/* ---------- Course browser ---------- */
.course-tabs { display: inline-flex; gap: 0.3rem; padding: 0.32rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.course-tab {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.6rem 1.15rem; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 650; color: var(--ink-500);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.course-tab:hover { color: var(--ink-800); }
.course-tab[aria-selected="true"] { color: #fff; background: var(--grad-brand); box-shadow: 0 8px 18px -8px rgba(25, 155, 212, 0.7); }
.course-panel[hidden] { display: none; }
.course-panel { animation: fade-up 0.5s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.course-card {
  position: relative; display: flex; flex-direction: column; gap: 0.55rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.course-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.course-tag {
  font-size: 0.68rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-100); padding: 0.26rem 0.6rem; border-radius: var(--r-pill);
}
.course-tag--senior { color: #7a4b00; background: #fdf3dc; }
.course-card__scqf { font-size: 0.72rem; font-weight: 700; color: var(--ink-400); letter-spacing: 0.04em; }
.course-card h3 { font-size: 1.02rem; margin: 0.1rem 0 0; line-height: 1.35; }
.course-card h3 a { color: inherit; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; } /* full-card click target */
.course-card p { font-size: 0.87rem; color: var(--ink-500); margin: 0; line-height: 1.55; }
.course-card__foot {
  display: flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem;
  font-size: 0.82rem; font-weight: 700; color: var(--blue-700);
}
.course-card__foot .arrow { transition: transform 0.35s var(--ease); }
.course-card:hover .course-card__foot .arrow { transform: translateX(4px); }

/* Prominent senior resource link (sits above the card's ::after overlay) */
.resource-link {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 0.65rem;
  margin-top: 0.55rem; padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b5d8a, #199bd4);
  color: #fff; font-size: 0.82rem; font-weight: 700; line-height: 1.3;
  box-shadow: 0 12px 24px -14px rgba(11, 93, 138, 0.85);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}
.resource-link:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 30px -14px rgba(11, 93, 138, 0.9); }
.resource-link svg { flex: none; }
.resource-link .arrow { margin-left: auto; transition: transform 0.35s var(--ease); }
.resource-link:hover .arrow { transform: translateX(3px); }

/* ---------- Showcase (split) ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.showcase--rev .showcase__media { order: -1; }
.showcase__media { position: relative; }
.mock {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: #fbfdff; }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #dbe9f2; }
.mock__dot:nth-child(1) { background: #d9ecf8; }
.mock__title { margin-left: 0.5rem; font-size: 0.76rem; font-weight: 700; color: var(--ink-400); letter-spacing: 0.03em; }
.mock__body { padding: 1.15rem; display: grid; gap: 0.75rem; }
.mock__row { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--blue-50); border: 1px solid rgba(17, 121, 173, 0.1); }
.mock__row--ghost { background: #fff; }
.mock__pill { height: 8px; border-radius: 4px; background: #dceef8; }
.mock__line { height: 8px; border-radius: 4px; background: #e8f2f8; flex: 1; }
.mock__check { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; flex: none; }

.checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.97rem; color: var(--ink-600); }
.checklist .tick {
  flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center;
  border: 1px solid rgba(17, 121, 173, 0.18);
}
.checklist strong { color: var(--ink-900); font-weight: 700; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--rev .showcase__media { order: 0; }
}

/* ---------- Key dates ---------- */
.dates-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.dates-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.dates-table caption { text-align: left; padding: 1.2rem 1.4rem 0.4rem; font-weight: 700; color: var(--ink-900); font-size: 1rem; }
.dates-table th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-400); font-weight: 750; padding: 0.9rem 1.4rem; background: #fbfdff;
  border-bottom: 1px solid var(--line);
}
.dates-table td { padding: 1rem 1.4rem; border-bottom: 1px solid rgba(17, 121, 173, 0.09); color: var(--ink-600); vertical-align: top; }
.dates-table tr:last-child td { border-bottom: 0; }
.dates-table tbody tr { transition: background-color 0.25s var(--ease); }
.dates-table tbody tr:hover { background: var(--blue-50); }
.dates-table td strong { color: var(--ink-900); }
.date-pill { display: inline-block; font-size: 0.74rem; font-weight: 750; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-700); white-space: nowrap; }
.date-pill--amber { background: #fdf3dc; color: #8a5a05; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.quote {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.quote__stars { display: flex; gap: 2px; color: #f0a92e; margin-bottom: 0.9rem; }
.quote p { font-size: 0.98rem; color: var(--ink-700); line-height: 1.68; margin: 0 0 1.2rem; }
.quote__who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.quote__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, #dff1fb, #c6e7f8); color: var(--blue-700);
  font-weight: 750; font-size: 0.85rem; border: 1px solid rgba(17, 121, 173, 0.16);
}
.quote__who > span:last-child { display: grid; gap: 1px; }
.quote__name { display: block; font-size: 0.87rem; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.quote__role { display: block; font-size: 0.78rem; color: var(--ink-400); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 0.7rem; overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item.is-open { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  padding: 1.15rem 1.3rem; font-weight: 700; font-size: 1rem; color: var(--ink-900);
  transition: color 0.25s var(--ease);
}
.faq__q:hover { color: var(--blue-700); }
.faq__icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--blue-700); transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.3rem 1.25rem; margin: 0; color: var(--ink-500); font-size: 0.95rem; line-height: 1.68; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #082a3d 0%, #0b5d8a 52%, #1789be 100%);
  color: #fff; padding: clamp(2.25rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 320px at 88% 8%, rgba(120, 210, 245, 0.42), transparent 65%),
    radial-gradient(500px 300px at 5% 95%, rgba(70, 175, 225, 0.35), transparent 60%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(226, 244, 253, 0.88); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; }
.cta .eyebrow { color: #a9e0f7; }
.cta .eyebrow::before { background: rgba(255, 255, 255, 0.6); }
.subscribe {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-md); padding: 1.35rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.subscribe label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cfeafa; margin-bottom: 0.5rem; }
.subscribe__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.subscribe input[type="email"] {
  flex: 1 1 190px; min-width: 0;
  padding: 0.85rem 1rem; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94); color: var(--ink-900);
  font-size: 0.95rem;
}
.subscribe input::placeholder { color: var(--ink-400); }
.subscribe .btn--primary { background: #fff; color: var(--blue-700); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6); }
.subscribe .btn--primary:hover { background: #f2fafe; }
.subscribe__note { font-size: 0.78rem; color: rgba(207, 234, 250, 0.9); margin: 0.75rem 0 0; }
.subscribe__ok { margin: 0.8rem 0 0; font-size: 0.88rem; font-weight: 700; color: #d8f5e4; display: none; }
.subscribe.is-done .subscribe__ok { display: block; animation: fade-up 0.4s var(--ease) both; }
@media (max-width: 820px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #061c28; color: #b9d3e0; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; position: relative; }
.footer a { color: #cfe4ef; transition: color 0.25s var(--ease); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.2rem; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer__brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer__brand strong { color: #fff; display: block; font-size: 1rem; letter-spacing: -0.01em; }
.footer__brand span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7fa3b6; font-weight: 600; }
.footer p { font-size: 0.9rem; color: #93b3c4; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.11em; text-transform: uppercase; margin: 0 0 0.9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.89rem; }
.footer__bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between;
  font-size: 0.82rem; color: #7fa3b6;
}
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Course / inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { position: relative; z-index: 1; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-400); margin-bottom: 1.2rem; list-style: none; padding: 0; }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--blue-700); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.45rem; color: var(--blue-300); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); margin-bottom: 0.7rem; }
.page-hero .lead { max-width: 58ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 0.45rem 0.95rem; font-size: 0.82rem; font-weight: 650; color: var(--ink-600);
  box-shadow: var(--shadow-xs);
}
.meta-pill svg { color: var(--blue-600); }

/* Prominent resource callout */
.resource-callout {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem;
  margin-top: 1.9rem; padding: 1.15rem 1.25rem;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #0b5d8a 0%, #1179ad 48%, #23a3d9 100%);
  color: #fff; text-decoration: none;
  box-shadow: 0 22px 44px -22px rgba(11, 93, 138, 0.9);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.resource-callout::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 64%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.resource-callout:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 30px 56px -22px rgba(11, 93, 138, 1); }
.resource-callout:hover::after { transform: translateX(120%); }
.resource-callout__icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.32);
}
.resource-callout__text { flex: 1 1 320px; min-width: 0; }
.resource-callout__label { display: block; font-size: 1.02rem; font-weight: 750; line-height: 1.35; letter-spacing: -0.01em; }
.resource-callout__sub { display: block; margin-top: 2px; font-size: 0.84rem; color: rgba(226, 244, 253, 0.92); font-weight: 500; }
.resource-callout__go {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--blue-700); font-weight: 750; font-size: 0.88rem;
  padding: 0.7rem 1.15rem; border-radius: var(--r-pill); white-space: nowrap;
  transition: gap 0.3s var(--ease);
}
.resource-callout:hover .resource-callout__go { gap: 0.75rem; }

/* Page body layout */
.page-body { padding-block: clamp(2.25rem, 5vw, 4rem); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.page-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 1rem; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem; box-shadow: var(--shadow-xs); }
.side-card h4 { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); margin: 0 0 0.7rem; }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
.side-nav a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6rem; border-radius: 9px; font-size: 0.89rem; font-weight: 600; color: var(--ink-600);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.side-nav a:hover { background: var(--blue-50); color: var(--blue-700); padding-left: 0.85rem; }
.side-cta { background: linear-gradient(150deg, #f0f9fe, #e2f3fc); border-color: var(--line-strong); }
.side-cta p { font-size: 0.87rem; color: var(--ink-600); margin: 0 0 0.85rem; }
@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-side { position: static; }
}

/* Content blocks on course pages */
.block { margin-bottom: clamp(2rem, 4vw, 3rem); scroll-margin-top: calc(var(--nav-h) + 20px); }
.block__head { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.15rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.block__num {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700); font-weight: 750; font-size: 0.9rem;
  border: 1px solid rgba(17, 121, 173, 0.16);
}
.block__head h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0; }
.block__head p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--ink-400); }

.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.7rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.topics li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.75rem 0.9rem; font-size: 0.9rem; color: var(--ink-600); line-height: 1.5;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.topics li:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.topics .bullet {
  flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 800;
}
.topics strong { color: var(--ink-800); display: block; font-size: 0.88rem; }

.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.file-list li { margin: 0; }
.file-row {
  display: flex; align-items: center; gap: 0.85rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.8rem 1rem; text-decoration: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.file-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateX(3px); background: #fdfeff; }
.file-row__icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em;
}
.file-row__icon--pdf { background: #fdeaea; color: #b03434; }
.file-row__icon--doc { background: #e9f2fd; color: #2b62a8; }
.file-row__body { min-width: 0; flex: 1; }
.file-row__title { display: block; font-size: 0.92rem; font-weight: 650; color: var(--ink-800); line-height: 1.35; }
.file-row__meta { display: block; font-size: 0.76rem; color: var(--ink-400); font-weight: 600; }
.file-row__dl { flex: none; color: var(--blue-600); transition: transform 0.3s var(--ease); }
.file-row:hover .file-row__dl { transform: translateY(2px); }

.note {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: var(--blue-50); border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 0.85rem 1rem; font-size: 0.86rem; color: var(--ink-500); margin-top: 1rem;
}
.note svg { flex: none; color: var(--blue-600); margin-top: 2px; }

.keydates { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.keydates li {
  display: flex; align-items: center; gap: 0.85rem; background: #fff;
  border: 1px solid var(--line); border-left: 3px solid var(--blue-400);
  border-radius: 10px; padding: 0.75rem 0.95rem; font-size: 0.89rem;
  transition: border-left-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.keydates li:hover { border-left-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.keydates .when { flex: none; font-weight: 750; color: var(--ink-900); font-size: 0.83rem; min-width: 92px; }
.keydates .what { color: var(--ink-600); }

/* Prev / next course nav */
.course-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.course-nav a {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.15rem; box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.course-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.course-nav span { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }
.course-nav strong { font-size: 0.95rem; color: var(--ink-900); }
.course-nav .next { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .course-nav { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(26px); }
html.js .reveal--left:not(.is-visible) { transform: translateX(-28px); }
html.js .reveal--right:not(.is-visible) { transform: translateX(28px); }
html.js .reveal--scale:not(.is-visible) { transform: scale(0.96); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2rem; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  /* Key dates table becomes stacked cards */
  .dates-table thead { display: none; }
  .dates-table, .dates-table tbody, .dates-table tr, .dates-table td { display: block; width: 100%; }
  .dates-table tr { padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(17, 121, 173, 0.12); }
  .dates-table tr:last-child { border-bottom: 0; }
  .dates-table td { border: 0; padding: 0; }
  .dates-table td + td { margin-top: 0.25rem; }
  .dates-table td:nth-child(2) br { display: none; }
  .dates-table td:nth-child(2) { margin-top: 0.3rem; font-size: 0.95rem; }
  .dates-table td:nth-child(2) strong { display: block; margin-bottom: 2px; }
  .dates-table td:nth-child(3) { font-size: 0.82rem; color: var(--ink-400); font-weight: 600; }
  .dates-table td:nth-child(3)::before { content: "For: "; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__proof { gap: 1rem 1.6rem; }
  .hero__proof-num { font-size: 1.3rem; }
  .dates-table { font-size: 0.86rem; }
  .dates-table th, .dates-table td { padding: 0.8rem 0.95rem; }
  .float-chip { font-size: 0.75rem; padding: 0.5rem 0.8rem; }
  .resource-callout { padding: 1rem; }
  .resource-callout__go { width: 100%; justify-content: center; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .float-chip, .aura, .cta__form, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
