/* Ghanata Senior High School - shared site stylesheet */
/* Local display and fallback fonts */
@font-face {
    font-family: "Lufga";
    src: url("../assets/fonts/Lufga-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lufga";
    src: url("../assets/fonts/Lufga-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Lufga";
    src: url("../assets/fonts/Lufga-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/Inter-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --green-950: #022f20;
    --green-900: #003f29;
    --green-800: #005735;
    --green-700: #006b3f;
    --green-100: #dff0e7;
    --green-50: #eef7f2;
    --gold-500: #f4cf22;
    --gold-400: #f8dc58;
    --ink-900: #14251d;
    --ink-700: #385047;
    --ink-500: #63736b;
    --white: #ffffff;
    --warm-50: #f8f7f2;
    --line: #dce6e0;
    --danger: #b42318;
    --shadow-sm: 0 8px 24px rgba(0, 50, 31, 0.08);
    --shadow-md: 0 18px 48px rgba(0, 50, 31, 0.14);
    --shadow-lg: 0 28px 72px rgba(0, 35, 22, 0.2);
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --container: min(1180px, calc(100% - 2rem));
    --header-height: 80px;
}

/* Reset and foundations */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    color: var(--ink-900);
    background: var(--white);
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
strong {
    font-family: Lufga, Inter, Arial, sans-serif;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h3 {
    line-height: 1.25;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.section {
    padding: clamp(4.75rem, 8vw, 8rem) 0;
}

.soft,
.programmes-section,
.alumni-services,
.lms-features {
    background: var(--warm-50);
}

.muted,
.prose {
    color: var(--ink-500);
}

.verification,
.verification-note {
    margin-top: 1.25rem;
    color: var(--ink-500);
    font-size: 0.78rem;
}

/* Accessibility */
.skip-link {
    position: fixed;
    top: -6rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--green-950);
    background: var(--white);
    box-shadow: var(--shadow-md);
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 4px;
}

/* Shared header and navigation */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    min-height: var(--header-height);
    padding: 0.7rem 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 35, 22, 0.7), rgba(0, 35, 22, 0.12));
    transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.inner-header,
.site-header.menu-open {
    padding: 0.55rem 0;
    background: rgba(0, 45, 29, 0.98);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--white);
    text-decoration: none;
}

.brand img {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-copy,
.brand>span {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.brand-copy strong,
.brand>span strong {
    font-size: 0.9rem;
}

.brand-copy small,
.brand>span small {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    opacity: 0.78;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 1.6vw, 1.5rem);
}

.primary-nav a {
    position: relative;
    padding: 0.45rem 0;
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gold-500);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active,
.primary-nav a[aria-current="page"] {
    color: var(--gold-400);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.active::after,
.primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.primary-nav .nav-cta {
    padding: 0.62rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-nav .nav-cta:hover {
    color: var(--green-950);
    background: var(--gold-500);
    border-color: var(--gold-500);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0.55rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons and labels */
.eyebrow,
.kicker,
.section-kicker {
    margin-bottom: 1rem;
    color: var(--gold-500);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.82rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.87rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.button-primary,
.primary {
    color: #172117;
    background: var(--gold-500);
}

.button-secondary,
.outline {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

.button-light {
    color: var(--green-950);
    background: var(--white);
}

.outline-dark {
    color: var(--green-800);
    background: var(--white);
    border-color: var(--green-700);
}

.disabled-link,
[aria-disabled="true"] {
    opacity: 0.62;
    cursor: not-allowed;
}

.actions,
.hero-actions,
.lms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.text-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--green-700);
    font-weight: 800;
    text-decoration: none;
}

/* Homepage hero */
.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(90deg, rgba(0, 42, 26, 0.96) 0%, rgba(0, 47, 29, 0.78) 48%, rgba(0, 28, 18, 0.25) 78%), linear-gradient(0deg, rgba(0, 30, 18, 0.45), transparent 55%), url('/assets/images/ghanata_campus_aerial_view_desktop.webp') center / cover no-repeat;
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: -2;
    background: url('/assets/images/ghanata_campus_aerial_view_desktop.webp') center / cover no-repeat;
}

.hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 42, 26, 0.96), rgba(0, 47, 29, 0.72), rgba(0, 28, 18, 0.2));
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: 9rem 0 6rem;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 1.4rem;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.058em;
}

.hero-lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.hero-logo,
.hero-mark {
    justify-self: end;
}

.hero-logo,
.hero-mark img {
    width: min(44vw, 500px);
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.28));
}

.hero-facts {
    display: flex;
    gap: clamp(1rem, 3vw, 2.25rem);
    margin: 2.4rem 0 0;
}

.hero-facts div {
    display: grid;
}

.hero-facts dt {
    font-family: Lufga, Inter, sans-serif;
    font-weight: 800;
}

.hero-facts dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
}

.scroll-cue {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    z-index: 2;
    color: var(--white);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
    opacity: 0.76;
}

/* Shared layouts and cards */
.split,
.split-grid,
.contact-grid,
.heritage-grid,
.anniversary-grid,
.alumni-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 7vw, 6rem);
}

.section-head,
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 3rem;
    align-items: end;
    margin-bottom: 2.75rem;
}

.section-head>p,
.section-heading>p {
    color: var(--ink-500);
}

.cards,
.card-grid,
.departments,
.department-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card,
.programme-card,
.service-card {
    position: relative;
    min-width: 0;
    padding: 1.8rem;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.programme-card:hover,
.service-card:hover {
    border-color: #bfd3c7;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card>span,
.programme-card>span,
.service-card>span {
    color: var(--green-700);
    font-family: Lufga, Inter, sans-serif;
    font-weight: 800;
}

.card h3,
.programme-card h3,
.service-card h3 {
    margin: 2rem 0 0.65rem;
    font-size: 1.2rem;
}

.card p,
.programme-card p,
.service-card p {
    margin-bottom: 0;
    color: var(--ink-500);
    font-size: 0.9rem;
}

/* Heritage and anniversary */
.heritage,
.heritage-section {
    background: var(--green-50);
}

.heritage-grid {
    align-items: center;
}

.heritage-image {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(145deg, var(--white), #e5eee9);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.heritage-image img {
    max-height: 680px;
    margin: auto;
    object-fit: contain;
}

.founder-name {
    display: grid;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.founder-name span {
    color: var(--green-700);
    font-size: 0.84rem;
}

blockquote {
    margin: 2rem 0;
    padding-left: 1.4rem;
    border-left: 5px solid var(--gold-500);
    font-family: Lufga, Inter, sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.35;
}

.anniversary,
.anniversary-section {
    overflow: hidden;
    color: var(--white);
    background: var(--green-900);
}

.anniversary .split,
.anniversary-grid {
    align-items: center;
}

.anniversary img,
.anniversary-grid>img {
    max-height: 500px;
    margin: auto;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.27));
}

.anniversary p:not(.kicker, .section-kicker) {
    color: rgba(255, 255, 255, 0.76);
}

/* Leadership gallery */
.leader-head,
.leadership-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.controls,
.gallery-controls {
    display: flex;
    gap: 0.6rem;
}

.controls button,
.gallery-button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--green-900);
    background: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.controls button:hover,
.gallery-button:hover {
    color: var(--white);
    background: var(--green-700);
    border-color: var(--green-700);
}

.leader-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 31%);
    gap: 1rem;
    padding: 0.35rem 0.15rem 1.2rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--green-700) var(--green-100);
    scrollbar-width: thin;
}

.leader-track::-webkit-scrollbar {
    height: 8px;
}

.leader-track::-webkit-scrollbar-track {
    background: var(--green-100);
    border-radius: 999px;
}

.leader-track::-webkit-scrollbar-thumb {
    background: var(--green-700);
    border-radius: 999px;
}

.leader,
.leader-card {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    scroll-snap-align: start;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.leader:hover,
.leader-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.leader-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(145deg, var(--white), #e8eee9);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
}

.leader-no,
.leader-number,
.current,
.current-badge {
    position: absolute;
    top: 0.8rem;
    display: grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.leader-no,
.leader-number {
    left: 0.8rem;
    color: var(--white);
    background: rgba(0, 63, 41, 0.94);
}

.current,
.current-badge {
    right: 0.8rem;
    color: var(--green-950);
    background: var(--gold-500);
}

.leader-info,
.leader-details {
    min-height: 150px;
    padding: 1.25rem;
    border-top: 4px solid var(--gold-500);
}

.leader-info p,
.leader-details p {
    margin-bottom: 0.4rem;
    color: var(--green-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.leader-info h3,
.leader-details h3 {
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.leader-info span,
.leader-details span {
    color: var(--ink-500);
    font-size: 0.8rem;
}

.gallery-instruction {
    margin: 0.8rem 0 0;
    color: var(--ink-500);
    font-size: 0.75rem;
}

/* Contact */
.contact-grid {
    align-items: start;
}

.contact-card {
    padding: 1.8rem;
    background: var(--warm-50);
    border-top: 5px solid var(--gold-500);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-card div {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-card div:last-of-type {
    border-bottom: 0;
}

.contact-card span {
    color: var(--ink-500);
    font-size: 0.7rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.contact-card a {
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--green-700);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Inner-page hero */
.inner-page {
    background: var(--white);
}

.page-hero {
    padding: 10.5rem 0 5.6rem;
    color: var(--white);
    background: radial-gradient(circle at 82% 30%, rgba(244, 207, 34, 0.2), transparent 24%), linear-gradient(135deg, var(--green-950), var(--green-700));
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 4rem;
    align-items: center;
}

.page-hero h1 {
    margin-bottom: 1.2rem;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.page-hero p:not(.eyebrow, .kicker) {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.06rem;
}

.page-hero img {
    width: 182px;
    justify-self: end;
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.24));
}

.page-section {
    padding-top: 7rem;
}

.info-banner,
.notice {
    padding: 1.35rem 1.5rem;
    background: var(--green-50);
    border-left: 5px solid var(--green-700);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-banner p,
.notice p {
    margin: 0.35rem 0 0;
    color: var(--ink-500);
}

/* Faculty */
.faculty-directory .notice,
.faculty-directory .info-banner {
    margin-bottom: 2rem;
}

.faculty-department-card {
    display: flex;
    min-height: 180px;
    flex-direction: column;
}

.faculty-department-card h3 {
    margin: 1.8rem 0 0.75rem;
}

.department-status {
    margin-top: auto;
    color: var(--ink-500);
    font-size: 0.8rem;
}

/* GOSA alumni */
.alumni-profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
}

.alumni-president-card {
    margin: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.alumni-president-card>img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background: var(--warm-50);
}

.alumni-president-copy {
    padding: 1.5rem;
    color: var(--white);
    background: var(--green-900);
    border-top: 5px solid var(--gold-500);
}

.alumni-president-copy p {
    margin: 0 0 0.3rem;
    color: var(--gold-500);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.alumni-president-copy h2 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.alumni-president-copy span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
}

.alumni-profile-copy>p:not(.section-kicker, .kicker) {
    color: var(--ink-500);
    font-size: 1.04rem;
}

.alumni-profile-copy>.info-banner,
.alumni-profile-copy>.notice {
    margin: 1.75rem 0;
}

/* LMS */
.lms-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.status,
.status-card {
    display: flex;
    gap: 1rem;
    padding: 1.8rem;
    background: var(--green-50);
    border: 1px solid #c9dfd2;
    border-radius: var(--radius-md);
}

.status {
    display: block;
}

.status b,
.status-card p:first-child {
    color: var(--green-700);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status h3,
.status-card h3 {
    margin: 0.3rem 0 0.6rem;
}

.status p:last-child,
.status-card p:last-child {
    margin-bottom: 0;
    color: var(--ink-500);
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    margin-top: 0.4rem;
    background: var(--gold-500);
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(244, 207, 34, 0.22);
}

/* CTA panel */
.compact-cta {
    padding-top: 0;
}

.cta,
.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: var(--white);
    background: linear-gradient(135deg, var(--green-950), var(--green-700));
    border-radius: var(--radius-lg);
}

.cta h2,
.cta-panel h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta p:not(.kicker, .section-kicker),
.cta-panel p:not(.kicker, .section-kicker) {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.76);
}

.cta .button,
.cta-panel .button {
    flex: 0 0 auto;
    color: var(--green-950);
    background: var(--white);
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    color: var(--white);
    background: #08261b;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand div {
    display: grid;
}

.footer-brand span {
    font-size: 0.76rem;
    opacity: 0.65;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.site-footer nav a {
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.75;
}

.site-footer nav a:hover {
    color: var(--gold-400);
    opacity: 1;
}

.site-footer p {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
    opacity: 0.62;
}

/* Tablet */
@media (max-width: 1000px) {
    :root {
        --header-height: 76px;
    }

    .menu-toggle {
        display: block;
        z-index: 2;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - var(--header-height));
        padding: 0.75rem max(1rem, calc((100% - var(--container)) / 2));
        overflow-y: auto;
        background: rgba(0, 45, 29, 0.99);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .primary-nav a::after {
        display: none;
    }

    .primary-nav .nav-cta {
        border: 0;
        border-radius: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo,
    .hero-mark {
        position: absolute;
        right: -5rem;
        bottom: 2rem;
        opacity: 0.22;
    }

    .hero-logo,
    .hero-mark img {
        width: 410px;
    }

    .hero-content,
    .hero-grid>div:first-child {
        position: relative;
        z-index: 1;
    }

    .cards,
    .card-grid,
    .departments,
    .department-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leader-track {
        grid-auto-columns: minmax(260px, 45%);
    }

    .page-hero-grid {
        grid-template-columns: minmax(0, 1fr) 130px;
        gap: 2rem;
    }

    .page-hero img {
        width: 125px;
    }

    .split,
    .split-grid,
    .contact-grid,
    .heritage-grid,
    .anniversary-grid,
    .section-head,
    .section-heading,
    .alumni-intro,
    .lms-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .section-heading {
        gap: 1rem;
    }

    .heritage-image {
        max-width: 520px;
        margin-inline: auto;
    }

    .anniversary-grid>img {
        width: min(100%, 360px);
        grid-row: 1;
    }

    .cta,
    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 680px) {
    :root {
        --container: min(100% - 1.25rem, 1180px);
        --header-height: 70px;
    }

    .brand img {
        width: 47px;
        height: 47px;
    }

    .brand-copy strong,
    .brand>span strong {
        font-size: 0.75rem;
    }

    .brand-copy small,
    .brand>span small {
        display: none;
    }

    .section {
        padding: 4.3rem 0;
    }

    .hero {
        min-height: 760px;
    }

    .hero-grid {
        padding: 8rem 0 5rem;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 13vw, 4.3rem);
    }

    .hero-logo,
    .hero-mark {
        display: none;
    }

    .hero-facts {
        justify-content: space-between;
        gap: 0.7rem;
    }

    .hero-facts dt {
        font-size: 0.86rem;
    }

    .hero-facts dd {
        font-size: 0.62rem;
    }

    .actions,
    .hero-actions,
    .lms-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .cards,
    .card-grid,
    .departments,
    .department-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .programme-card,
    .service-card {
        padding: 1.45rem;
    }

    .leader-head,
    .leadership-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .controls,
    .gallery-controls {
        display: none;
    }

    .leader-track {
        grid-auto-columns: 84%;
        margin-right: calc((100vw - 100%) / -2);
        padding-right: 1rem;
    }

    .page-hero {
        padding: 8.6rem 0 4rem;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
    }

    .page-hero img {
        display: none;
    }

    .page-hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.5rem);
    }

    .alumni-profile-grid {
        grid-template-columns: 1fr;
    }

    .alumni-president-card {
        width: min(100%, 460px);
        margin-inline: auto;
    }

    .cta,
    .cta-panel {
        padding: 2rem 1.4rem;
        border-radius: var(--radius-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        gap: 0.8rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Enlarge the founder portrait without changing the card size */
.leader-card--founder .leader-photo {
    overflow: hidden;
}

.leader-card--founder .leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1) scale(2.5);
    transform-origin: center top;

}
