/* =====================================================================
   TESOL Flex – visual theme v2 (11/11/2026)
   Based on the TESOL Flex campaign visual: warm ivory paper, soft blue
   rings & light rays, bold navy/red headlines, framed cards with an
   offset colour edge (like the trainer photo frames).
   Loaded AFTER styles.css – remove this file to go back to the old look.
   ===================================================================== */
:root {
  --ivory: #F8F6F1; --paper: #FFFFFF; --ink: #141A3A; --muted: #687089;
  --line: #E7E3DA; --line-2: #EFECE5;
  --navy: #12208A; --navy-d: #0C1766; --blue: #1834AD; --royal: #2E4FD6;
  --red: #CA2027; --red-d: #A9181F;
  --blue-bg: #EEF2FD; --pink-bg: #FCEFEF; --wait-bg: #EEF2FD; --bg: #F4F2EC;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,26,58,.04), 0 10px 30px -12px rgba(20,26,58,.12);
  --shadow-lg: 0 2px 4px rgba(20,26,58,.05), 0 24px 48px -20px rgba(18,32,138,.28);
  --display: "Be Vietnam Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rays: repeating-conic-gradient(from -8deg at 85% 115%, rgba(46,79,214,.035) 0 4deg, transparent 4deg 13deg);
}

/* ---------- base ---------- */
body { background: var(--ivory); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .btn, .eyebrow, .gb-label, .rm-stage, .sb-num, .kpi b, .big-date, .ring b { font-family: var(--display); }
h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-d); }
h2 { font-weight: 700; letter-spacing: -.01em; }
h3 { font-weight: 700; }
.eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--red); }
a { color: var(--blue); }
::selection { background: rgba(46,79,214,.18); }

/* ---------- header ---------- */
.top { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: none; padding: 10px 28px; }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red) 0 22%, var(--navy) 22% 100%); }
.mainnav a { font-family: var(--display); font-weight: 600; color: #3A4160; padding: 8px 14px; border-radius: 99px; position: relative; }
.mainnav a:hover { background: var(--blue-bg); color: var(--navy); }
.mainnav a.on { background: transparent; color: var(--navy); }
.mainnav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); }
.avatar { background: linear-gradient(135deg, var(--navy), var(--royal)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); font-family: var(--display); }
.who .link { color: #3A4160; text-decoration: none; font-weight: 600; }
.who .link:hover { color: var(--red); }

/* ---------- footer ---------- */
.foot { background: transparent; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card h2 { color: var(--navy-d); }
.help { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.help::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--red); }
.help h3 { font-size: 15px; }

/* ---------- buttons & inputs ---------- */
.btn { border-radius: 12px; padding: 11px 20px; font-weight: 700; letter-spacing: .005em;
  background: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -8px rgba(18,32,138,.6); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(18,32,138,.7); }
.btn.big { padding: 14px 26px; border-radius: 14px; }
.btn.ghost { background: var(--paper); color: var(--navy); border: 1.5px solid #CCD3EE; box-shadow: none; }
.btn.ghost:hover { border-color: var(--navy); background: var(--blue-bg); transform: none; }
.btn:disabled { box-shadow: none; transform: none; }
input[type=text], input[type=email], input[type=password], input:not([type]), input[type=datetime-local], textarea, select {
  border: 1px solid #DAD6CC; border-radius: 12px; background: #FFFEFC; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(46,79,214,.12); background: #fff; }
.bar { background: #ECE8DF; }
.bar span { background: linear-gradient(90deg, var(--red), var(--royal)); }
.pill { font-family: var(--display); font-weight: 600; letter-spacing: .01em; padding: 4px 11px; }
.st-next { background: var(--red); }
.alert { border-radius: 14px; }
.alert.info { background: var(--blue-bg); border-color: #D9E1FA; }
.toast { border-radius: 14px; background: var(--navy-d); box-shadow: var(--shadow-lg); font-family: var(--display); }

/* ---------- login ---------- */
.login-page { background: var(--ivory); }
.login-art { background: var(--rays), #F7F5F2 url(img/hero-bg.jpg) left center / cover; position: relative; }
.login-art p { font-family: var(--display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.login-box { background: var(--paper); box-shadow: -30px 0 60px -40px rgba(20,26,58,.25); }
.login-box h1 { font-size: 34px; }
.login-box .btn.block { padding: 14px; font-size: 16px; margin-top: 6px; }

/* ---------- home hero ---------- */
.hero { background: linear-gradient(90deg, #fff 36%, rgba(255,255,255,.6) 58%, rgba(255,255,255,0) 78%), url(img/hero-bg.jpg) right center / cover no-repeat; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero.slim { padding: 34px 36px; }
.hero::after { content: ""; position: absolute; right: 28px; top: 50%; width: 150px; height: 108px; transform: translateY(-50%);
  background: url(img/tesol-flex-logo.png) center / contain no-repeat; opacity: .95; }
.hero h1 { font-size: 36px; }
.hero .eyebrow { margin-bottom: 8px; }

/* ---------- course guide banner (home) ---------- */
.guide-banner { background: var(--rays), var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.guide-banner::before { width: 100%; height: 4px; bottom: auto; background: linear-gradient(90deg, var(--red) 0 22%, var(--navy) 22%); }
.gb-head h2 { color: var(--navy-d); font-size: 28px; font-weight: 800; }
.gb-head p { color: var(--muted); opacity: 1; }
.gb-head img { display: none; }
.eyebrow.light { color: var(--red); }
.gb-arrow { color: #B9C2E6; opacity: 1; }
.gb-stage, .gb-cert { border-radius: 16px; border: 1.5px solid var(--navy); background: var(--paper); box-shadow: 7px 7px 0 #DCE3FA; padding: 18px; }
.gb-flow > .gb-stage:nth-of-type(2) { border-color: var(--red); box-shadow: 7px 7px 0 #F6D5D7; }
.gb-stage.locked { background: #FBFAF7; border-color: #C9CEDF; box-shadow: 7px 7px 0 #ECEEF3; }
a.gb-stage:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #CCD6F8; }
.gb-num { border-radius: 12px; font-family: var(--display); font-weight: 800; background: var(--navy); }
.gb-flow > .gb-stage:nth-of-type(2) .gb-num { background: var(--red); }
.gb-stage.locked .gb-num { background: #B7BDD0; }
.gb-assess { background: var(--ivory); border: 1px dashed var(--line); }
.gb-go { color: var(--red); font-family: var(--display); }
.gb-cert { background: linear-gradient(180deg, #FFFDF8, #F7F2E6); border-color: #C8A962; box-shadow: 7px 7px 0 #EFE5CC; }
.medal.big { background: var(--navy); box-shadow: 0 0 0 5px #FFFDF8, 0 0 0 7px #C8A962; }

/* ---------- home cards ---------- */
.next-webinar { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); border: 0; position: relative; overflow: hidden; }
.next-webinar::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  border: 26px solid rgba(255,255,255,.07); box-shadow: 0 0 0 26px rgba(255,255,255,.04); }
.ring { background: conic-gradient(var(--red) calc(var(--p) * 1%), #ECE8DF 0); }

/* ---------- stage banners (Stage 1 / Stage 2 pages) ---------- */
.stage-banner { background: var(--rays), linear-gradient(120deg, var(--navy-d), var(--blue)); border-radius: 20px; box-shadow: var(--shadow-lg); }
.sb-num { background: var(--red); font-family: var(--display); }
.sb-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.sb-meta { font-family: var(--display); }
.so-col { border: 1px solid var(--line); background: var(--paper) !important; position: relative; }
.so-col.pink { border-top: 3px solid var(--red); } .so-col.blue { border-top: 3px solid var(--navy); }
.so-col h3 { border-bottom-color: var(--line-2) !important; }
.part { font-family: var(--display); font-weight: 700; color: var(--navy-d); }
.part > span { border-radius: 10px; }

/* clusters */
.tblock { border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow); }
.tblock.is-current { border-color: var(--navy); box-shadow: 6px 6px 0 #DCE3FA; }
.tblock.is-locked { background: #FBFAF7; }
.dot { font-family: var(--display); }
.items li a:hover { background: var(--ivory); }
.items li.next a { background: var(--blue-bg); box-shadow: inset 3px 0 0 var(--red); }

/* ---------- module player ---------- */
.mod-top h1 { font-size: 30px; }
.playlist { border-radius: 18px; padding: 10px; }
.playlist a { border-radius: 12px; }
.playlist a.on { background: var(--blue-bg); box-shadow: inset 3px 0 0 var(--red); }
.pl-ic { background: var(--ivory); }
.step h2 { font-size: 22px; }
.deck { border-radius: 16px; box-shadow: var(--shadow); border-color: var(--line); }
.deck-btn { background: rgba(255,255,255,.92); color: var(--navy); box-shadow: 0 6px 16px -6px rgba(20,26,58,.35); }
.deck-btn:hover { background: #fff; color: var(--red); }
.video { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.article { border-radius: 14px; border-color: var(--line); }
.article summary { font-family: var(--display); }
.q { border-bottom-color: var(--line-2); }
.qt span { font-family: var(--display); font-weight: 800; }
.opt { border-color: var(--line); border-radius: 12px; background: #FFFEFC; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #B9C3EA; background: #fff; }
.opt:has(input:checked) { border-color: var(--navy); background: var(--blue-bg); }
.tips { background: var(--pink-bg); border: 1px solid #F3D9DA; }
.suggested { border-radius: 14px; }
.pl-toggle { border-radius: 14px; }

/* ---------- task pages ---------- */
.tsec h2 .num { font-family: var(--display); }
.toc { border-radius: 18px; }
.submit-card { background: var(--rays), var(--blue-bg); border-color: #D9E1FA; }
.choice { border-color: #DAD6CC; background: #FFFEFC; }
.ck { background: var(--ivory); }
.feedback { border-left-color: var(--red); background: #FFFAF8; }

/* ---------- Stage 2 ---------- */
.subject { border-radius: 14px; border-color: var(--line); background: var(--paper); }
.subject:hover { border-color: var(--royal); box-shadow: var(--shadow); }
.subject.on { border-color: var(--red); background: var(--pink-bg); }
.code { background: var(--navy); border-radius: 7px; font-family: var(--display); }
.ks-step { background: var(--blue-bg); border: 1px solid #D9E1FA; border-radius: 14px; }

/* ---------- staff pages ---------- */
.kpi { border-radius: 18px; } .kpi b { font-weight: 800; }
.tabs a { border-radius: 99px; font-family: var(--display); }
.tabs a.on { background: var(--navy); }
th { color: #8A8FA3; letter-spacing: .08em; }
tr:hover td { background: #FCFBF8; }

/* ---------- bottom tab bar (phones) ---------- */
.bnav { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top-color: var(--line); }
.bnav a { font-family: var(--display); }
.bnav a.on { color: var(--navy); }
.bnav a.on .bn-ic { background: var(--blue-bg); box-shadow: inset 0 -2px 0 var(--red); }

/* ---------- modal ---------- */
.modal { border-radius: 20px; border-top: 4px solid var(--red); }
.modal-bg { background: rgba(12,23,102,.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero::after { width: 110px; height: 80px; right: 18px; opacity: .9; }
}
@media (max-width: 760px) {
  .top { padding: 10px 14px; }
  h1 { font-size: 25px; }
  .hero.slim { padding: 22px 20px 24px; }
  .hero { background: var(--rays), #fff; }
  .hero::after { top: 18px; right: 14px; transform: none; width: 84px; height: 60px; }
  .hero h1 { font-size: 26px; padding-right: 84px; }
  .hero .btn.big { width: 100%; text-align: center; }
  .guide-banner { padding: 20px 16px; border-radius: 18px; }
  .gb-head h2 { font-size: 22px; }
  .sb-body h2 { font-size: 19px; }
  .mod-top h1 { font-size: 24px; }
  .gb-stage, .gb-cert { box-shadow: 5px 5px 0 #DCE3FA; }
  .gb-flow > .gb-stage:nth-of-type(2) { box-shadow: 5px 5px 0 #F6D5D7; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .login-art { padding: 28px 20px; }
  .login-art img { width: 200px; }
  .login-box { padding: 28px 20px 36px; box-shadow: none; }
  .login-box h1 { font-size: 28px; }
}
@media print {
  .top::before, .hero::after { display: none; }
  .card { box-shadow: none; }
}

/* =====================================================================
   v2.1 – richer colour + people (11/11/2026)
   ===================================================================== */
:root { --ivory: #F3EFE7; --line: #E3DDD1; }
body { background: var(--ivory); }

/* Hero: navy panel + learners photo */
.hero::after { display: none; }
.hero.has-people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); align-items: stretch; gap: 0; padding: 0;
  background: var(--rays), linear-gradient(115deg, var(--navy-d) 0%, var(--navy) 45%, var(--blue) 100%); border: 0; color: #fff; min-height: 300px; }
.hero.has-people .hero-text { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; z-index: 1; }
.hero.has-people .hero-logo { height: 54px; width: auto; background: #fff; border-radius: 12px; padding: 6px 12px; margin-bottom: 18px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.hero.has-people .eyebrow { color: #FFB3B6; }
.hero.has-people h1 { color: #fff; font-size: 38px; margin-bottom: 6px; }
.hero-sub { margin: 0 0 20px; color: #D7DDFA; font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.hero.has-people .btn.big { background: var(--red); box-shadow: 0 10px 24px -10px rgba(202,32,39,.8); }
.hero.has-people .btn.big:hover { background: var(--red-d); }
.hero-people { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

/* Course guide banner: solid navy head band, coloured stage headers */
.guide-banner { padding: 0; overflow: hidden; background: var(--paper); }
.guide-banner::before { display: none; }
.gb-head { margin: 0; padding: 22px 28px; background: var(--rays), linear-gradient(90deg, var(--navy-d), var(--blue)); }
.gb-head h2 { color: #fff; }
.gb-head p { color: #D7DDFA; }
.gb-head .eyebrow.light { color: #FFB3B6; }
.gb-flow { padding: 24px 28px 28px; }
.gb-stage { padding: 0; overflow: hidden; }
.gb-top { margin: 0 0 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.gb-top h3 { color: #fff; } .gb-top .gb-label { color: #FFB3B6; }
.gb-top .gb-num { background: var(--red); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.gb-flow > .gb-stage:nth-of-type(2) .gb-top { background: var(--red); }
.gb-flow > .gb-stage:nth-of-type(2) .gb-top .gb-label { color: #FFE1E2; }
.gb-flow > .gb-stage:nth-of-type(2) .gb-top .gb-num { background: var(--navy); }
.gb-stage.locked .gb-top { background: #7C849F !important; }
.gb-stage.locked .gb-top .gb-num { background: #5E6680 !important; }
.gb-top .pill.st-next { background: #fff; color: var(--red); }
.gb-top .pill.st-none { background: rgba(255,255,255,.18); color: #fff; }
.gb-steps, .gb-assess, .gb-go { margin-left: 16px; margin-right: 16px; }
.gb-go { margin-bottom: 16px; }
.gb-cert { padding: 18px 16px; }
.cert-img { width: 100%; max-width: 230px; height: auto; border-radius: 10px; margin: 2px auto 4px; display: block;
  filter: drop-shadow(0 12px 16px rgba(120,80,20,.22)); }

/* Home cards: colour accents */
.prog-card { border-top: 4px solid var(--red); }
.help { border-top: 4px solid var(--navy); }
.help::before { display: none; }

/* Trainers */
.trainers { margin: 22px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; box-shadow: var(--shadow); }
.tr-head h2 { font-size: 24px; font-weight: 800; color: var(--navy-d); margin: 4px 0 8px; display: block; }
.tr-head p { margin: 0; }
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tr-card { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1.5px solid var(--red); box-shadow: 7px 7px 0 #F6D5D7; }
.tr-card.blue { border-color: var(--navy); box-shadow: 7px 7px 0 #DCE3FA; }
.tr-photo { aspect-ratio: 4 / 4.2; background: #fff; overflow: hidden; }
.tr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.tr-card figcaption { background: var(--red); color: #fff; padding: 10px 12px; text-align: center; }
.tr-card.blue figcaption { background: var(--navy); }
.tr-card figcaption span { display: block; font-size: 12px; opacity: .9; }
.tr-card figcaption b { font-family: var(--display); font-size: 15px; letter-spacing: .01em; }

/* Login: people photo */
.login-art { gap: 6px; }
.login-people { width: min(460px, 90%); margin: 18px auto 0; border-radius: 22px; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

/* Stage pages: navy section numbers & clusters */
.part > span { background: var(--red); }
.tblock .block-head { border-left: 4px solid transparent; }
.tblock.is-current .block-head { border-left-color: var(--red); background: linear-gradient(90deg, var(--blue-bg), #fff 60%); }
.tblock.is-done .block-head { border-left-color: var(--ok); }
.so-col h3 .so-ic { box-shadow: 0 6px 14px -6px rgba(202,32,39,.6); }

/* Buttons a touch bolder */
.btn { background: var(--navy); }
.btn:hover { background: var(--blue); }

@media (max-width: 1000px) {
  .trainers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero.has-people { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero.has-people .hero-text { padding: 22px 20px 20px; order: 2; }
  .hero-people { height: 190px; order: 1; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .hero.has-people .hero-logo { position: absolute; top: -40px; right: 16px; height: 44px; margin: 0; }
  .hero.has-people h1 { font-size: 26px; padding-right: 0; }
  .gb-head { padding: 18px 16px; }
  .gb-flow { padding: 18px 14px 20px; }
  .trainers { padding: 20px 16px; }
  .tr-grid { gap: 12px; }
  .tr-card { box-shadow: 4px 4px 0 #F6D5D7; } .tr-card.blue { box-shadow: 4px 4px 0 #DCE3FA; }
  .tr-card figcaption b { font-size: 13px; }
  .login-people { display: none; }
}

/* v2.2 – trainers in the hero instead of learners (11/11/2026) */
.hero-trainers { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; overflow: hidden;
  background: var(--rays), linear-gradient(180deg, #FFFFFF, #F4F6FD);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
.hero-trainers img { height: 300px; width: auto; max-width: 52%; object-fit: cover; object-position: center top; display: block; margin-bottom: -2px; }
.hero-trainers img + img { margin-left: -6%; }
@media (max-width: 760px) {
  .hero-trainers { order: 1; height: 210px; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  .hero-trainers img { height: 230px; }
}

/* v2.3 – Review quiz: questions and readings side by side from tablet width up (11/11/2026) */
@media (min-width: 761px) {
  .qr-tabs { display: none !important; }
  .qr-split.has-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .qr-split.has-read .qr-q { display: block !important; }
  .qr-split.has-read .qr-read { display: block !important; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
}
/* give the quiz the full width: hide the step list behind the "All steps" button */
@media (min-width: 761px) and (max-width: 1280px) {
  .player.quiz-mode { grid-template-columns: minmax(0, 1fr); }
  .player.quiz-mode .playlist { display: none; position: static; max-height: none; }
  .player.quiz-mode .playlist.open { display: block; }
  .player.quiz-mode .playlist.open a { max-width: none; }
  .player.quiz-mode .pl-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; font: inherit; font-size: 14px; text-align: left;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; color: var(--text); }
  .player.quiz-mode .pl-toggle b { color: var(--navy); }
  .player.quiz-mode .pl-caret { flex: none; color: var(--navy); font-weight: 700; font-size: 13px; }
}

/* v2.4 – quiz question → related reading passage (11/11/2026) */
.qr-chip { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 10px; padding: 6px 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid #D9E1FA; background: var(--blue-bg); color: var(--navy); font: inherit; font-size: 13px; text-align: left; }
.qr-chip b { font-weight: 700; }
.qr-chip:hover { border-color: var(--navy); }
.q.qr-on { position: relative; }
.q.qr-on::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--red); }
.qr-hit { background: linear-gradient(180deg, transparent 0, #FFF1B8 0); box-shadow: -10px 0 0 #FFF1B8, 10px 0 0 #FFF1B8, inset 3px 0 0 var(--red);
  border-radius: 4px; transition: background .3s; scroll-margin: 120px; }
li.qr-hit { padding-left: 4px; }
.qr-back { display: none; }
@media (max-width: 760px) {
  .qr-back { display: inline-block; margin: 0 0 10px; background: none; border: 0; color: var(--navy); font: inherit; font-weight: 700; padding: 0; cursor: pointer; }
  .q.qr-on::before { left: -8px; }
}
.qr-hit { padding-left: 10px; padding-right: 6px; }
.qr-hit { scroll-margin-top: 140px; }
/* v2.5 – related reading: open the article only, no passage highlight */
.article.qr-art { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,32,138,.08); }
.article.qr-art > summary { background: var(--blue-bg); }
.article.qr-art { scroll-margin-top: 130px; }

/* v2.6 – Key Skill Subject overview sheet (11/11/2026) */
.modal.sheet { max-width: 560px; position: relative; max-height: calc(100vh - 32px); overflow: auto; }
.sheet h2 { font-size: 24px; font-weight: 800; color: var(--navy-d); margin: 2px 0 10px; display: block; padding-right: 30px; }
.sheet-lead { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.sheet-box { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.sheet-box b { display: block; color: var(--navy); font-family: var(--display); }
.sheet-box ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; } .sheet-box li { margin-bottom: 3px; }
.sheet-note { font-size: 14px; font-weight: 600; background: var(--blue-bg); color: var(--navy); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; }
.sheet-note.ok { background: var(--ok-bg); color: var(--ok); }
.sheet-note.warn { background: #FFF0F0; color: var(--red); }
.sheet-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ivory); color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-x:hover { background: var(--blue-bg); }
.subject .tick { font-size: 18px; }
.subject.on .tick { font-size: 14px; }
h2.sec { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 6px 0 12px; }
.modal.sheet .btns { position: sticky; bottom: -24px; background: #fff; padding: 12px 0 4px; margin-top: 12px; }
@media (max-width: 760px) {
  .modal.sheet .btns { bottom: -18px; padding-bottom: 6px; }
  .modal.sheet h2 { font-size: 21px; }
  .sheet-lead { font-size: 15px; }
  .ks-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ks-step { padding: 10px; font-size: 13px; }
}

/* v2.7 – Stage 2 subjects: hover / tap popover with overview + Select (11/11/2026) */
.subjects { overflow: visible; }
.subject { display: block; padding: 0; position: relative; cursor: default; outline: none; }
.subject-row { display: flex; align-items: center; gap: 10px; padding: 12px; }
.subject .st-title { flex: 1; }
.subject .tick { font-family: var(--display); font-style: normal; font-size: 13px; font-weight: 800; color: var(--navy); background: var(--blue-bg); border-color: #D9E1FA; }
.subject.on .tick { background: var(--red); color: #fff; border-color: var(--red); }
.subject:hover, .subject:focus-within, .subject.open { border-color: var(--navy); z-index: 40; }
.subject-pop { display: none; position: absolute; left: -1px; top: 100%; width: max(calc(100% + 2px), 330px); padding-top: 8px; z-index: 50; }
.subject.pop-right .subject-pop { left: auto; right: -1px; }
.sp-card { background: #fff; border: 1.5px solid var(--navy); border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 40px -16px rgba(12,23,102,.45); text-align: left; }
.sp-title { margin: 0 0 6px; font-family: var(--display); font-weight: 700; color: var(--navy-d); font-size: 15px; }
.sp-title b { color: var(--red); margin-right: 4px; }
.sp-text { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--ink); font-weight: 400; }
.sp-meta { margin: 0 0 10px; font-size: 12px; color: var(--muted); font-weight: 400; }
.sp-state { margin: 0; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--blue-bg); border-radius: 10px; padding: 8px 10px; }
.sp-state.ok { color: var(--ok); background: var(--ok-bg); } .sp-state.warn { color: var(--red); background: #FFF0F0; }
.subject.open .subject-pop { display: block; }
@media (hover: hover) { .subject:hover .subject-pop, .subject:focus-within .subject-pop { display: block; } }
@media (max-width: 760px) {
  .subject-pop { position: static; width: auto; padding: 0 10px 10px; }
  .sp-card { box-shadow: none; border-width: 1px; }
  .sp-title { display: none; }
}

/* v2.8 – subject intro line in the hover card */
.subject-pop { width: max(calc(100% + 2px), 380px); }
.sp-intro { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--navy-d); font-weight: 600; }
.subject .st-title { cursor: help; }

/* v2.9 – Stage 2: intro, direct choose, workbook download (11/11/2026) */
.ks-intro { border-top: 4px solid var(--red); }
.ks-intro-list { margin: 0; padding: 0; list-style: none; counter-reset: k; display: grid; gap: 12px; }
.ks-intro-list li { counter-increment: k; position: relative; padding-left: 42px; line-height: 1.6; }
.ks-intro-list li::before { content: counter(k); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--navy); color: #fff;
  font-family: var(--display); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.ks-intro-list li:nth-child(2)::before { background: var(--red); }
.ks-intro-list b { color: var(--navy-d); }
.subject { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; }
.subject.off { opacity: .55; cursor: not-allowed; }
.subject.off:hover { border-color: var(--line); box-shadow: none; }
.subject .tick { font-size: 16px; }
.wb-file { display: flex; align-items: center; gap: 12px; background: var(--blue-bg); border: 1px solid #D9E1FA; border-radius: 14px; padding: 12px 14px; margin: 4px 0 14px; }
.wb-ic { width: 38px; height: 44px; border-radius: 6px; background: #2B579A; color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12); }
.wb-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wb-meta b { font-size: 14px; color: var(--navy-d); overflow-wrap: anywhere; }
.wb-meta span { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .wb-file { flex-wrap: wrap; } .wb-file .btn { width: 100%; justify-content: center; text-align: center; } }

/* v2.10 – Stage 2 good-luck message + page navigation */
.ks-wish { display: flex; gap: 16px; align-items: center; margin: 4px 0 18px; padding: 18px 22px; border-radius: 18px; color: #fff;
  background: var(--rays), linear-gradient(115deg, var(--navy-d), var(--blue)); box-shadow: var(--shadow-lg); }
.ks-wish.done { background: var(--rays), linear-gradient(115deg, #0F6B47, #17845A); }
.ks-wish-ic { font-size: 34px; flex: none; }
.ks-wish b { font-family: var(--display); font-size: 18px; }
.ks-wish p { margin: 4px 0 0; color: #DCE3FA; line-height: 1.55; }
.ks-wish p b { color: #fff; font-size: inherit; }
.page-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; }
@media (max-width: 760px) { .page-nav .btn { flex: 1; text-align: center; } .ks-wish { padding: 16px; } }

/* v2.11 – Stage 2 final page (11/11/2026) */
.btn-next { background: var(--red); box-shadow: 0 10px 24px -10px rgba(202,32,39,.8); }
.btn-next:hover { background: var(--red-d); }
.done-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0; border-radius: 22px; overflow: hidden; margin: 4px 0 18px;
  background: var(--rays), linear-gradient(115deg, var(--navy-d) 0%, var(--navy) 50%, var(--blue) 100%); color: #fff; box-shadow: var(--shadow-lg); }
.done-text { padding: 36px 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.done-text .eyebrow { color: #FFB3B6; }
.done-text h1 { color: #fff; font-size: 36px; margin: 4px 0 12px; }
.done-lead { color: #DCE3FA; font-size: 17px; line-height: 1.6; margin: 0 0 20px; }
.done-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.done-stats li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 9px 12px; }
.done-stats li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-weight: 800; flex: none; }
.done-stats li.ok span { background: #2FBF7C; }
.done-stats b { font-family: var(--display); } .done-stats em { font-style: normal; color: #C9D2F5; font-size: 14px; margin-left: auto; text-align: right; }
.done-photo { margin: 0; position: relative; background: #fff; }
.done-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; min-height: 420px; }
.done-photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(12,23,102,.82); color: #fff; border-radius: 12px; padding: 10px 14px;
  font-family: var(--display); font-weight: 700; font-size: 14px; text-align: center; backdrop-filter: blur(4px); }
.done-steps { list-style: none; margin: 0; padding: 0; counter-reset: d; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.done-steps li { counter-increment: d; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 16px; position: relative; }
.done-steps li::before { content: counter(d); width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800;
  display: grid; place-items: center; margin-bottom: 10px; }
.done-steps li:last-child { border-color: #C8A962; background: linear-gradient(180deg, #FFFDF8, #F7F2E6); }
.done-steps li:last-child::before { background: var(--red); }
.done-steps b { display: block; font-family: var(--display); color: var(--navy-d); margin-bottom: 4px; }
.done-steps span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.done-wish { text-align: center; padding: 26px 20px; margin: 4px 0 8px; }
.done-wish p { margin: 0 0 6px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.done-wish b { font-family: var(--display); color: var(--red); font-size: 22px; }
@media (max-width: 900px) {
  .done-hero { grid-template-columns: minmax(0, 1fr); }
  .done-photo { order: -1; } .done-photo img { min-height: 0; height: 300px; }
  .done-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .done-text { padding: 22px 18px; } .done-text h1 { font-size: 26px; } .done-lead { font-size: 15px; }
  .done-wish p { font-size: 16px; } .done-wish b { font-size: 19px; }
}
.done-steps span b { display: inline; margin: 0; }
@media (max-width: 900px) { .done-photo figcaption { position: static; border-radius: 0; background: var(--navy-d); } }

/* v2.12 – "Ask Educap" Zalo help button (11/11/2026) */
.help-fab { position: fixed; right: 24px; bottom: 24px; z-index: 700; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: #0068FF; color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; padding: 12px 18px 12px 14px; border-radius: 99px;
  box-shadow: 0 12px 28px -10px rgba(0,104,255,.7); transition: transform .15s, box-shadow .15s; }
.help-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(0,104,255,.8); }
.help-panel { position: fixed; right: 24px; bottom: 84px; z-index: 750; width: min(360px, calc(100vw - 24px)); background: #fff; border-radius: 18px;
  border-top: 4px solid #0068FF; box-shadow: 0 24px 60px -18px rgba(12,23,102,.45); padding: 18px 18px 14px; }
.help-panel h3 { margin: 2px 0 6px; font-size: 18px; color: var(--navy-d); padding-right: 28px; }
.help-panel .small { margin: 0 0 10px; }
.help-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ivory); color: var(--navy); font-size: 20px; cursor: pointer; }
.help-msg { background: var(--blue-bg); border: 1px dashed #B9C8F5; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.help-msg p { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.help-zalo { background: #0068FF; text-align: center; margin-bottom: 10px; }
.help-zalo:hover { background: #0050C8; }
@media (max-width: 760px) {
  .help-fab { right: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); padding: 12px; }
  .help-fab span { display: none; }
  .help-panel { right: 12px; left: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media print { .help-fab, .help-panel { display: none !important; } }
/* v2.13 – friendly help check-in */
.help-hello { display: flex; gap: 12px; align-items: flex-start; margin: 2px 0 14px; padding-right: 26px; }
.help-av { width: 42px; height: 42px; border-radius: 50%; background: #E8F0FF; display: grid; place-items: center; font-size: 22px; flex: none; }
.help-hello h3 { margin: 2px 0 6px; padding: 0; font-size: 17px; }
.help-hello p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.help-lang { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.help-hello h3 { overflow-wrap: anywhere; }
.who-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type=date] { width: 100%; max-width: 260px; font: inherit; padding: 10px 12px; border: 1px solid #DAD6CC; border-radius: 12px; background: #FFFEFC; }

/* v2.14 – Course rules + agreement (11/11/2026) */
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 12px; }
.rule { display: flex; gap: 12px; background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.rule-ic { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 19px; flex: none; box-shadow: var(--shadow); }
.rule b { display: block; font-family: var(--display); color: var(--navy-d); margin-bottom: 4px; }
.rule p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.access-line { background: var(--blue-bg); border: 1px solid #D9E1FA; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; color: var(--navy-d); }
.agree { max-width: 760px; margin: 0 auto 14px; }
.agree .ck { background: transparent; }
.agree.missing-agree { border-color: var(--red); box-shadow: 0 0 0 3px rgba(202,32,39,.12); }
@media (max-width: 760px) { .rule-grid { grid-template-columns: minmax(0, 1fr); } }
