/* ==========================================================================
   MSc Neuroscience & Neurodegenerative Diseases — site stylesheet v2
   Minimal, accessible, one design system for every public page.
   ========================================================================== */

:root {
    --ink: #0b1b33;
    --text: #23344b;
    --muted: #5b6a7f;
    --brand: #0b3d91;
    --brand-strong: #082c6b;
    --accent: #0ea5b7;
    --accent-soft: #e6f7f9;
    --bg: #ffffff;
    --soft: #f5f8fc;
    --line: #e3e9f1;
    --focus: #f5b301;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(11, 27, 51, .04), 0 10px 30px rgba(11, 27, 51, .06);
    --container: 1180px;
    --header-h: 76px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
.muted { color: var(--muted); }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(var(--container), 100% - 64px); } }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .7em 1.25em; border-radius: 999px;
    font: 600 .98rem/1.2 var(--font); border: 1px solid transparent; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-secondary, .btn-outline-light, .btn-light { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-secondary:hover, .btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; color: var(--brand); white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-more { margin-top: 24px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { min-width: 0; flex: 0 1 auto; }
.brand .site-branding-lockup { gap: 14px; max-width: none; }
.brand .site-branding-msc-img { max-height: 52px; max-width: 220px; }
.brand .site-branding-auth-img { max-height: 44px; max-width: 90px; }
.brand .site-branding-divider { min-height: 36px; background: var(--line); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav ul a {
    display: block; padding: 8px 12px; border-radius: 999px;
    font-size: .95rem; font-weight: 500; color: var(--text); white-space: nowrap;
    transition: background-color .2s, color .2s;
}
.site-nav ul a:hover { background: var(--soft); color: var(--ink); }
.site-nav ul a.is-active { background: var(--accent-soft); color: var(--brand); font-weight: 600; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 1099px) {
    .nav-toggle {
        display: inline-flex; align-items: center; gap: 10px;
        min-height: 44px; padding: 0 16px; border-radius: 999px;
        border: 1px solid var(--line); background: #fff; color: var(--ink);
        font: 600 .95rem var(--font); cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, opacity .2s;
    }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .nav-open .nav-toggle-bars { background: transparent; }
    .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px 16px 24px; background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(11, 27, 51, .12);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility 0s .2s;
    }
    .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav ul a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1.05rem; }
    .lang-switch { align-self: flex-start; }
    .lang-switch a { padding: 8px 16px; font-size: .9rem; }
}
@media (max-width: 560px) {
    :root { --header-h: 64px; }
    .brand .site-branding-msc-img { max-height: 40px; max-width: 150px; }
    .brand .site-branding-auth-img { max-height: 34px; max-width: 64px; }
    .brand .site-branding-lockup { gap: 10px; }
    .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .nav-toggle { padding: 0 13px; }
}

/* ---------- "On this page" ---------- */
.page-toc {
    position: sticky; top: var(--header-h); z-index: 40;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.page-toc-inner { display: flex; align-items: center; gap: 16px; min-height: 54px; }
.page-toc-title { flex: none; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.page-toc ul {
    list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px;
    overflow-x: auto; scrollbar-width: none; padding-left: 4px;
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 90%, transparent);
}
.page-toc ul::-webkit-scrollbar { display: none; }
.page-toc a {
    display: block; white-space: nowrap; padding: 6px 12px; border-radius: 999px;
    font-size: .88rem; font-weight: 500; color: var(--text); border: 1px solid transparent;
}
.page-toc a:hover { background: var(--soft); }
.page-toc a[aria-current] { color: var(--brand); border-color: var(--line); background: #fff; box-shadow: var(--shadow); }
@media (max-width: 720px) { .page-toc-title { display: none; } }

/* ==========================================================================
   Home
   ========================================================================== */
.home-hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: #dce8f7;
    background:
        radial-gradient(900px 500px at 78% 40%, rgba(14, 165, 183, .22), transparent 60%),
        radial-gradient(700px 500px at 10% 0%, rgba(40, 99, 210, .35), transparent 60%),
        linear-gradient(180deg, #06162f 0%, #0a2550 100%);
    padding: clamp(56px, 9vw, 112px) 0 32px;
}
.neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; }
.home-hero.has-3d .neural-canvas { opacity: 1; }
.home-hero-inner { max-width: var(--container); }
.home-hero-inner > * { max-width: 620px; }
.home-hero .eyebrow { color: #7fe3ee; }
.home-hero h1 { color: #fff; margin-bottom: .3em; }
.home-hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #a9c4e6; font-weight: 500; margin-bottom: 1.2em; }
.home-hero-text { font-size: 1.08rem; color: #cfdcf0; margin-bottom: 2em; }
.home-hero .btn-primary { background: #fff; color: var(--brand-strong); }
.home-hero .btn-primary:hover { background: #e9f2ff; color: var(--brand-strong); }

.facts {
    margin: clamp(48px, 7vw, 88px) 0 0; padding: 20px 0 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.facts div { min-width: 0; }
.facts dt { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.facts dd { margin: 2px 0 0; font-size: .9rem; color: #9fb6d6; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }

.eyebrow, .section-kicker {
    display: inline-block; margin: 0 0 14px;
    font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent);
}

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile {
    display: flex; flex-direction: column; gap: 6px; height: 100%;
    padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tile:hover { border-color: #c9d6e8; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tile strong { color: var(--ink); font-size: 1.08rem; }
.tile strong::after { content: " →"; color: var(--accent); transition: margin .2s; }
.tile:hover strong::after { margin-left: 4px; }
.tile span:last-child { color: var(--muted); font-size: .94rem; }
.tile-index { font-size: .78rem; font-weight: 600; color: var(--accent); letter-spacing: .08em; }

.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.news-item {
    display: flex; flex-direction: column; gap: 8px; height: 100%;
    padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--text);
    transition: box-shadow .2s, transform .2s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.news-item time { font-size: .85rem; color: var(--muted); font-weight: 500; }
.news-item strong { color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.news-item span { color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   Generic content sections (all inner pages)
   ========================================================================== */
main { display: block; }
main:focus { outline: none; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-soft, main > section[class*="-soft-section"], .programme-outcomes-section, .about-quality-section { background: var(--soft); }
main > section + section.section:not([class*="soft"]):not(.programme-outcomes-section):not(.about-quality-section) { border-top: 1px solid var(--line); }
main > section[class*="soft"] + section[class*="soft"] { border-top: 1px solid var(--line); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2, .section-head h3, .section-title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.programme-section-title, .section-intro { max-width: 720px; margin-bottom: 32px; }
.programme-section-title h2, .programme-heading { margin-bottom: .3em; }
.programme-section-title p, .programme-copy, [class*="-section-text"], [class*="-intro"] > p { color: var(--muted); font-size: 1.05rem; }

/* Inner-page hero: a calm page header */
main > section[class$="-hero"]:not(.home-hero) {
    padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
    background: linear-gradient(180deg, var(--soft), #fff);
    border-bottom: 1px solid var(--line);
}
main > section[class$="-hero"]:not(.home-hero) h1 { max-width: 18ch; }
/* Kickers repeat the heading right below them — hidden for a calmer, non-repetitive page */
main .section-kicker { display: none; }
main > section[class$="-hero"]:not(.home-hero) p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
[class$="-hero-grid"] { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
[class$="-hero-grid"]:has(> figure, > aside, > [class*="has-image"], > [class*="panel-image"]) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 860px) { [class$="-hero-grid"]:has(> figure, > aside, > [class*="has-image"], > [class*="panel-image"]) { grid-template-columns: minmax(0, 1fr); } }
/* decorative hero blocks without an image are hidden (minimal look) */
[class$="-hero-visual"]:not([class*="has-image"]), [class$="-hero-panel"]:not([class*="panel-image"]):empty,
.contact-hero-panel:not(.contact-hero-panel-image) { display: none; }
[class*="hero-has-image"], .contact-hero-panel-image { min-height: 280px; border-radius: var(--radius); background-size: cover; background-position: center; }
main > section[class$="-hero"]:not(.home-hero) figure { margin: 0; }
main > section[class$="-hero"]:not(.home-hero) figure img, [class*="-managed-"] img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 380px; }
[class*="-managed-"] { margin: 0 0 24px; }

/* Grids */
.cards-2, .cards-3, .cards-4, .admissions-steps, [class$="-grid"]:not([class$="-hero-grid"]) {
    display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* two-column "heading | text" layouts */
.programme-intro-grid, .programme-outcomes-grid, .about-intro-grid, .about-auth-grid, .about-quality-grid,
.admissions-two-column, .contact-map-grid, .admissions-eligibility-grid, .students-calendar-grid {
    display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start;
}
@media (max-width: 860px) {
    .programme-intro-grid, .programme-outcomes-grid, .about-intro-grid, .about-auth-grid, .about-quality-grid,
    .admissions-two-column, .contact-map-grid, .admissions-eligibility-grid, .students-calendar-grid { grid-template-columns: minmax(0, 1fr); }
}
.about-auth-visual:empty { display: none; }

/* Cards */
.card, [class$="-card"]:not(.news-list-card):not(.featured-news-card), .selection-card {
    position: relative; padding: 24px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
section[class*="soft"] .card, section[class*="soft"] [class$="-card"] { border-color: #dfe6f0; }
a[class$="-card"], a.card { color: var(--text); display: flex; flex-direction: column; gap: 8px; }
a[class$="-card"]:hover, a.card:hover { border-color: #c9d6e8; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card h3, [class$="-card"] h3, [class$="-card"] h4 { margin-bottom: .35em; }
.card p, [class$="-card"] p { color: var(--muted); font-size: .96rem; }
[class$="-card"] > strong:first-child { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
[class$="-card"] > strong:first-child + span { color: var(--muted); font-size: .94rem; }
[class$="-card"] a:not(.btn) { font-weight: 600; }

/* Small numeric / type labels on cards */
[class$="-card-number"], [class$="-step-number"], [class$="-value-number"], [class$="-info-number"], .step-number,
[class$="-document-type"], [class$="-document-icon"], [class$="-quick-icon"], .admissions-status-badge, [class$="-leadership-icon"] {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; padding: 0 10px; margin-bottom: 14px;
    border-radius: 999px; background: var(--accent-soft); color: #0b7180;
    font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
[class$="-document-action"], .news-card-link, .news-cta-label { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand); font-size: .94rem; }

/* Lists with check marks / rows */
.programme-outcomes-list, .documents-list, .about-quality-list { display: grid; gap: 10px; }
.programme-outcome, .document-item, .about-quality-item {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.programme-outcome p, .document-item p, .about-quality-item p { margin: 0; }
.programme-check, .document-item > span {
    flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); color: #0b7180; font-size: .8rem; font-weight: 700;
}

.important-dates, .students-calendar-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.important-date-row, .students-calendar-row, .admissions-status-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line);
}
.important-date-row:first-child, .students-calendar-row:first-child { border-top: 0; }
.important-date-row strong, .students-calendar-row strong { color: var(--ink); white-space: nowrap; }
.students-calendar-description { display: block; color: var(--muted); font-size: .88rem; }
.admissions-status-card { box-shadow: var(--shadow); }
.admissions-status-card h2 { font-size: 1.1rem; margin-bottom: .2em; }
.admissions-status-year { display: block; font-size: 1.6rem; color: var(--brand); margin-bottom: 12px; }
.admissions-status-row { padding: 10px 0; }
.degree-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.degree-tag { padding: 4px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .88rem; }
.admissions-note { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--accent-soft); color: #0b4f59; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
    font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }

/* Programme curriculum */
.programme-curriculum-dynamic { display: grid; gap: 32px; }
.programme-semester-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.programme-semester-head h3 { margin: 0; font-size: 1.25rem; }
.programme-semester-head span { color: var(--muted); font-size: .9rem; }
.programme-course-list { display: grid; }
.programme-course-item { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.programme-course-title-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.programme-course-title-row h4 { margin: 0; font-size: 1.02rem; }
.programme-course-code { font-size: .78rem; font-weight: 700; color: #0b7180; background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.programme-course-main p { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.programme-course-instructor { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.programme-course-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .88rem; color: var(--muted); text-align: right; }
.programme-course-meta strong { color: var(--ink); white-space: nowrap; }
@media (max-width: 600px) { .programme-course-item { flex-direction: column; gap: 8px; } .programme-course-meta { flex-direction: row; align-items: center; gap: 12px; } }
.programme-center-button { text-align: center; margin-top: 32px; }

/* About — faculty */
.about-faculty-groups { display: grid; gap: 40px; }
.about-faculty-group-head { margin-bottom: 16px; }
.about-faculty-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.about-faculty-card { display: flex; gap: 16px; align-items: flex-start; }
.about-faculty-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; color: #0b7180; font-weight: 700; font-size: 1.3rem; }
.about-faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-faculty-content h4 { margin: 0 0 2px; }
.about-faculty-title { color: var(--muted); font-size: .9rem; }
.about-faculty-bio { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.about-faculty-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: .9rem; }
.about-leadership-card { display: flex; gap: 16px; align-items: flex-start; }

/* News page */
.news-toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.news-filter-title { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.news-filter {
    min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font: 500 .9rem var(--font); color: var(--text); cursor: pointer;
}
.news-filter:hover { border-color: #c9d6e8; }
.news-filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; }
.featured-news-card, .news-list-card {
    display: flex; flex-direction: column; overflow: hidden; height: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
    transition: box-shadow .2s, transform .2s;
}
a.news-list-card:hover, .news-list-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.featured-news-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 860px) { .featured-news-card { grid-template-columns: minmax(0, 1fr); } }
.featured-news-visual, .news-card-visual { position: relative; min-height: 200px; background: linear-gradient(135deg, #0a2550, #0ea5b7); color: #fff; }
.news-card-visual { aspect-ratio: 16 / 9; min-height: 0; }
.featured-news-visual > span, .news-card-visual > span:not(:only-child) { position: absolute; left: 16px; top: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 600; }
.featured-news-content, .news-card-content { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); }
.news-category { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: #0b7180; font-weight: 600; font-size: .78rem; }

/* News detail */
.news-detail-wrap { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 16px 80px; }
.news-detail-back { display: inline-flex; margin-bottom: 24px; font-weight: 600; }
.news-detail-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .92rem; }
.news-detail-category { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: #0b7180; font-weight: 600; font-size: .82rem; }
.news-detail-lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.news-detail-image { border-radius: var(--radius); overflow: hidden; margin: 0 0 32px; }
.news-detail-image img { width: 100%; max-height: 480px; object-fit: cover; }
.news-detail-content { font-size: 1.06rem; line-height: 1.8; }
.news-detail-content a { text-decoration: underline; text-underline-offset: 3px; }
.news-detail-content h2, .news-detail-content h3 { margin-top: 1.6em; }
.news-pdf-box { margin-top: 32px; padding: 20px; border: 1px solid var(--line); background: var(--soft); border-radius: var(--radius); }
.news-pdf-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--brand); color: #fff !important; font-weight: 600; }

/* Contact */
.contact-form { display: grid; gap: 18px; padding: clamp(20px, 4vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid-2, .contact-form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-group { display: grid; gap: 6px; }
.form-group label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfd9e6; border-radius: var(--radius-sm);
    font: 400 1rem var(--font); color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 61, 145, .12); }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-privacy, .contact-required-note { font-size: .88rem; color: var(--muted); }
.contact-submit { justify-self: start; }
.contact-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.contact-alert-success { background: #e7f7ee; color: #14532d; border: 1px solid #bfe6cf; }
.contact-alert-error { background: #fdecec; color: #7f1d1d; border: 1px solid #f5c2c2; }
.contact-map-grid iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

/* Dynamic (admin-authored) rich text */
[class$="-dynamic-content"] { max-width: 760px; }
[class$="-dynamic-content"] a { text-decoration: underline; text-underline-offset: 3px; }
[class$="-dynamic-content"] img { border-radius: var(--radius-sm); margin: 16px 0; }

/* Leftover closing CTA (only the Admissions "apply" block remains) */
.cta { padding: 0 0 clamp(48px, 7vw, 88px); }
.cta-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: clamp(24px, 5vw, 48px); border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, #06162f, #0a2550); color: #cfdcf0;
}
.cta-box h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .3em; }
.cta-box p { color: #a9c4e6; margin: 0; }
.cta-box .btn-light { background: #fff; color: var(--brand-strong); border-color: #fff; }
.cta-box .btn-light:hover { background: #e9f2ff; }

/* ==========================================================================
   Timetable (schedule.php) — scoped
   ========================================================================== */
.schedule { padding: clamp(32px, 6vw, 56px) 0 80px; background: var(--soft); }
.schedule .head { margin-bottom: 24px; }
.schedule .head h1 { margin-bottom: 6px; }
.schedule .head p { color: var(--muted); font-size: 1.05rem; }
.schedule .toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px;
    padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.schedule .toolbar form { margin: 0; }
.schedule select { font: 500 .95rem var(--font); min-height: 42px; border: 1px solid #cfd9e6; border-radius: var(--radius-sm); padding: 8px 12px; background: #fff; color: var(--ink); }
.schedule .period { color: var(--muted); font-size: .92rem; }
.schedule .week-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.schedule .week-range { font-weight: 700; color: var(--ink); }
.schedule .nav-group { display: flex; gap: 8px; flex-wrap: wrap; }
.schedule .nav-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.schedule .nav-btn:hover { border-color: var(--brand); }
.schedule .week { display: grid; gap: 12px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.schedule .day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.schedule .day.is-marked { border: 2px solid var(--marker-color, var(--line)); }
.schedule .day-head { padding: 12px 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--soft); }
.schedule .day.is-marked .day-head { background: var(--marker-color, var(--soft)); }
.schedule .day-date { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.schedule .day-marker { padding: 9px 16px; font-size: .82rem; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.06); }
.schedule .day-marker small { display: block; font-weight: 500; opacity: .8; }
.schedule .lesson { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.schedule .lesson:last-child { border-bottom: 0; }
.schedule .time { font-size: .85rem; font-weight: 700; color: #0b7180; }
.schedule .title { font-weight: 600; color: var(--ink); line-height: 1.35; margin-top: 4px; }
.schedule .meta { font-size: .86rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.schedule .empty { padding: 16px; color: var(--muted); font-size: .9rem; }
.schedule .holidays { margin-top: 32px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule .holidays > p { color: var(--muted); }
.schedule .holiday { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.schedule .holiday:first-of-type { border-top: 0; }
.schedule .holiday-date { font-weight: 700; color: #0b7180; }
.schedule .holiday-title { font-weight: 600; color: var(--ink); }
.schedule .holiday-note { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .schedule .holiday { grid-template-columns: 1fr; gap: 4px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #06162f; color: #9fb6d6; padding: 56px 0 0; font-size: .95rem; }
.footer-inner { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: #dce8f7; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* Floating accessibility button: keep clear of content on small screens */
.a11y-noscript summary { width: 52px !important; height: 52px !important; font-size: 22px !important; background: var(--ink) !important; }

/* High-contrast mode keeps the new components legible */
html.a11y-contrast .home-hero, html.a11y-contrast .site-footer, html.a11y-contrast .cta-box { background: #000 !important; }
html.a11y-contrast .neural-canvas { display: none; }

@media print {
    .site-header, .page-toc, .site-footer, .a11y-noscript, .neural-canvas { display: none !important; }
    .home-hero { background: none; color: #000; }
    .home-hero h1 { color: #000; }
}

/* Contact: location link & numbering */
.contact-info-number { display: none; }
.contact-map-placeholder { min-height: 220px; border-radius: var(--radius); background:
    radial-gradient(400px 200px at 30% 30%, rgba(14,165,183,.18), transparent 70%),
    linear-gradient(135deg, #eaf2fb, #f5f8fc); border: 1px solid var(--line); display: grid; }
.contact-map-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.contact-map-link { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 32px; text-align: center; color: var(--ink); }
.contact-map-link span { font-size: 1.8rem; }
.contact-map-link small { color: var(--muted); }
.contact-map-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.section > .container > .section-title { margin-bottom: 28px; }
.about-faculty-group-head { display: flex; align-items: center; gap: 10px; }
.about-faculty-group-head h3 { margin: 0; }
.about-faculty-group-head > span { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: #0b7180; font-size: .8rem; font-weight: 700; }

/* ==========================================================================
   Colour tones (shared palette) — accessible tinted backgrounds + dark ink
   ========================================================================== */
.tone-1 { --tone: #2563eb; --tone-bg: #eaf1ff; --tone-ink: #1e3a8a; }
.tone-2 { --tone: #0ea5b7; --tone-bg: #e3f7f9; --tone-ink: #0b5f6b; }
.tone-3 { --tone: #7c3aed; --tone-bg: #f1eaff; --tone-ink: #4c1d95; }
.tone-4 { --tone: #d97706; --tone-bg: #fff3dc; --tone-ink: #7c3a06; }
.tone-5 { --tone: #e11d48; --tone-bg: #ffe8ee; --tone-ink: #881337; }
.tone-6 { --tone: #16a34a; --tone-bg: #e5f7ec; --tone-ink: #14532d; }

.chip {
    flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--tone-bg, var(--accent-soft)); color: var(--tone-ink, #0b7180);
    font-weight: 700; font-size: 1rem; line-height: 1;
}
.subhead { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.link-row-arrow { margin-left: auto; color: var(--tone, var(--brand)); font-weight: 600; transition: transform .2s; }

/* ---------- Students page ---------- */
.page-students main > section.students-hero {
    background:
        radial-gradient(520px 260px at 92% 10%, rgba(124, 58, 237, .14), transparent 70%),
        radial-gradient(520px 260px at 70% 110%, rgba(14, 165, 183, .16), transparent 70%),
        radial-gradient(420px 240px at 8% 0%, rgba(37, 99, 235, .12), transparent 70%),
        linear-gradient(180deg, #f7f9ff, #fff);
}
.page-students .section { padding: clamp(40px, 5vw, 64px) 0; }
.page-students .section > .container > .section-title { margin-bottom: 24px; }

.students-now-grid, .students-docs-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .students-now-grid, .students-docs-grid { grid-template-columns: minmax(0, 1fr); } }

.link-list, .doc-list, .service-grid, .timeline { list-style: none; margin: 0; padding: 0; }
.link-list, .doc-list { display: grid; gap: 8px; }

.link-row, .doc-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--text);
    border-left: 4px solid var(--tone, var(--line));
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.link-row:hover, a.doc-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: var(--text); }
a.link-row:hover .link-row-arrow, a.doc-row:hover .link-row-arrow { transform: translateX(3px); }
.link-row-body, .doc-body, .service-body { display: grid; gap: 2px; min-width: 0; }
.link-row strong, .doc-row strong, .service strong { color: var(--ink); font-size: .98rem; line-height: 1.35; }
.link-row small, .doc-row small, .service small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.doc-row { border-left-width: 1px; }
.doc-row small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.doc-type {
    flex: none; min-width: 48px; height: 30px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center;
    background: var(--tone-bg); color: var(--tone-ink); font-size: .72rem; font-weight: 700; letter-spacing: .05em;
}

/* Calendar as a coloured timeline */
.timeline { position: relative; display: grid; gap: 0; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--line), var(--line)); border-radius: 2px; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 10px 0 14px 14px; }
.timeline li::before {
    content: ""; position: absolute; left: -22px; top: 15px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--tone); box-shadow: 0 0 0 4px var(--tone-bg);
}
.timeline-date { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-ink); font-size: .8rem; font-weight: 700; }
.timeline strong { color: var(--ink); }
.timeline small { color: var(--muted); font-size: .88rem; }

/* Services */
.service-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.service {
    display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--text);
    transition: background-color .2s, border-color .2s, transform .2s;
}
a.service:hover { background: var(--tone-bg); border-color: transparent; transform: translateY(-1px); color: var(--text); }
a.service:hover .chip { background: var(--tone); color: #fff; }
.service small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* FAQ gets a coloured accent on open items site-wide */
.faq-item[open] { border-color: #cfdcf3; box-shadow: inset 4px 0 0 var(--brand); }

/* ==========================================================================
   Colour across all pages
   ========================================================================== */
/* Cycle the six tones through every card grid / list */
:is(.cards-2, .cards-3, .cards-4, .tiles, .news-list, .admissions-steps, .programme-outcomes-list, .documents-list, .about-quality-list,
    [class$="-grid"]:not([class$="-hero-grid"]):not(.students-now-grid):not(.students-docs-grid):not(.footer-grid)) > :nth-child(6n+1) { --tone: #2563eb; --tone-bg: #eaf1ff; --tone-ink: #1e3a8a; }
:is(.cards-2, .cards-3, .cards-4, .tiles, .news-list, .admissions-steps, .programme-outcomes-list, .documents-list, .about-quality-list,
    [class$="-grid"]:not([class$="-hero-grid"]):not(.students-now-grid):not(.students-docs-grid):not(.footer-grid)) > :nth-child(6n+2) { --tone: #0ea5b7; --tone-bg: #e3f7f9; --tone-ink: #0b5f6b; }
:is(.cards-2, .cards-3, .cards-4, .tiles, .news-list, .admissions-steps, .programme-outcomes-list, .documents-list, .about-quality-list,
    [class$="-grid"]:not([class$="-hero-grid"]):not(.students-now-grid):not(.students-docs-grid):not(.footer-grid)) > :nth-child(6n+3) { --tone: #7c3aed; --tone-bg: #f1eaff; --tone-ink: #4c1d95; }
:is(.cards-2, .cards-3, .cards-4, .tiles, .news-list, .admissions-steps, .programme-outcomes-list, .documents-list, .about-quality-list,
    [class$="-grid"]:not([class$="-hero-grid"]):not(.students-now-grid):not(.students-docs-grid):not(.footer-grid)) > :nth-child(6n+4) { --tone: #d97706; --tone-bg: #fff3dc; --tone-ink: #7c3a06; }
:is(.cards-2, .cards-3, .cards-4, .tiles, .news-list, .admissions-steps, .programme-outcomes-list, .documents-list, .about-quality-list,
    [class$="-grid"]:not([class$="-hero-grid"]):not(.students-now-grid):not(.students-docs-grid):not(.footer-grid)) > :nth-child(6n+5) { --tone: #e11d48; --tone-bg: #ffe8ee; --tone-ink: #881337; }
:is(.cards-2, .cards-3, .cards-4, .tiles, .news-list, .admissions-steps, .programme-outcomes-list, .documents-list, .about-quality-list,
    [class$="-grid"]:not([class$="-hero-grid"]):not(.students-now-grid):not(.students-docs-grid):not(.footer-grid)) > :nth-child(6n+6) { --tone: #16a34a; --tone-bg: #e5f7ec; --tone-ink: #14532d; }

/* Cards: coloured top accent */
:is(.card, [class$="-card"]:not(.news-list-card):not(.featured-news-card):not(.admissions-status-card), .tile, .news-item) {
    box-shadow: inset 0 3px 0 var(--tone, transparent);
}
:is(.card, [class$="-card"], .tile, .news-item):hover { box-shadow: inset 0 3px 0 var(--tone, transparent), var(--shadow); }

/* Chips / numbers / labels take the card's tone */
:is([class$="-card-number"], [class$="-step-number"], [class$="-value-number"], [class$="-info-number"], .step-number,
    [class$="-document-type"], [class$="-document-icon"], [class$="-quick-icon"], [class$="-leadership-icon"], .programme-check, .document-item > span) {
    background: var(--tone-bg, var(--accent-soft)); color: var(--tone-ink, #0b7180);
}
.tile-index { color: var(--tone, var(--accent)); }
.tile strong::after { color: var(--tone, var(--accent)); }
.tile:hover { border-color: var(--tone, #c9d6e8); }
.news-item time { color: var(--tone-ink, var(--muted)); }
.programme-outcome, .document-item, .about-quality-item { border-left: 4px solid var(--tone, var(--line)); }
.faq-list > .faq-item:nth-child(6n+1)[open] { box-shadow: inset 4px 0 0 #2563eb; }
.faq-list > .faq-item:nth-child(6n+2)[open] { box-shadow: inset 4px 0 0 #0ea5b7; }
.faq-list > .faq-item:nth-child(6n+3)[open] { box-shadow: inset 4px 0 0 #7c3aed; }
.faq-list > .faq-item:nth-child(6n+4)[open] { box-shadow: inset 4px 0 0 #d97706; }
.faq-list > .faq-item:nth-child(6n+5)[open] { box-shadow: inset 4px 0 0 #e11d48; }
.faq-list > .faq-item:nth-child(6n+6)[open] { box-shadow: inset 4px 0 0 #16a34a; }

/* Section titles: small gradient accent bar */
:is(.section-title, .programme-section-title h2, .programme-heading, .section-head h2, .section-head h3)::after {
    content: ""; display: block; width: 44px; height: 4px; margin-top: 12px; border-radius: 4px;
    background: linear-gradient(90deg, #2563eb, #0ea5b7 50%, #7c3aed);
}
.section-head :is(h2, h3)::after { margin-top: 10px; }

/* Semesters in the curriculum get their own colour */
.programme-semester-block:nth-of-type(6n+1) { --tone: #2563eb; --tone-bg: #eaf1ff; --tone-ink: #1e3a8a; }
.programme-semester-block:nth-of-type(6n+2) { --tone: #7c3aed; --tone-bg: #f1eaff; --tone-ink: #4c1d95; }
.programme-semester-block:nth-of-type(6n+3) { --tone: #0ea5b7; --tone-bg: #e3f7f9; --tone-ink: #0b5f6b; }
.programme-semester-block:nth-of-type(6n+4) { --tone: #d97706; --tone-bg: #fff3dc; --tone-ink: #7c3a06; }
.programme-semester-block:nth-of-type(6n+5) { --tone: #e11d48; --tone-bg: #ffe8ee; --tone-ink: #881337; }
.programme-semester-head { border-bottom-color: var(--tone, var(--ink)); }
.programme-semester-head h3 { color: var(--tone-ink, var(--ink)); }
.programme-course-code { background: var(--tone-bg, var(--accent-soft)); color: var(--tone-ink, #0b7180); }

/* Per-page hero colour mixes */
main > section[class$="-hero"]:not(.home-hero) { position: relative; }
.page-programme main > section.programme-hero { background: radial-gradient(560px 280px at 90% 0%, rgba(37,99,235,.16), transparent 70%), radial-gradient(480px 260px at 65% 120%, rgba(124,58,237,.14), transparent 70%), linear-gradient(180deg, #f6f8ff, #fff); }
.page-admissions main > section.admissions-hero { background: radial-gradient(560px 280px at 92% 0%, rgba(217,119,6,.16), transparent 70%), radial-gradient(480px 260px at 60% 120%, rgba(225,29,72,.12), transparent 70%), linear-gradient(180deg, #fffaf3, #fff); }
.page-about main > section.about-hero { background: radial-gradient(560px 280px at 90% 0%, rgba(14,165,183,.18), transparent 70%), radial-gradient(480px 260px at 62% 120%, rgba(22,163,74,.12), transparent 70%), linear-gradient(180deg, #f3fbfb, #fff); }
.page-contact main > section.contact-hero { background: radial-gradient(560px 280px at 90% 0%, rgba(124,58,237,.15), transparent 70%), radial-gradient(480px 260px at 62% 120%, rgba(14,165,183,.14), transparent 70%), linear-gradient(180deg, #f8f6ff, #fff); }
.page-news main > section.news-hero { background: radial-gradient(560px 280px at 90% 0%, rgba(225,29,72,.13), transparent 70%), radial-gradient(480px 260px at 62% 120%, rgba(217,119,6,.13), transparent 70%), linear-gradient(180deg, #fff6f8, #fff); }
.page-schedule .schedule { background: radial-gradient(700px 300px at 95% 0%, rgba(14,165,183,.12), transparent 70%), radial-gradient(600px 300px at 0% 0%, rgba(37,99,235,.10), transparent 70%), var(--soft); }

/* Footer accent line */
.site-footer { border-top: 4px solid transparent; border-image: linear-gradient(90deg, #2563eb, #0ea5b7, #7c3aed, #e11d48, #d97706) 1; }

/* Timetable: each course keeps its own colour (tone class set server-side) */
.schedule .lesson { border-left: 4px solid var(--tone, transparent); background: linear-gradient(90deg, var(--tone-bg, transparent), #fff 55%); }
.schedule .lesson .time { color: var(--tone-ink, #0b7180); }
.schedule .day-head { background: #fff; }
.schedule .day.is-today { border: 2px solid #2563eb; box-shadow: 0 8px 24px rgba(37, 99, 235, .15); }
.schedule .day.is-today .day-head { background: #eaf1ff; color: #1e3a8a; }
.schedule .today-pill { float: right; margin-top: 2px; padding: 2px 10px; border-radius: 999px; background: #2563eb; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.degree-tags > .degree-tag:nth-child(6n+1) { background: #eaf1ff; color: #1e3a8a; border-color: #d6e3ff; }
.degree-tags > .degree-tag:nth-child(6n+2) { background: #e3f7f9; color: #0b5f6b; border-color: #c9eef2; }
.degree-tags > .degree-tag:nth-child(6n+3) { background: #f1eaff; color: #4c1d95; border-color: #e2d6ff; }
.degree-tags > .degree-tag:nth-child(6n+4) { background: #fff3dc; color: #7c3a06; border-color: #fbe3b6; }
.degree-tags > .degree-tag:nth-child(6n+5) { background: #ffe8ee; color: #881337; border-color: #fcd0db; }
.degree-tags > .degree-tag:nth-child(6n+6) { background: #e5f7ec; color: #14532d; border-color: #c6ebd4; }

/* Timetable: in-person / online */
.schedule .mode-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.schedule .mode-filter a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem;
}
.schedule .mode-filter a:hover { border-color: #c9d6e8; }
.schedule .mode-filter a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.schedule .mode-filter a.mode-in_person.is-active { background: #15803d; border-color: #15803d; }
.schedule .mode-filter a.mode-online.is-active { background: #1d4ed8; border-color: #1d4ed8; }
.schedule .mode-filter .count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .78rem; }
.schedule .mode-filter a.is-active .count { background: rgba(255,255,255,.2); color: #fff; }

.mode-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; vertical-align: 1px; }
.mode-badge.mode-in_person { background: #dcfce7; color: #14532d; }
.mode-badge.mode-online { background: #dbeafe; color: #1e3a8a; }
.schedule .lesson.mode-in_person { box-shadow: inset 0 0 0 1px #bbf7d0; }


/* Timetable lesson details: unit, instructor role, TBC */
.schedule .lesson-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.schedule .lesson-tags .unit { padding: 1px 8px; border-radius: 6px; background: var(--tone-bg, var(--soft)); color: var(--tone-ink, var(--ink)); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.schedule .lesson-tags .tbc { padding: 1px 8px; border-radius: 6px; background: #fef08a; color: #713f12; font-size: .74rem; font-weight: 700; }
.schedule .lesson.is-tbc { background: repeating-linear-gradient(135deg, #fffbea 0 10px, #fff 10px 20px); }
.schedule .meta .who { display: block; color: var(--ink); font-weight: 600; }
.schedule .meta .role { display: block; font-size: .8rem; line-height: 1.4; margin-bottom: 4px; }

/* ==========================================================================
   News: compact layout, small images
   ========================================================================== */
.page-news .section { padding: clamp(32px, 4vw, 48px) 0; }

/* Featured announcement: horizontal card with a small 4:3 image */
.featured-news-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: stretch; }
.featured-news-visual { min-height: 0; aspect-ratio: 4 / 3; align-self: start; margin: 16px 0 16px 16px; border-radius: 12px; overflow: hidden; }
.featured-news-visual img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.featured-news-visual > span { left: 8px; top: 8px; font-size: .7rem; padding: 2px 8px; }
.featured-news-content { padding: 18px 22px; gap: 6px; }
.featured-news-content h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0; }
.featured-news-content h2::after { display: none; }
.featured-news-content p { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
    .featured-news-card { grid-template-columns: 1fr; }
    .featured-news-visual { margin: 12px 12px 0; aspect-ratio: 16 / 9; max-height: 180px; }
}

/* Latest news: one row per item with a small thumbnail */
.news-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
.news-list-card { display: grid !important; grid-template-columns: 120px minmax(0, 1fr); align-items: center; flex-direction: row; }
.news-card-visual { aspect-ratio: 4 / 3; min-height: 0; margin: 10px 0 10px 10px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.news-card-visual img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.news-card-visual > span:only-child { position: static; background: none; color: #fff; font-size: 1.3rem; font-weight: 700; padding: 0; }
.news-card-content { padding: 12px 18px; gap: 4px; }
.news-card-content h3 { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.news-card-content p { font-size: .9rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-content .text-link, .news-card-content .news-card-link { font-size: .88rem; padding-top: 2px; }
@media (max-width: 520px) {
    .news-list-card { grid-template-columns: 84px minmax(0, 1fr); }
    .news-card-content { padding: 10px 12px; }
}

/* Single announcement: modest image */
.news-detail-image { max-width: 560px; }
.news-detail-image img { max-height: 280px; }

/* Upcoming in-person days: one compact strip of date chips */
.schedule .upcoming {
    display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 8px 8px 8px 14px;
    border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0;
}
.schedule .upcoming-label { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: #14532d; white-space: nowrap; }
.schedule .upcoming ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.schedule .upcoming ul::-webkit-scrollbar { display: none; }
.schedule .upcoming a {
    display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
    padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #d1fae5; color: #14532d; font-size: .86rem;
}
.schedule .upcoming a:hover { border-color: #22c55e; color: #14532d; }
.schedule .upcoming a.this-week { background: #16a34a; border-color: #16a34a; color: #fff; }
.schedule .upcoming a.this-week small { color: #dcfce7; }
.schedule .upcoming strong { font-weight: 700; }
.schedule .upcoming small { color: #3f6b52; font-size: .8rem; }
@media (max-width: 640px) { .schedule .upcoming { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; } }

/* Day header: in-person / online pill; in-person days get a green frame */
.schedule .day-mode { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.schedule .day-mode.mode-in_person { background: #16a34a; color: #fff; }
.schedule .day-mode.mode-online { background: #dbeafe; color: #1e3a8a; }
.schedule .day.day-in_person { border: 2px solid #86efac; }
.schedule .day.day-in_person .day-head { background: #f0fdf4; }

/* In-person day spans the full week width; its lessons sit side by side */
.schedule .day.day-in_person { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.schedule .day.day-in_person > :is(.day-head, .day-marker, .empty) { grid-column: 1 / -1; }
.schedule .day.day-in_person .day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.schedule .day.day-in_person .day-head .day-date { display: inline; margin: 0; }
.schedule .day.day-in_person .day-head .day-mode { margin: 0; }
.schedule .day.day-in_person .today-pill { order: 9; margin-left: auto; }
.schedule .day.day-in_person > .lesson { border-bottom: 0; border-top: 1px solid var(--line); }
.schedule .day.day-in_person > .lesson + .lesson { box-shadow: inset 1px 0 0 var(--line); }
.schedule .mode-empty { padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--line); color: var(--muted); }
