/* ==========================================================================
   Crawford Professionals Institute — design system
   ========================================================================== */

:root {
  --brand-950: #1f0505;
  --brand-900: #360808;
  --brand-800: #560b0b;
  --brand-700: #7a1010;
  --brand-600: #961818;
  --brand-500: #b42323;
  --brand-100: #f6dede;
  --brand-50: #fcf3f3;

  --gold-600: #a8841a;
  --gold-500: #c9a227;
  --gold-400: #dcbc4d;
  --gold-300: #ebd48a;
  --gold-100: #faf3dc;

  --ink: #17120f;
  --ink-2: #2d2622;
  --text: #3a332e;
  --muted: #6b645a;
  --subtle: #958d82;
  --line-strong: #dcd4c7;
  --line: #ebe5da;
  --paper: #ffffff;
  --paper-soft: #faf7f2;
  --paper-warm: #f3eee5;

  --success: #1f7a3d;
  --success-bg: #e7f5ec;
  --warning: #9a5b00;
  --warning-bg: #fdf2dc;
  --danger: #b3261e;
  --danger-bg: #fbe9e8;
  --info: #1c5fa8;
  --info-bg: #e7f0fb;
  --neutral-bg: #efebe4;

  /* Legacy names, still referenced by inline styles in views */
  --crimson: var(--brand-700);
  --crimson-dark: var(--brand-800);
  --gold: var(--gold-500);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: var(--font-display);
  --font-body: var(--font-sans);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(23, 18, 15, .06);
  --shadow-sm: 0 2px 8px rgba(23, 18, 15, .06), 0 1px 2px rgba(23, 18, 15, .04);
  --shadow: 0 10px 28px rgba(23, 18, 15, .09), 0 2px 6px rgba(23, 18, 15, .04);
  --shadow-lg: 0 26px 52px rgba(23, 18, 15, .15), 0 8px 18px rgba(23, 18, 15, .06);
  --shadow-brand: 0 12px 30px rgba(122, 16, 16, .32);
  --ring: 0 0 0 4px rgba(180, 35, 35, .14);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .25s;

  --container: 1320px;
  --gutter: 32px;
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-500); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
strong, b { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
::selection { background: var(--brand-700); color: #fff; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 900px; }
.section { padding: clamp(56px, 3vw + 40px, 100px) 0; }
.section-soft { background: var(--paper-soft); }
.section-warm { background: var(--paper-warm); }
.section-tight { padding: 40px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  color: var(--brand-700); font-weight: 800; margin: 0 0 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--gold-500); }
.lead { font-size: 1.14rem; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { margin-bottom: 14px; }
.section-head > p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--gold-500); }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.split > div { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; min-height: 46px;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 700; font-size: .93rem; line-height: 1.2; letter-spacing: .01em;
  text-align: center; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn i { font-size: .95em; transition: transform var(--dur) var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }
button.btn { font-family: inherit; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

.btn-primary { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; box-shadow: 0 6px 18px rgba(122, 16, 16, .24); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--brand-950); box-shadow: 0 6px 18px rgba(169, 132, 26, .3); }
.btn-gold:hover { color: var(--brand-950); box-shadow: 0 12px 28px rgba(169, 132, 26, .38); }
.btn-light { background: #fff; color: var(--brand-800); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.btn-light:hover { color: var(--brand-700); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1d17; color: #fff; }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: .84rem; }
.btn-lg { padding: 15px 30px; min-height: 54px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-700); }
.link-arrow i { transition: transform var(--dur) var(--ease); }
a:hover .link-arrow i, .link-arrow:hover i { transform: translateX(4px); }

/* ---------- Badges & status pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--paper-warm); border: 1px solid var(--line); color: var(--ink-2);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
p.badge { margin: 0 8px 8px 0; }
.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px 4px 9px; border-radius: var(--radius-pill);
  background: var(--neutral-bg); color: var(--ink-2);
  font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-active, .status-paid, .status-published, .status-successful, .status-admitted, .status-open,
.status-completed, .status-accepted, .status-converted, .status-present, .status-sent, .status-graded, .status-valid {
  background: var(--success-bg); color: var(--success);
}
.status-pending_payment, .status-pending, .status-pending_review, .status-submitted, .status-unpaid,
.status-partially_paid, .status-new, .status-initiated, .status-late {
  background: var(--warning-bg); color: var(--warning);
}
.status-in_progress, .status-scheduled, .status-reviewing, .status-under_review, .status-quoted, .status-excused {
  background: var(--info-bg); color: var(--info);
}
.status-failed, .status-declined, .status-rejected, .status-withdrawn, .status-cancelled,
.status-suspended, .status-void, .status-absent, .status-revoked {
  background: var(--danger-bg); color: var(--danger);
}
.status-draft, .status-archived, .status-closed { background: var(--neutral-bg); color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
a.card { color: var(--text); }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.card h3 { margin-bottom: 8px; }
.card > :last-child { margin-bottom: 0; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 58px; height: 58px; margin-bottom: 20px; border-radius: 17px;
  background: linear-gradient(135deg, var(--brand-50), var(--gold-100)); color: var(--brand-700);
  font-size: 1.4rem; box-shadow: inset 0 0 0 1px rgba(122, 16, 16, .08);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
a:hover > .icon-badge, .card:hover > .icon-badge {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff;
}

.pillar-card { padding: 34px 30px; overflow: hidden; display: flex; flex-direction: column; }
.pillar-card::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .16), transparent 70%);
  transition: transform .6s var(--ease); pointer-events: none;
}
a.pillar-card:hover::after { transform: scale(1.5); }
.pillar-card p { color: var(--muted); }
.pillar-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem;
}
.pillar-meta .count { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.pillar-meta .count i { color: var(--gold-600); }

/* Course cards */
.course-card { display: flex; flex-direction: column; height: 100%; min-width: 0; padding: 24px; }
.course-card .badge { margin-bottom: 14px; }
.course-cat {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%;
  margin-bottom: 16px; padding: 5px 12px 5px 10px; border-radius: var(--radius-pill);
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700);
  font-size: .74rem; font-weight: 700;
}
.course-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-card h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 10px; transition: color .2s; }
a.course-card:hover h3 { color: var(--brand-700); }
.course-summary {
  color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .79rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.course-meta i { color: var(--gold-600); margin-right: 5px; }
.course-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.course-card .price { font-weight: 800; color: var(--brand-700); font-size: 1rem; }
.course-card > .price { margin-top: auto; padding-top: 14px; }
.course-go {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--paper-warm); color: var(--brand-700); transition: .3s var(--ease);
}
a.course-card:hover .course-go { background: var(--brand-700); color: #fff; transform: translateX(3px); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink-2); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=search],
input[type=file], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #a8a096; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b645a' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select[multiple] { background-image: none; padding-right: 14px; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-700); width: 16px; height: 16px; vertical-align: middle; }
input[type=file] { padding: 10px; background: var(--paper-soft); cursor: pointer; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.help-text { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 600; margin-top: 6px; }
.form-card {
  max-width: 480px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.form-card.wide { max-width: 760px; }
.input-icon { position: relative; }
.input-icon > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--subtle); pointer-events: none; transition: color .2s;
}
.input-icon > input { padding-left: 46px; }
.input-icon:focus-within > i { color: var(--brand-600); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; margin-bottom: 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: .92rem; font-weight: 500;
}
.alert::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 1.05rem; line-height: 1.45; flex-shrink: 0; }
.alert-success { background: var(--success-bg); border-color: #c5e5cf; color: #16572c; }
.alert-success::before { content: "\f058"; color: var(--success); }
.alert-error { background: var(--danger-bg); border-color: #f2c9c6; color: #86201a; }
.alert-error::before { content: "\f06a"; color: var(--danger); }
.alert-info { background: var(--info-bg); border-color: #c8daf2; color: #174c86; }
.alert-info::before { content: "\f05a"; color: var(--info); }
.flash-wrap { padding-top: 22px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
th {
  background: var(--paper-soft); color: var(--muted);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fcfaf6; }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }
.table-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow-x: auto; box-shadow: var(--shadow-xs); margin-bottom: 24px;
}
.table-card table { margin: 0; }

/* ==========================================================================
   Public site chrome
   ========================================================================== */
.topbar { background: var(--brand-950); color: rgba(255, 255, 255, .75); font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-group { display: flex; align-items: center; gap: 24px; }
.topbar a, .topbar span { color: rgba(255, 255, 255, .78); display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--gold-300); }
.topbar i { color: var(--gold-400); font-size: .78rem; }
.topbar i.fa-whatsapp { font-size: .9rem; }
.topbar .tb-wide { display: none; }
@media (min-width: 1320px) { .topbar .tb-wide { display: inline-flex; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(23, 18, 15, .08); background: rgba(255, 255, 255, .97); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .bar { height: 72px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-300), 0 8px 20px rgba(122, 16, 16, .2);
  transition: width .3s var(--ease), height .3s var(--ease), transform .4s var(--ease);
}
.brand:hover img { transform: rotate(-8deg); }
.site-header.is-scrolled .brand img { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 14px; border-left: 2px solid var(--gold-500); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); }
.brand-short { display: none; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); letter-spacing: .02em; }
.brand-tagline { font-size: .64rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-600); margin-top: 6px; }
.brand-tagline-short { display: none; font-size: .56rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-top: 3px; }

.nav-collapse { display: flex; align-items: center; gap: 22px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border: 0; border-radius: 10px; background: none;
  font-family: inherit; font-size: .93rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.is-open > .nav-link { color: var(--brand-700); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-700); }
.nav-link.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold-500); }
.nav-link .fa-chevron-down { font-size: .65rem; transition: transform .25s var(--ease); }
.nav-item:hover .fa-chevron-down, .nav-item.is-open .fa-chevron-down { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 70;
  width: 400px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; color: var(--ink-2); transition: background .2s; }
.dropdown-item:hover { background: var(--paper-soft); color: var(--ink); }
.dd-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-50); color: var(--brand-700); transition: .2s;
}
.dropdown-item:hover .dd-icon { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; }
.dropdown-item strong { display: block; font-size: .92rem; color: var(--ink); }
.dropdown-item small { display: block; font-size: .8rem; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.dropdown-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 12px 14px 6px; border-top: 1px solid var(--line); font-size: .84rem;
}
.dropdown-foot span { color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions form { margin: 0; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: .2s;
}
.nav-toggle:hover, .nav-toggle[aria-expanded=true] { border-color: var(--brand-600); color: var(--brand-700); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(1000px 520px at 88% -8%, rgba(201, 162, 39, .22), transparent 60%),
    linear-gradient(135deg, #1f0505 0%, #3d0909 40%, #6a0f0f 75%, #7a1010 100%);
  padding-top: clamp(64px, 6vw, 112px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 { width: 640px; height: 640px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(190, 40, 40, .55), transparent 66%); animation: orb-1 18s ease-in-out infinite alternate; }
.orb-2 { width: 540px; height: 540px; right: -160px; top: 8%; background: radial-gradient(circle, rgba(201, 162, 39, .28), transparent 66%); animation: orb-2 22s ease-in-out infinite alternate; }
.orb-3 { width: 760px; height: 760px; left: 28%; bottom: -440px; background: radial-gradient(circle, rgba(150, 24, 24, .5), transparent 66%); animation: orb-3 26s ease-in-out infinite alternate; }
@keyframes orb-1 { to { transform: translate3d(140px, 90px, 0) scale(1.15); } }
@keyframes orb-2 { to { transform: translate3d(-150px, 110px, 0) scale(.88); } }
@keyframes orb-3 { to { transform: translate3d(-120px, -70px, 0) scale(1.12); } }
.bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%);
  animation: dots-pan 40s linear infinite;
}
@keyframes dots-pan { to { background-position: 280px 280px; } }
.floating-icons i {
  position: absolute; bottom: -80px; left: var(--x, 50%);
  font-size: var(--s, 1.6rem); color: rgba(255, 255, 255, var(--o, .12));
  animation: icon-rise var(--d, 24s) linear infinite; animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}
.floating-icons i.gold { color: rgba(220, 188, 77, var(--o, .22)); }
@keyframes icon-rise {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate3d(var(--sway, 30px), -55vh, 0) rotate(calc(var(--r, 40deg) / 2)); }
  88% { opacity: 1; }
  100% { transform: translate3d(0, -115vh, 0) rotate(var(--r, 40deg)); opacity: 0; }
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; padding-bottom: 84px; }
.hero-copy > * { animation: fade-up .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; margin-bottom: 26px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 188, 77, .6); }
  70% { box-shadow: 0 0 0 10px rgba(220, 188, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 188, 77, 0); }
}
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 22px; }
.text-gradient {
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500) 30%, #f6e6b2 50%, var(--gold-400) 70%, var(--gold-300));
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 250% center; } }
.hero .lead { color: rgba(255, 255, 255, .8); font-size: 1.16rem; max-width: 580px; margin-bottom: 30px; }
.hero-search {
  display: flex; align-items: center; gap: 8px; max-width: 580px; margin-bottom: 24px;
  padding: 7px 7px 7px 22px; border-radius: var(--radius-pill); background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
}
.hero-search > i { color: var(--subtle); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 10px 6px; font-size: 1rem; background: transparent; box-shadow: none; }
.hero-search input:focus { box-shadow: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; margin: 32px 0 0; font-size: .86rem; color: rgba(255, 255, 255, .8); }
.hero-trust li { display: inline-flex; align-items: center; gap: 9px; }
.hero-trust i { color: var(--gold-400); }

.hero-visual { position: relative; padding: 56px 24px; animation: fade-up 1s .2s var(--ease-out) both; }
.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px;
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #fff;
}
.hero-card { position: relative; z-index: 2; width: min(440px, 100%); margin: 0 auto; padding: 30px; animation: bob 8s ease-in-out infinite; }
.hc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hc-icon {
  width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--brand-950);
  font-size: 1.45rem; box-shadow: 0 10px 24px rgba(169, 132, 26, .38);
}
.hc-head small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.hc-head strong { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1; color: #fff; }
.hc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.hc-stat { padding: 14px 8px; border-radius: 15px; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.hc-stat strong { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.hc-stat span { display: block; font-size: .72rem; line-height: 1.35; color: rgba(255, 255, 255, .72); margin-top: 5px; }
.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-chips a {
  padding: 6px 12px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 600;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9);
  transition: .2s;
}
.hc-chips a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 13px 18px 13px 13px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .3); animation: bob 6s ease-in-out infinite;
}
.hero-float strong { display: block; font-size: .9rem; color: var(--ink); line-height: 1.25; }
.hero-float small { display: block; font-size: .75rem; color: var(--muted); }
.hf-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.hf-icon.green { background: var(--success-bg); color: var(--success); }
.hf-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.hf-1 { top: 6px; right: 0; animation-delay: -2s; }
.hf-2 { bottom: 14px; left: 0; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.marquee {
  position: relative; overflow: hidden; padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 28px; font-size: .9rem; font-weight: 600; white-space: nowrap; color: rgba(255, 255, 255, .75); }
.marquee-item:hover { color: #fff; }
.marquee-item i { color: var(--gold-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(201, 162, 39, .2), transparent 60%),
    linear-gradient(135deg, #240606, #560b0b 55%, #7a1010);
  padding: 64px 0 60px;
}
.page-hero .orb-1 { width: 420px; height: 420px; left: -140px; top: -200px; }
.page-hero .orb-2 { width: 360px; height: 360px; right: -100px; top: -40px; }
.page-hero .floating-icons i { --o: .08; }
.page-hero-inner { position: relative; animation: fade-up .8s var(--ease-out) both; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin-bottom: 12px; max-width: 900px; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 740px; margin: 0; }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero .eyebrow::before { background: var(--gold-400); }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .82rem; color: rgba(255, 255, 255, .6); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255, 255, 255, .82); }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb .sep { font-size: .55rem; opacity: .6; }
.page-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero-stats span {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: .84rem; font-weight: 600;
}
.page-hero-stats i { color: var(--gold-400); }

/* ---------- Home sections ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.cat-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-50); color: var(--brand-700); font-size: 1.15rem; transition: .3s var(--ease);
}
.category-card:hover .cat-icon { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; transform: scale(1.06); }
.cat-text { flex: 1; min-width: 0; }
.cat-text strong { display: block; font-size: .9rem; line-height: 1.3; color: var(--ink); }
.cat-text small { display: block; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.cat-arrow { color: var(--subtle); font-size: .8rem; transition: .25s var(--ease); }
.category-card:hover .cat-arrow { color: var(--brand-700); transform: translateX(3px); }

.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-copy .lead { color: var(--ink-2); }
.about-copy p { color: var(--muted); }
.about-quote {
  position: relative; margin: 26px 0 0; padding: 20px 24px 20px 58px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
}
.about-quote i { position: absolute; left: 20px; top: 22px; color: var(--gold-500); font-size: 1.3rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  display: flex; gap: 14px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.f-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--gold-100); color: var(--gold-600); font-size: 1.05rem;
}
.feature h4 { font-family: var(--font-sans); font-size: .95rem; letter-spacing: -.01em; margin-bottom: 4px; }
.feature p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.55; }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps::before {
  content: ""; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 10px; }
.step-icon {
  position: relative; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--brand-100);
  color: var(--brand-700); font-size: 1.45rem; box-shadow: var(--shadow-sm); transition: .35s var(--ease);
}
.step:hover .step-icon { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); border-color: transparent; color: #fff; transform: scale(1.07); }
.step-num {
  position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid #fff;
  background: var(--gold-500); color: var(--brand-950); font-size: .72rem; font-weight: 800;
}
.step h4 { font-family: var(--font-sans); font-size: 1rem; letter-spacing: -.01em; margin-bottom: 6px; }
.step p { font-size: .87rem; color: var(--muted); margin: 0; }

.verify-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(320px, 440px); align-items: center; gap: 28px;
  padding: 32px 36px; border-radius: 24px;
  background: linear-gradient(135deg, var(--gold-100), #fff 65%); border: 1px solid #efe3bd; box-shadow: var(--shadow-sm);
}
.vb-icon {
  width: 66px; height: 66px; border-radius: 19px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #fff;
  font-size: 1.6rem; box-shadow: 0 12px 26px rgba(169, 132, 26, .32);
}
.verify-band h3 { margin-bottom: 4px; }
.verify-band p { margin: 0; color: var(--muted); font-size: .93rem; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 32px;
  padding: clamp(40px, 5vw, 66px); border-radius: 30px; color: #fff;
  background: linear-gradient(135deg, #2a0707, #6a0f0f 60%, #8d1616);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .8); font-size: 1.05rem; margin: 0; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Catalogue ---------- */
.catalogue-toolbar { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.search-bar { position: relative; max-width: 640px; }
.search-bar > i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search-bar input { padding: 15px 130px 15px 50px; border-radius: var(--radius-pill); font-size: 1rem; box-shadow: var(--shadow-sm); }
.search-bar .btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.search-bar .btn:hover { transform: translateY(-50%); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff;
  font-size: .82rem; font-weight: 600; color: var(--ink-2); transition: .2s;
}
.filters a i { color: var(--brand-600); font-size: .78rem; }
.filters a:hover { border-color: var(--brand-600); color: var(--brand-700); }
.filters a.active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.filters a.active i { color: var(--gold-300); }
.results-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; font-size: .9rem; color: var(--muted); }
.results-meta strong { color: var(--ink); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 700; font-size: .88rem; color: var(--ink-2); transition: .2s;
}
.pagination a:hover { border-color: var(--brand-600); color: var(--brand-700); }
.pagination .current { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pagination .disabled { opacity: .4; }
.pagination .gap { border: 0; background: none; min-width: 20px; padding: 0; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state > i { display: block; font-size: 2.2rem; color: var(--line-strong); margin-bottom: 14px; }
.empty-state h3 { font-family: var(--font-sans); margin-bottom: 6px; }
.grid-3 > .empty-state, .grid-2 > .empty-state { grid-column: 1 / -1; }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.course-aside { position: sticky; top: 110px; }
.price-tag { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.price-note { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.facts { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.facts li > i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--paper-warm); color: var(--brand-700); }
.facts small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.facts strong { display: block; font-size: .92rem; }
.prose { font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.prose h2 { margin-top: 40px; }
.intake-card { display: flex; flex-direction: column; gap: 14px; }
.intake-card .intake-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.intake-card h3 { font-family: var(--font-sans); font-size: 1rem; margin: 0; }
.intake-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--text); }
.intake-facts i { width: 18px; color: var(--gold-600); margin-right: 8px; text-align: center; }

/* ---------- Auth ---------- */
.auth-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 128px); background: var(--paper-soft); }
.auth-aside {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px clamp(32px, 5vw, 88px);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(201, 162, 39, .2), transparent 60%),
    linear-gradient(150deg, #240606, #560b0b 55%, #7a1010);
}
.auth-aside .auth-crest { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 30px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 16px 34px rgba(0, 0, 0, .35); }
.auth-aside h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.7rem); margin-bottom: 14px; }
.auth-aside > p { color: rgba(255, 255, 255, .78); font-size: 1.05rem; max-width: 480px; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; max-width: 480px; }
.auth-points li { display: flex; align-items: flex-start; gap: 14px; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.auth-points i {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); color: var(--gold-300);
}
.auth-points strong { display: block; color: #fff; }
.auth-points span { color: rgba(255, 255, 255, .7); font-size: .87rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 470px; }
.auth-card h1 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-card .form-card { max-width: none; padding: 32px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 20px; font-size: .86rem; }
.auth-switch { text-align: center; margin: 22px 0 0; font-size: .92rem; color: var(--muted); }
.auth-switch a { font-weight: 700; }
.portal-tabs { display: flex; gap: 6px; margin: 0 0 26px; padding: 5px; border-radius: 14px; background: var(--paper-warm); border: 1px solid var(--line); }
.portal-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 10px; font-size: .86rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.portal-tab i { font-size: .82rem; }
.portal-tab:hover { color: var(--ink); }
.portal-tab.is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.auth-notice { margin-top: 22px; }
.nav-portals { display: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #140e0c; color: rgba(255, 255, 255, .64); padding: 76px 0 0; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand-700), var(--gold-500), var(--brand-700)); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(201, 162, 39, .3); }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.2; color: #fff; }
.footer-brand small { display: block; margin-top: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); }
.footer-about { font-size: .92rem; line-height: 1.7; margin-bottom: 0; max-width: 380px; }
.site-footer h4 { font-family: var(--font-sans); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: rgba(255, 255, 255, .66); transition: color .2s, transform .2s var(--ease); }
.footer-links a i { font-size: .6rem; color: var(--brand-500); }
.footer-links a:hover { color: var(--gold-300); transform: translateX(3px); }
.contact-line { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; font-size: .92rem; }
.contact-line i { width: 18px; margin-top: 5px; text-align: center; color: var(--gold-400); }
.contact-line a { color: rgba(255, 255, 255, .82); }
.contact-line a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem;
}
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: var(--gold-300); }
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Misc public ---------- */
.verify-result { text-align: center; padding: 36px; border-width: 2px; }
.verify-result.valid { border-color: #b8e0c4; background: linear-gradient(180deg, var(--success-bg), #fff 70%); }
.verify-result.invalid { border-color: #f0c4c1; background: linear-gradient(180deg, var(--danger-bg), #fff 70%); }
.result-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; }
.verify-result.valid .result-icon { background: var(--success); color: #fff; box-shadow: 0 0 0 8px rgba(31, 122, 61, .12); }
.verify-result.invalid .result-icon { background: var(--danger); color: #fff; box-shadow: 0 0 0 8px rgba(179, 38, 30, .12); }
.detail-list { list-style: none; padding: 0; margin: 20px auto 0; max-width: 460px; text-align: left; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.detail-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #fff; font-size: .9rem; }
.detail-list span { color: var(--muted); }
.detail-list strong { text-align: right; }
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px 24px; }
.contact-card > p { margin-bottom: 8px; }
.contact-big { display: block; font-size: 1.12rem; font-weight: 800; color: var(--ink); letter-spacing: .01em; }
a.contact-big:hover { color: var(--brand-700); }
.contact-card .btn { margin-top: 10px; }
.contact-card .contact-note { margin: 8px 0 0; font-size: .86rem; color: var(--ink-2); }
.contact-note i { color: var(--brand-600); margin-right: 4px; }
.icon-badge.icon-whatsapp { background: #e7f8ee; color: #128c4b; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.mode-card { padding: 26px 24px; }
.mode-card .icon-badge { margin-bottom: 0; }
.mode-card h3 { margin: 16px 0 6px; font-family: var(--font-sans); font-size: 1.02rem; line-height: 1.35; }
.mode-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.coverage-line { margin: 30px 0 0; text-align: center; color: var(--ink-2); }
.coverage-line i { margin-right: 6px; color: var(--brand-600); }
.modes-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 34px; padding: 22px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.modes-cta p { margin: 0; color: var(--ink-2); }
.modes-cta .hero-actions { margin: 0; }
.whatsapp-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 55;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(18, 140, 75, .35);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.whatsapp-float i { font-size: 1.75rem; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { background: #1ebe5b; color: #fff; transform: translateY(-3px); }
.whatsapp-float span {
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-6px, -50%);
  padding: 7px 14px; border-radius: var(--radius-pill); background: #fff; color: var(--ink);
  font-size: .82rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.whatsapp-float:hover span, .whatsapp-float:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.contact-card .icon-badge { margin-left: auto; margin-right: auto; }
.contact-card h3 { font-family: var(--font-sans); font-size: 1.05rem; }
.contact-card p { color: var(--muted); font-size: .92rem; }
.value-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.value-card .f-icon { background: var(--brand-50); color: var(--brand-700); }
.value-card p { margin: 0; color: var(--ink-2); font-weight: 600; font-size: .94rem; line-height: 1.5; }
.mv-card { padding: 34px; }
.mv-card h3 { display: flex; align-items: center; gap: 12px; }
.mv-card h3 i { color: var(--gold-600); }
.mv-card p { color: var(--muted); }
.error-page { text-align: center; padding: 110px 0; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; font-weight: 800; color: var(--brand-100); margin-bottom: 8px; }

/* ==========================================================================
   Portals (admin / learner / lecturer / corporate)
   ========================================================================== */
.dash-body { background: #f5f3ef; }
.dash-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, #1b0606 272px, transparent 272px); }
.dash-shell h1, .dash-shell h2, .dash-shell h3, .dash-shell h4 { font-family: var(--font-sans); letter-spacing: -.02em; }
.dash-shell h1 { font-size: 1.7rem; font-weight: 800; margin: 0; }
.dash-shell h2 { font-size: 1.12rem; font-weight: 800; margin: 8px 0 14px; }
.dash-shell h3 { font-size: 1.02rem; font-weight: 700; }
.dash-shell .card { padding: 24px; border-radius: 16px; }
.dash-shell .section-soft { background: none; }

.dash-sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 70;
  display: flex; flex-direction: column; padding: 22px 16px;
  background: linear-gradient(180deg, #1d0707 0%, #2b0909 50%, #160505 100%);
  color: rgba(255, 255, 255, .72); overflow-y: auto;
}
.dash-sidebar::-webkit-scrollbar { width: 6px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
.dash-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 20px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.dash-brand:hover { color: #fff; }
.dash-brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(201, 162, 39, .35); }
.dash-brand strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; color: #fff; }
.dash-brand small { display: block; margin-top: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-400); }
.dash-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dash-nav-label { margin: 0; padding: 16px 12px 8px; font-size: .64rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: rgba(255, 255, 255, .34); }
.dash-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 11px;
  font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .72); transition: .2s;
}
.dash-nav a i { width: 20px; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .42); transition: .2s; }
.dash-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dash-nav a:hover i { color: var(--gold-300); }
.dash-nav a.active { background: linear-gradient(90deg, rgba(201, 162, 39, .2), rgba(201, 162, 39, .04)); color: #fff; }
.dash-nav a.active i { color: var(--gold-400); }
.dash-nav a.active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold-500); }
.dash-nav a .ext { margin-left: auto; width: auto; font-size: .7rem; }
.dash-user {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px;
  border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
}
.dash-user form { margin: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600)); color: var(--brand-950);
  font-weight: 800; font-size: .82rem; letter-spacing: .02em;
}
.dash-user-info { flex: 1; min-width: 0; }
.dash-user-info strong { display: block; font-size: .86rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-info small { display: block; font-size: .74rem; color: rgba(255, 255, 255, .5); }
.dash-logout {
  width: 38px; height: 38px; border-radius: 11px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .72); transition: .2s;
}
.dash-logout:hover { background: var(--brand-600); color: #fff; }
.dash-overlay { display: none; }

.dash-main-wrap { min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 32px;
  background: rgba(245, 243, 239, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.dash-menu-btn {
  display: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.05rem;
}
.dash-crumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .88rem; font-weight: 600; color: var(--muted); }
.dash-crumb i { color: var(--brand-600); }
.dash-crumb strong { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: .84rem; font-weight: 600; color: var(--ink-2); transition: .2s;
}
.topbar-btn:hover { border-color: var(--line-strong); color: var(--brand-700); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); }
.user-chip .avatar { width: 34px; height: 34px; font-size: .74rem; }
.user-chip span { font-size: .84rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
a.user-chip { transition: border-color .2s, box-shadow .2s; }
a.user-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.account-grid .panel { margin-bottom: 0; }
.account-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-id strong { display: block; font-size: 1.02rem; color: var(--ink); }
.account-id small { display: block; margin-top: 2px; font-size: .82rem; color: var(--muted); }
.avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.add-user-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.add-user-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.add-user-foot .help-text { flex: 1 1 360px; margin: 0; }
.add-user-foot .help-text i { color: var(--gold-600); margin-right: 4px; }
.users-search { max-width: 420px; margin: 0 0 16px; }
.users-search input { background: #fff; }
.role-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.role-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .78rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.role-check input { width: auto; margin: 0; accent-color: var(--brand-700); }
.role-check:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.dash-main { flex: 1; width: 100%; max-width: 1440px; padding: 32px; }
.dash-main > .alert:first-child { margin-top: 0; }

.dash-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.dash-header .eyebrow { margin-bottom: 6px; }
.dash-header p { margin: 6px 0 0; color: var(--muted); }
.dash-header .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.welcome-banner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-bottom: 26px; padding: 30px 32px; border-radius: 20px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(201, 162, 39, .25), transparent 60%), linear-gradient(135deg, #2a0707, #6a0f0f 70%, #86151b);
  box-shadow: 0 14px 34px rgba(86, 11, 11, .22);
}
.welcome-banner h1 { color: #fff; }
.welcome-banner p { color: rgba(255, 255, 255, .78); margin: 6px 0 0; }
.welcome-banner .eyebrow { color: var(--gold-300); margin-bottom: 8px; }
.welcome-banner .eyebrow::before { background: var(--gold-400); }
.welcome-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-banner .deco { position: absolute; right: 24px; bottom: -26px; font-size: 7.5rem; color: rgba(255, 255, 255, .06); z-index: -1; transform: rotate(-12deg); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-box {
  position: relative; display: flex; align-items: center; gap: 16px; overflow: hidden;
  padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.stat-box { color: var(--text); }
.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-box .num { font-family: var(--font-sans); font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-box .label { margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 1.2rem; background: var(--brand-50); color: var(--brand-700);
}
.tone-green { background: var(--success-bg); color: var(--success); }
.tone-gold { background: var(--gold-100); color: var(--gold-600); }
.tone-blue { background: var(--info-bg); color: var(--info); }
.tone-orange { background: var(--warning-bg); color: var(--warning); }
.tone-purple { background: #f1eafb; color: #6b3fa0; }
.tone-crimson { background: var(--brand-50); color: var(--brand-700); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-xs); margin-bottom: 24px; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1rem; }
.panel-head h2 i, .panel-head h3 i { color: var(--brand-600); }
.panel-head a { font-size: .84rem; font-weight: 700; }
.panel-body { padding: 22px; }
.panel .table-card { border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.new-accounts { border-color: var(--gold-300); box-shadow: 0 0 0 4px var(--gold-100), var(--shadow-sm); }
.new-accounts .panel-head { background: var(--gold-100); }
.new-accounts .panel-head h2 i { color: var(--gold-600); }
.new-accounts .panel-body { padding-bottom: 14px; }
.new-accounts-note { display: flex; gap: 10px; margin: 0; font-size: .88rem; color: var(--ink-2); }
.new-accounts-note > i { margin-top: 4px; color: var(--gold-600); }
.temp-pass { padding: 4px 10px; border-radius: 8px; background: var(--paper-warm); border: 1px dashed var(--line-strong); font-size: .92rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); user-select: all; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.table-tools .input-icon { flex: 1; max-width: 420px; }
.table-tools input { background: #fff; }
.table-count { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stat-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .stat-row.cols-3 { grid-template-columns: 1fr; } }

.class-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.class-card h3 { margin: 0; }
.class-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.class-meta i { color: var(--gold-600); margin-right: 5px; }
.progress { height: 8px; border-radius: var(--radius-pill); background: var(--paper-warm); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-600), var(--gold-500)); }
.progress-row { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.org-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; margin: 0 10px 10px 0;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink);
}
.org-chip i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }

/* ==========================================================================
   Academic programmes + online application
   ========================================================================== */
.progression { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.progression-step {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-soft); color: var(--ink-2); transition: .25s var(--ease);
}
a.progression-step:hover { border-color: var(--brand-500); background: #fff; box-shadow: var(--shadow-sm); transform: translateX(4px); color: var(--ink); }
.progression-step > span:nth-child(2) { flex: 1; }
.progression-step strong { display: block; font-size: .95rem; color: var(--ink); }
.progression-step small { display: block; font-size: .78rem; color: var(--muted); }
.progression-step > .fa-arrow-right { color: var(--subtle); font-size: .8rem; }
.progression-step.is-final { background: linear-gradient(135deg, var(--brand-700), var(--brand-800)); border-color: transparent; }
.progression-step.is-final strong { color: #fff; }
.progression-step.is-final small { color: rgba(255, 255, 255, .72); }
.progression-step.is-final .ps-icon { background: rgba(255, 255, 255, .12); color: var(--gold-300); }
.ps-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-50); color: var(--brand-700); }
.progression-link { display: block; text-align: center; padding: 5px 0; color: var(--gold-600); font-size: .78rem; }
.academic-feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden;
  border-radius: var(--radius-xl); background: var(--paper-soft); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.af-copy {
  position: relative; isolation: isolate; overflow: hidden; padding: 52px 48px; color: #fff;
  background: radial-gradient(560px 280px at 0% 100%, rgba(201, 162, 39, .24), transparent 60%), linear-gradient(135deg, #2a0707, #6a0f0f 70%, #86151b);
}
.af-copy h2 { color: #fff; margin-bottom: 14px; }
.af-copy > p { color: rgba(255, 255, 255, .82); font-size: 1.04rem; }
.af-copy .eyebrow { color: var(--gold-300); }
.af-copy .eyebrow::before { background: var(--gold-400); }
.af-copy .hero-actions { margin-top: 26px; }
.af-copy .af-note { margin: 22px 0 0; font-size: .86rem; color: rgba(255, 255, 255, .7); }
.af-copy .af-note i { color: var(--gold-300); margin-right: 6px; }
.af-copy .deco { position: absolute; right: -24px; bottom: -44px; z-index: -1; font-size: 12rem; color: rgba(255, 255, 255, .05); transform: rotate(-12deg); }
.af-levels { display: grid; align-content: center; gap: 12px; padding: 40px; }
.af-levels .progression-step { margin: 0; background: #fff; }

.level-block { margin-bottom: 52px; scroll-margin-top: 110px; }
.level-block:last-child { margin-bottom: 0; }
.level-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 22px; }
.level-head .icon-badge { margin: 0; }
.level-head h3 { font-size: 1.55rem; margin-bottom: 6px; }
.level-head p { color: var(--muted); max-width: 780px; margin-bottom: 12px; }
.suits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.suits li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.suits i { color: var(--success); font-size: .7rem; }
.programme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.programme-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.programme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.pc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--gold-100); color: var(--gold-600); font-size: 1.1rem; transition: .3s var(--ease); }
.programme-card:hover .pc-icon { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; }
.pc-body { flex: 1; min-width: 0; }
.pc-body small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.pc-body strong { display: block; margin: 2px 0 4px; font-size: .96rem; line-height: 1.3; color: var(--ink); }
.pc-body em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.pc-body em i { color: var(--gold-600); margin-right: 4px; }
.pc-arrow { color: var(--subtle); font-size: .8rem; transition: .25s var(--ease); }
.programme-card:hover .pc-arrow { color: var(--brand-700); transform: translateX(3px); }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card .f-icon { margin-bottom: 16px; }
.why-card h3 { font-family: var(--font-sans); font-size: 1.05rem; letter-spacing: -.01em; }
.why-card p { color: var(--muted); font-size: .9rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-list span { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-700); font-size: .74rem; font-weight: 700; }

.journey { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.journey::before { content: ""; position: absolute; top: 30px; left: 7%; right: 7%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-600), var(--gold-500)); }
.journey li { position: relative; text-align: center; font-size: .88rem; font-weight: 700; color: var(--ink); }
.journey li span {
  position: relative; width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 3px solid var(--gold-400); color: var(--brand-700);
  font-size: 1.25rem; box-shadow: var(--shadow-sm); transition: .3s var(--ease);
}
.journey li:hover span { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); border-color: var(--brand-700); color: #fff; transform: scale(1.06); }

.audience { display: flex; flex-wrap: wrap; gap: 10px; }
.audience span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.audience i { color: var(--brand-600); }
.notice { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: 14px; background: var(--info-bg); border: 1px solid #c8daf2; color: #174c86; }
.notice > i { margin-top: 3px; font-size: 1.1rem; color: var(--info); }
.notice p { margin: 0; font-size: .9rem; line-height: 1.6; }
.notice strong { color: inherit; }
.notice a { font-weight: 700; }

.apply-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.apply-steps li { position: relative; display: flex; gap: 16px; padding: 11px 0; }
.apply-steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 50px; bottom: -8px; width: 2px; background: var(--line); }
.as-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; font-size: .85rem; font-weight: 800; }
.apply-steps strong { display: block; }
.apply-steps p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }

.partner-card .badge { margin-bottom: 14px; }
.role-box { display: flex; align-items: flex-start; gap: 20px; margin-top: 24px; padding: 26px 28px; border-radius: 20px; background: linear-gradient(135deg, var(--gold-100), #fff 70%); border: 1px solid #efe3bd; }
.role-box .vb-icon { flex-shrink: 0; width: 56px; height: 56px; font-size: 1.3rem; }
.role-box h3 { margin-bottom: 8px; }
.role-box p { font-size: .94rem; }
.portal-card h3 { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); }
.portal-card h3 i { color: var(--brand-600); }
.portal-card { display: flex; flex-direction: column; }
.portal-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 22px; }
.portal-card-foot .help-text { margin: 0; }
.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.check-list i { margin-top: 4px; color: var(--success); }
.pathway { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 8px; }
.pathway-step { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.pathway-step:hover { border-color: var(--brand-500); color: var(--brand-700); }
.pathway-step.is-current { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); border-color: transparent; color: #fff; }
.pathway-arrow { color: var(--gold-600); font-size: .8rem; }
.doc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; color: var(--ink-2); }
.doc-list i { width: 18px; color: var(--brand-600); }
.mini-steps { margin: 6px 0 16px; padding-left: 20px; display: grid; gap: 6px; font-size: .86rem; color: var(--ink-2); }

.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.apply-aside { position: sticky; top: 110px; }
.apply-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.stepper { list-style: none; margin: 0 0 26px; padding: 0 0 22px; display: none; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid var(--line); }
.js .stepper { display: grid; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .72rem; font-weight: 700; line-height: 1.3; color: var(--subtle); }
.stepper li::before { content: ""; position: absolute; top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.st-num { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-warm); color: var(--muted); font-size: .82rem; font-weight: 800; transition: .25s var(--ease); }
.stepper li.is-done { color: var(--ink-2); cursor: pointer; }
.stepper li.is-done .st-num { background: var(--success); color: #fff; }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--success); }
.stepper li.is-current { color: var(--brand-700); }
.stepper li.is-current .st-num { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; box-shadow: 0 0 0 5px var(--brand-50); }
.form-step { min-width: 0; margin: 0 0 34px; padding: 0; border: 0; }
.js .apply-form .form-step { display: none; margin-bottom: 0; }
.js .apply-form .form-step.is-active { display: block; animation: fade-up .35s var(--ease-out); }
.form-step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.form-step legend span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-family: var(--font-sans); font-size: .9rem; font-weight: 800; }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.req { color: var(--danger); }
.readonly-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.readonly-grid div { padding: 14px 16px; border-radius: 12px; background: var(--paper-soft); border: 1px solid var(--line); }
.readonly-grid small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.readonly-grid strong { display: block; margin-top: 4px; font-size: .92rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
label.check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; font-weight: 500; cursor: pointer; }
label.check-lg { align-items: flex-start; font-size: .95rem; font-weight: 600; }
label.check-lg input { margin-top: 3px; }
.sub-card { margin-bottom: 14px; padding: 18px 20px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-soft); }
.sub-card h4 { font-family: var(--font-sans); font-size: .9rem; margin-bottom: 12px; }
.input-table td { padding: 8px 10px; }
.input-table td:first-child { color: var(--muted); font-weight: 700; }
.input-table input, .input-table select { padding: 9px 11px; font-size: .9rem; }
.input-table select { padding-right: 34px; }
.input-table input[type=file] { padding: 7px; font-size: .78rem; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.upload-box {
  position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--paper-soft); transition: .2s;
}
.upload-box:hover, .upload-box:focus-within { border-color: var(--brand-500); background: var(--brand-50); }
.upload-box > i { font-size: 1.5rem; color: var(--brand-600); }
.upload-box strong { font-size: .9rem; }
.upload-box small { font-size: .78rem; font-weight: 500; color: var(--muted); word-break: break-word; }
.upload-box.has-file { border-style: solid; border-color: var(--success); background: var(--success-bg); }
.upload-box.has-file > i { color: var(--success); }
.upload-box.has-file small { color: var(--success); font-weight: 700; }
.upload-box input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box.is-drag { border-color: var(--brand-500); background: var(--brand-50); }
.upload-box.has-error { border-style: solid; border-color: var(--danger); background: var(--danger-bg); }
.upload-box.has-error > i, .upload-box.has-error small { color: var(--danger); font-weight: 700; }
.upload-total.is-over { color: var(--danger); font-weight: 700; }
.form-step:focus { outline: none; }
.stepper li:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 4px; border-radius: var(--radius-sm); }
.declaration { padding: 18px 20px; border-radius: 14px; border-left: 4px solid var(--gold-500); background: var(--paper-soft); font-size: .92rem; line-height: 1.7; }
.step-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.js .step-nav { justify-content: space-between; }
[data-step-back], [data-step-next], .step-count { display: none; }
.js [data-step-back], .js [data-step-next] { display: inline-flex; }
.js .step-count { display: inline; font-size: .84rem; font-weight: 700; color: var(--muted); }

.receipt { padding: 0; overflow: hidden; }
.receipt-head { display: flex; align-items: center; gap: 16px; padding: 22px 28px; background: linear-gradient(135deg, #2a0707, #6a0f0f); color: #fff; }
.receipt-head img { width: 56px; height: 56px; border-radius: 50%; }
.receipt-head strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.receipt-head small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.receipt-body { padding: 36px; text-align: center; }
.receipt-ok { background: var(--success); color: #fff; box-shadow: 0 0 0 8px rgba(31, 122, 61, .12); }
.receipt h1 { font-size: 1.8rem; }
.application-no { display: inline-block; margin: 14px 0 6px; padding: 16px 28px; border-radius: 16px; background: var(--paper-warm); border: 2px dashed var(--gold-500); }
.application-no small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.application-no strong { display: block; font-size: 1.7rem; letter-spacing: .04em; color: var(--brand-800); font-variant-numeric: tabular-nums; }
.receipt-next { max-width: 540px; margin: 28px auto 0; padding: 20px 24px; border-radius: 14px; background: var(--paper-soft); text-align: left; }
.receipt-next h3 { font-family: var(--font-sans); font-size: 1rem; }

/* Admin: application review */
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.review-aside { position: sticky; top: 90px; display: grid; gap: 20px; }
.review-aside .panel { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.kv div { background: #fff; padding: 12px 22px; }
.kv small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv strong { display: block; font-size: .92rem; font-weight: 600; word-break: break-word; }
.kv .full { grid-column: 1 / -1; }
.applicant-head { display: flex; align-items: center; gap: 18px; }
.applicant-photo { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); background: var(--paper-warm); }
.applicant-photo.placeholder { display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--brand-700); }
.doc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-links a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .88rem; color: var(--ink-2); }
.doc-links a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.doc-links i { width: 20px; color: var(--brand-600); }
.doc-links span { flex: 1; }
.doc-links small { color: var(--muted); }
.cell-sub { display: block; margin-top: 2px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions .btn + .btn { margin-left: 6px; }
.cell-person { display: flex; align-items: center; gap: 12px; }
.cell-person .avatar { width: 36px; height: 36px; font-size: .74rem; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .88rem; font-weight: 500; line-height: 1.45; cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { width: auto; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--brand-700); }
.choice strong { display: block; font-size: .92rem; }
.choice small { display: block; color: var(--muted); font-size: .8rem; }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-section { margin-bottom: 24px; }
.panel .kv { border-top: 0; }
.panel-body > :last-child { margin-bottom: 0; }
.subject-table td, .subject-table th { padding: 10px 22px; }
.decision-summary { display: grid; gap: 10px; margin: 0; }
.decision-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.decision-summary dt { color: var(--muted); }
.decision-summary dd { margin: 0; font-weight: 700; text-align: right; }
.status-lg { padding: 7px 14px; font-size: .78rem; }

/* ---------- Portals: announcements, calendar, videos, results, admission ---------- */
.nowrap { white-space: nowrap; }
.dash-main [id] { scroll-margin-top: 88px; }
.dash-header .eyebrow a { color: inherit; }
.dash-header .eyebrow a:hover { color: var(--brand-500); }
.subhead { margin: 26px 0 12px; font-family: var(--font-sans); font-size: .95rem; font-weight: 800; color: var(--ink); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.15rem; }
.section-title i { color: var(--brand-600); }
.section-nav { display: flex; gap: 8px; margin: -8px 0 24px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.section-nav a {
  flex-shrink: 0; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff;
  font-size: .8rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, background .2s;
}
.section-nav a:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--brand-50); }
.dash-duo { margin-bottom: 24px; }
.dash-duo > .panel { margin-bottom: 0; }

.btn-icon {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 0;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-icon:hover, .btn-icon:focus-visible { background: var(--danger-bg); border-color: #f1c7c4; color: var(--danger); }

.announce-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.announce { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 12px; background: #fff; }
.announce.is-pinned { border-left-color: var(--gold-500); background: #fffcf2; }
.announce-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.announce-head form { margin: -6px -8px 0 0; }
.announce h3 { margin: 0 0 6px; font-family: var(--font-sans); font-size: .95rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.announce h3 .fa-thumbtack { margin-right: 2px; font-size: .78rem; color: var(--gold-600); }
.announce p { margin: 0 0 8px; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.announce small { display: block; font-size: .76rem; color: var(--muted); }
.announce-for { font-weight: 700; color: var(--brand-700); }
.announce-form { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.announce-form:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.announce-form textarea { min-height: 96px; }
.announce-form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.date-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.date-month { margin-top: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.date-month:first-child { margin-top: 0; }
.date-item { display: flex; align-items: flex-start; gap: 14px; }
.date-item > div { min-width: 0; }
.date-item > div > strong { display: block; font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.date-item > div > small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.date-item p { margin: 5px 0 0; font-size: .82rem; line-height: 1.55; }
.date-badge {
  flex-shrink: 0; width: 52px; padding: 7px 0 6px; border-radius: 12px; text-align: center; line-height: 1.05;
  background: var(--brand-50); border: 1px solid var(--brand-100);
}
.date-badge strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.date-badge small { display: block; margin-top: 2px; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.date-cat { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.calendar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.calendar-grid > .panel { margin-bottom: 0; }
.past-dates { border-top: 1px solid var(--line); }
.past-dates summary { padding: 14px 22px; font-size: .86rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.past-dates summary:hover { color: var(--brand-700); }
.past-dates .table-card { border-top: 1px solid var(--line); }
.past-dates tbody { color: var(--muted); }
.class-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 20px; }
.class-picker label { margin: 0; font-weight: 700; }
.class-picker select { flex: 1 1 260px; width: auto; min-width: 0; max-width: 560px; }
.slot-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.slot-form .form-group, .grade-form .form-group { margin-bottom: 0; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.video-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-800), var(--brand-950)); color: rgba(255, 255, 255, .85); font-size: 2.6rem; }
.vc-body { padding: 14px 16px 16px; }
.vc-body strong { display: block; font-size: .95rem; line-height: 1.4; }
.vc-body p { margin: 6px 0 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.vc-body .link-arrow { margin-top: 10px; }

.score-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); white-space: nowrap;
  font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--neutral-bg); color: var(--muted);
}
.score-pill.active { background: var(--success-bg); color: var(--success); }
.score-pill.scheduled { background: var(--info-bg); color: var(--info); }
.score-pill.failed { background: var(--danger-bg); color: var(--danger); }
.result-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; font-size: .82rem; }

.assignment-card { display: flex; flex-direction: column; }
.assignment-card h3 { margin: 0 0 8px; font-family: var(--font-sans); font-size: 1rem; font-weight: 800; }
.assignment-card > p { font-size: .88rem; }
.assignment-card form { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.assignment-card textarea { min-height: 72px; }
.feedback { display: flex; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--info-bg); color: #174c86; font-size: .86rem; line-height: 1.55; }
.feedback i { margin-top: 4px; color: var(--info); }
.discussion-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.discussion-list li { display: flex; align-items: flex-start; gap: 12px; }
.discussion-list .avatar { width: 36px; height: 36px; flex-shrink: 0; font-size: .74rem; }
.discussion-list li > div { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; background: var(--paper-soft); }
.discussion-list strong { font-size: .88rem; }
.discussion-list small { margin-left: 4px; font-size: .74rem; color: var(--muted); }
.discussion-list p { margin: 4px 0 0; font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.attendance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px; margin-bottom: 18px; }
.attendance-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 7px 7px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .88rem; font-weight: 600;
}
.attendance-row span { min-width: 0; overflow-wrap: anywhere; }
.attendance-row select { width: auto; min-width: 124px; padding-top: 8px; padding-bottom: 8px; font-size: .86rem; }
.grade-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, .7fr) minmax(0, .7fr) auto; gap: 14px; align-items: end; }
.grade-form .btn, .slot-form .btn { min-height: 47px; }
.mark-form { display: flex; align-items: center; gap: 6px; min-width: 360px; }
.mark-form input[type=number] { flex-shrink: 0; width: 88px; padding: 8px 10px; }
.mark-form input[type=text] { flex: 1; min-width: 150px; padding: 8px 12px; }

.admission-strip {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 14px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-xs); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.admission-strip:hover { border-color: var(--brand-500); box-shadow: var(--shadow-sm); color: var(--ink); }
.admission-strip .stat-icon { width: 44px; height: 44px; font-size: 1.05rem; }
.admission-strip > span:nth-child(2) { flex: 1; min-width: 0; }
.admission-strip small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admission-strip strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.admission-strip > .fa-arrow-right { color: var(--brand-600); }
.admission-track { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admission-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.admission-track li::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 2px; background: var(--line); }
.admission-track li:first-child::before { display: none; }
.admission-track span {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-warm); border: 2px solid var(--line); color: var(--subtle);
}
.admission-track li.is-done, .admission-track li.is-declined { color: var(--ink); }
.admission-track li.is-done span { background: var(--success); border-color: var(--success); color: #fff; }
.admission-track li.is-done::before { background: var(--success); }
.admission-track li.is-declined span { background: var(--danger); border-color: var(--danger); color: #fff; }
.kv.kv-plain { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admission-notice { background: var(--success-bg); border-color: #bfe3cb; color: #14532d; }
.admission-notice > i { color: var(--success); }
.doc-links-grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }

.letter {
  max-width: 820px; margin: 0 auto 24px; padding: 48px 56px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm); font-size: .95rem; line-height: 1.7; color: var(--ink-2);
}
.letter-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 3px double var(--brand-700); }
.letter-head img { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.letter-head strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--brand-800); }
.letter-head small { display: block; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.letter-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.letter-meta p { margin: 0; font-size: .88rem; }
.letter-subject { margin: 0 0 18px; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.letter p { margin: 0 0 14px; }
.letter-table { margin: 6px 0 22px; border: 1px solid var(--line); }
.letter-table th, .letter-table td { padding: 9px 14px; border: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
.letter-table th { width: 36%; font-size: .86rem; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: normal; color: var(--ink); }
.letter-table tr:hover { background: transparent; }
.letter-sign { margin-top: 32px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-collapse {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 72px); overflow-y: auto;
    padding: 8px var(--gutter) 24px; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 26px 40px rgba(23, 18, 15, .14);
  }
  .nav-collapse.open { display: flex; animation: fade-up .3s var(--ease-out); }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 2px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.is-open > .nav-link { background: none; }
  .nav-link.is-active::after, .nav-item .fa-chevron-down { display: none; }
  .dropdown, .nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.is-open .dropdown {
    position: static; width: auto; padding: 6px 0 10px; opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; background: none;
  }
  .dropdown::before, .dropdown-foot { display: none; }
  .dropdown-item { padding: 10px 2px; }
  .nav-portals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .nav-portals a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--paper-soft); font-size: .88rem; font-weight: 700; color: var(--ink-2);
  }
  .nav-portals a i { color: var(--brand-600); }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .nav-actions .btn, .nav-actions form, .nav-actions form .btn { width: 100%; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .hero-inner, .split-grid, .course-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .course-aside { position: static; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-band { grid-template-columns: auto 1fr; }
  .verify-band .inline-form { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { padding: 48px var(--gutter); }
  .auth-points { display: none; }

  .dash-shell { grid-template-columns: 1fr; background: none; }
  .dash-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 284px; height: 100vh;
    transform: translateX(-100%); transition: transform .3s var(--ease), visibility .3s; visibility: hidden;
  }
  body.dash-open { overflow: hidden; }
  body.dash-open .dash-sidebar { transform: none; visibility: visible; box-shadow: 20px 0 60px rgba(0, 0, 0, .35); }
  .dash-overlay {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(20, 10, 8, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: .3s;
  }
  body.dash-open .dash-overlay { opacity: 1; visibility: visible; }
  .dash-menu-btn { display: inline-grid; }
  .dash-topbar { padding: 0 20px; }
  .dash-main { padding: 24px 20px; }
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-4, .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .topbar-group.info { display: none; }
  .topbar-inner { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-btn span, .user-chip > span:last-child { display: none; }
  .user-chip { padding: 4px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 72px; }
  .topbar { display: none; }
  .site-header .bar { gap: 12px; }
  /* Let the brand give way on narrow phones (360px is common) so the menu button always stays on screen. */
  .brand { gap: 10px; flex-shrink: 1; min-width: 0; }
  .brand img, .site-header.is-scrolled .brand img { width: 46px; height: 46px; flex-shrink: 0; }
  .brand-text { padding-left: 10px; min-width: 0; }
  .brand-name, .brand-tagline { display: none; }
  .brand-short, .brand-tagline-short { display: block; }
  .hero { padding-top: 48px; }
  .hero-inner { padding-bottom: 56px; gap: 24px; }
  .hero-search { padding: 6px 6px 6px 16px; }
  .hero-search .btn { padding: 10px 16px; }
  .hero-visual { padding: 40px 0 70px; }
  .hero-float { padding: 10px 14px 10px 10px; }
  .hf-1 { right: -4px; top: 0; }
  .hf-2 { left: -4px; bottom: 6px; }
  .hc-head strong { font-size: 1.7rem; }
  .category-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .verify-band { grid-template-columns: 1fr; padding: 26px 22px; text-align: left; }
  .inline-form { flex-direction: column; }
  .search-bar input { padding-right: 18px; }
  .search-bar .btn { position: static; transform: none; margin-top: 10px; width: 100%; }
  .search-bar .btn:hover { transform: none; }
  .search-bar > i { top: 27px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: calc(-1 * var(--gutter)); }
  .filters a { flex-shrink: 0; }
  .card { padding: 22px; }
  .form-card { padding: 26px 20px; }
  .page-hero { padding: 44px 0 40px; }
  .dash-crumb span { display: none; }
  .welcome-banner { padding: 24px 22px; }
}

@media (max-width: 1180px) {
  .slot-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .apply-layout, .review-grid, .academic-feature, .account-grid, .calendar-grid { grid-template-columns: minmax(0, 1fr); }
  .grade-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-form .btn { justify-self: start; }
  .contact-cards, .modes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-user-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-aside, .review-aside { position: static; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; }
  .journey::before { display: none; }
}
@media (max-width: 900px) {
  .why-grid, .check-list.cols-2, .readonly-grid, .form-row.three, .upload-grid, .kv { grid-template-columns: minmax(0, 1fr); }
  .stepper .st-label { display: none; }
  .level-head { flex-direction: column; gap: 14px; }
}
@media (max-width: 640px) {
  .apply-form { padding: 22px 16px; border-radius: 16px; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { gap: 2px; }
  .st-num { width: 28px; height: 28px; font-size: .74rem; }
  .stepper li::before { top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); }
  .role-box { flex-direction: column; padding: 22px; }
  .input-table { min-width: 520px; }
  .step-nav .btn { padding: 10px 16px; }
  .receipt-body { padding: 26px 18px; }
  .application-no strong { font-size: 1.35rem; }
  .af-copy { padding: 36px 24px; }
  .add-user-row { grid-template-columns: minmax(0, 1fr); }
  .contact-cards, .modes-grid { grid-template-columns: minmax(0, 1fr); }
  .whatsapp-float { left: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float span { display: none; }
  .modes-cta { padding: 20px; }
  .portal-tab { padding: 10px 4px; font-size: .8rem; }
  .auth-card .form-card { padding: 26px 20px; }
  .auth-card .btn-lg { white-space: normal; }
  .af-levels { padding: 22px 18px; }
  .applicant-head { align-items: flex-start; }
  .applicant-photo { width: 64px; height: 64px; }
  .kv div { padding: 11px 18px; }
  .slot-form, .grade-form { grid-template-columns: minmax(0, 1fr); }
  .slot-form .btn { justify-self: start; }
  .announce { padding: 12px 14px; }
  .admission-strip { flex-wrap: wrap; gap: 10px 14px; padding: 14px 16px; }
  .admission-strip > span:nth-child(2) { flex: 1 1 calc(100% - 64px); }
  .admission-strip .status { margin-left: 58px; }
  .admission-strip > .fa-arrow-right { display: none; }
  .admission-track li { font-size: .72rem; }
  .letter { padding: 26px 18px; font-size: .9rem; }
  .letter-head { align-items: flex-start; gap: 14px; }
  .letter-head img { width: 54px; height: 54px; }
  .letter-head strong { font-size: 1.15rem; }
  .letter-table th { width: 42%; }
  .letter-table th, .letter-table td { padding: 8px 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .floating-icons { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .dash-sidebar, .dash-topbar, .back-to-top { display: none !important; }
  .dash-shell { display: block; }
  .no-print, .page-hero, .back-to-top, .whatsapp-float { display: none !important; }
  .receipt { box-shadow: none; border: 0; }
  .receipt-section { padding: 0; }
  .dash-main { max-width: none; padding: 0; }
  .alert, .section-nav { display: none !important; }
  .letter { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .panel, .stat-box, .table-card { box-shadow: none; break-inside: avoid; }
  .score-pill, .status, .date-cat, .stat-icon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
