/* Upskill Academy — one stylesheet for the website, student portal and admin panel. */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --navy: #0A1428; --navy-2: #111D3A; --navy-line: #22335E; --navy-text: #C3CDE3; --navy-muted: #A9B6D3;
  --ink: #0E1626; --muted: #4B5873; --soft: #3A4766; --line: #DDE3EE; --line-2: #EEF1F6; --bg: #F4F6FB; --card: #FFFFFF;
  --blue: #1F5EFF; --blue-dark: #1747C9; --blue-tint: #E8EFFF; --blue-light: #9DB9FF;
  --green: #047857; --green-tint: #E3F5EE; --purple: #6D28D9; --purple-tint: #F0EAFD; --amber: #B45309; --amber-tint: #FDF1E2;
  --teal: #0E7490; --teal-tint: #E0F2F6; --teal-dark: #06222B; --teal-2: #0A3340; --teal-line: #154B5A; --teal-light: #A5EEFB;
  --red: #B42318; --red-tint: #FDECEA;
  --radius: 16px; --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img, svg, video { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #7FA8FF; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row-center { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.h-section { font-size: clamp(28px, 4vw, 40px); }
.dark { background: var(--navy); color: #fff; }
.dark .lead, .dark .muted { color: var(--navy-text); }
.white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: var(--card); color: var(--ink); border-color: #C9D3E6; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: #3A4E80; }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { color: var(--blue-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-danger { background: var(--card); color: var(--red); border-color: #F1B8B2; }
.btn-danger:hover { background: var(--red-tint); color: var(--red); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--blue); font-weight: 600; cursor: pointer; }

/* Badges & pills */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-dark); letter-spacing: .02em; white-space: nowrap; }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-purple { background: var(--purple-tint); color: var(--purple); }
.badge-amber { background: var(--amber-tint); color: #8A3F06; }
.badge-teal { background: var(--teal-tint); color: #0B4A5A; }
.badge-red { background: var(--red-tint); color: var(--red); }
.badge-grey { background: var(--line-2); color: var(--soft); }
.badge-outline { background: transparent; border: 1px solid #2A3B66; color: var(--navy-muted); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-tight { padding: 18px; }
.card-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.card h3 { font-size: 20px; }
.card-link { color: inherit; display: flex; flex-direction: column; gap: 10px; }
.card-link:hover { text-decoration: none; color: inherit; border-color: #A9B6D3; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; color: var(--check, var(--green)); }
.checklist li > span { color: var(--ink); }
.dark .checklist li > span { color: #fff; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--display); font-size: 15px; letter-spacing: .04em; }
.brand-text span { font-size: 10.5px; font-weight: 700; color: var(--blue); letter-spacing: .2em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; flex: 1 1 auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .nav { display: flex; flex-direction: column; }
  .site-header.open .header-actions { display: flex; padding-bottom: 8px; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line-2); }
}

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.07; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #7FA8FF; }
.hero-art { flex: 1 1 440px; min-width: 0; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; color: var(--navy-text); font-size: 14px; --check: #7FA8FF; }
.ticks li { display: flex; gap: 8px; align-items: center; }
.page-hero { background: var(--navy); color: #fff; }
.page-hero .wrap { padding-top: 44px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.02em; }
.crumbs { font-size: 14px; color: var(--navy-muted); }
.crumbs a { color: var(--blue-light); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--navy-text); font-size: 15px; }

/* Mini dashboard illustration */
.mini-dash { background: #fff; color: var(--ink); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; }
.kpi { flex: 1 1 110px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi b { display: block; font-family: var(--display); font-size: 21px; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1 1 0; border-radius: 4px 4px 0 0; background: #9DB9FF; }
.bars span:last-child { background: var(--blue); }
.code-chip { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 12px; padding: 12px 16px; font-family: var(--mono); font-size: 13px; color: #E6ECF8; line-height: 1.6; }
.code-chip .k { color: #9DB9FF; } .code-chip .f { color: #F6C68A; }

/* Level cards */
.level-card { display: flex; flex-direction: column; gap: 14px; }
.level-card .num { font-family: var(--display); font-weight: 700; font-size: 30px; color: #D3DAE8; }
.level-card footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.card-dark.level-card footer { border-color: var(--navy-line); color: var(--navy-text); }
.card-dark .num { color: var(--navy-line); }
.exam-card { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.exam-card .muted { color: #C6DDE3; }
.chip-dark { background: var(--teal-2); border: 1px solid var(--teal-line); padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }

/* Path strip */
.path { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.path a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; background: var(--card); }
.path a[aria-current="page"] { color: #fff; border-color: transparent; background: var(--accent, var(--blue)); }
.path .sep { color: #A3AEC4; }

/* Accordion (curriculum, FAQ) */
details.acc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
details.acc + details.acc { margin-top: 10px; }
details.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 20px; min-height: 64px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .n { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--tint, var(--blue-tint)); color: var(--accent, var(--blue)); display: flex; align-items: center; justify-content: center; font-weight: 700; }
details.acc summary .t { flex: 1 1 auto; min-width: 0; }
details.acc summary .t strong { display: block; }
details.acc summary::after { content: '+'; font-size: 22px; color: var(--muted); width: 24px; text-align: center; }
details.acc[open] summary::after { content: '−'; }
details.acc .acc-body { padding: 0 20px 18px 74px; color: var(--soft); font-size: 15px; }
details.acc .acc-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.faq details.acc summary { font-weight: 600; }
.faq details.acc .acc-body { padding-left: 20px; }

/* Domain weights */
.meter { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent, var(--blue)); border-radius: 999px; }
.meter-lg { height: 12px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #C9D3E6; border-radius: var(--radius-sm); background: #fff; font-size: 15px; font-weight: 400; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--blue); outline: 3px solid #C7D6FF; outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex: 0 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.alert-error { background: var(--red-tint); color: #7A1A12; }
.alert-ok { background: var(--green-tint); color: #035E45; }
.alert-info { background: var(--blue-tint); color: #1E2B4A; }
.alert-warn { background: var(--amber-tint); color: #7A3A06; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th { background: var(--bg); color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { background: var(--navy); color: var(--navy-text); font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 36px; }
.footer-cols > div { flex: 1 1 180px; display: flex; flex-direction: column; gap: 10px; }
.footer-cols > div:first-child { flex: 2 1 280px; }
.site-footer a { color: var(--navy-text); }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; font-weight: 600; }
.footer-legal { border-top: 1px solid #1E2D55; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; }
.footer-brand img { height: 68px; width: auto; border-radius: 10px; display: block; box-shadow: 0 0 0 1px #1E2D55; }

/* Legal / prose pages */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); font-size: 16px; line-height: 1.7; color: var(--soft); }
.prose h1 { color: var(--ink); font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.prose h2 { color: var(--ink); font-size: 21px; margin: 32px 0 10px; }
.prose h3 { color: var(--ink); font-size: 17px; margin: 22px 0 8px; font-family: var(--font); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); color: var(--ink); width: 34%; }

/* ---------- Portal ---------- */
.portal-header { background: var(--card); border-bottom: 1px solid var(--line); }
.portal-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 10px 24px; min-height: 64px; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.portal-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.portal-nav a:hover { background: var(--bg); text-decoration: none; }
.portal-nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.portal-main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.progress { display: flex; align-items: center; gap: 12px; }
.progress .meter { flex: 1 1 auto; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--display); font-size: 26px; }
.course-tile { display: flex; flex-direction: column; gap: 12px; }
.course-tile .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.list-item:first-child { border-top: 0; }
.date-chip { flex: 0 0 58px; height: 58px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.date-chip small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.date-chip b { font-family: var(--display); font-size: 19px; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed #C9D3E6; border-radius: var(--radius); }
.lesson-row { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; color: var(--ink); }
.lesson-row:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.lesson-row[aria-current="page"] { background: var(--blue-tint); font-weight: 700; }
.ring { flex: 0 0 24px; height: 24px; border-radius: 999px; border: 2px solid #C9D3E6; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: conic-gradient(var(--blue) calc(var(--p, 0) * 1%), transparent 0); }
.ring.done { background: var(--green); border-color: var(--green); }
.ring.done::after { content: '✓'; }
.player-layout { display: flex; flex-wrap: wrap; align-items: flex-start; }
.player-main { flex: 999 1 640px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.player-side { flex: 1 1 320px; min-width: 0; background: var(--card); border-left: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1000px) { .player-side { border-left: 0; border-top: 1px solid var(--line); } }
.video-box { background: #050B18; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.video-box video, .video-box iframe, .video-box > div { width: 100%; height: 100%; border: 0; display: block; }
.video-empty { display: flex; align-items: center; justify-content: center; color: var(--navy-text); text-align: center; padding: 24px; height: 100%; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 46px; padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.notes { font-size: 16px; line-height: 1.7; color: var(--soft); max-width: 820px; }
.notes h2, .notes h3 { color: var(--ink); margin: 18px 0 8px; font-size: 19px; }
.notes pre { background: var(--navy); color: #E6ECF8; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; }
.notes code { font-family: var(--mono); font-size: .92em; background: var(--line-2); padding: 1px 6px; border-radius: 6px; }
.notes pre code { background: none; padding: 0; }
.notes ul, .notes ol { padding-left: 22px; }

/* Quiz */
.quiz-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.quiz-main { flex: 999 1 600px; min-width: 0; }
.quiz-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.option { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 58px; text-align: left; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
.option:hover { border-color: #A9B6D3; }
.option[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); }
.option .letter { flex: 0 0 32px; height: 32px; border-radius: 999px; background: var(--line-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.option.multi .letter { border-radius: 8px; }
.option[aria-pressed="true"] .letter { background: var(--teal); color: #fff; }
.qgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.qgrid button { min-height: 44px; border-radius: 10px; border: 2px solid #C9D3E6; background: #fff; font-weight: 700; cursor: pointer; }
.qgrid button.answered { background: var(--teal); border-color: var(--teal); color: #fff; }
.qgrid button.flagged { background: var(--amber-tint); border-color: var(--amber); color: #7A3A06; }
.qgrid button.current { outline: 3px solid var(--blue); outline-offset: 1px; }
.timer { font-family: var(--mono); font-size: 18px; background: var(--teal-2); color: #fff; border: 1px solid var(--teal-line); border-radius: 10px; padding: 8px 14px; }
.timer.low { background: #5B1A12; border-color: #8C2A1E; }
.review-item { display: flex; gap: 14px; align-items: flex-start; }
.review-item .mark { flex: 0 0 30px; height: 30px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.opt-review { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.opt-review.correct { border-color: var(--green); background: var(--green-tint); }
.opt-review.wrong { border-color: #F1B8B2; background: var(--red-tint); }

/* Certificate */
.cert { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; max-width: 1000px; margin: 0 auto; }
.cert-inner { border: 2px solid var(--navy); border-radius: 4px; padding: clamp(24px, 5vw, 52px); display: flex; flex-direction: column; gap: 22px; aspect-ratio: 1.414 / 1; }
.cert-name { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); color: var(--navy); line-height: 1.1; }
.seal { width: 96px; height: 96px; border-radius: 999px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 5px solid rgba(255,255,255,.6); box-shadow: 0 0 0 2px var(--seal, var(--blue)); background: var(--seal, var(--blue)); text-align: center; line-height: 1.05; }
.seal small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; }
.seal b { font-family: var(--display); font-size: 26px; }
.sig { min-width: 160px; display: flex; flex-direction: column; gap: 3px; }
.sig .line { border-top: 1px solid var(--ink); padding-top: 6px; font-size: 13px; font-weight: 600; }
@media print {
  body { background: #fff; }
  .no-print, .portal-header, .site-header, .site-footer { display: none !important; }
  .cert { border: 0; padding: 0; max-width: none; }
  .cert-inner { aspect-ratio: auto; min-height: 92vh; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* Admin */
.admin-layout { display: flex; flex-wrap: wrap; align-items: flex-start; min-height: calc(100vh - 64px); }
.admin-nav { flex: 1 1 220px; max-width: 100%; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.admin-nav a:hover { background: var(--card); text-decoration: none; }
.admin-nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.admin-main { flex: 999 1 720px; min-width: 0; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tree-module { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tree-module + .tree-module { margin-top: 12px; }
.tree-module header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.tree-lesson { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.tree-lesson:last-child { border-bottom: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--soft); }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 64px rgba(10, 20, 40, .3); }
dialog.modal::backdrop { background: rgba(10, 20, 40, .55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
.upload-bar { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.upload-bar span { display: block; height: 100%; background: var(--blue); width: 0; transition: width .2s; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast.error { background: var(--red); }
.kbd { font-family: var(--mono); font-size: 12px; background: var(--line-2); padding: 2px 6px; border-radius: 6px; }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }

.loading { color: var(--muted); padding: 24px 0; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Fixes */
[hidden] { display: none !important; }
.hero .lead, .page-hero .lead { color: var(--navy-text); }
.card-dark .checklist li > span, .exam-card .checklist li > span { color: #fff; }
.faq details.acc summary { justify-content: space-between; }
.btn-sm { white-space: nowrap; }
.lesson-row .tiny { white-space: nowrap; }
.card-link.card-dark, .card-link.card-dark:hover { color: #fff; }

/* ---------- Fees, discounts and batches ---------- */
.price-box { display: flex; flex-direction: column; gap: 6px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price-now { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--ink); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 17px; }
.price-off { background: var(--green-tint); color: var(--green); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 10px; }
.offer-line { font-size: 13.5px; color: var(--green); font-weight: 600; }
.seats-left { font-weight: 600; color: var(--soft); }
.state-full { color: var(--amber); font-weight: 600; }
.state-closed { color: var(--muted); font-weight: 600; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps > div { counter-increment: step; position: relative; padding-top: 44px; }
.steps > div::before { content: counter(step); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.reg-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.reg-layout > form { flex: 3 1 520px; min-width: 0; }
.reg-layout > aside { flex: 2 1 320px; min-width: 0; position: sticky; top: 92px; }
.batch-options { display: grid; gap: 10px; }
.batch-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--card); }
.batch-opt:hover { border-color: #A9B6D3; }
.batch-opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: 0 0 auto; }
.batch-opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: #F7F9FF; }
.batch-opt.is-closed { opacity: .6; cursor: not-allowed; }
.success-card { border: 2px solid var(--green); }

/* ---------- Report card ---------- */
.report { display: flex; flex-direction: column; gap: 20px; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 3px solid var(--accent, var(--blue)); padding-bottom: 18px; }
.report-head img { height: 54px; width: auto; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.status-Completed { background: var(--green-tint); color: var(--green); }
.status-On-track { background: var(--blue-tint); color: var(--blue-dark); }
.status-Needs-attention { background: var(--amber-tint); color: #8A3F06; }
.status-Not-started { background: var(--line-2); color: var(--soft); }
.score-ring { --p: 0; --c: var(--blue); width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; flex: 0 0 auto; }
.score-ring > span { width: 92px; height: 92px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 26px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 52px; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .meter { height: 10px; }
.report-table td, .report-table th { font-size: 14px; }
.remarks { background: var(--bg); border-left: 4px solid var(--accent, var(--blue)); border-radius: 8px; padding: 14px 16px; white-space: pre-wrap; }
@media print {
  .report { gap: 14px; }
  .report .card { break-inside: avoid; border-color: #ccd; }
  body.portal, .portal-main { background: #fff !important; }
}

/* ---------- Career help ---------- */
.job-card { display: flex; flex-direction: column; gap: 10px; }
.job-card h3 { font-size: 19px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; font-weight: 600; background: var(--line-2); color: var(--soft); border-radius: 999px; padding: 4px 10px; }
.closing { color: var(--amber); font-weight: 700; }

fieldset > legend { padding: 0; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
#careers-root { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .reg-layout > aside { order: -1; position: static; } .reg-layout > aside .reg-next { display: none; } }
