/* ============================================================
   PICO — Pakistan International College of Ophthalmology
   style.css  |  Government / Academic Design System
   Author   : PICO IT Team
   Version  : 1.0.0
   Created  : February 2026
   ============================================================ */

/* ─────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
   ───────────────────────────────────────── */
:root {
    /* Palette */
    --navy: #0b3d91;
    /* primary brand */
    --navy-dark: #072d6e;
    --navy-light: #1a52b0;
    --green: #0f5132;
    /* secondary brand */
    --green-light: #157347;
    --gold: #c9a84c;
    /* accent / headings */
    --gold-light: #e2c06e;
    --white: #ffffff;
    --grey-50: #f8f9fa;
    --grey-100: #e9ecef;
    --grey-200: #dee2e6;
    --grey-400: #adb5bd;
    --grey-600: #6c757d;
    --grey-800: #343a40;
    --grey-900: #212529;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', Arial, Helvetica, sans-serif;

    /* Spacing scale */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;

    /* Sizing */
    --max-width: 1200px;
    --nav-h: 70px;
    --bar-h: 40px;

    /* Borders / Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .2);

    /* Transitions */
    --t-fast: 180ms ease;
    --t-mid: 300ms ease;
}

/* ─────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--grey-900);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ─────────────────────────────────────────
   3. UTILITY CLASSES
   ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--sp-lg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--sp-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: var(--sp-md);
}

.section-title--white {
    color: var(--white);
}

.section-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin-bottom: var(--sp-xl);
}

.section-divider--center {
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 0.72rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    text-align: center;
}

.btn--primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}

/* Focus ring */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* ─────────────────────────────────────────
   4. NOTIFICATION BAR
   ───────────────────────────────────────── */
.notif-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--bar-h);
    background: linear-gradient(90deg, var(--green) 0%, #0d6740 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
}

@media (max-width: 768px) {
    .notif-bar__inner {
        button {
            display: none;
        }
    }
}

.notif-bar__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--sp-md);
}

.notif-bar__icon {
    font-size: 1rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

.notif-bar__text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.04em;
}

.notif-bar__badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--gold);
    color: var(--grey-900);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .notif-bar__badge {
        display: none;
    }
}

/* ─────────────────────────────────────────
   5. STICKY NAVIGATION
   ───────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--nav-h);
    background: var(--navy);
    box-shadow: var(--shadow-md);
    transition: background var(--t-mid), box-shadow var(--t-mid);
}

.site-nav.scrolled {
    background: rgba(11, 61, 145, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo__emblem {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .25);
}

.nav-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo__abbr {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.nav-logo__full {
    font-size: 0.58rem;
    color: var(--gold-light);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 180px;
    line-height: 1.3;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
}

.nav-links__item {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
}

.nav-links__item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t-fast);
    border-radius: 2px;
}

.nav-links__item:hover,
.nav-links__item:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.nav-links__item:hover::after,
.nav-links__item:focus-visible::after,
.nav-links__item[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-links__item[aria-current="page"] {
    color: var(--gold-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--t-mid), opacity var(--t-mid), width var(--t-mid);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: calc(var(--bar-h) + var(--nav-h));
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: var(--sp-md) var(--sp-lg);
    z-index: 998;
    border-top: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform var(--t-mid), opacity var(--t-mid);
}

.nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
}

.nav-drawer__link {
    display: block;
    padding: var(--sp-sm) 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    letter-spacing: 0.03em;
    transition: color var(--t-fast), padding-left var(--t-fast);
}

.nav-drawer__link:hover {
    color: var(--gold-light);
    padding-left: var(--sp-sm);
}

.nav-drawer__link:last-child {
    border-bottom: none;
}

/* ─────────────────────────────────────────
   6. PAGE OFFSET (for fixed bars)
   ───────────────────────────────────────── */
main {
    padding-top: calc(var(--bar-h) + var(--nav-h));
}

/* ─────────────────────────────────────────
   7. HERO SECTION
   ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #061f4a 0%, var(--navy) 50%, #123d7a 100%);
}

/* Geometric decorative layers */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201, 168, 76, .07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(15, 81, 50, .3) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

@media (max-width: 768px) {
    .hero::after {
        height: 36px;
        clip-path: ellipse(60% 100% at 50% 100%);
    }
}

/* Decorative grid pattern */
.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Decorative ring ornaments */
.hero__ornament {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, .15);
    pointer-events: none;
}

.hero__ornament--1 {
    width: 500px;
    height: 500px;
    top: -120px;
    right: -120px;
    border-width: 2px;
    border-color: rgba(201, 168, 76, .1);
    animation: slow-spin 40s linear infinite;
}

.hero__ornament--2 {
    width: 300px;
    height: 300px;
    bottom: 60px;
    right: 80px;
    border-color: rgba(255, 255, 255, .06);
    animation: slow-spin 28s linear infinite reverse;
}

.hero__ornament--3 {
    width: 160px;
    height: 160px;
    top: 100px;
    left: 60px;
    border-color: rgba(201, 168, 76, .08);
    animation: slow-spin 20s linear infinite;
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Hero content */
.hero__content {
    position: relative;
    z-index: 2;
    padding-block: var(--sp-3xl);
    max-width: 760px;
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    animation: fade-up 0.7s var(--t-mid) both;
}

.hero__eyebrow-line {
    flex: 0 0 36px;
    height: 2px;
    background: var(--gold);
}

.hero__eyebrow-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: var(--sp-lg);
    animation: fade-up 0.7s 0.1s var(--t-mid) both;
}

.hero__title em {
    font-style: normal;
    color: var(--gold-light);
}

.hero__subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, .82);
    max-width: 600px;
    margin-bottom: var(--sp-xl);
    line-height: 1.75;
    animation: fade-up 0.7s 0.2s var(--t-mid) both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    margin-bottom: var(--sp-2xl);
    animation: fade-up 0.7s 0.3s var(--t-mid) both;
}

/* Under-development notice box */
.dev-notice {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--sp-md);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(201, 168, 76, .35);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: var(--sp-md) var(--sp-lg);
    max-width: 560px;
    backdrop-filter: blur(4px);
    animation: fade-up 0.7s 0.4s var(--t-mid) both;
}

.dev-notice__icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.dev-notice__body {}

.dev-notice__heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.dev-notice__text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
}

.dev-notice__text strong {
    color: var(--white);
}

/* Hero stats strip */
.about__visual .hero__stat {
    padding: var(--sp-md) var(--sp-lg);
    text-align: center;
    background: rgba(11, 61, 145, .6);
    backdrop-filter: blur(6px);
}

.hero__stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.hero__stat-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-left {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─────────────────────────────────────────
   8. ABOUT SECTION
   ───────────────────────────────────────── */
.about {
    padding-block: var(--sp-3xl);
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: center;
}

@media(max-width: 768px) {
    .about__grid {
        display: flex;
        flex-direction: column-reverse;
        margin-bottom: var(--sp-3xl);
    }
}

.about__visual {
    position: relative;
}

.about__img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--navy) 0%, #1a4fa0 50%, var(--navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-md);
    color: rgba(255, 255, 255, .7);
    text-align: center;
    padding: var(--sp-xl);
}

.about__img-icon {
    font-size: 4rem;
    display: block;
}

.about__img-caption {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* Gold accent badge */
.about__badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    text-align: center;
    padding: var(--sp-sm);
}

.about__badge-year {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1;
}

.about__badge-text {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-dark);
    line-height: 1.3;
    margin-top: 3px;
}

.about__text p {
    color: var(--grey-800);
    margin-bottom: var(--sp-md);
    font-size: 0.97rem;
    line-height: 1.8;
}

.about__text p:last-of-type {
    margin-bottom: var(--sp-xl);
}

/* Credential strip */
.about__creds {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.cred-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.cred-tag__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   9. MISSION & VISION SECTION
   ───────────────────────────────────────── */
.mission {
    padding-block: var(--sp-3xl);
    background: var(--grey-50);
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}

.mission__header {
    text-align: center;
    margin-bottom: var(--sp-2xl);
}

.mission__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.mv-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid transparent;
    transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, linear-gradient(90deg, var(--navy), var(--navy-light)));
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mv-card--mission {
    --card-accent: linear-gradient(90deg, var(--navy), var(--navy-light));
}

.mv-card--vision {
    --card-accent: linear-gradient(90deg, var(--green), var(--green-light));
}

.mv-card--values {
    --card-accent: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.mv-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--sp-md);
}

.mv-card--mission .mv-card__icon-wrap {
    background: rgba(11, 61, 145, .08);
}

.mv-card--vision .mv-card__icon-wrap {
    background: rgba(15, 81, 50, .08);
}

.mv-card--values .mv-card__icon-wrap {
    background: rgba(201, 168, 76, .12);
}

.mv-card__title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--sp-sm);
}

.mv-card__text {
    font-size: 0.9rem;
    color: var(--grey-600);
    line-height: 1.75;
    margin-bottom: var(--sp-md);
}

.mv-card__list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.mv-card__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
    font-size: 0.85rem;
    color: var(--grey-800);
    line-height: 1.5;
}

.mv-card__list li::before {
    content: '✦';
    color: var(--gold);
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ─────────────────────────────────────────
   10. PROGRAMS BANNER (Teaser)
   ───────────────────────────────────────── */
.programs-teaser {
    padding-block: var(--sp-3xl);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #163d7a 100%);
    position: relative;
    overflow: hidden;
}

.programs-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.programs-teaser__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.programs-teaser__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, .75);
    max-width: 580px;
    margin: 0 auto var(--sp-2xl);
    line-height: 1.75;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-md);
    margin-bottom: var(--sp-2xl);
}

.program-pill {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    padding: var(--sp-md) var(--sp-lg);
    text-align: center;
    transition: background var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
}

.program-pill:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(201, 168, 76, .4);
    transform: translateY(-3px);
}

.program-pill__icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: var(--sp-sm);
}

.program-pill__name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.program-pill__level {
    font-size: 0.72rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────
   11. AFFILIATIONS — Rich Card Section
   ───────────────────────────────────────── */

/* Section wrapper: deep navy with diagonal stripe texture */
.affiliations {
    padding-block: var(--sp-3xl);
    background: linear-gradient(150deg, #061a3a 0%, #0b3d91 55%, #0c2d6a 100%);
    position: relative;
    overflow: hidden;
}

/* Diagonal stripe overlay */
.affiliations::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-55deg,
            rgba(255, 255, 255, .025) 0px,
            rgba(255, 255, 255, .025) 1px,
            transparent 1px,
            transparent 28px);
    pointer-events: none;
}

/* Soft radial glow top-right */
.affiliations::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(201, 168, 76, .12) 0%, transparent 70%);
    pointer-events: none;
}

/* Section header */
.affiliations__header {
    text-align: center;
    margin-bottom: var(--sp-2xl);
    position: relative;
    z-index: 1;
}

.affiliations__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    display: block;
    margin-bottom: var(--sp-sm);
}

.affiliations__title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: var(--sp-md);
}

.affiliations__divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin-inline: auto;
}

/* Cards grid */
.affiliations__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-md);
    position: relative;
    z-index: 1;
}

/* Individual affiliation card */
.affil-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    padding: var(--sp-lg) var(--sp-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-sm);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition:
        transform var(--t-mid),
        box-shadow var(--t-mid),
        background var(--t-mid),
        border-color var(--t-mid);
}

/* Top accent bar — colour injected per card via custom property */
.affil-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ac, var(--gold));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Bottom-right decorative glow blob */
.affil-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--ac, var(--gold)) 0%, transparent 70%);
    opacity: .08;
    pointer-events: none;
    transition: opacity var(--t-mid);
}

.affil-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .35), 0 0 0 1px var(--ac, var(--gold)) inset;
}

.affil-card:hover::after {
    opacity: .18;
}

/* Per-card accent colours */
.affil-card--cpsp {
    --ac: #4e9af1;
}

/* sky blue   */
.affil-card--mayo {
    --ac: #4caf7d;
}

/* teal-green */
.affil-card--pmc {
    --ac: #e8875a;
}

/* warm amber */
.affil-card--ico {
    --ac: #c9a84c;
}

/* gold       */
.affil-card--hec {
    --ac: #b06fd8;
}

/* violet     */

/* Icon frame */
.affil-card__icon-frame {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 2px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 4px;
    flex-shrink: 0;
    transition: background var(--t-mid), border-color var(--t-mid);
    box-shadow: 0 0 0 0 var(--ac, var(--gold));
}

.affil-card:hover .affil-card__icon-frame {
    background: rgba(255, 255, 255, .13);
    border-color: var(--ac, var(--gold));
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

/* Abbreviation badge */
.affil-card__abbr {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-900);
    background: var(--ac, var(--gold));
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.6;
}

/* Full name */
.affil-card__name {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
}

/* Sub-label */
.affil-card__type {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Responsive grid */
@media (max-width: 1024px) {
    .affiliations__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .affiliations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .affiliations__grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────
   12. CONTACT / CTA SECTION
   ───────────────────────────────────────── */
.contact-cta {
    padding-block: var(--sp-3xl);
    background: var(--grey-50);
}

.contact-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: start;
}

.contact-cta__text .section-divider {
    margin-bottom: var(--sp-lg);
}

.contact-cta__text p {
    color: var(--grey-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: var(--sp-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-md);
}

.contact-item__icon {
    width: 40px;
    height: 40px;
    background: rgba(11, 61, 145, .08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey-400);
    margin-bottom: 2px;
}

.contact-item__value {
    font-size: 0.9rem;
    color: var(--grey-800);
    font-weight: 500;
}

.contact-item__value a {
    color: var(--navy);
    transition: color var(--t-fast);
}

.contact-item__value a:hover {
    color: var(--navy-light);
    text-decoration: underline;
}

/* Contact form card */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--grey-100);
}

.form-group {
    margin-bottom: var(--sp-md);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: var(--sp-xs);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--grey-900);
    background: var(--white);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    resize: vertical;
}

.form-control::placeholder {
    color: var(--grey-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, .1);
}

textarea.form-control {
    min-height: 110px;
}

.form-note {
    font-size: 0.72rem;
    color: var(--grey-400);
    margin-top: var(--sp-sm);
    font-style: italic;
}

/* ─────────────────────────────────────────
   13. FOOTER
   ───────────────────────────────────────── */
.site-footer {
    background: #060e1e;
    color: rgba(255, 255, 255, .75);
    padding-top: var(--sp-3xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-3xl);
    padding-bottom: var(--sp-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.footer-brand {}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-md);
}

.footer-brand__emblem {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-brand__name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.footer-brand__tagline {
    font-size: 0.58rem;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand__desc {
    font-size: 0.83rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .6);
    max-width: 320px;
}

.footer-col__heading {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--sp-md);
    padding-bottom: var(--sp-sm);
    border-bottom: 1px solid rgba(201, 168, 76, .3);
}

.footer-col__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col__link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, .6);
    transition: color var(--t-fast), padding-left var(--t-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col__link:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-col__link::before {
    content: '›';
    color: var(--gold);
    font-size: 1rem;
    line-height: 1;
}

/* Footer bottom bar */
.footer-bottom {
    padding-block: var(--sp-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.footer-bottom__copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, .5);
}

.footer-bottom__copy strong {
    color: var(--gold-light);
}

.footer-bottom__credit {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, .4);
}

.footer-bottom__credit span {
    color: rgba(255, 255, 255, .6);
}

.footer-bottom__dev-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 3px 10px;
    border-radius: 999px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(0.8);
    }
}

/* ─────────────────────────────────────────
   14. BACK TO TOP
   ───────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: var(--sp-lg);
    right: var(--sp-lg);
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--t-mid), transform var(--t-mid), background var(--t-fast);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--navy-dark);
}

/* ─────────────────────────────────────────
   15. SCROLL REVEAL ANIMATIONS
   ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 {
    transition-delay: 0.1s;
}

.reveal--delay-2 {
    transition-delay: 0.2s;
}

.reveal--delay-3 {
    transition-delay: 0.3s;
}

/* ─────────────────────────────────────────
   16. RESPONSIVE — TABLET  (≤ 1024px)
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .about__visual {
        max-width: 520px;
        margin-inline: auto;
    }

    .mission__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-xl);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .contact-cta__inner {
        grid-template-columns: 1fr;
        gap: var(--sp-2xl);
    }

    .hero__stats {
        display: none;
    }
}

/* ─────────────────────────────────────────
   17. RESPONSIVE — MOBILE  (≤ 768px)
   ───────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --bar-h: 36px;
        --nav-h: 60px;
    }

    /* ── Nav ── */
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-drawer {
        display: block;
    }

    /* ── Hero ── */
    .hero {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero__content {
        padding-block: var(--sp-xl) var(--sp-2xl);
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .dev-notice {
        max-width: 100%;
    }

    /* ── About — compact mobile card ── */
    .about {
        padding-block: var(--sp-xl);
        flex-direction: column-reverse;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    /* Horizontal strip instead of tall placeholder box */
    .about__img-wrap {
        aspect-ratio: 16 / 7;
        border-radius: var(--radius-md);
    }

    .about__img-placeholder {
        flex-direction: row;
        gap: var(--sp-md);
        padding: var(--sp-md) var(--sp-lg);
        justify-content: center;
    }

    .about__img-icon {
        font-size: 2.2rem;
    }

    .about__img-caption {
        font-size: 0.75rem;
        text-align: left;
        letter-spacing: 0.04em;
    }

    .about__badge {
        width: 80px;
        height: 80px;
        bottom: -10px;
        right: -10px;
    }

    .about__badge-year {
        font-size: 1rem;
    }

    .about__badge-text {
        font-size: 0.48rem;
    }

    .about__text {
        padding-top: var(--sp-sm);
    }

    /* ── Mission & Vision ── */
    .mission {
        padding-block: var(--sp-xl);
    }

    .mission__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .mv-card {
        padding: var(--sp-lg);
    }

    /* ── Programs ── */
    .programs-teaser {
        padding-block: var(--sp-xl);
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-sm);
    }

    /* ── Affiliations ── */
    .affiliations {
        padding-block: var(--sp-xl);
    }

    .affiliations__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-sm);
    }

    .affil-card {
        padding: var(--sp-md) var(--sp-sm);
    }

    .affil-card__icon-frame {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* ── Contact ── */
    .contact-cta {
        padding-block: var(--sp-xl);
    }

    .contact-cta__inner {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }

    .contact-form-card {
        padding: var(--sp-lg);
    }

    /* ── Footer ── */
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--sp-sm);
    }
}

/* ─────────────────────────────────────────
   18. RESPONSIVE — SMALL MOBILE (≤ 480px)
   ───────────────────────────────────────── */
@media (max-width: 480px) {

    /* Notification bar — single line */
    .notif-bar__text {
        font-size: 0.7rem;
    }

    /* Dev notice — stack icon + text vertically */
    .dev-notice {
        flex-direction: column;
        gap: var(--sp-sm);
    }

    /* Programs — single column */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-sm);
    }

    /* About — even tighter image strip */
    .about__img-wrap {
        aspect-ratio: 16 / 6;
    }

    .about__img-icon {
        font-size: 1.8rem;
    }

    /* Affiliations — also single column on very small */
    .affiliations__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Remove the Est. badge on tiny screens (avoids overflow) */
    .about__badge {
        display: none;
    }

    /* Section headings — tighter */
    .section-title {
        font-size: 1.4rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    /* Contact form full width */
    .contact-form-card {
        padding: var(--sp-md);
    }
}

/* ─────────────────────────────────────────
   19. PRINT STYLES
   ───────────────────────────────────────── */
@media print {

    .notif-bar,
    .site-nav,
    .nav-drawer,
    .back-to-top {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

    .hero {
        min-height: auto;
        page-break-after: always;
    }
}