/* ==========================================================
   QETC Study Malaysia: design system (clean & corporate)
   One look for every page: white and light grey surfaces, navy for text
   and structure, red only for the main action. Serif headings, sans text.
   Brand: navy #262262 · red #be1e2d
   ========================================================== */
:root {
  --navy: #262262; --navy-2: #1d1a4f; --navy-3: #15133a;
  --red: #be1e2d; --red-2: #a01825; --red-soft: #fbeeef;
  --ink: #16152f; --text: #3d3e50; --muted: #676879; --faint: #9798a6;
  --line: #e2e3ea; --line-2: #eeeff3; --bg: #ffffff; --bg-2: #f6f7f9; --bg-3: #eceef2;
  --good: #17704a; --good-bg: #e8f4ee; --warn: #8a5a00; --warn-bg: #fbf4e4; --bad: #a3192a; --bad-bg: #fcecee; --info: #1e4f7a; --info-bg: #eaf1f8;
  --sky: #2b7fc0; --sky-soft: #eef4fa;
  --r-sm: 4px; --r: 6px; --r-lg: 8px; --r-xl: 10px;
  --sh-1: 0 1px 2px rgba(22,21,47,.05);
  --sh-2: 0 6px 18px -10px rgba(22,21,47,.25);
  --sh-3: 0 20px 50px -20px rgba(22,21,47,.35);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --side: 264px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.65 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 1.06rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.stack > * { min-width: 0; }
.span2 { grid-column: 1 / -1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--red); font-weight: 600; }
.link:hover { text-decoration: underline; }
.eyebrow, .kicker { display: block; font: 600 .74rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.center { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; text-align: center; }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; list-style: disc; }
.prose p { white-space: pre-line; }
section[id], .chapter { scroll-margin-top: 96px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 .9rem var(--head); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-2); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--ghost { background: var(--bg-2); color: var(--ink); }
.btn--ghost:hover { background: var(--bg-3); }
.btn--outline, .btn--line { border-color: var(--line); background: #fff; color: var(--navy); }
.btn--outline:hover, .btn--line:hover { border-color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--bg-2); }
.btn--glass { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--glass:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--danger { background: var(--bad-bg); color: var(--bad); }
.btn--danger:hover { background: var(--bad); color: #fff; }
.btn--good { background: var(--good); color: #fff; }
.btn--good:hover { background: #115a3a; }
/* WhatsApp: a plain outline button with the green WhatsApp mark */
.btn--wa { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--wa .ic { color: #1fa855; }
.btn--wa:hover { border-color: #1fa855; }
.btn--sm { padding: 6px 12px; font-size: .82rem; }
.btn--lg { padding: 13px 24px; font-size: .96rem; }
.btn--xl { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 8px; }
.spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- badges, tags, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-sm); font: 600 .74rem var(--head); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--good { background: var(--good-bg); color: var(--good); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--mute { background: var(--bg-3); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: .8rem; font-weight: 500; }
.tag .ic { width: 14px; height: 14px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 7px 13px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font: 500 .85rem var(--head); color: var(--text); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .7; margin-left: 4px; }
.chip-time { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: var(--r-sm); background: var(--bg-2); color: var(--navy); font: 600 .8rem var(--head); }
.chip-time .ic { width: 15px; height: 15px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font: 600 .84rem var(--head); color: var(--ink); }
.field small, .hint { color: var(--muted); font-size: .8rem; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #d3d5de; border-radius: var(--r); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; min-width: 0; }
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(38,34,98,.1); }
.field input[readonly] { background: var(--bg-2); color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.req { color: var(--red); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: .9rem; margin-bottom: 14px; }
.alert .ic { margin-top: 2px; }
.alert--bad { background: var(--bad-bg); color: var(--bad); }
.alert--warn { background: var(--warn-bg); color: var(--warn); }
.alert--good { background: var(--good-bg); color: var(--good); }
.alert--info { background: var(--info-bg); color: var(--info); }
.alert a { font-weight: 700; text-decoration: underline; }
.search { position: relative; display: block; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 40px !important; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px !important; }
.pw__btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: var(--r); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw__btn:hover { background: var(--bg-2); color: var(--ink); }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card__pad { padding: 24px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.card__head h3 { margin: 0; font-size: 1rem; }
.card__body { padding: 20px 22px; }
.h-card { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--navy); margin-bottom: 10px; }
.card .h-card + .muted { margin-top: -4px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 36px; height: 36px; color: var(--faint); }
.empty h3 { margin: 6px 0 0; }

/* university mark: the logo, or the initials on navy */
.umark { width: 48px; height: 48px; flex: none; border-radius: var(--r); display: grid; place-items: center; padding: 4px;
  background: var(--navy); color: #fff; font: 700 .72rem/1.05 var(--head); text-align: center; letter-spacing: .02em; overflow: hidden; word-break: break-word; }
.umark--long { font-size: .56rem; word-break: normal; }
.umark--xlong { font-size: .48rem; }
.umark--lg { width: 76px; height: 76px; font-size: .95rem; }
.umark--lg.umark--long { font-size: .78rem; }
.umark--lg.umark--xlong { font-size: .64rem; }
.umark--sm { width: 36px; height: 36px; font-size: .6rem; }
.umark--img { background: #fff; border: 1px solid var(--line); }
.umark--img img { width: 100%; height: 100%; object-fit: contain; }
.umark--dark { background: var(--navy); border-color: var(--navy); }
.prow .umark--img, .appcard__head .umark--img, .cell-user .umark--img, .card .row > .umark--img { padding: 3px; }

/* ---------- header ---------- */
.demo-bar { background: var(--warn-bg); color: #6b4400; font-size: .84rem; border-bottom: 1px solid #efe0b8; }
.demo-bar .wrap { display: flex; gap: 10px 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 0; text-align: center; }
.demo-bar button { border: 1px solid rgba(107,68,0,.25); background: #fff; color: inherit; padding: 3px 10px; border-radius: var(--r-sm); font: 600 .78rem var(--head); cursor: pointer; }
/* thin contact bar above the header */
.topbar { background: var(--navy-3); color: #b9bbd8; font-size: .8rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar .ic { width: 14px; height: 14px; }
.topbar__note { display: inline-flex; gap: 8px; align-items: center; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { display: inline-flex; gap: 7px; align-items: center; color: #e3e4f2; }
.topbar__links a:hover { color: #fff; }
.topnav { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(22,21,47,.02); }
.topnav .wrap { display: flex; align-items: center; gap: 28px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 52px; height: auto; }
.brand b { display: block; font: 600 1.45rem/1 var(--display); color: var(--navy); letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; font: 500 .68rem/1.3 var(--head); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.topnav__links { display: flex; gap: 4px; margin: 0 auto; align-self: stretch; }
.topnav__links a { display: flex; align-items: center; padding: 0 12px; font: 500 .93rem var(--head); color: var(--text); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.topnav__links a:hover { color: var(--navy); }
.topnav__links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); font-weight: 600; }
/* page header used by "Find a course" */
.pagehead { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.pagehead .wrap { padding: clamp(32px, 5vw, 52px) 0 0; }
.pagehead h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.pagehead p { color: var(--muted); max-width: 640px; margin-bottom: 26px; }
.viewtabs { display: flex; gap: 4px; }
.viewtabs a { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border: 1px solid transparent; border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; font: 600 .95rem var(--head); color: var(--muted); margin-bottom: -1px; }
.viewtabs a:hover { color: var(--navy); }
.viewtabs a[aria-current="page"] { background: #fff; border-color: var(--line); color: var(--navy); box-shadow: inset 0 3px 0 var(--red); }
.viewtabs small { font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg-3); color: var(--text); }
.section.section--study { padding-top: 28px; }
.topnav__auth { display: flex; gap: 8px; align-items: center; }
.topnav__toggle { display: none; margin-left: auto; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 600 .8rem var(--head); flex: none; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.1rem; }
.usermenu { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.usermenu .avatar { color: #fff; }
.usermenu > span:not(.avatar) { font: 600 .86rem var(--head); color: var(--ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================
   HOME
   ========================================================== */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.12; margin-bottom: 18px; max-width: 620px; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--text); max-width: 560px; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; height: auto; max-height: 540px; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 35%; border-radius: var(--r-lg); }
.hero__photo figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); }
/* programme search */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 6px; max-width: 620px; padding: 6px; border: 1px solid #d3d5de; border-radius: var(--r-lg); background: #fff; }
.finder .input { border: 0 !important; height: 46px; box-shadow: none !important; background: transparent; }
.finder__level { border-left: 1px solid var(--line) !important; border-radius: 0 !important; }
.finder .btn { height: 46px; padding: 0 22px; }
/* big photo banner with three "start here" buttons */
.bighero { position: relative; overflow: hidden; color: #fff; background: var(--navy-3); isolation: isolate; }
.bighero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; z-index: -2; }
.bighero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(21,19,58,.95) 0%, rgba(21,19,58,.85) 42%, rgba(21,19,58,.35) 100%); }
@media (max-width: 760px) { .bighero::before { background: rgba(21,19,58,.84); } }
.bighero .wrap { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.bighero__text { max-width: 640px; }
.bighero__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font: 600 .82rem var(--head); color: #fff; margin-bottom: 20px; }
.bighero__tag .ic { width: 15px; height: 15px; color: #ffd27a; }
.bighero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.06; margin-bottom: 18px; }
.bighero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #dcdcf0; max-width: 560px; margin: 0; }
.starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 52px); max-width: 980px; }
.start { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 20px 52px 20px 20px; border-radius: var(--r-xl); background: #fff; color: var(--ink); border: 2px solid transparent; transition: transform .15s var(--ease), border-color .15s; }
.start:hover { transform: translateY(-3px); border-color: var(--red); }
.start > .ic { grid-row: span 2; width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--bg-2); color: var(--navy); }
.start b { font: 700 1.12rem var(--head); }
.start small { color: var(--muted); font-size: .86rem; }
.start__go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.start--main { background: var(--red); color: #fff; }
.start--main > .ic { background: rgba(255,255,255,.18); color: #fff; }
.start--main small, .start--main .start__go { color: #ffe0e3; }
.start--main:hover { border-color: #fff; }
/* first screen: free services on top, admission-to-arrival steps, photo */
.hero3 { background: var(--navy); color: #d6d7ec; padding-bottom: clamp(36px, 5vw, 56px); overflow: hidden; }
.freebar { background: var(--navy-2); border-bottom: 1px solid rgba(255,255,255,.08); }
.freebar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 0; font-size: .88rem; }
.freebar b { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--navy); font: 700 .8rem var(--head); text-transform: uppercase; letter-spacing: .06em; }
.freebar b .ic { width: 15px; height: 15px; color: var(--red); }
.freebar span { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; }
.freebar span .ic { width: 16px; height: 16px; color: #7fd8a8; }
.hero3__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(32px, 5vw, 56px); }
.hero3 .eyebrow { color: #f2a7ae; }
.hero3 h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.06; margin-bottom: 16px; }
.hero3__lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 560px; margin-bottom: 30px; }
.journey3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; position: relative; }
.journey3::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: rgba(255,255,255,.18); }
.journey3 li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; }
.journey3__ic { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); margin-bottom: 6px; box-shadow: 0 0 0 6px var(--navy); }
.journey3__ic .ic { width: 24px; height: 24px; }
.journey3__ic i { position: absolute; top: -4px; right: -4px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: 700 .7rem var(--head); font-style: normal; }
.journey3 b { color: #fff; font: 600 .92rem var(--head); }
.journey3 small { font-size: .76rem; color: #b9bbd8; line-height: 1.35; }
.hero3__photo { position: relative; margin: 0; }
.hero3__photo { height: clamp(380px, 40vw, 540px); border-radius: 14px; overflow: visible; }
.hero3__photo .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 14px; opacity: 0; transition: opacity 1.2s ease; }
.hero3__photo .slide.is-on { opacity: 1; animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero3__photo .slide { clip-path: inset(0 round 14px); }
.slidedots { position: absolute; right: 16px; top: 16px; z-index: 2; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(21,19,58,.55); }
.slidedots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: width .2s, background .2s; }
.slidedots button[aria-current] { width: 22px; border-radius: 999px; background: #fff; }
.hero3__card { z-index: 2; }
/* full-width photo background that changes, with the navy colour over it */
.hero3--bg { position: relative; isolation: isolate; background: var(--navy-3); }
.hero3--bg .slide { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; height: 100%; object-fit: cover; object-position: center 22%; z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
.hero3--bg .slide.is-on { opacity: 1; animation: kenburns 7s ease-out both; }
.hero3--bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,19,58,1) 0%, rgba(21,19,58,1) 40%, rgba(21,19,58,.75) 55%, rgba(21,19,58,.25) 78%, rgba(21,19,58,.15) 100%); }
.hero3--bg .hero3__text { max-width: 640px; }
.hero3--bg .hero3__text h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.hero3--bg .slide { width: 52%; object-position: 35% 22%; }
@media (max-width: 960px) { .hero3--bg .slide { width: 100%; object-position: center 25%; } .hero3--bg .hero3__text { max-width: none; } }
.hero3--bg .freebar { background: rgba(21,19,58,.7); backdrop-filter: blur(4px); }
.hero3--bg .hero3__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; min-height: clamp(420px, 46vw, 560px); }
.hero3--bg .journey3__ic { box-shadow: 0 0 0 6px rgba(21,19,58,.9); }
.hero3__side { display: grid; justify-items: end; gap: 14px; padding-bottom: 8px; }
.hero3--bg .hero3__card { position: static; }
.hero3--bg .slidedots { position: static; }
@media (max-width: 960px) {
  .hero3--bg .hero3__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero3--bg::before { background: rgba(21,19,58,.86); }
  .hero3__side { justify-items: start; }
  .hero3--bg .hero3__card { display: none; }
}
.hero3__card { position: absolute; left: -18px; bottom: 22px; display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: var(--sh-3); max-width: 300px; }
.hero3__card img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.hero3__card b { display: block; font: 700 .92rem var(--head); }
.hero3__card small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.hero3 .starts { margin-top: clamp(28px, 4vw, 44px); max-width: none; }
/* strategic partners */
.partners { padding: clamp(48px, 7vw, 80px) 0; background: #fff; border-bottom: 1px solid var(--line-2); }
.partnergrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .partnergrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.partner { display: grid; grid-template-rows: 92px auto; border-radius: var(--r-xl); border: 1.5px solid var(--line); background: #fff; overflow: hidden; transition: border-color .15s, transform .15s var(--ease); }
.partner:hover { border-color: var(--navy); transform: translateY(-2px); }
.partner__logo { display: grid; place-items: center; padding: 14px 18px; }
.partner__logo img { max-height: 58px; max-width: 100%; object-fit: contain; }
.partner__logo b { font: 700 1.25rem/1.2 var(--display); color: var(--navy); text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.partner__name { padding: 10px 12px; border-top: 1px solid var(--line-2); background: var(--bg-2); font: 600 .78rem/1.3 var(--head); color: var(--text); text-align: center; }
.partner:hover .partner__name { color: var(--navy); }
@media (max-width: 960px) {
  .hero3__grid { grid-template-columns: 1fr; }
  .hero3__photo { order: -1; }
  .hero3__photo { height: 360px; }
  .hero3__card { left: 12px; bottom: 12px; }
}
@media (max-width: 640px) {
  .freebar__in { gap: 6px 14px; font-size: .8rem; }
  .journey3 { grid-template-columns: 1fr; gap: 0; justify-items: start; }
  .journey3::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .journey3 li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 14px; padding: 6px 0; }
  .journey3__ic { grid-row: span 2; margin: 0; }
  .journey3 b { align-self: end; }
  .journey3 small { align-self: start; }
  .partnergrid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
/* next intake strip */
.intake { background: #fff8e6; border-bottom: 1px solid #f0e2bb; }
.intake__in { display: flex; align-items: center; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.intake__ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #f0e2bb; color: var(--red); flex: none; }
.intake__in > div { flex: 1; min-width: 240px; }
.intake b { font: 700 1.05rem var(--head); color: var(--navy); }
.intake__when { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font: 600 .78rem var(--head); }
.intake small { display: block; color: #6b5a2e; font-size: .86rem; margin-top: 2px; }
/* "What can I apply for?" in the course finder */
.canapply { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--good); color: var(--ink); font-size: .95rem; }
.canapply .ic { color: var(--good); margin-top: 2px; }
/* course finder */
.wizard { background: var(--bg-2); }
.wstep { max-width: 1040px; margin: 0 auto 28px; }
.wstep__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wstep__head h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.wstep__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 700 .95rem var(--head); flex: none; }
.wstep__change { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: .9rem; }
.wstep.is-locked { opacity: .45; pointer-events: none; }
.tiles { display: grid; gap: 12px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--subjects { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 12px; border-radius: var(--r-xl); border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, transform .15s var(--ease), background .15s; }
.tile:hover { border-color: var(--navy); transform: translateY(-2px); }
.tile__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--navy); margin-bottom: 4px; transition: background .15s, color .15s; }
.tile__ic .ic { width: 26px; height: 26px; }
.tile b { font: 700 1rem/1.25 var(--head); color: var(--ink); }
.tile small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.tile--sm { padding: 16px 8px; }
.tile--sm .tile__ic { width: 48px; height: 48px; }
.tile--sm .tile__ic .ic { width: 22px; height: 22px; }
.tile--sm b { font-size: .9rem; }
.tile.is-on { border-color: var(--navy); background: #f1f1f9; }
.tile.is-on .tile__ic { background: var(--navy); color: #fff; }
.wresult { max-width: 1040px; margin: 8px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r-xl); background: var(--navy); color: #cfd0e6; }
.wresult b { display: block; font: 600 1.5rem var(--display); color: #fff; }
.wresult span { font-size: .92rem; }
/* how it works: icon with a step number */
.process__ic { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-2); color: var(--navy); margin-bottom: 14px; }
.process__ic > .ic { width: 26px; height: 26px; }
.process__ic .process__n { position: absolute; right: -4px; top: -4px; width: 24px; height: 24px; margin: 0; border: 2px solid #fff; background: var(--red); color: #fff; font-size: .74rem; }
/* numbers band */
.figures { background: var(--navy); color: #cfd0e6; }
.figures__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.figures__row > div { padding: 26px 18px; border-left: 1px solid rgba(255,255,255,.12); }
.figures__row > div:first-child { border-left: 0; padding-left: 0; }
.figures b { display: block; font: 600 2rem/1.1 var(--display); color: #fff; }
.figures span { font-size: .86rem; }
/* sections */
.lsec { padding: clamp(56px, 8vw, 96px) 0; }
.lsec--tint { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.lhead { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.lhead p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.lhead--split { text-align: left; max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lhead--split h2 { margin: 0; }
.lhead--split p { max-width: 440px; }
/* levels and subjects */
.levelcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.levelcard { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.levelcard:hover { border-color: var(--navy); }
.levelcard__ic { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--bg-2); color: var(--navy); margin-bottom: 6px; }
.levelcard b { font: 600 1rem var(--head); color: var(--ink); }
.levelcard small { color: var(--muted); font-size: .85rem; line-height: 1.45; flex: 1; }
.levelcard__n { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font: 600 .84rem var(--head); color: var(--navy); }
.levelcard__n .ic { width: 15px; height: 15px; }
.levelcard:hover .levelcard__n { color: var(--red); }
.subjects { margin-top: 40px; }
.subjects h3 { margin-bottom: 12px; }
.subjects ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--line); }
.subjects a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .92rem; }
.subjects a:hover { color: var(--red); }
.subjects small { color: var(--faint); }
/* partner logos */
.logogrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.logogrid__i { display: grid; place-items: center; height: 92px; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.logogrid__i:hover { border-color: var(--navy); }
.logo-chip { display: grid; place-items: center; width: 100%; height: 100%; border-radius: var(--r); }
.logo-chip img { max-height: 48px; max-width: 100%; object-fit: contain; }
.logo-chip--dark { background: var(--navy); padding: 6px; }
/* how it works */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: p; }
.process li { padding-top: 22px; border-top: 2px solid var(--line); position: relative; }
.process li:first-child { border-top-color: var(--navy); }
.process__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); font: 600 .95rem var(--head); margin-bottom: 14px; }
.process h3 { margin-bottom: 6px; }
.process p { margin: 0; color: var(--muted); font-size: .93rem; }
/* requirements */
.reqpanel { max-width: 980px; margin: 0 auto; padding: clamp(20px, 3.5vw, 36px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.reqpane__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.reqpane__head h3 { font-size: 1.15rem; margin: 0; color: var(--navy); }
.reqpane__head > span:not(.chip-time) { color: var(--muted); font-size: .92rem; }
.reqlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.reqlist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.reqlist__ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--navy); color: var(--navy); flex: none; margin-top: 1px; }
.reqlist__ic .ic { width: 12px; height: 12px; }
.reqlist b { font-weight: 600; font-size: .93rem; color: var(--ink); }
.reqlist small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.formcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.formcol { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.formcol h4 { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; color: var(--navy); }
.formcol ul { display: grid; gap: 6px; font-size: .9rem; }
.formcol li { padding-left: 14px; position: relative; }
.formcol li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.scan-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: var(--r); background: var(--warn-bg); border-left: 3px solid #c08a1e; color: #5c3d00; font-size: .9rem; }
.scan-note .ic { width: 20px; height: 20px; flex: none; color: #a87414; }
.scan-note--sm { margin: 0 0 18px; }
/* support on arrival */
.support { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.support__i { display: block; }
.support__i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 14px; background: var(--bg-3); }
.support__i h3 { margin-bottom: 6px; }
.support__i p { margin: 0; color: var(--muted); font-size: .92rem; }
a.support__i:hover h3 { color: var(--red); }
.support__i--text { padding: 22px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-2); }
.support__ic { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--navy); margin-bottom: 14px; }
/* why QETC */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.why__photo { margin: 0; }
.why__photo img { border-radius: var(--r-lg); width: 100%; height: auto; }
.whylist { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 24px; }
.whylist li { display: flex; gap: 12px; align-items: flex-start; }
.whylist .ic { color: var(--navy); margin-top: 3px; }
.whylist b { display: block; color: var(--ink); }
.whylist small { color: var(--muted); font-size: .86rem; }
/* FAQ */
.faqwrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 18px 2px; font: 600 .98rem var(--head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { display: grid; place-items: center; color: var(--navy); flex: none; transition: transform .2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 2px 18px; color: var(--text); }
/* offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.office { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.office small { font: 600 .7rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.office h3 { margin: 4px 0; color: var(--navy); }
.office p { margin: 0; font-size: .87rem; color: var(--muted); }
/* closing band */
.ctaband { background: var(--navy); color: #cfd0e6; }
.ctaband__in { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: clamp(36px, 5vw, 56px) 0; }
.ctaband h2 { color: #fff; margin: 0 0 4px; }
.ctaband p { margin: 0; }

/* ==========================================================
   LISTS, UNIVERSITY & PROGRAMME PAGES
   ========================================================== */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.shead h1, .shead h2 { margin: 0; }
.shead p { margin: 6px 0 0; color: var(--muted); max-width: 620px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 260px; }
.toolbar select, .toolbar .input { width: auto; min-width: 150px; }
.toolbar .search .input { width: 100%; }
/* university cards */
.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ucard { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; overflow: hidden; transition: border-color .15s; }
.ucard:hover { border-color: var(--navy); }
.ucard__top { position: relative; height: 104px; display: grid; place-items: center; padding: 16px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.ucard__top > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ucard__top .umark { position: relative; }
.ucard__top .umark--img { width: auto; min-width: 64px; max-width: 100%; height: 64px; padding: 6px 10px; border: 0; background: transparent; }
.ucard__top .umark--img img { width: auto; max-width: 200px; height: 52px; object-fit: contain; }
.ucard__top .umark--dark { background: var(--navy); }
.ucard__feat { position: absolute; top: 10px; right: 10px; display: inline-flex; gap: 4px; align-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); font: 600 .7rem var(--head); padding: 2px 8px; border-radius: var(--r-sm); }
.ucard__feat .ic { width: 12px; height: 12px; color: var(--navy); }
.ucard__body { padding: 16px 18px; display: grid; gap: 10px; align-content: start; flex: 1; }
.ucard__body h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.ucard__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ucard__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-2); font: 600 .85rem var(--head); color: var(--navy); }
.ucard:hover .ucard__foot { color: var(--red); }
/* programme search page */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 100px; display: grid; gap: 20px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.filters h4 { margin: 0 0 8px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.filters .opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 6px; border-radius: var(--r-sm); cursor: pointer; font-size: .9rem; }
.filters .opt:hover { background: var(--bg-2); }
.filters .opt input { accent-color: var(--navy); }
.filters .opt span { flex: 1; }
.filters .opt small { color: var(--faint); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.results-head b { color: var(--ink); }
.filter-toggle { display: none; }
/* simple course search: big search box, level buttons, university menu */
.easyfind { display: grid; gap: 12px; margin-bottom: 18px; }
.easyfind__q .input { height: 56px; font-size: 1.02rem; border-radius: var(--r-xl); border-width: 2px; padding-left: 48px !important; }
.easyfind__q .ic { left: 17px; width: 20px; height: 20px; color: var(--navy); }
.easyfind__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lvlbtns { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.lvlbtns button { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 .88rem var(--head); color: var(--text); cursor: pointer; }
.lvlbtns button:hover { border-color: var(--navy); color: var(--navy); }
.lvlbtns button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.easyfind__uni { width: auto; min-width: 220px; height: 44px; border-radius: 999px !important; }
#r-say { font-size: .98rem; color: var(--text); }
#r-say b { color: var(--navy); }
@media (max-width: 640px) {
  .lvlbtns { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .lvlbtns button { flex: none; }
  .easyfind__uni { width: 100%; }
  .subj { width: 104px; }
}
/* subject buttons above the programme list (scroll sideways on small screens) */
.subjectbar { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.subj { flex: none; width: 120px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: var(--r-xl); border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: center; scroll-snap-align: start; transition: border-color .15s, background .15s; }
.subj:hover { border-color: var(--navy); }
.subj__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--navy); margin-bottom: 2px; }
.subj__ic .ic { width: 22px; height: 22px; }
.subj b { font: 600 .8rem/1.25 var(--head); color: var(--ink); }
.subj small { font-size: .72rem; color: var(--muted); }
.subj[aria-pressed="true"] { border-color: var(--navy); background: #f1f1f9; }
.subj[aria-pressed="true"] .subj__ic { background: var(--navy); color: #fff; }
.plist { display: grid; gap: 10px; }
.prow > a > .umark, .prow > .umark { width: 64px; height: 64px; }
.prow .umark--img { padding: 6px; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.prow:hover { border-color: var(--navy); }
.prow h3 { margin: 0 0 2px; font-size: 1rem; }
.prow h3 a:hover { color: var(--red); }
.prow__uni { font-size: .86rem; color: var(--muted); margin-bottom: 8px; }
.prow__uni a:hover { color: var(--ink); text-decoration: underline; }
.prow__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.prow__cta { display: grid; gap: 8px; justify-items: end; }
.prow__fee { font: 600 .86rem var(--head); color: var(--navy); }
/* university page header */
.uhero { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.uhero__cover { display: none; }
.uhero .wrap { padding: 28px 0 32px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.uhero__main { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.uhero__main .umark--img { width: auto; min-width: 84px; max-width: 240px; height: 84px; padding: 10px 14px; background: #fff; border-radius: var(--r-lg); }
.uhero__main .umark--img img { width: auto; max-width: 212px; height: 62px; object-fit: contain; }
.uhero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 10px; }
.uhero__facts { display: flex; gap: 8px; flex-wrap: wrap; }
.uhero__facts .tag { background: #fff; border-color: var(--line); }
.ulayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.ulayout > *, .aside > * { min-width: 0; }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.aside .tag { white-space: nowrap; }
.applybox { background: var(--navy); border-color: var(--navy); color: #cfd0e6; }
.applybox h3 { color: #fff; font-size: 1.1rem; }
.levelbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.kv { display: grid; gap: 12px; margin: 0; }
.kv div { display: flex; gap: 12px; align-items: flex-start; }
.kv .ic { color: var(--muted); margin-top: 2px; }
.kv dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.kv--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; margin: 0; }
.dl dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.dl dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.facts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.facts4 > div { padding: 12px 14px; border-left: 1px solid var(--line); }
.facts4 > div:first-child { border-left: 0; }
.facts4 small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.facts4 b { font: 600 .94rem var(--head); color: var(--ink); }
/* "On this page" links */
.jump { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.jump a { font: 600 .84rem var(--head); color: var(--navy); padding: 2px 0; border-bottom: 1px solid transparent; }
.jump a:hover { border-bottom-color: var(--navy); }
.jump--card { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); }
/* programmes per level (university page) */
.levelstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.levelstat { display: grid; gap: 2px; text-align: left; padding: 12px 16px; border: 0; border-left: 1px solid var(--line); background: #fff; cursor: pointer; }
.levelstat:first-child { border-left: 0; }
.levelstat:hover { background: var(--bg-2); }
.levelstat b { font: 600 1.5rem var(--display); color: var(--navy); }
.levelstat span { font-size: .82rem; color: var(--muted); }
/* entry requirements */
.entry { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.entry__box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.entry__box h3 { display: flex; gap: 8px; align-items: center; font-size: .98rem; margin-bottom: 4px; color: var(--navy); }
.entry__box h3 .ic { color: var(--navy); }
.entry .reqlist { grid-template-columns: 1fr; }
.entry .reqlist li:last-child { border-bottom: 0; }
#about .reqlist b { font-weight: 400; color: var(--text); }
.entry .reqlist b { font-weight: 400; font-size: .92rem; line-height: 1.5; color: var(--text); }
.entry__own { padding: 14px 16px; border-radius: var(--r-lg); background: var(--bg-2); border-left: 3px solid var(--navy); margin-bottom: 14px; }
.entry__own p { margin: 0; white-space: pre-line; color: var(--ink); }
.entry__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); border-left: 3px solid var(--navy); color: var(--text); font-size: .9rem; }
.entry__note .ic { color: var(--navy); margin-top: 2px; }
/* numbered steps */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 18px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 1px; background: var(--line); }
.steps__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font: 600 .88rem var(--head); position: relative; }
.steps__n .ic { width: 15px; height: 15px; }
.steps li.is-done .steps__n { background: var(--navy); color: #fff; }
.steps b { display: flex; gap: 8px; align-items: center; font: 600 .97rem var(--head); color: var(--ink); padding-top: 6px; }
.steps b .ic { display: none; }
.steps p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
/* side lists */
.morelist { display: grid; }
.morelist a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.morelist a:hover b { color: var(--red); }
.morelist b { display: block; font: 600 .88rem/1.4 var(--head); color: var(--ink); }
.morelist small { color: var(--muted); font-size: .78rem; }
/* fees */
.table .num { text-align: right; white-space: nowrap; }
.ptable td:first-child { min-width: 260px; }
.ptable .tag { white-space: nowrap; }
.ptable td a:not(.btn) { color: var(--ink); }
.ptable td a:not(.btn):hover b { color: var(--red); }
.fee-table td { vertical-align: top; }
.fee-table td small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.fee-table tr.fee-main td { font-weight: 600; }
.fee-table tr.fee-total td { font-weight: 700; font-size: 1rem; color: var(--navy); border-top: 2px solid var(--navy); background: var(--bg-2); }
.feesum__big { font: 600 clamp(1.5rem, 3vw, 1.9rem) var(--display); color: var(--navy); margin: 2px 0 4px; }
.feesum .row-between { padding: 4px 0; }

/* ==========================================================
   LOG IN, APPLY, DASHBOARD, ADMIN
   ========================================================== */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth__side { background: var(--navy); color: #cfd0e6; padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.auth__side .eyebrow { color: #e7a1a8; }
.auth__side h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.auth__side ul { display: grid; gap: 14px; margin-top: 20px; }
.auth__side li { display: flex; gap: 12px; align-items: flex-start; }
.auth__side li .ic { color: #fff; margin-top: 3px; }
.auth__form { display: grid; place-items: center; padding: clamp(28px, 5vw, 60px) 20px; }
.auth__box { width: min(100%, 420px); }
.auth__box h1 { font-size: 1.9rem; }
.demo-logins { margin-top: 22px; padding: 14px; border-radius: var(--r); background: var(--warn-bg); border: 1px dashed #dcc48a; }
.demo-logins p { margin: 0 0 8px; font-size: .82rem; color: #6b4400; }
/* apply */
.applyx { background: var(--bg-2); min-height: calc(100vh - 72px); }
.applyx__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); padding: clamp(24px, 4vw, 48px) 0 72px; align-items: start; }
.applyx__side { position: sticky; top: 96px; }
.applyx__side h1 { font-size: 1.7rem; margin-bottom: 20px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stepper li { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--r); color: var(--faint); }
.stepper__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); flex: none; }
.stepper__dot .ic { width: 16px; height: 16px; }
.stepper small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stepper b { font: 600 .92rem var(--head); }
.stepper .is-now { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.stepper .is-now .stepper__dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper .is-done { color: var(--ink); }
.stepper .is-done .stepper__dot { border-color: var(--navy); color: var(--navy); }
.applyx__help { display: flex; gap: 10px; margin-top: 20px; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-size: .86rem; color: var(--text); }
.applyx__help .ic { color: var(--navy); flex: none; }
.applyx__bar { height: 4px; border-radius: 999px; background: var(--bg-3); overflow: hidden; margin-bottom: 16px; }
.applyx__bar span { display: block; height: 100%; width: 0; background: var(--navy); transition: width .4s var(--ease); }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.acard__head { padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 34px) 4px; }
.acard__head small { font: 600 .72rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.acard__head h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 6px 0; }
.acard__head p { color: var(--muted); margin: 0; }
.acard__body { padding: 20px clamp(22px, 3vw, 34px); }
.acard__foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px clamp(22px, 3vw, 34px); border-top: 1px solid var(--line-2); background: var(--bg-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.choice { display: grid; gap: 8px; }
.choice--6 { grid-template-columns: repeat(6, 1fr); }
.choice--col { grid-template-columns: 1fr; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 10px 12px; border-radius: var(--r); border: 1px solid #d3d5de; background: #fff;
  font: 500 .88rem var(--head); color: var(--text); transition: border-color .15s, background .15s; }
.choice--col span { justify-content: flex-start; text-align: left; padding-left: 42px; position: relative; }
.choice--col span::before { content: ""; position: absolute; left: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #b9bbc8; background: #fff; }
.choice label:hover span { border-color: var(--navy); }
.choice input:checked + span { border-color: var(--navy); background: #f2f2f8; color: var(--navy); font-weight: 600; }
.choice--col input:checked + span::before { border: 5px solid var(--navy); }
.choice input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.review { display: grid; gap: 14px; }
.review > div { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.review h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--navy); }
.review h4 button { margin-left: auto; border: 0; background: none; cursor: pointer; }
.done { text-align: center; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); }
.done__ic { width: 68px; height: 68px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--good); color: #fff; margin-bottom: 18px; }
.done__ic .ic { width: 32px; height: 32px; }
.done__ref { color: var(--navy); font-size: 1.1rem; }
.done__next { list-style: none; counter-reset: n; padding: 0; margin: 24px auto 28px; max-width: 480px; display: grid; gap: 0; text-align: left; border-top: 1px solid var(--line); }
.done__next li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.done__next li::before { content: counter(n); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; font-size: .86rem; }
.done__next b { color: var(--ink); } .done__next span { color: var(--muted); font-size: .86rem; }
.docgroup { margin-top: 26px; }
.docgroup__head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.docgroup__head h2 { font-size: 1.25rem; margin: 0; }
.docgroup__head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.docgroup__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; flex: none; }
/* app shell (student dashboard + admin) */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 80px); background: var(--bg-2); }
.shell--admin { min-height: 100vh; }
.side { position: sticky; top: 80px; height: calc(100vh - 80px); overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.shell--admin .side { top: 0; height: 100vh; background: var(--navy-3); border-right: 0; color: #c1c3e0; }
.side__brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 20px; }
.side__brand img { width: 38px; }
.side__brand b { color: #fff; font: 700 1.02rem var(--head); display: block; }
.side__brand small { color: #9194c2; font-size: .74rem; }
.side__label { font: 600 .68rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.shell--admin .side__label { color: #7073a8; }
.side a:not(.btn):not(.scur):not(.sme__bar), .side button.side__item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r); font: 500 .9rem var(--head); color: var(--text); border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.shell--admin .side a, .shell--admin .side button.side__item { color: #c1c3e0; }
.side a:not(.btn):not(.scur):not(.sme__bar):hover, .side button.side__item:hover { background: var(--bg-2); color: var(--ink); }
.shell--admin .side a:hover, .shell--admin .side button.side__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a[aria-current="page"] { background: var(--bg-2); color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--red); }
.shell--admin .side a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.side .count { margin-left: auto; font: 600 .72rem var(--head); background: var(--red); color: #fff; padding: 1px 7px; border-radius: 999px; }
.side__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.shell--admin .side__foot { border-color: rgba(255,255,255,.08); }
.side__me { display: flex; gap: 10px; align-items: center; padding: 8px; }
.side__me b { display: block; font: 600 .86rem var(--head); color: var(--ink); }
.shell--admin .side__me b { color: #fff; }
.side__me small { font-size: .76rem; color: var(--muted); }
.shell--admin .side__me small { color: #9194c2; }
/* student side panel */
.shell--student { --side: 290px; min-height: calc(100vh - 80px); }
.side--student { top: 80px; height: calc(100vh - 80px); gap: 12px; padding: 18px 16px; background: #fff; }
.sme { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 4px 4px 14px; border-bottom: 1px solid var(--line-2); }
.sme .avatar { grid-row: span 1; width: 48px; height: 48px; font-size: 1rem; }
.sme__who b { display: block; font: 600 .98rem var(--head); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sme__who small { display: block; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sme__bar { grid-column: 1 / -1; display: grid; gap: 5px; margin-top: 10px; }
.sme__bar .progress { display: block; width: 100%; }
.sme__bar small { font-size: .76rem; color: var(--muted); }
.sme__bar:hover small { color: var(--navy); }
.scur { display: grid; gap: 6px; justify-items: start; padding: 14px; border-radius: var(--r-lg); background: var(--navy); color: #cfd0e6; }
.scur > small:first-child { font: 600 .68rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: #a9abd0; }
.scur b { font: 600 .92rem/1.35 var(--head); color: #fff; }
.scur .badge { background: rgba(255,255,255,.14); color: #fff; }
.scur__steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; width: 100%; margin-top: 4px; }
.scur__steps i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); }
.scur__steps i.is-done { background: #fff; }
.scur small { font-size: .76rem; }
.scur:hover { background: var(--navy-2); }
.scur--empty { background: var(--red); color: #ffe0e3; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.scur--empty .ic { grid-row: span 2; width: 22px; height: 22px; color: #fff; }
.scur--empty:hover { background: var(--red-2); }
.snav { display: grid; gap: 2px; }
.side .snav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-lg); }
.snav__ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--navy); flex: none; }
.snav__t { min-width: 0; flex: 1; }
.snav__t b { display: block; font: 600 .92rem var(--head); color: var(--ink); }
.snav__t small { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav__n { font: 600 .7rem var(--head); background: var(--red); color: #fff; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.side .snav a[aria-current="page"] { background: var(--bg-2); box-shadow: none; }
.side .snav a[aria-current="page"] .snav__ic { background: var(--navy); color: #fff; }
.side .snav a[aria-current="page"] b { color: var(--navy); }
.side .slink { padding: 7px 10px; font-size: .88rem; }
.side .slink .ic { width: 16px; height: 16px; color: var(--muted); }
.shelp { display: grid; grid-template-columns: auto 1fr; gap: 10px 10px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-2); }
.shelp > .ic { color: #1fa855; width: 22px; height: 22px; }
.shelp b { display: block; font-size: .9rem; color: var(--ink); }
.shelp small { font-size: .78rem; color: var(--muted); }
.shelp .btn { grid-column: 1 / -1; }
.shell--student .mobilebar { justify-content: flex-end; }
/* phones: app-style tab bar at the bottom of the student area */
.tabbar { display: none; }
@media (max-width: 960px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px -12px rgba(22,21,47,.25); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; font: 600 .7rem var(--head); color: var(--muted); border-radius: var(--r); }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--navy); }
  .tabbar a[aria-current="page"] .ic { color: var(--red); }
  .tabbar__dot { position: absolute; top: 4px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
  .shell--student .main { padding-bottom: 92px; }
  body:has(.tabbar) .float-wa { bottom: 86px; }
  .side--student { top: 0; height: 100vh; width: 300px; }
}
.main { min-width: 0; padding: clamp(18px, 3vw, 34px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--muted); }
.mobilebar { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 4px; }
.stat__label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.stat__label .ic { width: 16px; height: 16px; }
.stat b { font: 600 1.9rem/1.15 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: .78rem; }
.stat--link { cursor: pointer; transition: border-color .15s; }
.stat--link:hover { border-color: var(--navy); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.progress { height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--navy); }
.progress--good > span { background: var(--good); }
.todo { display: grid; gap: 8px; }
.todo a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.todo a:hover { border-color: var(--navy); }
.todo .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--line); }
.todo .is-done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.todo .dot .ic { width: 13px; height: 13px; }
.todo b { font: 600 .92rem var(--head); color: var(--ink); display: block; }
.todo small { color: var(--muted); }
.todo .ic-arrow { margin-left: auto; color: var(--faint); }
/* application tracker */
.track { display: grid; grid-template-columns: repeat(8, 1fr); margin: 18px 0 6px; }
.track li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: .72rem; font-weight: 600; color: var(--faint); text-align: center; }
.track li::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.track li:first-child::before { display: none; }
.track span { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.track .is-done, .track .is-now { color: var(--ink); }
.track .is-done span { background: var(--navy); border-color: var(--navy); }
.track .is-done::before, .track .is-now::before { background: var(--navy); }
.track .is-now span { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px var(--red-soft); }
.appcard { display: grid; gap: 14px; }
.appcard__head { display: flex; gap: 14px; align-items: flex-start; }
.appcard__head > div { flex: 1; min-width: 0; }
.appcard__head h3 { margin: 0 0 2px; font-size: 1.02rem; }
.appcard__ref { font: 600 .74rem var(--head); color: var(--muted); letter-spacing: .04em; }
.msg { padding: 14px 16px; border-radius: var(--r); border-left: 3px solid var(--navy); background: var(--bg-2); }
.msg b { font: 600 .72rem var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.msg p { margin: 4px 0 0; color: var(--ink); white-space: pre-line; }
.status-note { padding: 12px 14px; border-radius: var(--r); font-size: .9rem; }
.status-note--info { background: var(--info-bg); color: var(--info); }
.status-note--warn { background: var(--warn-bg); color: var(--warn); }
.status-note--good { background: var(--good-bg); color: var(--good); }
.status-note--bad { background: var(--bad-bg); color: var(--bad); }
.status-note--mute { background: var(--bg-2); color: var(--muted); }
.events { display: grid; }
.events li { position: relative; padding: 0 0 16px 22px; border-left: 1px solid var(--line); margin-left: 6px; }
.events li:last-child { padding-bottom: 0; border-color: transparent; }
.events li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.events time { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.events p { margin: 6px 0 0; font-size: .88rem; white-space: pre-line; }
/* documents */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.doc { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 1px dashed #c9cbd6; background: #fff; }
.doc.has-file { border-style: solid; border-color: var(--line); }
.doc.is-rejected { border-color: #ecb7bd; }
.doc.is-approved { border-color: #b8dcc8; }
.doc__head { display: flex; gap: 12px; align-items: flex-start; }
.doc__head .badge { margin: 6px 0 4px; }
.doc__icon { width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--bg-2); color: var(--navy); flex: none; }
.doc.is-approved .doc__icon { background: var(--good-bg); color: var(--good); }
.doc.is-rejected .doc__icon { background: var(--bad-bg); color: var(--bad); }
.doc__head b { display: block; font: 600 .94rem var(--head); color: var(--ink); }
.doc__head small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.doc__file { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--r); background: var(--bg-2); font-size: .82rem; min-width: 0; }
.doc__file span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.doc__file button, .doc__file a { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--muted); border-radius: var(--r-sm); display: grid; }
.doc__file button:hover, .doc__file a:hover { color: var(--ink); background: #fff; }
.doc__file .doc__thumb { padding: 0; width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.doc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc__note { font-size: .82rem; color: var(--bad); background: var(--bad-bg); padding: 8px 10px; border-radius: var(--r); }
.doc__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc .upbtn { margin-top: auto; }
.doc--uploading { opacity: .7; pointer-events: none; }
.upbtn { position: relative; overflow: hidden; }
.upbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.upload-btns .btn { padding: 10px 12px; }
.upload-btns .upbtn input { font-size: 0; }
/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; padding: 11px 16px; font: 600 .72rem var(--head); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; color: var(--muted); font-size: .78rem; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr[data-href]:hover { background: var(--bg-2); }
.table .cell-user { display: flex; gap: 10px; align-items: center; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; font-size: .84rem; color: var(--muted); }
/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { padding: 11px 14px; border: 0; background: none; font: 600 .9rem var(--head); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--red); }
.tabs .count { font-size: .72rem; background: var(--bg-3); color: var(--text); padding: 1px 7px; border-radius: 999px; }
.reqtabs { margin-bottom: 22px; }
/* bars */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.hbar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hbar__track { height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.hbar__fill { height: 100%; background: var(--navy); border-radius: inherit; }
.hbar b { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 24px; text-align: right; }
/* modal, preview, toasts */
.modal { width: min(560px, 100% - 24px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--sh-3); color: var(--text); }
.modal--wide { width: min(980px, 100% - 24px); }
.modal::backdrop { background: rgba(21,19,58,.55); }
.modal__body { padding: clamp(20px, 3vw, 30px); }
.modal__x { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-2); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.modal__x:hover { background: var(--bg-3); }
.modal__title { margin-right: 40px; font-family: var(--head); font-size: 1.1rem; color: var(--ink); }
.preview__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 40px 14px 0; }
.preview__img { max-height: 75vh; margin: 0 auto; border-radius: var(--r); border: 1px solid var(--line); }
.preview__pdf { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: var(--r); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r-lg); background: var(--ink); color: #fff; font-size: .9rem; box-shadow: var(--sh-3); animation: tin .2s var(--ease); }
.toast--good .ic { color: #7fd8a8; }
.toast--bad .ic { color: #ff9aa5; }
.toast.is-out { opacity: 0; transition: opacity .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.loading { display: grid; place-items: center; padding: 80px 0; color: var(--muted); gap: 12px; }
.loading .spin { width: 26px; height: 26px; border-width: 3px; color: var(--navy); }

/* ==========================================================
   GALLERY
   ========================================================== */
.ghero2 { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ghero2__grid { padding: clamp(36px, 6vw, 64px) 0; }
.ghero2 h1 { margin-bottom: 10px; }
.ghero2 p { font-size: 1.05rem; max-width: 560px; color: var(--muted); }
.ghero2__nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ghero2__nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.ghero2__nav a:hover { border-color: var(--navy); }
.ghero2__nav b { color: var(--navy); }
.ghero2__nav .ic { color: var(--navy); width: 16px; height: 16px; }
.chapter { padding: clamp(48px, 7vw, 80px) 0; }
.chapter--tint { background: var(--bg-2); }
.chapter__head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.chapter__n { font: 600 2.4rem/1 var(--display); color: var(--faint); }
.chapter__head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.chapter__head h2 .ic { width: 24px; height: 24px; color: var(--navy); }
.chapter__head p { margin: 0; color: var(--muted); }
.chapter__count { margin-left: auto; padding: 6px 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font: 600 .84rem var(--head); color: var(--navy); white-space: nowrap; }
.chapter .center { margin-top: 24px; }
.feat { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; }
.feat--3 { grid-template-columns: 2fr 1fr; }
.feat__i { position: relative; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.feat__i:first-child { grid-row: span 2; }
.feat__i img { width: 100%; height: 100%; object-fit: cover; }
.ggrid2 { columns: 5 200px; column-gap: 10px; margin-top: 10px; }
.gitem { position: relative; display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--bg-3); break-inside: avoid; }
.gitem img { width: 100%; height: auto; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,9,28,.95); color: #fff; }
.lightbox::backdrop { background: rgba(10,9,28,.95); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 70px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: var(--r); }
.lightbox figcaption { display: flex; gap: 10px; align-items: center; font: 600 .86rem var(--head); }
.lightbox figcaption .ic { width: 16px; height: 16px; }
.lightbox figcaption .muted { color: #a3a5c8; font-weight: 500; }
.lightbox__x, .lightbox__nav { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; }
.lightbox__x:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__x { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-3); color: #a9abcc; font-size: .9rem; }
.footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 36px; }
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: .82rem; flex-wrap: wrap; }
.float-wa { position: fixed; right: 18px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); z-index: 50; }
.float-wa .ic { width: 26px; height: 26px; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .tiles--subjects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .levelcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logogrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subjects ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; display: none; }
  .filters.is-open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .formcols { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .ulayout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 960px) {
  .topbar__note { display: none; }
  .topbar__in { justify-content: center; }
  .topnav .wrap { height: 68px; }
  .brand img { width: 44px; }
  .brand b { font-size: 1.25rem; }
  .topnav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); margin: 0; }
  .topnav__links.is-open { display: flex; }
  .topnav__links a { padding: 12px 4px; border-bottom: 1px solid var(--line-2); margin: 0; }
  .topnav__links a[aria-current="page"] { border-bottom-color: var(--line-2); color: var(--red); }
  .topnav__toggle { display: inline-flex; }
  .topnav__auth .btn--ghost { display: none; }
  .hero__grid, .why, .faqwrap { grid-template-columns: 1fr; }
  .hero__photo img { aspect-ratio: 16 / 10; }
  .figures__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figures__row > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .applyx__grid { grid-template-columns: 1fr; }
  .applyx__side { position: static; }
  .applyx__side h1 { margin-bottom: 14px; }
  .stepper { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .stepper li { flex-direction: column; text-align: center; gap: 6px; padding: 6px 2px; }
  .stepper small, .applyx__help { display: none; }
  .stepper b { font-size: .7rem; line-height: 1.2; }
  .choice--6 { grid-template-columns: repeat(3, 1fr); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; top: 0; height: 100vh; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--sh-3); }
  .side.is-open { transform: none; }
  .mobilebar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .starts { grid-template-columns: 1fr; gap: 10px; }
  .start { padding: 16px 48px 16px 16px; }
  .tiles--4 { grid-template-columns: 1fr 1fr; }
  .tiles--subjects { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 16px 8px; }
  .wresult { padding: 18px; }
  .wresult .btn { flex: 1 1 100%; }
  .finder { grid-template-columns: 1fr; }
  .finder__level { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .entry { grid-template-columns: 1fr; }
  .levelcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subjects ul { grid-template-columns: 1fr 1fr; }
  .kv--grid { grid-template-columns: 1fr; }
  .facts4 { grid-template-columns: 1fr 1fr; }
  .facts4 > div:nth-child(3) { border-left: 0; }
  .facts4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .figures__row { grid-template-columns: 1fr 1fr; }
  .figures__row > div { border-left: 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .figures__row > div:nth-child(-n+2) { border-top: 0; }
  .figures b { font-size: 1.6rem; }
  .logogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logogrid__i { height: 78px; }
  .process, .offices, .support, .whylist, .reqlist { grid-template-columns: 1fr; }
  .reqtabs button { padding: 10px 10px; font-size: .84rem; }
  .chip-time { margin-left: 0; }
  .prow { grid-template-columns: auto minmax(0, 1fr); }
  .prow__cta { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; }
  .ptable th, .ptable td { padding: 10px; }
  .ptable td:first-child { min-width: 200px; }
  .track { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
  .track li:nth-child(5)::before { display: none; }
  .topnav__auth .btn--primary { padding: 8px 12px; }
  .brand small { display: none; }
  .topbar__links { gap: 16px; }
  .topbar__links a:nth-child(2) span { display: none; }
  .viewtabs a { padding: 11px 12px; font-size: .88rem; flex: 1; justify-content: center; }
  .ctaband .btn { flex: 1 1 100%; }
  .acard__foot .btn--lg { padding: 12px 16px; }
  .feat { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 150px 150px; }
  .feat__i:first-child { grid-column: 1 / -1; grid-row: auto; }
  .feat--3 { grid-template-rows: 260px 150px; }
  .chapter__head { flex-wrap: wrap; } .chapter__count { margin-left: 0; }
  .ggrid2 { columns: 2; column-gap: 8px; }
  .lightbox figure { padding: 60px 8px 20px; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fee-table { font-size: .8rem; }
  .fee-table th, .fee-table td { padding: 9px 7px; }
  .fee-table th { font-size: .62rem; letter-spacing: .03em; white-space: normal; }
  .fee-table tr.fee-total td { font-size: .88rem; }
}
@media (max-width: 420px) {
  .levelcards, .subjects ul { grid-template-columns: 1fr; }
  .tiles--subjects { grid-template-columns: 1fr 1fr; }
  .tile small { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
