/* ==========================================================================
   MASKILL – common.css
   Shared design system: tokens, base typography, layout, header/navigation,
   footer, buttons, cards, forms, lightbox and utilities.
   Page-specific styles live in wwwroot/css/<page>.css.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/inter-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
    --navy-950: #081726;
    --navy-900: #0C2036;
    --navy: #112B46;
    --navy-700: #1B3D60;
    --blue: #1765A3;
    --blue-600: #12568C;
    --blue-100: #D6E8F6;
    --blue-50: #EAF3FA;
    --teal: #087F88;
    --teal-700: #066870;
    --teal-50: #E5F4F5;
    --orange: #F29A38;
    --orange-600: #E3841A;
    --orange-700: #A3560A; /* orange for small text on light backgrounds (WCAG AA) */
    --orange-50: #FEF3E6;
    --brand-red: #D2232A;
    --brand-yellow: #FDB913;

    --bg: #FFFFFF;
    --bg-light: #F6F9FC;
    --bg-blue: #EAF3FA;
    --text: #1A2938;
    --text-2: #56687A;
    --text-on-dark: #E7EEF5;
    --text-on-dark-2: #B5C4D3;
    --border: #DFE7EF;
    --border-strong: #C7D4E1;
    --success: #138568;
    --success-50: #E7F5F0;
    --danger: #B42318;
    --danger-50: #FDECEA;

    --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-nav: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1rem;
    --fs-md: 1.0625rem;
    --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
    --fs-h1: clamp(2.125rem, 1.35rem + 3.3vw, 3.75rem);
    --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
    --fs-h3: clamp(1.1875rem, 1.08rem + 0.5vw, 1.4375rem);
    --fs-h4: 1.0625rem;

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

    --shadow-xs: 0 1px 2px rgba(17, 43, 70, 0.06);
    --shadow-sm: 0 1px 2px rgba(17, 43, 70, 0.05), 0 4px 12px rgba(17, 43, 70, 0.06);
    --shadow: 0 18px 40px -18px rgba(17, 43, 70, 0.22);
    --shadow-lg: 0 30px 70px -28px rgba(17, 43, 70, 0.35);

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-y: clamp(64px, 8.5vw, 120px);
    --header-h: 78px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --focus-ring: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--blue);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Author display rules (grid/flex) must never override the hidden attribute */
[hidden] {
    display: none !important;
}

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0 0 0.5em;
    font-family: var(--font-head);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--navy);
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.4; }

p {
    margin: 0 0 1.1em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--blue-600);
}

ul,
ol {
    margin: 0 0 1.1em;
    padding-left: 1.25em;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

address {
    font-style: normal;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 6px;
}

::selection {
    background: var(--blue-100);
    color: var(--navy);
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.2em;
}

.icon .icon-fill,
.icon-fill {
    fill: currentColor;
    stroke: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

main:focus {
    outline: none;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(860px + var(--gutter) * 2);
}

.section {
    padding-block: var(--section-y);
}

/* Let the browser skip rendering work for sections until they approach the viewport */
.section,
.cta-band {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.section--tight {
    padding-block: calc(var(--section-y) * 0.65);
}

.section--light {
    background: var(--bg-light);
}

.section--blue {
    background: var(--bg-blue);
}

.section--navy {
    background: var(--navy);
    color: var(--text-on-dark);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: #fff;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(32px, 4.5vw, 56px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head__title {
    margin-bottom: 0.4em;
}

.section-head__lead {
    font-size: var(--fs-lead);
    color: var(--text-2);
    margin: 0;
}

.section--navy .section-head__lead {
    color: var(--text-on-dark-2);
}

.section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: none;
}

.section-head--split > div {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--font-nav);
    font-size: var(--fs-xs);
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section-head--center .eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--orange);
}

.lead {
    font-size: var(--fs-lead);
    color: var(--text-2);
}

.grid {
    display: grid;
    gap: clamp(18px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

@media (min-width: 960px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }

    .split--reverse > :first-child {
        order: 2;
    }

    .split--wide-text {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.stack > * + * {
    margin-top: 1rem;
}

/* ---------- Paragraph alignment (all pages) ----------
   Body paragraphs are justified so both edges line up (owner request, 13 Nov 2026).
   common.js (initJustify) adds .is-justified only to paragraphs where justification does
   not open wide gaps between words – it measures each paragraph at the current screen width.
   Phones (< 576px), centred text and one-line text are never justified. */
@media (min-width: 576px) {
    main p.is-justified {
        text-align: justify;
        text-justify: inter-word;
    }
}

/* ---------- Rich text from the original website ---------- */
.prose {
    color: var(--text);
}

.prose p,
.prose li {
    color: #344658;
}

.prose h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    margin-top: 1.6em;
}

.prose h3 {
    margin-top: 1.4em;
}

.prose > :first-child {
    margin-top: 0;
}

.prose strong {
    color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--navy);
    --btn-fg: #fff;
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-nav);
    font-size: var(--fs-sm);
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(17, 43, 70, 0.45);
}

.btn:active {
    transform: translateY(0);
}

.btn .icon {
    transition: transform 0.2s var(--ease);
}

.btn:hover .icon:last-child {
    transform: translateX(2px);
}

.btn--accent {
    --btn-bg: var(--orange);
    --btn-fg: var(--navy-900);
}

.btn--accent:hover {
    --btn-bg: #F5A54C;
}

.btn--primary {
    --btn-bg: var(--blue);
}

.btn--primary:hover {
    --btn-bg: var(--blue-600);
}

.btn--navy {
    --btn-bg: var(--navy);
}

.btn--teal {
    --btn-bg: var(--teal);
}

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--navy);
    --btn-border: var(--border-strong);
}

.btn--outline:hover {
    --btn-border: var(--navy);
    --btn-fg: var(--navy);
    box-shadow: none;
}

.btn--ghost-light {
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
    --btn-bg: rgba(255, 255, 255, 0.16);
    --btn-border: rgba(255, 255, 255, 0.6);
}

.btn--sm {
    min-height: 42px;
    padding: 9px 16px;
    font-size: 0.875rem;
}

.btn--lg {
    min-height: 54px;
    padding: 14px 28px;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

@media (max-width: 480px) {
    .btn {
        white-space: normal;
        text-align: center;
    }
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-nav);
    font-weight: 750;
    font-size: var(--fs-sm);
    color: var(--blue);
    text-decoration: none;
}

.text-link:hover {
    color: var(--blue-600);
    text-decoration: underline;
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy-900);
    color: var(--text-on-dark-2);
    font-size: 0.8125rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

.topbar__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.topbar a,
.topbar__hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-on-dark-2);
    text-decoration: none;
}

.topbar a:hover {
    color: #fff;
}

.topbar .icon {
    color: var(--orange);
}

.social-list {
    display: flex;
    gap: 8px;
}

.social-list a {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-list a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--navy-900);
}

.social-list--topbar a {
    width: 30px;
    height: 30px;
    border: 0;
}

.social-list--topbar a .icon {
    color: currentColor;
}

@media (max-width: 767.98px) {
    .topbar__hours,
    .social-list--topbar {
        display: none;
    }

    .topbar__contact {
        justify-content: center;
        width: 100%;
    }

    .topbar__contact li:nth-child(2) span {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 400px) {
    .topbar__contact li:nth-child(2) {
        display: none;
    }
}

/* ---------- Header & primary navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

/* Desktop only: backdrop-filter makes the header the containing block for fixed
   descendants, which would trap the mobile navigation drawer inside the header. */
@supports (backdrop-filter: blur(10px)) {
    @media (min-width: 1200px) {
        .site-header {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: saturate(160%) blur(12px);
        }
    }
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -18px rgba(17, 43, 70, 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    flex: none;
    margin-right: auto;
    border-radius: 8px;
}

.brand__logo {
    width: clamp(150px, 15vw, 188px);
    height: auto;
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.primary-nav__item {
    position: relative;
}

.primary-nav__row {
    display: flex;
    align-items: center;
}

.primary-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    font-family: var(--font-nav);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.primary-nav__link:hover,
.primary-nav__item.is-active > .primary-nav__row > .primary-nav__link,
.primary-nav__item.is-active > .primary-nav__link {
    color: var(--blue);
}

.primary-nav__item.is-active > .primary-nav__link::after,
.primary-nav__item.is-active > .primary-nav__row > .primary-nav__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--orange);
}

.has-dropdown .primary-nav__row > a.primary-nav__link {
    padding-right: 4px;
}

.primary-nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 34px;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--navy);
}

.primary-nav__chevron,
.primary-nav__toggle .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s var(--ease);
}

.primary-nav__extras {
    display: none;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 260px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.dropdown__link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: var(--font-nav);
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--navy);
    text-decoration: none;
}

.dropdown__link:hover,
.dropdown__link[aria-current="page"] {
    background: var(--blue-50);
    color: var(--blue);
}

.site-header__cta {
    flex: none;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
}

.nav-toggle .icon {
    width: 24px;
    height: 24px;
}

.nav-toggle__close {
    display: none;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(8, 23, 38, 0.5);
}

@media (min-width: 1200px) {
    .has-dropdown:hover > .dropdown,
    .has-dropdown:focus-within > .dropdown,
    .has-dropdown.is-open > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-dropdown:hover .primary-nav__chevron,
    .has-dropdown:hover .primary-nav__toggle .icon,
    .has-dropdown.is-open .primary-nav__chevron,
    .has-dropdown.is-open .primary-nav__toggle .icon {
        transform: rotate(180deg);
    }

    .nav-backdrop {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    :root {
        --header-h: 68px;
    }

    .nav-toggle {
        display: inline-grid;
    }

    .site-header__cta {
        display: none;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 110;
        display: flex;
        flex-direction: column;
        width: min(380px, 88vw);
        padding: 84px 20px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s var(--ease), visibility 0.3s;
    }

    .nav-open .primary-nav {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-open .nav-toggle {
        position: fixed;
        top: 12px;
        right: var(--gutter);
        z-index: 120;
    }

    .nav-open .nav-toggle__open {
        display: none;
    }

    .nav-open .nav-toggle__close {
        display: block;
    }

    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-nav__item {
        border-bottom: 1px solid var(--border);
    }

    .primary-nav__row {
        justify-content: space-between;
    }

    .primary-nav__link,
    .has-dropdown .primary-nav__row > a.primary-nav__link {
        flex: 1;
        padding: 14px 4px;
        font-size: 1rem;
        justify-content: space-between;
    }

    .primary-nav__item.is-active > .primary-nav__link::after,
    .primary-nav__item.is-active > .primary-nav__row > .primary-nav__link::after {
        display: none;
    }

    .primary-nav__toggle {
        width: 44px;
        height: 44px;
        margin: 0;
        border-radius: 10px;
        background: var(--bg-light);
    }

    .dropdown {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 12px 10px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown::before {
        display: none;
    }

    .has-dropdown.is-open > .dropdown {
        display: block;
    }

    .has-dropdown.is-open .primary-nav__chevron,
    .has-dropdown.is-open .primary-nav__toggle .icon {
        transform: rotate(180deg);
    }

    .dropdown__link {
        padding: 10px 12px;
        font-size: 0.9375rem;
    }

    .primary-nav__extras {
        display: grid;
        gap: 14px;
        margin-top: 28px;
    }

    .primary-nav__contact {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: var(--fs-sm);
        color: var(--text-2);
        text-decoration: none;
        word-break: break-all;
    }
}

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: var(--text-on-dark);
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(8, 23, 38, 0.94) 0%, rgba(12, 32, 54, 0.86) 42%, rgba(17, 43, 70, 0.55) 72%, rgba(17, 43, 70, 0.35) 100%);
}

.page-hero--plain::before {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(23, 101, 163, 0.55), transparent 65%),
        radial-gradient(700px 360px at 0% 120%, rgba(8, 127, 136, 0.35), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 70px solid rgba(242, 154, 56, 0.12);
}

.page-hero__inner {
    padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px);
    max-width: calc(var(--container) + var(--gutter) * 2);
}

.page-hero__title {
    max-width: 880px;
    margin-bottom: 0.35em;
    color: #fff;
    font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}

.page-hero__lead {
    max-width: 720px;
    margin: 0;
    font-size: var(--fs-lead);
    color: var(--text-on-dark-2);
}

.page-hero__note {
    position: absolute;
    right: var(--gutter);
    bottom: 14px;
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-on-dark-2);
}

.breadcrumb li + li::before {
    content: "/";
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--orange);
    font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
    position: relative;
    height: 100%;
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card--hover:hover {
    transform: translateY(-4px);
    border-color: var(--blue-100);
    box-shadow: var(--shadow);
}

.card__title {
    margin-bottom: 0.45em;
}

.card p {
    color: var(--text-2);
}

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--blue-50);
    color: var(--blue);
}

.icon-badge .icon {
    width: 26px;
    height: 26px;
}

.icon-badge--teal {
    background: var(--teal-50);
    color: var(--teal);
}

.icon-badge--orange {
    background: var(--orange-50);
    color: var(--orange-600);
}

.icon-badge--navy {
    background: var(--navy);
    color: #fff;
}

.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: var(--bg-light);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(8, 23, 38, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    color: #344658;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087F88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.section--navy .check-list li {
    color: var(--text-on-dark);
}

.section--navy .check-list li::before {
    background-color: rgba(255, 255, 255, 0.1);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.3;
}

.chip--teal {
    background: var(--teal-50);
    color: var(--teal-700);
}

.chip--orange {
    background: var(--orange-50);
    color: #9A5207;
}

.notice {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-light);
    font-size: var(--fs-sm);
    color: var(--text-2);
}

.notice .icon {
    margin-top: 3px;
    color: var(--blue);
}

/* ---------- Course card ---------- */
.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

.course-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.course-card:hover .course-card__img {
    transform: scale(1.05);
}

.course-card__note {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: rgba(8, 23, 38, 0.65);
    color: #fff;
    font-size: 0.6875rem;
}

.course-card__body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 clamp(20px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px);
}

.icon-badge--float {
    margin-top: -28px;
    background: var(--navy);
    color: #fff;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
}

.course-card__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.course-card__title a {
    color: inherit;
    text-decoration: none;
}

.course-card__title a:hover {
    color: var(--blue);
}

.course-card__summary {
    font-size: var(--fs-sm);
    color: var(--text-2);
}

.course-card__meta {
    display: grid;
    gap: 10px;
    margin: 6px 0 22px;
    padding: 16px 0 0;
    border-top: 1px dashed var(--border-strong);
    font-size: 0.875rem;
}

.course-card__meta > div {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 10px;
}

.course-card__meta dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-weight: 500;
}

.course-card__meta dt .icon {
    color: var(--teal);
}

.course-card__meta dd {
    margin: 0;
    font-weight: 650;
    color: var(--navy);
}

.course-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* ---------- Testimonial card ---------- */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: clamp(24px, 2.8vw, 34px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.testimonial-card__mark {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    color: var(--orange);
    fill: currentColor;
    stroke: none;
    opacity: 0.9;
}

.testimonial-card__quote {
    flex: 1;
    margin: 0 0 22px;
}

.testimonial-card__quote p {
    color: #344658;
    font-size: var(--fs-sm);
    line-height: 1.75;
}

.testimonial-card__person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.testimonial-card__photo {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border);
}

.testimonial-card__person > span {
    display: grid;
    gap: 2px;
}

.testimonial-card__name {
    font-family: var(--font-head);
    font-weight: 750;
    color: var(--navy);
}

.testimonial-card__programme {
    font-size: 0.8125rem;
    color: var(--teal);
    font-weight: 600;
}

.testimonial-card__placed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-2);
}

.testimonial-card__placed .icon {
    color: var(--orange-600);
}

/* ---------- CTA band ---------- */
.cta-band {
    padding-block: clamp(48px, 7vw, 96px);
}

.cta-band__card {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 28px;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(23, 101, 163, 0.6), transparent 70%),
        radial-gradient(500px 280px at 0% 100%, rgba(8, 127, 136, 0.45), transparent 70%),
        var(--navy);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-lg);
}

.cta-band__card::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    z-index: -1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 56px solid rgba(242, 154, 56, 0.16);
}

.cta-band__title {
    color: #fff;
    margin-bottom: 0.35em;
}

.cta-band__copy p:last-child {
    color: var(--text-on-dark-2);
    max-width: 620px;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.cta-band__link {
    color: #fff;
    font-family: var(--font-nav);
    font-weight: 700;
    text-underline-offset: 4px;
}

.cta-band__link:hover {
    color: var(--orange);
}

@media (min-width: 1024px) {
    .cta-band__card {
        grid-template-columns: 1.2fr auto;
        align-items: center;
    }

    .cta-band__actions {
        justify-content: flex-end;
        max-width: 420px;
    }
}

/* ---------- Course page hero (shared by all course pages) ---------- */
.course-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: var(--text-on-dark);
}

.course-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.course-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(8, 23, 38, 0.96) 0%, rgba(12, 32, 54, 0.9) 45%, rgba(17, 43, 70, 0.5) 75%, rgba(17, 43, 70, 0.2) 100%);
}

.course-hero__note {
    position: absolute;
    right: var(--gutter);
    bottom: 14px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(8, 23, 38, 0.6);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.course-hero__inner {
    padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px);
}

.course-hero__copy {
    max-width: 800px;
}

.course-hero__title {
    margin-bottom: 0.35em;
    color: #fff;
    font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
}

.course-hero__lead {
    max-width: 640px;
    font-size: var(--fs-lead);
    color: var(--text-on-dark-2);
}

.course-hero__facts {
    display: grid;
    gap: 12px;
    margin: 28px 0 32px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
}

.course-hero__facts > div {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.course-hero__facts dt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.8125rem;
    color: var(--text-on-dark-2);
}

.course-hero__facts dt .icon {
    color: var(--orange);
}

.course-hero__facts dd {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

@media (max-width: 767.98px) {
    .course-hero::before {
        background: linear-gradient(180deg, rgba(8, 23, 38, 0.8) 0%, rgba(8, 23, 38, 0.95) 60%);
    }

    .course-hero .btn-row .btn {
        flex: 1 1 100%;
    }
}

/* ---------- In-page section navigation (course pages) ---------- */
.section-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
}

.section-nav__list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.section-nav__list::-webkit-scrollbar {
    display: none;
}

.section-nav a {
    display: block;
    padding: 16px 14px;
    border-bottom: 2px solid transparent;
    font-family: var(--font-nav);
    font-size: 0.875rem;
    font-weight: 750;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
}

.section-nav a:hover {
    color: var(--navy);
}

.section-nav a.is-current {
    border-bottom-color: var(--orange);
    color: var(--navy);
}

[data-spy-section] {
    scroll-margin-top: calc(var(--header-h) + 64px);
}

/* ---------- Tabs (progressively enhanced; without JS all panels show) ---------- */
.tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
}

.tabs__list[hidden] {
    display: none;
}

.tabs__tab {
    flex: 1 1 auto;
    min-height: 46px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-family: var(--font-nav);
    font-size: 0.9375rem;
    font-weight: 750;
    color: var(--text-2);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tabs__tab:hover {
    color: var(--navy);
}

.tabs__tab[aria-selected="true"] {
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.tabs__panel + .tabs__panel {
    margin-top: 40px;
}

.tabs.is-enhanced .tabs__panel + .tabs__panel {
    margin-top: 0;
}

.tabs.is-enhanced .tabs__panel-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ---------- Numbered module grid (course pages) ---------- */
.module-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    counter-reset: module;
}

.module-grid li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy);
    counter-increment: module;
}

.module-grid li::before {
    content: counter(module, decimal-leading-zero);
    flex: none;
    min-width: 30px;
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--orange-700);
}

.module-grid li strong {
    display: block;
}

.module-grid li span {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    font-size: var(--fs-sm);
    color: var(--text-2);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: #fff;
    font-weight: 650;
    font-size: var(--fs-sm);
    color: var(--navy);
}

.pill-list .icon {
    color: var(--teal);
}

/* ---------- "Explore more" links between About Us pages ---------- */
.about-nav__title {
    margin-bottom: 22px;
    font-size: 1.375rem;
}

.about-nav__list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.about-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font-family: var(--font-nav);
    font-weight: 750;
    color: var(--navy);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.about-nav__link:hover {
    color: var(--navy);
    border-color: var(--blue-100);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.about-nav__link .icon-badge {
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
}

.about-nav__link .icon-badge .icon {
    width: 21px;
    height: 21px;
}

.about-nav__link > span:nth-child(2) {
    flex: 1;
}

.about-nav__arrow {
    color: var(--blue);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: var(--text-on-dark-2);
    font-size: var(--fs-sm);
}

.site-footer a {
    color: var(--text-on-dark);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--orange);
    text-decoration: underline;
}

.site-footer__grid {
    display: grid;
    gap: 40px 32px;
    padding-block: clamp(56px, 7vw, 88px) 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: 1.35fr 1fr 0.9fr 1.25fr;
    }
}

.site-footer__logo {
    display: inline-block;
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background: #fff;
}

.site-footer__logo img {
    width: 170px;
}

.site-footer__brand p {
    max-width: 360px;
    margin-bottom: 20px;
}

.site-footer__title {
    margin-bottom: 18px;
    font-family: var(--font-nav);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer__links {
    display: grid;
    gap: 10px;
}

.site-footer__links--external .icon {
    width: 13px;
    height: 13px;
    margin-left: 4px;
    opacity: 0.6;
}

.site-footer__contact p {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.site-footer__contact .icon {
    margin-top: 4px;
    color: var(--orange);
}

.site-footer__secondary {
    display: grid;
    gap: 32px;
    padding-block: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 960px) {
    .site-footer__secondary {
        grid-template-columns: 1.2fr 1fr;
        align-items: start;
    }
}

.managed-by__label {
    margin-bottom: 14px;
    font-family: var(--font-nav);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.managed-by__body {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}

.managed-by__logo {
    width: 150px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: #fff;
}

.managed-by__body p {
    margin-bottom: 6px;
}

.managed-by__name {
    font-family: var(--font-head);
    font-weight: 750;
    font-size: 1.0625rem;
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
}

.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 20px;
}

.site-footer__bottom p {
    margin: 0;
}

/* ---------- Mobile CTA bar & back to top ---------- */
.mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    display: none;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px -12px rgba(8, 23, 38, 0.45);
    transform: translateY(140%);
    transition: transform 0.3s var(--ease);
}

.mobile-cta.is-visible {
    transform: translateY(0);
}

.mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 11px;
    font-family: var(--font-nav);
    font-weight: 800;
    font-size: 0.9375rem;
    text-decoration: none;
}

/* Scoped under .mobile-cta so the footer link colours (the bar sits inside the footer) do not apply */
.mobile-cta a.mobile-cta__call,
.mobile-cta a.mobile-cta__call:hover {
    background: var(--blue-50);
    color: var(--navy);
    text-decoration: none;
}

.mobile-cta a.mobile-cta__register,
.mobile-cta a.mobile-cta__register:hover {
    background: var(--orange);
    color: var(--navy-900);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .mobile-cta {
        display: grid;
    }

    .site-footer__bottom {
        padding-bottom: 76px;
    }
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--blue);
}

.back-to-top[hidden] {
    display: none;
}

@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 88px;
        right: 16px;
    }
}

/* ---------- Forms (Register Now, Contact Us) ---------- */
.form-card {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .field--full {
        grid-column: 1 / -1;
    }
}

.form-section-title {
    grid-column: 1 / -1;
    margin: 8px 0 -4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-nav);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
}

.field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.field label {
    font-weight: 650;
    font-size: var(--fs-sm);
    color: var(--navy);
}

.field .required {
    color: var(--danger);
    margin-left: 2px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #8696A6;
}

.field input:hover,
.field textarea:hover {
    border-color: #A9BACB;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23, 101, 163, 0.15);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field input.input-validation-error,
.field textarea.input-validation-error {
    border-color: var(--danger);
    background: #FFFBFA;
}

.field__hint {
    font-size: 0.8125rem;
    color: var(--text-2);
}

.field__error,
.field-validation-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--danger);
}

.field__error:empty,
.field-validation-valid {
    display: none;
}

.form-alert {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: var(--fs-sm);
}

.form-alert .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.form-alert h2,
.form-alert h3 {
    margin-bottom: 4px;
    font-size: 1.0625rem;
    color: inherit;
}

.form-alert p {
    margin: 0;
}

.form-alert--success {
    border-color: #A6D8C7;
    background: var(--success-50);
    color: #0B5C47;
}

.form-alert--error {
    border-color: #F3B7B0;
    background: var(--danger-50);
    color: #8A1C12;
}

.form-alert ul {
    margin: 6px 0 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 28px;
}

.form-note {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-2);
}

/* Honeypot field: hidden from people, visible to naive bots */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Lightbox (shared by gallery, course pages and certificates) ---------- */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(5, 14, 24, 0.94);
}

.lightbox[open] {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px clamp(14px, 3vw, 28px);
}

.lightbox__counter {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.lightbox__tools {
    display: flex;
    gap: 8px;
}

.lightbox__btn {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.lightbox__btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.lightbox__btn .icon {
    width: 22px;
    height: 22px;
}

.lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0 clamp(8px, 7vw, 96px);
    overflow: auto;
    touch-action: pan-y pinch-zoom;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox.is-zoomed .lightbox__stage {
    place-items: start center;
    cursor: zoom-out;
}

.lightbox.is-zoomed .lightbox__img {
    max-width: none;
    max-height: none;
    width: min(1800px, 180vw);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }

.lightbox__caption {
    margin: 0;
    padding: 14px clamp(14px, 3vw, 28px) 22px;
    text-align: center;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
    .lightbox__nav {
        top: auto;
        bottom: 8px;
        transform: none;
    }
}

/* Thumbnails that open the lightbox */
.lightbox-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-light);
    cursor: zoom-in;
}

.lightbox-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.lightbox-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 23, 38, 0.55));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.lightbox-trigger:hover img,
.lightbox-trigger:focus-visible img {
    transform: scale(1.04);
}

.lightbox-trigger:hover::after,
.lightbox-trigger:focus-visible::after {
    opacity: 1;
}

.lightbox-trigger__icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.lightbox-trigger:hover .lightbox-trigger__icon,
.lightbox-trigger:focus-visible .lightbox-trigger__icon {
    opacity: 1;
    transform: none;
}

/* ---------- Document viewer (certificates, disclosure) ---------- */
.doc-viewer {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

@media (min-width: 1000px) {
    .doc-viewer {
        grid-template-columns: 1.35fr 0.9fr;
    }
}

.doc-viewer__frame {
    padding: clamp(12px, 2vw, 22px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff, var(--bg-light));
    box-shadow: var(--shadow);
}

.doc-viewer__frame .lightbox-trigger {
    border-radius: 12px;
}

.doc-viewer__title {
    margin: 14px 0 18px;
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
}

.doc-details {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
}

.doc-details > div {
    display: grid;
    gap: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.doc-details dt {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-2);
}

.doc-details dd {
    margin: 0;
    font-weight: 650;
    color: var(--navy);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill--current {
    background: var(--success-50);
    color: #0B5C47;
}

.status-pill--archived {
    background: #EEF1F4;
    color: #5B6B7B;
}

/* ---------- Reveal on scroll (JS adds .reveal-pending only to off-screen elements) ---------- */
.reveal-pending {
    opacity: 0;
    transform: translateY(22px);
}

.reveal-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-pending {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Print ---------- */
@media print {
    .topbar,
    .site-header,
    .site-footer,
    .mobile-cta,
    .back-to-top,
    .cta-band {
        display: none !important;
    }

    .page-hero {
        background: none;
        color: #000;
    }

    .page-hero__title {
        color: #000;
    }
}
