/* Horizon College London — design tokens
   Navy and gold come from the college logo; the horizon (a rising sun on a line) is the one bold motif. */
:root {
  --navy: #14213D;
  --navy-2: #22335C;
  --gold: #F2A93B;
  --gold-deep: #C9821A;
  --dawn: #FDF1DC;
  --mist: #F4F6FA;
  --line: #DDE2EC;
  --ink: #1B2233;
  --slate: #5A6478;
  --sage: #2F7D65;
  --rose: #B4443A;
  --white: #FFFFFF;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px; --r-md: 12px; --r-lg: 22px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .78em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,33,61,.15); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-danger { background: transparent; color: var(--rose); border-color: #E7C3BF; }
.btn-danger:hover { background: var(--rose); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-2); cursor: pointer; text-decoration: underline; }

/* Header */
.topbar { background: var(--navy); color: #C9D2E6; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 56px; height: 56px; flex: none; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--sans); font-size: .72rem; color: var(--slate); letter-spacing: .02em; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); padding: .5em .8em; border-radius: 999px; font-weight: 500; font-size: .96rem; }
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a.on { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* Flash */
.flash { margin: 20px auto 0; max-width: var(--wrap); padding: 0 24px; }
.flash div { padding: 14px 18px; border-radius: var(--r-md); border-left: 4px solid; background: var(--mist); }
.flash .success { border-color: var(--sage); background: #EAF4F0; }
.flash .error { border-color: var(--rose); background: #FBEDEB; }
.flash .info { border-color: var(--gold); background: var(--dawn); }

/* Hero — the horizon */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, var(--dawn) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; padding-top: 72px; }
.hero-copy { padding-bottom: 96px; }
.hero-kicker { font-weight: 600; color: var(--navy-2); font-size: 1.05rem; margin-bottom: 18px; }
.hero h1 { max-width: 13ch; }
.hero-lede { font-size: 1.15rem; color: var(--slate); max-width: 46ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.horizon { position: relative; align-self: stretch; min-height: 480px; }
.hero-student { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: auto; height: 470px; max-width: none; z-index: 1; animation: fade-up 1.1s .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fade-up { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.horizon svg { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; overflow: visible; }
.horizon .sun { transform-origin: 50% 100%; animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(38%); opacity: .2; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .horizon .sun, .hero-student { animation: none; } }
.horizon-facts { position: absolute; right: 0; top: 40px; z-index: 2; display: flex; flex-direction: column; gap: 16px; padding: 18px 22px; background: var(--white); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(20,33,61,.14); color: var(--navy); text-align: center; white-space: nowrap; }
.horizon-facts b { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; line-height: 1; }
.horizon-facts span { font-size: .85rem; }
.hero-line { height: 6px; background: var(--navy); }
@media (max-width: 880px) {
  .horizon-facts { gap: 20px; } .horizon-facts b { font-size: 1.6rem; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-copy { padding-bottom: 0; }
  .horizon { min-height: 450px; }
  .hero-student { height: 350px; }
  .horizon-facts { right: auto; top: 0; left: 50%; transform: translateX(-50%); flex-direction: row; padding: 10px 16px; }
}

/* Sections */
.section { padding: 88px 0; }
.section-mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 52ch; color: var(--slate); margin: 0; }

/* Awarding bodies */
.bodies-band { background: #EEEEEE; padding: 56px 0 64px; overflow: hidden; }
.bodies-band h2 { margin-bottom: 28px; }
.badge-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.badge-track { display: flex; gap: 10px; width: max-content; padding: 6px 0; animation: badge-scroll 50s linear infinite; }
.badge-marquee:hover .badge-track, .badge-track:focus-within { animation-play-state: paused; }
@keyframes badge-scroll { to { transform: translateX(calc(-50% - 5px)); } }
.body-badge { flex: none; width: 150px; height: 150px; border-radius: 50%; background: var(--white); display: grid; place-items: center; padding: 22px;
  overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.body-badge:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20,33,61,.12); }
.body-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.badge-mono { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--navy); }
.badge-mono b { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--gold-deep); }
.badge-mono small { font-size: .72rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .body-badge { width: 120px; height: 120px; padding: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .badge-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .badge-track [aria-hidden="true"] { display: none; }
}
.body-mono { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }

/* Course cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.course-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; }
.course-card:hover { border-color: var(--navy-2); color: inherit; }
.course-card:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.course-top { position: relative; aspect-ratio: 16 / 7; background: var(--navy); overflow: hidden; }
.course-top img { width: 100%; height: 100%; object-fit: cover; }
.course-top .arc { position: absolute; left: 50%; bottom: -78%; width: 72%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--gold); opacity: .9; }
.course-top .arc::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid rgba(20,33,61,.25); }
.level-tag { position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--navy); font-weight: 700; font-size: .8rem; padding: 5px 11px; border-radius: 999px; }
.course-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.course-body p { color: var(--slate); font-size: .95rem; }
.course-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--slate); padding-top: 12px; border-top: 1px dashed var(--line); }
.course-meta strong { color: var(--ink); font-weight: 600; }

/* Pillars (three cards under the hero) */
.pillars { padding: 56px 0; background: var(--mist); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border-radius: var(--r-md);
  padding: 48px 40px 40px; box-shadow: 0 10px 30px rgba(20,33,61,.06); }
.pillar h3 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; margin-bottom: 14px; }
.pillar p { color: var(--slate); margin-bottom: 26px; }
.pillar-link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 18px 0 18px 22px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.pillar-link::before { content: ""; position: absolute; left: 0; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
  background: var(--gold); opacity: .5; z-index: -1; transition: width .25s ease, border-radius .25s ease; }
.pillar-link { isolation: isolate; }
.pillar-link span { transition: transform .2s ease; }
.pillar-link:hover { color: var(--navy); }
.pillar-link:hover::before { width: 100%; border-radius: 28px; }
.pillar-link:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .pillar-link::before, .pillar-link span { transition: none; } }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; gap: 20px; } .pillar { padding: 34px 28px 28px; } }

/* About: photo + mission and vision */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { width: 100%; height: auto; }
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 24px; }
.about h2 span { display: block; color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.about-lede { color: var(--slate); margin-bottom: 36px; }
.about-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; background: var(--white); }
.about-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.about-card p { color: var(--slate); font-size: .95rem; margin: 0; }
.about-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--dawn); display: grid; place-items: center; }
.about-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about-btn { margin-top: 16px; padding: 1.1em 2.2em; }
@media (max-width: 900px) { .about .wrap { grid-template-columns: 1fr; gap: 40px; } .about-photo { max-width: 520px; margin: 0 auto; } }

/* Why section */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why > div { padding: 30px 30px 0 0; }
.why > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.why h3 { margin-bottom: 10px; }
.why p { color: var(--slate); }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; } .why > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* Steps (a real sequence) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; }
.steps li::after { content: ""; position: absolute; top: 21px; left: 54px; right: -12px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--slate); font-size: .95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }

/* CTA band */
.cta-band { background: var(--navy); color: #D5DCEC; border-radius: var(--r-lg); padding: 52px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band::after { content: ""; position: absolute; right: 60px; bottom: -150px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid var(--gold); opacity: .5; }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; padding: 34px; } }

/* Page header */
.page-head { background: var(--dawn); border-bottom: 6px solid var(--navy); padding: 56px 0 44px; }
.page-head p { color: var(--slate); max-width: 60ch; margin: 0; font-size: 1.08rem; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: var(--slate); }
.crumbs a { color: var(--slate); }

/* Filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; align-items: end; }
.filters .field { margin: 0; }

/* Forms */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field > small { display: block; color: var(--slate); margin-top: 4px; font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .72em .9em; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); outline: none; box-shadow: 0 0 0 3px rgba(242,169,59,.35); }
textarea { min-height: 130px; resize: vertical; }
/* Show / hide button inside password fields (public/js/password-toggle.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3em; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--slate); cursor: pointer; }
.pw-toggle:hover { color: var(--navy); background: var(--mist); }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.errors { background: #FBEDEB; border-left: 4px solid var(--rose); padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 22px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.hp { position: absolute; left: -9999px; }

/* Course detail */
.course-hero { background: var(--navy); color: #D5DCEC; padding: 56px 0 60px; position: relative; overflow: hidden; }
.course-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); max-width: 22ch; }
.course-hero .crumbs, .course-hero .crumbs a { color: #AEB9D3; }
.course-hero .lede { font-size: 1.15rem; max-width: 60ch; }
.course-hero::after { content: ""; position: absolute; right: 6%; bottom: -230px; width: 380px; height: 380px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) { .course-hero::after { display: none; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: #fff; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 56px; padding: 56px 0 88px; align-items: start; }
.detail article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.detail article h2:first-child { margin-top: 0; }
.detail article { max-width: 70ch; }
.aside-card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: #fff; }
.aside-card dl { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .95rem; }
.aside-card dt { color: var(--slate); }
.aside-card dd { margin: 0; font-weight: 600; text-align: right; }
.aside-card .btn { width: 100%; justify-content: center; }
.outline { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.outline div { display: flex; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); }
.outline div:first-child { border-top: 0; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: #AEB9D3; padding: 64px 0 28px; margin-top: 0; }
.site-footer > .wrap { position: relative; z-index: 1; }
/* Gold rings, angled stripes and a chevron behind the footer content */
.footer-deco { position: absolute; inset: 0; pointer-events: none; }
.footer-deco span { position: absolute; display: block; }
.deco-ring { right: -150px; bottom: -230px; width: 480px; height: 480px; border-radius: 50%; border: 2px solid var(--gold); opacity: .35; }
.deco-ring::after { content: ""; position: absolute; inset: 46px; border-radius: 50%; border: 1px solid var(--gold); opacity: .6; }
.deco-ring-sm { right: auto; bottom: auto; left: -70px; top: -70px; width: 190px; height: 190px; opacity: .22; }
.deco-ring-sm::after { inset: 30px; }
.deco-lines { top: 0; right: 24%; width: 230px; height: 130px; opacity: .16;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 2px, transparent 2px 16px); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.deco-angle { left: 36%; bottom: 120px; width: 46px; height: 46px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); opacity: .4; }
.deco-dot { right: 21%; top: 46%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); opacity: .75; box-shadow: 0 0 0 6px rgba(242,169,59,.15); }
@media (max-width: 800px) {
  .deco-ring:not(.deco-ring-sm) { width: 300px; height: 300px; right: -120px; bottom: -140px; }
  .deco-ring:not(.deco-ring-sm)::after { inset: 30px; }
  .deco-ring-sm { width: 130px; height: 130px; left: -50px; top: -50px; }
  .deco-ring-sm::after { inset: 22px; }
  .deco-lines { right: 0; width: 160px; height: 90px; }
  .deco-angle { left: auto; right: 28px; bottom: auto; top: 46%; }
  .deco-dot { right: 40%; top: auto; bottom: 120px; }
}
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr max-content; gap: 32px; } /* Contact column fits the email address */
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .95rem; margin: 0 0 12px; }
/* Footer logo: on a white tile so the dark crest shows on navy, with the name underneath */
.site-footer .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding: 0; color: #fff; }
.site-footer .footer-brand .brand-mark { width: 76px; height: 76px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.site-footer .footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.site-footer .footer-brand .brand-name small { color: var(--gold); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.site-footer .footer-brand:hover { color: #fff; }
.site-footer .cols > div { min-width: 0; } /* let columns shrink instead of pushing the page wider */
.site-footer a { color: #D5DCEC; text-decoration: none; display: block; padding: 3px 0; overflow-wrap: break-word; }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
/* Phones: the Contact column (long email address) gets a full-width row of its own */
@media (max-width: 600px) { .site-footer .cols > div:last-child { grid-column: 1 / -1; } }

/* ---------- Student portal ---------- */
.portal-bar { background: var(--navy); color: #fff; }
.portal-bar .wrap { display: flex; gap: 6px; align-items: center; min-height: 52px; overflow-x: auto; }
.portal-bar a { color: #C9D2E6; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .93rem; white-space: nowrap; }
.portal-bar a.on, .portal-bar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.portal-main { padding: 44px 0 88px; background: var(--mist); min-height: 70vh; }
.welcome { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.enrol-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 16px; }
.enrol-card h3 { margin: 4px 0 10px; font-size: 1.25rem; }
.bar { height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; max-width: 420px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--slate); }
.status.active, .status.accepted { background: #E3F1EC; color: var(--sage); }
.status.pending, .status.submitted, .status.new { background: var(--dawn); color: var(--gold-deep); }
.status.completed { background: var(--navy); color: var(--gold); }
.status.resubmit, .status.cancelled { background: #FBEDEB; color: var(--rose); }
.status.contacted { background: #E7ECF7; color: var(--navy-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.policy-list { display: grid; gap: 12px; }
.policy { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.policy-main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1; }
.policy-icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--dawn); color: var(--gold-deep); display: grid; place-items: center; font: 700 .7rem/1 var(--sans); letter-spacing: .04em; }
.policy h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.policy p { margin: 0; color: var(--slate); font-size: .93rem; }
.empty { text-align: center; padding: 48px 24px; }
@media (max-width: 640px) { .enrol-card { grid-template-columns: 1fr; } }

/* Course player */
.player { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.player-nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; max-height: calc(100vh - 120px); overflow: auto; }
.player-nav h4 { margin: 18px 0 6px; font-size: .85rem; color: var(--slate); font-weight: 600; }
.player-nav h4:first-of-type { margin-top: 8px; }
.player-nav a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .93rem; line-height: 1.35; }
.player-nav a:hover { background: var(--mist); }
.mark-pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; }
.mark-line { margin: 8px 0 0; color: var(--navy); }
.due-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 22px; color: var(--slate); }
.video video { width: 100%; height: 100%; background: #000; }
.player-nav a.on { background: var(--dawn); color: var(--navy); font-weight: 600; }
.tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 1px; }
.tick.done { background: var(--sage); border-color: var(--sage); position: relative; }
.tick.done::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lesson { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 44px; }
.lesson-body { max-width: 68ch; font-size: 1.05rem; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; margin: 0 0 28px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-title { font-size: 2.2rem; }
.lesson-scorm { padding: 32px 36px; }
.lesson-scorm .lesson-title { font-size: 1.9rem; margin-bottom: 18px; }
.scorm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 16px; margin: 0; background: var(--mist); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; }
.scorm-state { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--slate); }
.scorm-full { display: inline-flex; align-items: center; gap: 8px; background: #fff; }
.scorm-wrap { position: relative; width: 100%; height: clamp(520px, calc(100vh - 230px), 860px); border: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; background: #fff; box-shadow: 0 8px 24px -16px rgba(20, 33, 61, .35); }
.scorm-wrap:fullscreen { height: 100%; border: 0; border-radius: 0; }
.scorm-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.scorm-note { margin: 12px 0 0; font-size: .88rem; color: var(--slate); }
.lesson-scorm .lesson-body:empty { display: none; }
@media (max-width: 600px) { .lesson-scorm { padding: 18px; } .scorm-wrap { height: 70vh; min-height: 420px; } }
.lesson-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.attachment { display: inline-flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px dashed var(--navy-2); border-radius: var(--r-md); text-decoration: none; margin-bottom: 24px; }
.submission { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-top: 12px; }
.feedback { margin-top: 10px; background: var(--mist); padding: 12px 14px; border-radius: 8px; font-size: .95rem; }
@media (max-width: 900px) { .player { grid-template-columns: 1fr; } .player-nav { position: static; max-height: none; } .lesson { padding: 26px; } }

/* Auth */
.auth { min-height: calc(100vh - 110px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--navy); position: relative; overflow: hidden; color: #D5DCEC; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art h2 { color: #fff; max-width: 14ch; position: relative; z-index: 1; }
.auth-art p { position: relative; z-index: 1; max-width: 40ch; }
.auth-art::before { content: ""; position: absolute; left: 50%; top: 58%; width: 130%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--gold); opacity: .92; }
.auth-art::after { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 42%; background: var(--navy); }
.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-form form { width: 100%; max-width: 400px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* Learner number, shown to staff and to the learner */
.ln { display: inline-block; font: 600 .82rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .02em; color: var(--navy); background: #E7ECF7; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }

/* Modules that open once the one before is finished */
.locked-note { margin: 0 10px 4px; font-size: .8rem; color: var(--slate); }
.locked-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; color: var(--slate); font-size: .93rem; line-height: 1.35; opacity: .7; cursor: not-allowed; }
.tick.lock { border: 0; border-radius: 0; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27%236B7488%27 stroke-width=%271.8%27%3E%3Crect x=%273%27 y=%277%27 width=%2710%27 height=%278%27 rx=%271.5%27/%3E%3Cpath d=%27M5.5 7V5a2.5 2.5 0 0 1 5 0v2%27/%3E%3C/svg%3E"); }
.locked-next { align-self: center; max-width: 340px; }

/* Direct uploads (public/js/direct-upload.js) */
.upload-note { margin: 10px 0 0; color: var(--slate); }
.upload-note.upload-error { color: var(--rose); font-weight: 600; }

/* ---------- Motion (public/js/animations.js) ----------
   Hover effects work everywhere. Entrance effects only run under <html class="anim">, which head.ejs sets on public
   pages when the visitor hasn't asked for reduced motion. They use `translate`, so hover `transform`s still work. */
.course-card { transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,33,61,.14); }
.course-top img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.course-card:hover .course-top img { transform: scale(1.06); }
.course-top .arc { transition: bottom .5s cubic-bezier(.2,.7,.2,1); }
.course-card:hover .course-top .arc { bottom: -70%; }
.pillar { transition: transform .25s ease, box-shadow .25s ease; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,33,61,.12); }
.about-card { transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease; }
.about-card:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(20,33,61,.08); transform: translateY(-3px); }
.steps li::before { transition: background .25s ease, color .25s ease, transform .25s ease; }
.steps li:hover::before { background: var(--gold); color: var(--navy); transform: scale(1.08); }

/* Hero: the words rise in one after another, then the facts card pops up */
@keyframes enter-up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop-in { from { opacity: 0; scale: .9; translate: 0 12px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.anim .hero-copy > * { animation: enter-up .8s cubic-bezier(.2,.7,.2,1) both; }
.anim .hero-copy > :nth-child(2) { animation-delay: .12s; }
.anim .hero-copy > :nth-child(3) { animation-delay: .24s; }
.anim .hero-copy > :nth-child(4) { animation-delay: .36s; }
.anim .horizon-facts { animation: pop-in .6s .9s cubic-bezier(.2,.9,.3,1.2) both; }

/* Sections and cards fade up as they scroll into view (keep this list in step with animations.js) */
.anim :is(.pillar, .section-head, .course-card, .about-photo, .about-copy > *, .why > div, .steps li, .cta-band, .bodies-band h2, .filters):not(.is-in) { opacity: 0; translate: 0 28px; }
.anim :is(.pillar, .section-head, .course-card, .about-photo, .about-copy > *, .why > div, .steps li, .cta-band, .bodies-band h2, .filters) {
  transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), translate .7s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .25s ease, box-shadow .25s ease, border-color .2s ease; }
/* The line between enrolment steps draws itself in */
.anim .steps li::after { transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--reveal-delay, 0ms) + .35s); }
.anim .steps li.is-in::after { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn, .course-card, .course-top img, .course-top .arc, .pillar, .about-card, .steps li::before { transition: none; }
  .btn:hover, .course-card:hover, .pillar:hover, .about-card:hover, .course-card:hover .course-top img, .steps li:hover::before { transform: none; }
}

/* Personal documents on a profile (views/partials/documents.ejs) */
.documents { margin-top: 24px; }
.doc-list { margin: 10px 0 18px; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-name { display: flex; gap: 10px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.doc-name .icon { flex: none; margin-top: 3px; color: var(--slate); }
.doc-upload { border-top: 1px solid var(--line); padding-top: 18px; }
