/* ==========================================================================
   Oxford College — main website
   Navy · ivory · gold. Display serif (Cormorant Garamond) + Inter.
   ========================================================================== */
:root {
  --navy-950: #050b24; --navy-900: #07102e; --navy-800: #0b1642; --navy-700: #13215c; --navy-600: #1d2d73;
  --gold: #c8a24a; --gold-2: #e3c77b; --gold-3: #f4e6bd; --gold-ink: #8a6a1f;
  --ivory: #faf7f0; --ivory-2: #f3eee2; --paper: #ffffff;
  --ink: #141a33; --text: #2b3150; --muted: #5d6482; --line: #e7e2d4; --line-2: #d9d2bf;
  --ok: #17775a; --ok-bg: #e7f5ee; --warn: #8a5a00; --warn-bg: #fff4dc; --err: #b4232c; --err-bg: #fdecec; --info-bg: #eef2fd;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --border: var(--line); --danger: var(--err); --success: var(--ok); --info: #3b5bdb;
  --r: 14px; --r-lg: 22px; --shadow: 0 1px 2px rgba(7,16,46,.06), 0 8px 28px rgba(7,16,46,.08);
  --shadow-lg: 0 30px 80px rgba(7,16,46,.18); --wrap: 1220px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16.5px/1.7 var(--sans); color: var(--text); background: var(--ivory); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; vertical-align: -4px; }
.mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.6rem } .mt-4 { margin-top: 2.6rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.6rem }

/* ---------- Kicker / eyebrow ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 .76rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 18px; }
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.on-dark .kicker, .kicker.light { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn { --b: var(--navy-800); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--b);
  background: var(--b); color: #fff; font: 600 .95rem/1.1 var(--sans); letter-spacing: .01em; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(7,16,46,.18); }
.btn-gold { --b: var(--gold); color: var(--navy-950); background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); }
.btn-gold:hover { color: var(--navy-950); }
.btn-outline { background: transparent; color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-700); }
.link-arrow .ic { transition: transform .2s; } .link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-950); color: #b9c0e0; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #dbe0f7; } .topbar a:hover { color: var(--gold-2); }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,.94); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy-900); }
.brand img { height: 54px; width: auto; }
.brand b { display: block; font: 700 1.55rem/1 var(--serif); letter-spacing: .06em; }
.brand small { display: block; font: 600 .62rem/1 var(--sans); letter-spacing: .32em; color: var(--gold-ink); margin-top: 6px; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.mainnav > .item { position: relative; }
.mainnav > .item > a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: var(--navy-900); font-weight: 600; font-size: .94rem; border-radius: 10px; }
.mainnav > .item > a:hover, .mainnav > .item.open > a { color: var(--gold-ink); }
.mainnav .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.mega { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 26px; min-width: 560px; opacity: 0; visibility: hidden; transition: .18s ease; }
.mainnav > .item:hover .mega, .mainnav > .item:focus-within .mega, .mainnav > .item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega.wide { min-width: 820px; }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.mega.wide .mega-grid { grid-template-columns: repeat(3, 1fr); }
.mega a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.mega a:hover { background: var(--ivory); color: var(--ink); }
.mega a b { display: block; font-weight: 600; font-size: .94rem; }
.mega a span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.mega .mi { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ivory-2); color: var(--gold-ink); }
.mega-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; color: var(--navy-900); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5,11,36,.96) 0%, rgba(7,16,46,.88) 42%, rgba(7,16,46,.55) 75%, rgba(7,16,46,.35)); }
.hero .wrap { padding-block: clamp(84px, 13vw, 168px) clamp(70px, 10vw, 130px); }
.hero h1 { color: #fff; max-width: 19ch; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 600; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d4daf3; max-width: 58ch; margin-bottom: 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-facts div { padding: 24px 34px 0 0; margin-inline-end: 34px; }
.hero-facts b { display: block; font: 600 2.4rem/1 var(--serif); color: var(--gold-2); }
.hero-facts span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #aab3d8; }

.page-hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .5; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(5,11,36,.97), rgba(11,22,66,.86) 60%, rgba(11,22,66,.6)); }
.page-hero .wrap { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 84px); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 22ch; }
.page-hero .lead { color: #d4daf3; font-size: 1.15rem; max-width: 62ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #aab3d8; margin-bottom: 22px; }
.crumbs a { color: #d4daf3; } .crumbs a:hover { color: var(--gold-2); } .crumbs > span::before { content: "/"; margin-inline-end: 8px; opacity: .6; }
.page-hero .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px; color: #c4cbea; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(44px, 6vw, 72px); }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy-900); color: #cfd5ef; }
.section.dark h2, .section.dark h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section.dark .sec-head p { color: #b9c1e2; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.wide-left { grid-template-columns: 1.25fr 1fr; }
.frame-img { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.frame-img::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(227,199,123,.55); border-radius: 14px; pointer-events: none; }
.gold-rule { width: 64px; height: 2px; background: var(--gold); margin: 22px 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.45rem; }
.college-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .25s, box-shadow .25s; }
.college-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.college-card .img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.college-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.college-card:hover .img img { transform: scale(1.05); }
.college-card .img { overflow: visible; }
.college-card .img img { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.college-card .img::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(180deg, transparent 40%, rgba(5,11,36,.65)); }
.college-card .badge-ic { position: absolute; left: 22px; bottom: -24px; z-index: 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-2); box-shadow: var(--shadow); }
.college-card .body { padding: 38px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.college-card h3 { margin-bottom: 8px; }
.college-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.college-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

.prog-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prog-card .lvl { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.prog-card h3 { font-size: 1.65rem; margin: 10px 0 12px; }
.prog-card .price { font: 600 2.4rem/1 var(--serif); color: var(--navy-900); margin: 8px 0 4px; }
.prog-card .price small { font: 500 .85rem var(--sans); color: var(--muted); }
.prog-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.prog-card li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.prog-card li .ic { color: var(--gold-ink); margin-top: 3px; }
.prog-card.featured { background: var(--navy-900); color: #cfd5ef; border-color: var(--navy-700); }
.prog-card.featured h3, .prog-card.featured .price { color: #fff; } .prog-card.featured li { border-color: rgba(255,255,255,.12); }
.prog-card.featured .ribbon { position: absolute; top: 18px; right: 18px; background: var(--gold); color: var(--navy-950); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }

.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.post-card .img { aspect-ratio: 16/10; background: var(--ivory-2); overflow: hidden; }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .img.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); }
.post-card .img.ph img { width: 70px; height: auto; opacity: .9; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.post-card h3 { font-size: 1.35rem; margin: 8px 0 10px; }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card time { font-size: .82rem; color: var(--muted); }

.feature { display: flex; gap: 18px; }
.feature .fi { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--ivory-2); color: var(--gold-ink); border: 1px solid var(--line); }
.section.dark .feature .fi { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--gold-2); }
.feature h3 { font-size: 1.3rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.section.dark .feature p { color: #b9c1e2; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.steps li { list-style: none; counter-increment: s; padding: 34px 28px; border-inline-end: 1px solid var(--line); }
.steps li:last-child { border: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 14px; }
.steps h4 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

.quote-band { background: linear-gradient(120deg, var(--navy-950), var(--navy-700)); color: #fff; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.quote-band blockquote { font: italic 600 clamp(1.5rem, 2.8vw, 2.2rem)/1.35 var(--serif); margin: 0 0 24px; color: #fff; max-width: 40ch; }
.quote-band .who { color: var(--gold-2); font-weight: 600; letter-spacing: .05em; }
.quote-band::after { content: "“"; position: absolute; right: 30px; top: -40px; font: 700 18rem/1 var(--serif); color: rgba(227,199,123,.12); }

.marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; color: var(--muted); font-size: .86rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.marks span { display: inline-flex; align-items: center; gap: 8px; } .marks .ic { color: var(--gold-ink); }

.cta-band { background: var(--navy-900) url("../img/pattern.svg"); color: #cfd5ef; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; }

/* ---------- Content (articles, pages) ---------- */
.prose { font-size: 1.07rem; line-height: 1.85; color: var(--text); }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); margin: 1.6em 0 .55em; }
.prose h3 { font-size: 1.5rem; margin: 1.4em 0 .45em; }
.prose h4, .prose h5 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 1.3em 0 .4em; color: var(--navy-900); }
.prose a { color: var(--navy-600); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; } .prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold-ink); }
.prose figure { margin: 1.8em 0; } .prose img { border-radius: var(--r); margin-inline: auto; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-inline-start: 3px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--navy-800); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; } .prose th { background: var(--ivory-2); }
.prose > *:first-child { margin-top: 0; }
.check-list { list-style: none; padding: 0 !important; } .check-list li { position: relative; padding-inline-start: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg); }
.note-box { background: var(--ivory-2); border: 1px solid var(--line-2); border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 18px 20px; margin: 0 0 1.8em; font-size: .97rem; line-height: 1.65; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside-box { position: sticky; top: 110px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.aside-box h4 { margin-bottom: 12px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; } .aside-box li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .94rem; }
.aside-box li a:hover, .aside-box li a.active { color: var(--gold-ink); }
.toc a { font-size: .9rem; }

/* ---------- Tables & data ---------- */
.fees { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.fees th, .fees td { padding: 18px 20px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fees th { background: var(--navy-900); color: #e8ecfb; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.fees tr:last-child td { border-bottom: 0; }
.fees td b { font-family: var(--serif); font-size: 1.3rem; color: var(--navy-900); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--ivory-2); color: var(--navy-800); border: 1px solid var(--line); white-space: nowrap; }
.pill.gold { background: var(--gold-3); color: var(--gold-ink); border-color: #ead7a0; } .pill.green { background: var(--ok-bg); color: var(--ok); border-color: #bfe3d2; }
.pill.red { background: var(--err-bg); color: var(--err); border-color: #f2c6c9; } .pill.navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pill.amber { background: var(--warn-bg); color: var(--warn); border-color: #f0dba8; }
.spec-list { columns: 2; column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.spec-list li { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-list a { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 500; }
.spec-list a:hover { color: var(--gold-ink); }
.module { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.module .n { font: 600 2rem/1 var(--serif); color: var(--gold); }
.module h3 { font-size: 1.4rem; margin-bottom: 6px; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; } .field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-900); margin-bottom: 7px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: .98rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,162,74,.18); }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; } .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy-800); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { position: relative; display: block; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 16px 18px; cursor: pointer; background: #fff; transition: .15s; }
.choice input { position: absolute; opacity: 0; } .choice b { display: block; color: var(--navy-900); } .choice span { display: block; font-size: .85rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--gold); background: #fffaf0; box-shadow: 0 0 0 4px rgba(200,162,74,.15); }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe3d2; } .alert-error { background: var(--err-bg); color: var(--err); border-color: #f2c6c9; }
.alert-info { background: var(--info-bg); color: var(--navy-700); border-color: #d6def8; } .alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0dba8; }
.flashes { position: fixed; top: 96px; right: 20px; z-index: 80; width: min(420px, calc(100% - 40px)); }
.flashes .alert { box-shadow: var(--shadow-lg); }

/* ---------- Pagination, search ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); color: var(--navy-800); font-weight: 600; padding: 0 14px; }
.pager span.cur { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.searchbar { display: flex; gap: 10px; } .searchbar input { flex: 1; }
.tabs-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9b1d6; margin-top: 0; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-block: 72px 48px; }
.site-footer h5 { font: 600 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 9px 0; }
.site-footer a { color: #cdd3ee; font-size: .93rem; } .site-footer a:hover { color: var(--gold-2); }
.site-footer .brand { color: #fff; margin-bottom: 18px; } .site-footer .brand b { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Dashboard / portal ---------- */
.portal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 40px 80px; }
.side { position: sticky; top: 110px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); }
.side a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; color: var(--text); font-weight: 500; font-size: .94rem; }
.side a:hover { background: var(--ivory); } .side a.active { background: var(--navy-800); color: #fff; } .side a.active .ic { color: var(--gold-2); }
.side .who { padding: 12px 14px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side .who b { display: block; color: var(--navy-900); } .side .who span { font-size: .82rem; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.kpi b { display: block; font: 600 2.1rem/1.1 var(--serif); color: var(--navy-900); margin-top: 6px; }
.kpi small { color: var(--muted); }
.list { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list th, .list td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: start; font-size: .92rem; vertical-align: middle; }
.list th { background: var(--ivory-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.list tr:last-child td { border-bottom: 0; } .list td.num { text-align: end; font-variant-numeric: tabular-nums; }
.progress { height: 10px; border-radius: 99px; background: var(--ivory-2); overflow: hidden; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; }
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 24px; } .timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--ivory); }
.timeline li.past::before { background: var(--line-2); }
.req { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.req .ri { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ivory-2); color: var(--gold-ink); }
.chat { max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--ivory-2); font-size: .93rem; } .bubble.me { align-self: flex-end; background: var(--navy-800); color: #fff; }
.bubble small { display: block; opacity: .7; font-size: .74rem; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mega.wide { min-width: 640px; } .mega.wide .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .top { grid-template-columns: repeat(3, 1fr); } .site-footer .top > div:first-child { grid-column: 1 / -1; }
  .g4 { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(2, 1fr); } .steps li:nth-child(2) { border-inline-end: 0; } .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; } .header-cta .btn-outline { display: none; }
  .mainnav { position: fixed; inset: 124px 0 0 0; background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; margin: 0; z-index: 60; }
  body.nav-open .mainnav { transform: none; }
  .mainnav > .item > a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; justify-content: space-between; }
  .mega { position: static; transform: none !important; opacity: 1; visibility: visible; min-width: 0 !important; box-shadow: none; border: 0; padding: 0 0 8px; display: none; background: transparent; }
  .mainnav > .item.open .mega { display: block; } .mega-grid, .mega.wide .mega-grid { grid-template-columns: 1fr; } .mega-foot { display: none; }
  .split, .split.wide-left, .page-layout, .cta-band, .portal { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: repeat(2, 1fr); } .aside-box, .side { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar nav.secondary { display: none; } .topbar .wrap { justify-content: center; }
  .site-header .wrap { min-height: 72px; gap: 12px; } .brand img { height: 44px; } .brand b { font-size: 1.3rem; } .brand small { letter-spacing: .22em; }
  .mainnav { inset: 112px 0 0 0; } .header-cta .btn { padding: 10px 14px; font-size: .84rem; }
  .g2, .g3, .g4, .row2, .choice-grid, .steps { grid-template-columns: 1fr; } .steps li { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .hero-facts div { padding-right: 18px; margin-right: 18px; } .hero-facts b { font-size: 1.9rem; }
  .spec-list { columns: 1; } .site-footer .top { grid-template-columns: 1fr 1fr; } .card { padding: 22px; }
  .module { grid-template-columns: 44px 1fr; } .flashes { top: 80px; right: 12px; }
  .hero .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } }

/* ---------- Password checklist (shared with the exam portal) ---------- */
.pw-meter { margin: -4px 0 14px; }
.pw-bar { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; margin-top: 8px; }
.pw-bar i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.pw-meter[data-score="2"] .pw-bar i { background: #d98a00; } .pw-meter[data-score="3"] .pw-bar i { background: #6aa84f; } .pw-meter[data-score="4"] .pw-bar i { background: var(--success); }
.pw-level { margin-top: 5px; color: var(--muted); }
.pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; font-size: .82rem; }
.pw-rules li { color: var(--muted); padding-inline-start: 20px; position: relative; line-height: 1.4; }
.pw-rules li::before { content: "○"; position: absolute; inset-inline-start: 2px; top: 0; font-weight: 700; }
.pw-rules li.ok { color: var(--success); } .pw-rules li.ok::before { content: "✓"; }
.pw-meter.show-errors .pw-rules li:not(.ok) { color: var(--danger); } .pw-meter.show-errors .pw-rules li:not(.ok)::before { content: "✕"; }
.pw-mismatch { color: var(--danger); margin-top: 6px; }
.pw-wrap { position: relative; } .pw-wrap input { padding-inline-end: 72px; }
.pw-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--info); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 4px 6px; }
@media (max-width: 520px) { .pw-rules { grid-template-columns: 1fr; } }

/* legal statement — only place the registration numbers appear */
.site-footer .footer-disclaimer { flex-basis: 100%; margin: 4px 0 0; font-size: .72rem; line-height: 1.6; color: #8f98c4; opacity: .9; }

/* language menu */
.topbar .lang-menu { position: relative; margin-inline-start: auto; }
.topbar .lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: #dbe0f7; padding: 6px 2px; }
.topbar .lang-menu summary::-webkit-details-marker { display: none; }
.topbar .lang-menu summary svg { width: 15px; height: 15px; }
.topbar .lang-list { position: absolute; inset-inline-end: 0; top: 100%; z-index: 60; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 150px; display: grid; }
.topbar .lang-list a { color: var(--navy-900); padding: 8px 12px; border-radius: 7px; }
.topbar .lang-list a:hover, .topbar .lang-list a[aria-current] { background: #f3efe4; color: var(--navy-900); }
.topbar .lang-list a[aria-current] { font-weight: 600; }
@media (max-width: 900px) { .topbar .lang-menu { margin-inline-start: 0; } .topbar .wrap { justify-content: space-between !important; } }

/* Arabic and Chinese typography */
html[lang="ar"] { --serif: "Noto Naskh Arabic", "Cormorant Garamond", Georgia, serif; --sans: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; letter-spacing: 0; }
html[lang="ar"] .kicker, html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
html[lang="zh-Hans"] { --serif: "Noto Serif SC", "Cormorant Garamond", serif; --sans: "Noto Sans SC", "Inter", system-ui, sans-serif; }
html[lang="zh-Hans"] .kicker { letter-spacing: .08em; }
/* arrows point the reading direction */
[dir="rtl"] .ic-arrow, [dir="rtl"] .ic-chevron, [dir="rtl"] .link-arrow .ic { transform: scaleX(-1); }
/* the off-canvas mobile menu waits beside the page: never let it create sideways scrolling */
@media (max-width: 1080px) { html, body { overflow-x: clip; } .mainnav { visibility: hidden; transition: transform .25s, visibility .25s; } body.nav-open .mainnav { visibility: visible; } }
