/* =========================================================
   منصة أ. محمود عبادة — التاريخ والدراسات الاجتماعية
   هوية بصرية أصلية: كحلي تاريخي + ذهبي عتيق + ورق قديم
   ========================================================= */

:root {
  --paper: #faf6ee;
  --paper-2: #f2ead9;
  --surface: #fffdf8;
  --surface-2: #fbf7ee;
  --ink: #14202f;
  --ink-2: #26374c;
  --muted: #5f6d83;
  --muted-2: #8b95a5;
  --line: #e7decc;
  --line-strong: #d7c8ad;

  --navy: #0b1a2d;
  --navy-2: #102942;
  --navy-3: #1a3a5a;
  --navy-soft: #e9eef6;

  --gold: #b8892f;
  --gold-2: #d9b25f;
  --gold-3: #f0d79f;
  --gold-soft: #f8efdb;

  --wa: #1c8a55;
  --danger: #b23b3b;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;

  --shadow-sm: 0 1px 2px rgba(20, 32, 47, .05), 0 10px 28px -18px rgba(20, 32, 47, .18);
  --shadow: 0 30px 70px -36px rgba(9, 20, 35, .38);
  --shadow-deep: 0 40px 90px -40px rgba(4, 12, 24, .75);

  --font-head: "Tajawal", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Amiri", "Times New Roman", serif;

  --grad-navy: linear-gradient(155deg, #071322 0%, #0d2238 52%, #12304c 100%);
  --grad-gold: linear-gradient(135deg, #e7c175 0%, #c79a3e 55%, #a97b25 100%);
  --grad-brand: linear-gradient(135deg, var(--navy-2), var(--navy-3));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(217, 178, 95, .10), transparent 60%),
    var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -.015em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }
figure { margin: 0; }
::selection { background: var(--gold-2); color: var(--navy); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 300;
  border-radius: 12px;
  transform: translateY(-200%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(184, 137, 47, .45); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--grad-brand);
  color: #fbf5e7;
  box-shadow: 0 16px 30px -16px rgba(11, 26, 45, .85);
  border-color: rgba(217, 178, 95, .28);
}
.btn-primary:hover { box-shadow: 0 20px 38px -16px rgba(11, 26, 45, .95); }

.btn-gold {
  background: var(--grad-gold);
  color: #23180a;
  box-shadow: 0 16px 32px -16px rgba(184, 137, 47, .8);
}
.btn-gold:hover { filter: brightness(1.04); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, .75);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--gold); background: #fff; }

.btn-outline {
  border-color: rgba(251, 245, 231, .3);
  color: #fbf5e7;
}
.btn-outline:hover { background: rgba(251, 245, 231, .1); border-color: rgba(251, 245, 231, .5); }

.btn-light { background: #fffdf8; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 17px; font-size: 13.5px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-2);
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 246, 238, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 18px 36px -30px rgba(11, 26, 45, .55);
  background: rgba(250, 246, 238, .95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad-navy);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 178, 95, .4);
  box-shadow: 0 12px 26px -14px rgba(11, 26, 45, .8), inset 0 0 0 3px rgba(217, 178, 95, .08);
  flex: none;
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.brand-light .brand-text strong { color: #fbf5e7; }
.brand-light .brand-text small { color: rgba(251, 245, 231, .55); }
.brand-light .brand-mark { background: rgba(255, 253, 248, .06); color: var(--gold-2); }

.main-nav { display: flex; align-items: center; gap: 3px; margin-inline-start: 10px; }
.nav-link {
  position: relative;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.header-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wa);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .18s ease;
}
.header-wa svg { width: 18px; height: 18px; }
.header-wa:hover { background: rgba(28, 138, 85, .08); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-navy);
  color: #f7efdf;
  padding: 72px 0 118px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 178, 95, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 178, 95, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(9, 20, 35, .55));
  pointer-events: none;
  z-index: -1;
}
.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  top: -240px;
  left: -180px;
  background: radial-gradient(circle, rgba(217, 178, 95, .22), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 52px;
  align-items: center;
}
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-head);
  background: rgba(217, 178, 95, .09);
  border: 1px solid rgba(217, 178, 95, .28);
  color: var(--gold-3);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(217, 178, 95, .16);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.45rem, 4.7vw, 4.05rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.035em;
  color: #fbf5e7;
}
.hero h1 .script {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold-2);
  font-size: 1.12em;
  display: inline-block;
  transform: rotate(-1.5deg);
  text-shadow: 0 10px 40px rgba(217, 178, 95, .25);
}
.hero h1 .underlined {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underlined::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: .06em;
  height: .16em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 178, 95, .15), var(--gold-2), rgba(217, 178, 95, .15));
  opacity: .85;
}
.hero-sub {
  margin-top: 20px;
  font-size: 16.5px;
  color: rgba(247, 239, 223, .76);
  max-width: 560px;
}

.hero-search {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 253, 248, .07);
  border: 1px solid rgba(217, 178, 95, .25);
  border-radius: 16px;
  padding: 8px;
  max-width: 560px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-search > svg { width: 20px; height: 20px; color: rgba(247, 239, 223, .55); margin-inline-start: 8px; flex: none; }
.hero-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fbf5e7;
  font-size: 15px;
  padding: 9px 6px;
}
.hero-search input::placeholder { color: rgba(247, 239, 223, .45); }
.hero-search .btn { flex: none; }
.hero-search:focus-within { border-color: rgba(217, 178, 95, .6); box-shadow: 0 0 0 4px rgba(217, 178, 95, .1); }

.hero-grades { margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hg-label { font-size: 12.5px; color: rgba(247, 239, 223, .55); font-weight: 600; }
.hg-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-3);
  border: 1px solid rgba(217, 178, 95, .24);
  background: rgba(217, 178, 95, .06);
  transition: background .18s ease, border-color .18s ease;
}
.hg-pill small { font-size: 10.5px; color: rgba(247, 239, 223, .5); font-weight: 500; }
.hg-pill:hover { background: rgba(217, 178, 95, .16); border-color: rgba(217, 178, 95, .5); }

.hero-points {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: rgba(247, 239, 223, .68);
  font-size: 12.5px;
}
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 15px; height: 15px; color: var(--gold-2); }

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(217, 178, 95, .18);
  pointer-events: none;
}
.ring-1 { width: 440px; height: 440px; animation: spin 60s linear infinite; }
.ring-2 { width: 320px; height: 320px; animation: spin 44s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.story-card {
  position: relative;
  width: min(370px, 92%);
  background: linear-gradient(165deg, #fffdf6, #f7efdc);
  color: var(--ink);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(217, 178, 95, .5);
  box-shadow: var(--shadow-deep), 0 0 0 8px rgba(255, 253, 248, .04);
  transform: rotate(-1.5deg);
  z-index: 2;
}
.story-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 137, 47, .18);
  border-radius: 16px;
  pointer-events: none;
}
.story-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--gold);
  letter-spacing: .04em;
}
.story-kicker svg { width: 15px; height: 15px; }
.story-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--navy-2);
  background: rgba(16, 41, 66, .07);
  padding: 3px 9px;
  border-radius: 999px;
}
.story-card h2 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.03em;
  color: var(--navy);
}
.story-card h2 em { font-family: var(--font-serif); color: var(--gold); font-style: normal; font-weight: 700; }

.story-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 20px 0 18px;
  padding: 0 2px;
}
.story-line::before {
  content: "";
  position: absolute;
  top: 5px;
  inset-inline: 5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(184, 137, 47, .15), rgba(184, 137, 47, .55), rgba(184, 137, 47, .15));
}
.story-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; }
.story-node i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-2);
  border: 2px solid #fffdf6;
  box-shadow: 0 0 0 2px rgba(184, 137, 47, .35);
}
.story-node b { font-size: 9.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.story-lessons { display: grid; gap: 7px; }
.story-lesson {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(16, 41, 66, .045);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.story-lesson.active { background: rgba(184, 137, 47, .13); color: var(--navy); font-weight: 700; }
.sl-tick, .sl-play {
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(28, 138, 85, .14); color: var(--wa);
}
.sl-play { background: var(--gold); color: #fff; }
.sl-tick svg, .sl-play svg { width: 10px; height: 10px; }
.sl-dur { margin-inline-start: auto; font-size: 10px; color: var(--muted-2); font-weight: 500; }
.story-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.story-progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(16, 41, 66, .09); overflow: hidden; }
.story-progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad-gold); }
.story-note { font-size: 10px; color: var(--muted); font-weight: 600; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 253, 248, .96);
  border: 1px solid rgba(217, 178, 95, .4);
  border-radius: 14px;
  box-shadow: 0 22px 40px -24px rgba(4, 12, 24, .8);
  z-index: 3;
  animation: floaty 7s ease-in-out infinite;
}
.float-badge strong { display: block; font-size: 12px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.float-badge small { display: block; font-size: 10px; color: var(--muted); }
.fb-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.fb-ico svg { width: 18px; height: 18px; }
.badge-a { top: 14px; right: 0; animation-delay: -2s; }
.badge-b { bottom: 18px; left: 0; animation-delay: -4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */
.stats-band { position: relative; z-index: 5; margin-top: -62px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat { padding: 26px 20px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat .value {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--navy);
}
.stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(217, 178, 95, .08), transparent 60%),
    var(--paper-2);
  border-top: 1px solid rgba(215, 200, 173, .5);
  border-bottom: 1px solid rgba(215, 200, 173, .5);
}
.section-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.section-head .kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--gold);
  background: rgba(184, 137, 47, .09);
  border: 1px solid rgba(184, 137, 47, .18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.kicker svg { width: 15px; height: 15px; }
.kicker.light { background: rgba(217, 178, 95, .12); border-color: rgba(217, 178, 95, .3); color: var(--gold-3); }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 900; letter-spacing: -.03em; color: var(--navy); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.section-head.row {
  max-width: none;
  text-align: start;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-head.row h2 { margin-top: 6px; }
.section-head.row .btn { flex: none; }
.section-head.row p { max-width: 560px; }

/* ---------- Stage cards ---------- */
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stage-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.stage-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--sc, var(--gold));
}
.stage-primary { --sc: var(--gold); --sc-soft: var(--gold-soft); }
.stage-prep { --sc: #2f6f66; --sc-soft: #e6f1ed; }
.stage-secondary { --sc: #334a7a; --sc-soft: #e8ecf6; }
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.stage-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stage-num {
  font-family: var(--font-serif);
  font-size: 54px;
  line-height: .9;
  font-weight: 700;
  color: var(--sc);
  opacity: .22;
}
.stage-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sc);
  color: #fffdf8;
  box-shadow: 0 14px 26px -16px var(--sc);
  flex: none;
}
.stage-icon svg { width: 25px; height: 25px; }
.stage-subject {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--sc);
  letter-spacing: .04em;
}
.stage-card h3 { margin-top: 4px; font-size: 22px; font-weight: 900; color: var(--navy); }
.stage-desc { margin-top: 8px; font-size: 13.5px; color: var(--muted); min-height: 62px; }
.stage-grades { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stage-grades a {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  transition: .16s ease;
}
.stage-grades a:hover { background: var(--sc-soft); border-color: var(--sc); color: var(--sc); }
.stage-foot {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.stage-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-family: var(--font-head); color: var(--sc); font-size: 12.5px; }
.stage-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.stage-link:hover svg { transform: translateX(-4px); }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.course-card:focus-visible { outline: 3px solid rgba(184, 137, 47, .4); outline-offset: 3px; }

.course-cover { position: relative; height: 168px; display: grid; place-items: center; overflow: hidden; }
.course-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: .16;
}
.course-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 14, 26, .55), transparent 62%);
  pointer-events: none;
}
.cover-num {
  position: absolute;
  inset-inline-start: 16px;
  bottom: -18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 112px;
  line-height: 1;
  color: rgba(255, 255, 255, .14);
  pointer-events: none;
}
.cover-icon {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
  display: grid;
  place-items: center;
  color: #fffdf8;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.cover-icon svg { width: 31px; height: 31px; }
.cover-level {
  position: absolute;
  z-index: 2;
  inset-inline-start: 16px;
  bottom: 13px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 253, 248, .88);
  letter-spacing: .02em;
}
.badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  inset-inline-start: 14px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #23180a;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5);
}

.course-body { padding: 20px 21px 21px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-topline { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--gold); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.course-title { font-size: 17.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.45; color: var(--navy); }
.course-desc {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 11px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.course-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.course-meta svg { width: 14px; height: 14px; color: var(--muted-2); }
.course-meta .star { color: var(--gold); }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 5px; }
.price { display: flex; align-items: baseline; gap: 7px; }
.price-now { font-family: var(--font-head); font-size: 21px; font-weight: 900; color: var(--navy); line-height: 1; }
.price-now small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.price-was { font-size: 12px; color: var(--muted-2); text-decoration: line-through; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
}
.card-cta svg { width: 15px; height: 15px; transition: transform .18s ease; }
.course-card:hover .card-cta svg { transform: translateX(-4px); }

/* gradient variants (muted, antique) */
.grad-teal { background: linear-gradient(135deg, #1f5c57, #2f857b); }
.grad-indigo { background: linear-gradient(135deg, #2c3768, #47579c); }
.grad-violet { background: linear-gradient(135deg, #4b3768, #705098); }
.grad-emerald { background: linear-gradient(135deg, #2d5b44, #4b8564); }
.grad-amber { background: linear-gradient(135deg, #9a6c22, #cf9d3d); }
.grad-sky { background: linear-gradient(135deg, #2a5470, #4a83a6); }
.grad-rose { background: linear-gradient(135deg, #793a45, #a85c66); }

/* ---------- Method & features ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.method-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  overflow: hidden;
}
.method-num {
  position: absolute;
  top: 10px;
  inset-inline-end: 16px;
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 700;
  color: var(--gold);
  opacity: .14;
  line-height: 1;
}
.method-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 16px;
}
.method-ico svg { width: 24px; height: 24px; }
.method-step h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.method-step p { font-size: 13.5px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid-4 { margin-top: 42px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 21px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--navy-soft);
  color: var(--navy-3);
}
.feature-card:nth-child(2) .feature-ico { background: var(--gold-soft); color: var(--gold); }
.feature-card:nth-child(3) .feature-ico { background: #e6f1ed; color: #2f6f66; }
.feature-card:nth-child(4) .feature-ico { background: #f3e9e7; color: #9c5240; }
.feature-ico svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.feature-card p { font-size: 12.5px; color: var(--muted); }

/* ---------- Teacher strip ---------- */
.teacher-section { padding-top: 0; }
.teacher-strip {
  position: relative;
  overflow: hidden;
  background: var(--grad-navy);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217, 178, 95, .25);
  padding: 48px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  color: #f7efdf;
  box-shadow: var(--shadow);
}
.teacher-strip::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(217, 178, 95, .18);
  top: -160px;
  inset-inline-end: -80px;
  pointer-events: none;
}
.teacher-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 178, 95, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .35;
  mask-image: linear-gradient(to left, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 60%);
  pointer-events: none;
}
.teacher-portrait { position: relative; display: grid; place-items: center; min-height: 260px; z-index: 1; }
.tp-ring {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 178, 95, .4);
}
.tp-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(217, 178, 95, .18);
}
.tp-initials {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #1d3f60, #0c1d31);
  border: 2px solid rgba(217, 178, 95, .55);
  box-shadow: 0 0 0 10px rgba(217, 178, 95, .06), 0 30px 60px -24px rgba(0, 0, 0, .8);
  font-family: var(--font-head);
  font-size: 58px;
  font-weight: 900;
  color: var(--gold-2);
  letter-spacing: -.05em;
}
.tp-badge {
  position: absolute;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-gold);
  color: #23180a;
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-head);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6);
}
.tp-badge svg { width: 14px; height: 14px; }
.teacher-copy { position: relative; z-index: 1; }
.teacher-copy h2 { margin-top: 10px; font-size: clamp(1.7rem, 2.8vw, 2.35rem); font-weight: 900; color: #fbf5e7; }
.teacher-quote {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--gold-2);
  line-height: 1.6;
}
.teacher-bio { margin-top: 12px; font-size: 14px; color: rgba(247, 239, 223, .72); max-width: 620px; }
.teacher-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.teacher-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(247, 239, 223, .8);
  border: 1px solid rgba(217, 178, 95, .25);
  background: rgba(217, 178, 95, .06);
  padding: 5px 11px;
  border-radius: 999px;
}
.teacher-tags svg { width: 14px; height: 14px; color: var(--gold-2); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.quote-mark { color: var(--gold); opacity: .4; }
.quote-mark svg { width: 28px; height: 28px; }
.quote-card blockquote { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.quote-person { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex: none;
}
.quote-person strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy); }
.quote-person small { display: block; font-size: 11px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc { border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: 0; }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: start;
  transition: background .18s ease;
}
.acc-head:hover { background: rgba(184, 137, 47, .045); }
.acc-head:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.acc-q { flex: 1; font-family: var(--font-head); font-size: 15.5px; font-weight: 700; color: var(--navy); }
.acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  flex: none;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.acc-icon svg { width: 16px; height: 16px; }
.acc.open .acc-icon { transform: rotate(180deg); background: var(--gold); color: #fff; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 22px 20px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 0 92px; }
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grad-navy);
  color: #f7efdf;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid rgba(217, 178, 95, .25);
  box-shadow: var(--shadow);
}
.cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 178, 95, .22), transparent 70%);
  top: -190px;
  inset-inline-start: 16%;
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 178, 95, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .3;
  mask-image: linear-gradient(to left, transparent, #000);
  -webkit-mask-image: linear-gradient(to left, transparent, #000);
  pointer-events: none;
}
.cta-copy, .cta-actions { position: relative; z-index: 1; }
.cta-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; font-family: var(--font-head); color: var(--gold-2); }
.cta-kicker svg { width: 15px; height: 15px; }
.cta h2 { margin-top: 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: #fbf5e7; }
.cta p { margin-top: 8px; color: rgba(247, 239, 223, .72); font-size: 14px; max-width: 520px; }
.cta-actions { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(217, 178, 95, .16), transparent 65%),
    var(--paper-2);
  border-bottom: 1px solid rgba(215, 200, 173, .6);
  padding: 62px 0 64px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 137, 47, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 137, 47, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--navy);
}
.page-hero p { margin: 12px auto 0; max-width: 680px; color: var(--muted); font-size: 15px; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.crumb a { transition: color .16s ease; }
.crumb a:hover { color: var(--gold); }
.crumb-sep { display: inline-grid; place-items: center; color: var(--line-strong); }
.crumb-sep svg { width: 12px; height: 12px; transform: rotate(90deg); }

/* ---------- Courses page ---------- */
.courses-section { padding-top: 46px; }
.courses-toolbar { margin-bottom: 36px; display: grid; gap: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: .18s ease;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fbf5e7; box-shadow: 0 10px 22px -14px rgba(11, 26, 45, .8); }
.chip-sm { padding: 7px 14px; font-size: 12px; }

.search-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 9px 14px;
  width: min(460px, 100%);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 137, 47, .1); }
.search-field svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.search-field input::placeholder { color: var(--muted-2); }
.results-count { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.filter-hint { text-align: center; font-size: 12.5px; color: var(--muted-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.filter-hint svg { width: 14px; height: 14px; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 58px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-ico svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.empty-state p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.empty-state .btn { margin-top: 16px; }

.courses-help {
  margin-top: 48px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.courses-help h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.courses-help p { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* ---------- Course detail ---------- */
.course-view { padding: 32px 0 88px; }
.course-view .crumb { display: flex; justify-content: flex-start; margin-bottom: 26px; }
.course-hero { display: grid; grid-template-columns: 1.5fr .85fr; gap: 42px; align-items: start; }
.course-main { min-width: 0; }
.course-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.pill {
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--font-head);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy-3);
}
.pill.dark { background: var(--navy); color: #fbf5e7; }
.pill.gold { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(184, 137, 47, .25); }
.course-main h1 { font-size: clamp(1.75rem, 3.3vw, 2.55rem); font-weight: 900; letter-spacing: -.035em; color: var(--navy); line-height: 1.25; }
.course-main .lead { margin-top: 13px; color: var(--muted); font-size: 15px; max-width: 700px; }
.course-facts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.course-facts span { display: inline-flex; align-items: center; gap: 6px; }
.course-facts svg { width: 15px; height: 15px; color: var(--muted-2); }
.course-facts .star { color: var(--gold); }

.video-shell {
  position: relative;
  width: 100%;
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(560px 300px at 78% 12%, rgba(217, 178, 95, .28), transparent 62%),
    radial-gradient(480px 300px at 12% 92%, rgba(94, 154, 178, .22), transparent 62%),
    var(--grad-navy);
  border: 1px solid rgba(217, 178, 95, .3);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-shell:hover { box-shadow: var(--shadow); }
.video-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .55;
}
.play-btn {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 253, 248, .14);
  border: 1px solid rgba(240, 215, 159, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--gold-3);
  transition: transform .2s ease, background .2s ease;
}
.video-shell:hover .play-btn { transform: scale(1.08); background: rgba(255, 253, 248, .22); }
.play-btn svg { width: 30px; height: 30px; margin-inline-start: 4px; }
.video-caption {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  inset-inline-start: 18px;
  font-size: 12.5px;
  color: rgba(247, 239, 223, .82);
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-caption .live { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(217, 178, 95, .2); }
.video-duration {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  inset-inline-end: 18px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(247, 239, 223, .75);
  background: rgba(5, 14, 26, .55);
  padding: 3px 9px;
  border-radius: 6px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.panel-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 18px; font-weight: 900; color: var(--navy); }
.panel-head .meta { font-size: 12px; color: var(--muted); }

.module { border-bottom: 1px solid var(--line); }
.module:last-child { border-bottom: 0; }
.module-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: start;
  transition: background .18s ease;
}
.module-head:hover { background: rgba(184, 137, 47, .04); }
.module-index {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  flex: none;
  font-weight: 800;
}
.module-title { font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: var(--navy); flex: 1; }
.module-count { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.chev { color: var(--muted-2); transition: transform .22s ease; display: grid; place-items: center; }
.chev svg { width: 17px; height: 17px; }
.module.open .chev { transform: rotate(180deg); }
.module-body { display: none; padding: 0 18px 14px; }
.module.open .module-body { display: block; }

.lesson-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.lesson-row:hover { background: var(--surface-2); }
.lesson-row .li { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--paper-2); color: var(--muted); }
.lesson-row .li svg { width: 12px; height: 12px; }
.lesson-row.free .li { background: rgba(28, 138, 85, .12); color: var(--wa); }
.lesson-title { flex: 1; }
.lesson-row .dur { font-size: 11px; color: var(--muted-2); }
.free-tag { font-size: 9.5px; font-weight: 800; font-family: var(--font-head); color: var(--wa); background: rgba(28, 138, 85, .11); padding: 2px 8px; border-radius: 999px; }

.instructor-block { display: flex; align-items: center; gap: 15px; padding: 20px 22px; }
.instructor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  flex: none;
  box-shadow: 0 14px 26px -16px rgba(11, 26, 45, .5);
}
.instructor-block h3 { font-size: 16px; font-weight: 800; color: var(--navy); }
.instructor-block p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.inline-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--gold); }
.inline-link svg { width: 14px; height: 14px; }

.related-block { margin-top: 40px; }
.related-block .section-head { margin-bottom: 22px; }

.purchase {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}
.purchase-cover {
  position: relative;
  height: 104px;
  margin: -22px -22px 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.purchase-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .18;
}
.pc-label { position: absolute; top: 14px; inset-inline-start: 18px; font-size: 11px; font-weight: 700; color: rgba(255, 253, 248, .9); }
.pc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .17);
  border: 1px solid rgba(255, 255, 255, .35);
  display: grid;
  place-items: center;
  color: #fff;
}
.pc-icon svg { width: 26px; height: 26px; }
.price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.price-row .price-now { font-size: 32px; }
.price-row .price-now small { font-size: 13px; }
.price-row .save { font-size: 10.5px; font-weight: 800; font-family: var(--font-head); color: #8a2f2f; background: #f7e4e0; padding: 3px 9px; border-radius: 999px; }
.purchase .note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.purchase .btn + .btn { margin-top: 9px; }
.perk-list { display: grid; gap: 10px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.perk-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); }
.perk-list .ok { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: rgba(28, 138, 85, .12); color: var(--wa); flex: none; }
.perk-list .ok svg { width: 12px; height: 12px; }
.purchase .guarantee { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; }
.purchase .guarantee svg { width: 15px; height: 15px; flex: none; color: var(--gold); }

.course-pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  min-width: 160px;
  transition: border-color .18s ease, transform .18s ease;
}
.pager-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.pager-link span { color: var(--gold); }
.pager-link span svg { width: 18px; height: 18px; }
.pager-link.next { text-align: end; align-items: flex-end; }
.pager-link.next span svg { transform: rotate(180deg); }
.pager-link small { font-size: 10px; color: var(--muted-2); }
.pager-link strong { font-size: 13px; font-weight: 800; color: var(--navy); }

/* ---------- Stages page ---------- */
.stage-block { padding: 66px 0; }
.stage-block:nth-of-type(even) { background: var(--paper-2); border-block: 1px solid rgba(215, 200, 173, .5); }
.stage-block-head { display: grid; grid-template-columns: 62px 1fr auto; gap: 20px; align-items: center; margin-bottom: 28px; }
.stage-block-ico {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--sc, var(--gold));
  box-shadow: 0 18px 30px -18px var(--sc, var(--gold));
}
.stage-block-ico.stage-primary { --sc: var(--gold); }
.stage-block-ico.stage-prep { --sc: #2f6f66; }
.stage-block-ico.stage-secondary { --sc: #334a7a; }
.stage-block-ico svg { width: 30px; height: 30px; }
.stage-block-head .kicker { margin-bottom: 6px; }
.stage-block-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; color: var(--navy); }
.stage-block-head p { margin-top: 5px; font-size: 13.5px; color: var(--muted); max-width: 620px; }
.stage-block-stats { display: flex; gap: 26px; }
.stage-block-stats div { text-align: center; }
.stage-block-stats strong { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 900; color: var(--navy); line-height: 1; }
.stage-block-stats span { font-size: 11px; color: var(--muted); }

.grade-list { display: grid; gap: 10px; }
.grade-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.grade-row:hover { transform: translateX(-4px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.grade-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  flex: none;
}
.grade-info { min-width: 0; }
.grade-info strong { display: block; font-size: 15px; font-weight: 800; color: var(--navy); }
.grade-info small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 620px; }
.grade-meta { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--muted); }
.grade-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.grade-meta svg { width: 14px; height: 14px; color: var(--muted-2); }
.grade-price { color: var(--navy); font-weight: 800; font-size: 12px; }
.grade-price .price-now { font-size: 15px; }
.grade-price .price-was { display: none; }
.grade-arrow { color: var(--gold); display: grid; place-items: center; }
.grade-arrow svg { width: 18px; height: 18px; transition: transform .18s ease; }
.grade-row:hover .grade-arrow svg { transform: translateX(-4px); }

/* ---------- Teacher page ---------- */
.teacher-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-navy);
  color: #f7efdf;
  padding: 72px 0 84px;
}
.teacher-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 178, 95, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .3;
  mask-image: radial-gradient(ellipse at 75% 35%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 35%, #000, transparent 70%);
  pointer-events: none;
}
.teacher-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.teacher-hero-copy h1 { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: -.035em; color: #fbf5e7; }
.teacher-hero-sub { margin-top: 10px; font-family: var(--font-serif); font-size: 23px; color: var(--gold-2); }
.teacher-hero-lead { margin-top: 14px; font-size: 15px; color: rgba(247, 239, 223, .74); max-width: 560px; }
.teacher-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.teacher-hero-portrait { position: relative; display: grid; place-items: center; min-height: 380px; }
.thp-frame {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(217, 178, 95, .4);
}
.thp-frame::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(217, 178, 95, .14);
}
.thp-initials {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 26%, #1e4265, #0a1a2c);
  border: 2px solid rgba(217, 178, 95, .5);
  box-shadow: 0 0 0 12px rgba(217, 178, 95, .05), 0 36px 70px -28px rgba(0, 0, 0, .85);
  font-family: var(--font-head);
  font-size: 74px;
  font-weight: 900;
  color: var(--gold-2);
  letter-spacing: -.06em;
}
.thp-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 253, 248, .96);
  color: var(--navy);
  border: 1px solid rgba(217, 178, 95, .5);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-head);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .8);
}
.thp-chip svg { width: 14px; height: 14px; color: var(--gold); }
.chip-1 { top: 18px; inset-inline-start: 0; }
.chip-2 { bottom: 54px; inset-inline-end: 0; }
.chip-3 { bottom: 6px; inset-inline-start: 34px; }

.teacher-story { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: start; }
.teacher-story-copy .kicker { margin-bottom: 12px; }
.teacher-story-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 900; color: var(--navy); margin-bottom: 14px; }
.teacher-story-copy p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.teacher-bigquote {
  margin-top: 22px;
  padding: 6px 20px;
  border-inline-start: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.7;
  color: var(--navy);
}
.teacher-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.teacher-highlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
}
.th-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 12px; }
.th-ico svg { width: 21px; height: 21px; }
.teacher-highlight h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.teacher-highlight p { font-size: 11.5px; color: var(--muted); }
.teacher-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 54px;
}
.teacher-stats div { padding: 22px 16px; text-align: center; border-inline-start: 1px solid var(--line); }
.teacher-stats div:first-child { border-inline-start: 0; }
.teacher-stats strong { display: block; font-family: var(--font-head); font-size: 27px; font-weight: 900; color: var(--navy); }
.teacher-stats span { font-size: 12px; color: var(--muted); }

/* ---------- FAQ layout ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 330px; gap: 32px; align-items: start; }
.faq-aside {
  background: var(--grad-navy);
  color: #f7efdf;
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(217, 178, 95, .25);
}
.faq-aside-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(28, 138, 85, .18);
  color: #6fd6a0;
  margin-bottom: 14px;
}
.faq-aside-ico svg { width: 24px; height: 24px; }
.faq-aside h3 { font-size: 19px; font-weight: 900; color: #fbf5e7; }
.faq-aside p { margin-top: 6px; font-size: 13px; color: rgba(247, 239, 223, .7); margin-bottom: 18px; }
.faq-aside-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(247, 239, 223, .5); margin-top: 12px; justify-content: center; }
.faq-aside-note svg { width: 13px; height: 13px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 0; }
.nf-code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--gold);
  opacity: .3;
  display: block;
}
.notfound h1 { margin-top: 6px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; color: var(--navy); }
.notfound p { margin-top: 10px; color: var(--muted); }
.nf-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Upload ---------- */
.upload-view { padding: 52px 0 88px; }
.upload-head { text-align: center; max-width: 660px; margin: 0 auto 30px; }
.upload-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; color: var(--navy); margin-top: 10px; }
.upload-head p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.upload-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: var(--surface-2);
  transition: border-color .2s ease, background .2s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: rgba(184, 137, 47, .05); }
.dropzone .dz-ico { width: 62px; height: 62px; border-radius: 17px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.dropzone .dz-ico svg { width: 30px; height: 30px; }
.dropzone strong { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 800; color: var(--navy); }
.dropzone span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.upload-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; font-family: var(--font-head); }
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.field select:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(184, 137, 47, .12); }

.file-picked {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.file-picked.static { margin-top: 0; padding: 9px 12px; }
.file-picked .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.file-picked .fi svg { width: 19px; height: 19px; }
.file-picked .fname { font-size: 13px; font-weight: 700; word-break: break-all; }
.file-picked .fsize { font-size: 11.5px; color: var(--muted); }

.progress-block { margin-top: 20px; }
.progress-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.progress-head .pct { font-family: var(--font-head); font-weight: 900; color: var(--gold); }
.progress-big { height: 11px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress-big > span { display: block; height: 100%; width: 0; background: var(--grad-gold); transition: width .18s ease; }

.upload-actions { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.log {
  margin-top: 20px;
  background: var(--navy);
  color: #cbd5e1;
  border-radius: 13px;
  padding: 15px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.8;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.log .ok { color: #7fe3b1; }
.log .err { color: #fca5a5; }
.log .dim { color: #7b8ba1; }
.result-note { margin-top: 16px; padding: 14px 16px; border-radius: 13px; background: #eef8f1; border: 1px solid #bfe6cd; color: #145c37; font-size: 12.5px; word-break: break-all; }
.result-note strong { font-family: var(--font-head); }
.upload-tip { max-width: 820px; margin: 18px auto 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Preview modal ---------- */
.preview-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s ease; }
.preview-modal.open { opacity: 1; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(5, 14, 26, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pm-card {
  position: relative;
  width: min(660px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(217, 178, 95, .4);
  transform: translateY(16px) scale(.98);
  transition: transform .22s ease;
  max-height: 92vh;
  overflow-y: auto;
}
.preview-modal.open .pm-card { transform: none; }
.pm-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(5, 14, 26, .5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pm-close svg { width: 18px; height: 18px; }
.pm-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(400px 220px at 70% 20%, rgba(217, 178, 95, .3), transparent 65%),
    var(--grad-navy);
  display: grid;
  place-items: center;
}
.pm-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.pm-play {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(240, 215, 159, .6);
  background: rgba(255, 253, 248, .14);
  color: var(--gold-3);
  display: grid;
  place-items: center;
}
.pm-play svg { width: 26px; height: 26px; margin-inline-start: 4px; }
.pm-duration { position: absolute; bottom: 14px; inset-inline-end: 16px; font-size: 11px; color: rgba(247, 239, 223, .75); background: rgba(5, 14, 26, .55); padding: 3px 9px; border-radius: 6px; z-index: 2; }
.pm-player.has-video { background: #050e1a; }
.pm-player.has-video::before,
.pm-player.has-video .pm-play,
.pm-player.has-video .pm-duration { display: none; }
.pm-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}
.pm-body { padding: 24px 26px 26px; }
.pm-kicker { font-size: 11px; font-weight: 800; font-family: var(--font-head); color: var(--gold); background: var(--gold-soft); padding: 4px 11px; border-radius: 999px; }
.pm-body h3 { margin-top: 10px; font-size: 21px; font-weight: 900; color: var(--navy); }
.pm-body #pmCourse { margin-top: 4px; font-size: 13px; color: var(--muted); }
.pm-note { margin: 14px 0 18px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #071322;
  color: rgba(247, 239, 223, .66);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(217, 178, 95, .18);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 38px; }
.footer-brand p { margin-top: 15px; font-size: 12.5px; max-width: 330px; color: rgba(247, 239, 223, .55); }
.footer-brand .footer-tagline { margin-top: 12px; font-family: var(--font-serif); font-size: 17px; color: var(--gold-2); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { color: #fbf5e7; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 12.5px; color: rgba(247, 239, 223, .58); transition: color .18s ease; }
.footer-col a:hover { color: var(--gold-2); }
.footer-admin { color: rgba(247, 239, 223, .3) !important; font-size: 11px !important; }
.footer-admin:hover { color: var(--gold-2) !important; }
.footer-contact { gap: 10px; }
.footer-social { display: flex; gap: 8px; margin-top: 6px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 178, 95, .2);
  color: rgba(247, 239, 223, .7);
  transition: .18s ease;
}
.footer-social a:hover { color: var(--gold-2); border-color: var(--gold); background: rgba(217, 178, 95, .08); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 178, 95, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  color: rgba(247, 239, 223, .42);
}
.footer-note { font-family: var(--font-serif); font-size: 13px; color: rgba(217, 178, 95, .6); }

/* ---------- WhatsApp fab ---------- */
.wa-fab {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22a564, #16804b);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 18px 38px -16px rgba(22, 128, 75, .8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -16px rgba(22, 128, 75, .9); }
.wa-fab svg { width: 22px; height: 22px; }

/* ---------- Boot loader ---------- */
.boot-loader {
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}
.boot-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(184, 137, 47, .2);
  border-top-color: var(--gold);
  animation: bootspin .7s linear infinite;
}
@keyframes bootspin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 26px;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100vw - 40px);
  background: var(--navy);
  color: #fbf5e7;
  border: 1px solid rgba(217, 178, 95, .35);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 250;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 440px; max-width: 540px; margin: 0 auto; width: 100%; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-strip { grid-template-columns: 240px 1fr; gap: 32px; padding: 40px; }
  .course-hero { grid-template-columns: 1fr; }
  .purchase { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; max-width: 420px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .teacher-story { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 84px;
    inset-inline: 16px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
    z-index: 90;
    margin: 0;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .menu-toggle { display: inline-grid; }
  .header-wa span { display: none; }
  .header-wa { padding: 8px; }
  .teacher-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .teacher-hero-portrait { order: -1; min-height: 320px; }
  .teacher-stats { grid-template-columns: repeat(2, 1fr); }
  .teacher-stats div:nth-child(3) { border-inline-start: 0; }
  .quote-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta { flex-direction: column; text-align: center; align-items: center; }
  .cta p { margin-inline: auto; }
  .cta-actions { justify-content: center; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .stage-block-head { grid-template-columns: 54px 1fr; }
  .stage-block-stats { grid-column: 1 / -1; justify-content: flex-start; gap: 32px; }
  .grade-row { grid-template-columns: auto 1fr auto; }
  .grade-meta { display: none; }
}

@media (max-width: 760px) {
  .teacher-strip { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; }
  .teacher-portrait { min-height: 240px; }
  .teacher-tags, .teacher-copy .btn { justify-content: center; }
  .teacher-tags { justify-content: center; }
  .teacher-strip .kicker { margin-inline: auto; }
  .method-grid { grid-template-columns: 1fr; }
  .teacher-highlights { grid-template-columns: 1fr 1fr; }
  .cta { padding: 38px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { height: 70px; gap: 14px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { display: none; }
  .header-cta { display: none; }
  .main-nav { top: 76px; }
  .hero { padding: 46px 0 100px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero-sub { font-size: 14.5px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .btn { width: 100%; }
  .hero-search > svg { display: none; }
  .hero-grades .hg-label { width: 100%; }
  .hero-visual { min-height: 400px; }
  .story-card { padding: 20px; }
  .float-badge { display: none; }
  .stats-band { margin-top: -48px; }
  .stat { padding: 20px 12px; }
  .stat .value { font-size: 26px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 32px; }
  .stage-grid, .course-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid-4 { margin-top: 28px; }
  .stage-desc { min-height: 0; }
  .stage-block { padding: 46px 0; }
  .stage-block-head { gap: 14px; }
  .grade-info small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .grade-row { padding: 13px 14px; gap: 12px; }
  .teacher-hero { padding: 44px 0 56px; }
  .teacher-hero-portrait { min-height: 280px; }
  .thp-frame { width: 220px; height: 220px; }
  .thp-initials { width: 164px; height: 164px; font-size: 52px; }
  .thp-chip { font-size: 10px; }
  .chip-1 { top: 4px; }
  .chip-2 { bottom: 30px; }
  .chip-3 { bottom: -6px; }
  .teacher-hero-sub { font-size: 19px; }
  .teacher-highlights { grid-template-columns: 1fr; }
  .teacher-bigquote { font-size: 20px; }
  .teacher-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-wrap { padding-bottom: 66px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .courses-help { padding: 22px; }
  .courses-help .btn { width: 100%; }
  .course-view { padding: 20px 0 62px; }
  .course-pager { flex-direction: column; }
  .pager-link { min-width: 0; width: 100%; }
  .pager-link.next { align-items: flex-start; text-align: start; }
  .pager-link.next span svg { transform: none; }
  .upload-controls { grid-template-columns: 1fr; }
  .upload-card { padding: 20px; }
  .wa-fab { bottom: 16px; inset-inline-end: 16px; padding: 12px; }
  .wa-fab span { display: none; }
  .toast { bottom: 78px; }
  .video-caption { font-size: 11px; inset-inline-start: 12px; bottom: 12px; }
  .video-duration { inset-inline-end: 12px; bottom: 12px; }
  .panel-head { padding: 16px; }
  .module-head { padding: 14px 14px; }
  .module-body { padding: 0 10px 12px; }
  .lesson-row { padding: 9px 8px; }
  .instructor-block { align-items: flex-start; }
  .pm-body { padding: 20px; }
  .page-hero { padding: 44px 0 46px; }
  .courses-section { padding-top: 32px; }
  .search-row { flex-direction: column; }
  .results-count { text-align: center; }
}

@media (max-width: 400px) {
  .filter-row { gap: 6px; }
  .chip { padding: 8px 14px; font-size: 12px; }
  .tp-initials { width: 150px; height: 150px; font-size: 48px; }
  .tp-ring { width: 210px; height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
