/* ==========================================================================
   AFECO — Adéàbẹ̀kẹ́ Fábọ́lá EduCultural Organization
   Design system: purple · gold · cream · charcoal (Yorùbá-inspired)
   Fonts: Noto Serif (headings) + Noto Sans (body) — full Yorùbá support
   ========================================================================== */

:root {
    --purple: #4b2372;
    --purple-mid: #38205c;
    --purple-dark: #2a1440;
    --purple-deep: #1e0e30;
    --gold: #c9a227;
    --gold-bright: #e0b73f;
    --gold-pale: #f4e7c3;
    --cream: #faf6ee;
    --card: #fffdf8;
    --ink: #27222d;
    --muted: #6d6575;
    --line: #ecdfc8;

    --font-head: "Noto Serif", Georgia, "Times New Roman", serif;
    --font-body: "Noto Sans", "Segoe UI", Arial, sans-serif;

    --shadow-sm: 0 2px 10px rgba(30, 14, 48, .07);
    --shadow-md: 0 12px 34px rgba(30, 14, 48, .13);

    --pat-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cpath d='M42 8 76 42 42 76 8 42Z' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3Cpath d='M42 26 58 42 42 58 26 42Z' fill='%23c9a227' fill-opacity='.09'/%3E%3C/svg%3E");
    --pat-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cpath d='M42 8 76 42 42 76 8 42Z' fill='none' stroke='%234b2372' stroke-opacity='.06'/%3E%3Cpath d='M42 26 58 42 42 58 26 42Z' fill='%23c9a227' fill-opacity='.10'/%3E%3C/svg%3E");

    --radius: 16px;
    --container: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Prevent the off-canvas nav (and any floaters) from widening the page.
   `clip` avoids the scroll-container side-effects of `hidden`. */
html, body { overflow-x: hidden; }
html, body { overflow-x: clip; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--cream);
}
img { max-width: 100%; display: block; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 1000;
    background: var(--purple);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}
.section { padding-block: clamp(3.25rem, 7vw, 5.75rem); }
.section-alt {
    background:
        var(--pat-dark),
        linear-gradient(#fdfaf3, #fdfaf3);
}
.section-head {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .65rem;
}
.section-head h2, .foot-h2 {
    font-family: var(--font-head);
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.25;
    color: var(--purple-dark);
}
.section-head p { margin-top: .8rem; color: var(--muted); }
.head-link { text-align: center; margin-top: 2.1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .78rem 1.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: var(--purple-deep) !important;
    box-shadow: 0 6px 18px rgba(201, 162, 39, .35);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(201, 162, 39, .45); }
.btn-purple { background: var(--purple); color: #fff !important; }
.btn-purple:hover { background: var(--purple-mid); }
.btn-outline {
    border-color: rgba(255, 255, 255, .65);
    color: #fff !important;
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost {
    border-color: var(--line);
    color: var(--purple) !important;
    background: var(--card);
}
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 238, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; flex: 1; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong {
    font-family: var(--font-head);
    font-size: 1.18rem;
    color: var(--purple-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-text small {
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.nav-list { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav-list a {
    display: block;
    padding: .45rem .72rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
    border-radius: 8px;
}
.nav-list a:hover { color: var(--purple); background: rgba(75, 35, 114, .07); }
.nav-list a.active {
    color: var(--purple);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--gold);
    border-radius: 8px 8px 0 0;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: .85rem;
    white-space: nowrap;
}
.lang-switch span { color: var(--line); }
.lang-switch a { color: var(--muted); font-weight: 500; padding: .1rem .2rem; }
.lang-switch a.active { color: var(--purple); font-weight: 700; }
.lang-switch a.active::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 1px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .55rem;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--purple-dark);
    transition: transform .25s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero slider (home) ---------- */
.hero {
    position: relative;
    min-height: clamp(480px, 74vh, 720px);
    background: var(--purple-dark);
    overflow: hidden;
    isolation: isolate;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        var(--pat-light),
        linear-gradient(115deg, rgba(30, 14, 48, .93) 8%, rgba(42, 20, 64, .82) 45%, rgba(56, 32, 92, .62));
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    padding-block: clamp(3rem, 8vh, 5rem);
    max-width: 46rem;
    color: #fff;
}
.slide-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.6vw, 3.3rem);
    line-height: 1.15;
    text-wrap: balance;
}
.slide-sub {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: #efe7dc;
    max-width: 36rem;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-bright);
    font-weight: 700;
}
.hero-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .55rem;
    z-index: 3;
}
.hero-dots button {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.hero-dots button.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
    background:
        var(--pat-light),
        linear-gradient(120deg, var(--purple-deep), var(--purple) 90%);
    color: #fff;
    padding-block: clamp(3rem, 7vw, 4.6rem);
}
.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}
.page-hero h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 68px; height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.page-hero .hero-sub {
    margin-top: 1rem;
    max-width: 44rem;
    color: #ece4da;
    font-size: 1.04rem;
}

/* ---------- Welcome / split ---------- */
.split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split h2 {
    font-family: var(--font-head);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    color: var(--purple-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.split p + p { margin-top: .95rem; }
.split .lead { color: var(--muted); }
.split-actions { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }

.stats-card {
    background:
        var(--pat-light),
        linear-gradient(140deg, var(--purple), var(--purple-dark));
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.stat + .stat { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 1.15rem; padding-top: 1.15rem; }
.stat b {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--gold-bright);
    display: block;
    line-height: 1.1;
}
.stat span { font-size: .92rem; color: #e8e0d6; }

/* ---------- Pillar cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-pale); }
.card-icon {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--purple-mid));
    color: var(--gold-bright);
    margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
    font-family: var(--font-head);
    font-size: 1.18rem;
    color: var(--purple-dark);
    margin-bottom: .5rem;
}
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Publication cards ---------- */
.pub-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 1.2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pub-cover {
    border-radius: 10px;
    min-height: 158px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(150deg, var(--purple), var(--purple-deep));
    position: relative;
    overflow: hidden;
}
.pub-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pat-light);
}
.pub-cover span { position: relative; z-index: 1; }
.pub-cover.tone-2 { background: linear-gradient(150deg, #5b2a86, #33184f); }
.pub-cover.tone-3 { background: linear-gradient(150deg, #3d1f61, #24103a); }
.pub-body h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--purple-dark);
    margin-bottom: .4rem;
}
.pub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    align-items: center;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .55rem;
}
.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .18rem .6rem;
    border-radius: 999px;
    background: var(--gold-pale);
    color: #7a5c10;
}
.badge-purple { background: #ece2f7; color: var(--purple); }
.pub-body p { font-size: .88rem; color: var(--muted); }
.pub-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .7rem;
    font-size: .86rem;
    font-weight: 700;
    color: var(--purple);
}

/* ---------- Post cards (articles/news) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-thumb {
    aspect-ratio: 16/9;
    background:
        var(--pat-dark),
        linear-gradient(135deg, #ede4f5, #f6efdf);
    display: grid;
    place-items: center;
    color: var(--purple);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb svg { width: 44px; height: 44px; opacity: .55; }
.post-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-tags { display: flex; gap: .45rem; flex-wrap: wrap; }
.post-meta { font-size: .8rem; color: var(--muted); }
.post-body h3 {
    font-family: var(--font-head);
    font-size: 1.06rem;
    line-height: 1.4;
    color: var(--purple-dark);
}
.post-body h3 a { color: inherit; }
.post-body h3 a:hover { color: var(--purple); }
.post-body > p:last-of-type { font-size: .89rem; color: var(--muted); }
.post-more {
    margin-top: auto;
    padding-top: .6rem;
    font-size: .87rem;
    font-weight: 700;
    color: var(--purple);
}

/* ---------- Event cards ---------- */
.event-thumb {
    display: block;
    aspect-ratio: 16/9;
    background:
        var(--pat-dark),
        linear-gradient(135deg, #ece2f7, #f6efdf);
    overflow: hidden;
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.event-card:hover .event-thumb img { transform: scale(1.04); }
.event-thumb-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple);
    background:
        var(--pat-dark),
        linear-gradient(135deg, #ece2f7, #f6efdf);
}
.event-meta {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .82rem;
    color: var(--muted);
}
.event-meta span { display: flex; align-items: flex-start; gap: .45rem; }
.event-meta svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; opacity: .7; }
.event-detail {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: 1.6rem;
    padding: 1.1rem 1.25rem;
    background: var(--gold-pale);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
}
.event-detail-row {
    display: flex;
    gap: .8rem;
    font-size: .95rem;
}
.event-detail-label {
    min-width: 5.5rem;
    font-weight: 700;
    color: var(--purple-dark);
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.2rem; }
.chip {
    padding: .42rem 1.05rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    transition: all .18s ease;
}
.chip:hover { border-color: var(--gold); color: var(--purple); }
.chip.active {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff !important;
}

/* ---------- Gallery ---------- */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}
.gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}
.g-tile {
    position: relative;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--purple-dark);
    aspect-ratio: 4/3;
}
.g-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .3s ease;
}
.g-tile:hover img { transform: scale(1.06); opacity: .85; }
.g-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem .95rem .8rem;
    background: linear-gradient(transparent, rgba(30, 14, 48, .88));
    color: #fff;
    font-size: .86rem;
    text-align: left;
    font-weight: 500;
}

.lightbox {
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    max-width: min(880px, 92vw);
    background: var(--card);
    box-shadow: 0 30px 80px rgba(30, 14, 48, .45);
}
.lightbox::backdrop { background: rgba(30, 14, 48, .78); backdrop-filter: blur(3px); }
.lightbox figure { position: relative; margin: 0; }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--purple-deep); }
.lightbox figcaption { padding: .9rem 1.2rem; font-size: .92rem; color: var(--ink); }
.lb-close {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(30, 14, 48, .75);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.lb-close:hover { background: var(--gold); color: var(--purple-deep); }

/* ---------- Alphabet / tones / greetings ---------- */
.alpha-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
}
.alpha-grid span {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--purple);
    box-shadow: var(--shadow-sm);
}
.alpha-grid span.dot { background: var(--purple); color: var(--gold-bright); border-color: var(--purple); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
table.tones {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    font-size: .96rem;
    min-width: 480px;
}
table.tones th {
    background: var(--purple);
    color: #fff;
    text-align: left;
    padding: .85rem 1.1rem;
    font-family: var(--font-head);
    font-size: .92rem;
}
table.tones th:first-child { border-top-left-radius: var(--radius); }
table.tones td {
    padding: .8rem 1.1rem;
    border-top: 1px solid var(--line);
}
table.tones td:first-child {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--purple);
    font-size: 1.12rem;
    white-space: nowrap;
}
table.tones tbody tr:nth-child(even) { background: #fdf9f0; }

.greet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .9rem;
}
.greet-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: .95rem 1.1rem;
    box-shadow: var(--shadow-sm);
}
.greet-card b {
    display: block;
    font-family: var(--font-head);
    color: var(--purple-dark);
    font-size: 1.02rem;
}
.greet-card span { font-size: .85rem; color: var(--muted); }

/* ---------- Article / page content ---------- */
.content-page { max-width: 50rem; margin-inline: auto; }
.rich-content h2 {
    font-family: var(--font-head);
    color: var(--purple-dark);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    margin: 2rem 0 .7rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--gold-pale);
}
.rich-content h2:first-child { margin-top: 0; }
.rich-content ul { padding-left: 1.3rem; margin: .8rem 0; }
.rich-content li { margin-bottom: .45rem; }
.rich-content li::marker { color: var(--gold); }
.rich-content strong { color: var(--purple-dark); }

.article-full { max-width: 46rem; margin-inline: auto; }
.article-head { text-align: left; margin-bottom: 1.6rem; }
.article-head h1 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1.28;
    color: var(--purple-dark);
    margin: .6rem 0 .9rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

/* ---------- Values / quote / programmes ---------- */
.quote-band {
    background:
        var(--pat-light),
        linear-gradient(120deg, var(--purple-deep), var(--purple-mid));
    border-radius: calc(var(--radius) * 1.2);
    padding: clamp(2rem, 5vw, 3.2rem);
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-md);
}
.quote-band p.q-text {
    font-family: var(--font-head);
    font-style: italic;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    line-height: 1.5;
    max-width: 40rem;
    margin-inline: auto;
    color: var(--gold-pale);
}
.quote-band p.q-meaning { margin-top: 1rem; color: #ded4c8; font-size: .95rem; }

.cta-band {
    background:
        var(--pat-light),
        linear-gradient(115deg, var(--purple-dark), var(--purple));
    padding-block: clamp(3rem, 6vw, 4.5rem);
    color: #fff;
}
.cta-in { text-align: center; max-width: 44rem; }
.cta-in h2 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: .7rem;
}
.cta-in p { color: #e9e1d6; margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(1.6rem, 4vw, 3rem);
    align-items: start;
}
.info-card {
    background:
        var(--pat-light),
        linear-gradient(150deg, var(--purple), var(--purple-dark));
    border-radius: var(--radius);
    color: #fff;
    padding: clamp(1.6rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-md);
}
.info-card h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
.info-list li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .8rem 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: .95rem;
}
.info-list li:first-child { border-top: 0; }
.info-list b { display: block; color: var(--gold-bright); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .15rem; }
.info-list a { color: #fff; }
.info-list a:hover { color: var(--gold-bright); }
.info-list svg { flex-shrink: 0; width: 20px; height: 20px; fill: var(--gold-bright); margin-top: .2rem; }

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.05rem; }
.field label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .35rem;
    color: var(--purple-dark);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .72rem .95rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(75, 35, 114, .12);
}
.hp-field { position: absolute; left: -4000px; opacity: 0; height: 0; overflow: hidden; }

.alert {
    border-radius: 12px;
    padding: .95rem 1.15rem;
    margin-bottom: 1.2rem;
    font-size: .93rem;
    border: 1px solid transparent;
}
.alert-ok { background: #eef8ee; border-color: #bfe3bf; color: #21642a; }
.alert-warn { background: #fdf6e4; border-color: #ecd9a4; color: #7a5c10; }
.alert-err { background: #fdeeee; border-color: #efc4c4; color: #8f2323; }

/* ---------- Application form ---------- */
.apply-side { display: grid; gap: clamp(1.2rem, 3vw, 1.8rem); }
.apply-steps {
    counter-reset: apply;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #fff;
}
.apply-steps li {
    counter-increment: apply;
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .7rem 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: .95rem;
}
.apply-steps li:first-child { border-top: 0; }
.apply-steps li::before {
    content: counter(apply, decimal-leading-zero);
    flex-shrink: 0;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(224, 183, 63, .18);
    color: var(--gold-bright);
    font-weight: 700;
    font-size: .78rem;
    margin-top: .15rem;
}
.bank-card .bank-amount {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
    color: var(--gold-bright);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    margin-bottom: .4rem;
}
.bank-card .info-list strong { color: var(--gold-bright); letter-spacing: .04em; }
.bank-actions { margin-top: 1.1rem; display: grid; gap: .45rem; }
.bank-actions .btn { text-align: center; }
.btn-sm { padding: .55rem 1.2rem; font-size: .86rem; }
.bank-actions-note { font-size: .8rem; color: #e6dccd; }
.bank-enquiry {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
    display: grid;
    gap: .2rem;
    font-size: .95rem;
}
.bank-enquiry b { color: var(--gold-bright); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.bank-enquiry a { color: #fff; font-weight: 600; }
.bank-enquiry a:hover { color: var(--gold-bright); }

.apply-fieldset { border: 0; padding: 0; margin: 0 0 1.05rem; }
.apply-fieldset legend {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .55rem;
    color: var(--purple-dark);
}
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem .85rem;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .55rem .75rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: .92rem;
    line-height: 1.4;
    color: var(--ink);
    transition: border-color .18s ease, background .18s ease;
}
.check-item:hover { border-color: var(--gold); }
.check-item:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(75, 35, 114, .12); }
.check-item:has(input:checked) { border-color: var(--purple); background: rgba(75, 35, 114, .05); }
.check-item input {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: .2rem;
    accent-color: var(--purple);
}
.req-note { font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    background:
        var(--pat-light),
        linear-gradient(#211129, #1b0d23);
    color: #cdc4bb;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-block: clamp(2.6rem, 5vw, 3.8rem);
}
.brand-foot .brand-text strong { color: #fff; }
.brand-foot .brand-text small { color: var(--gold-bright); }
.foot-brand > p { margin-top: 1.1rem; font-size: .92rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #e8e0d6;
    transition: all .18s ease;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--purple-deep); }
.foot-col h3 {
    font-family: var(--font-head);
    color: #fff;
    font-size: 1.02rem;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: .55rem;
}
.foot-col h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 3px;
    border-radius: 3px;
    background: var(--gold);
}
.foot-links li { margin-bottom: .55rem; }
.foot-links a { color: #cdc4bb; font-size: .93rem; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-contact li {
    display: flex;
    gap: .65rem;
    align-items: baseline;
    margin-bottom: .7rem;
    font-size: .92rem;
}
.foot-contact svg { flex-shrink: 0; transform: translateY(2px); fill: var(--gold-bright); }
.foot-contact a { color: #cdc4bb; }
.foot-contact a:hover { color: var(--gold-bright); }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.2rem; }
.foot-bar-in {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
    font-size: .83rem;
    color: #9d938b;
}
.foot-note { color: #857b74; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid-3, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .greet-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .stats-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .stat + .stat { border-top: 0; margin-top: 0; padding-top: 0; border-left: 1px solid rgba(255,255,255,.16); padding-left: 1.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
    .header-in { gap: .6rem; }
    .nav-toggle { display: flex; flex-shrink: 0; }
    .site-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        height: auto;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.4rem;
        overflow-y: auto;
        max-height: calc(100dvh - 78px);
        overscroll-behavior: contain;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
        z-index: 60;
    }
    body.nav-open .site-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .15rem .9rem;
        align-items: stretch;
    }
    .nav-list a {
        padding: .8rem .6rem;
        font-size: 1rem;
        line-height: 1.35;
        color: var(--ink);
        border-radius: 10px;
    }
    .nav-list a:hover { color: var(--purple); background: rgba(75, 35, 114, .06); }
    .nav-list a.active {
        color: var(--purple);
        font-weight: 700;
        background: rgba(201, 162, 39, .14);
        box-shadow: inset 0 -2px 0 var(--gold);
    }
    .lang-switch { align-self: center; margin-top: 1rem; font-size: .95rem; padding: .45rem 1.15rem; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
    .grid-3, .post-grid { grid-template-columns: 1fr; }
    .stats-card { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.15rem; margin-top: 1.15rem; }
    .pub-card { grid-template-columns: 92px 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: 1fr; }
    .greet-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
    .alpha-grid span { width: 44px; height: 44px; font-size: 1.1rem; }
    .hero { min-height: 520px; }
    .header-in { min-height: 70px; }
    .brand { gap: .55rem; }
    .brand img { width: 42px; height: 42px; }
    .site-nav { top: 70px; max-height: calc(100dvh - 70px); }
}

@media (max-width: 480px) {
    .brand-text strong { font-size: 1rem; }
    .brand-text small { font-size: .6rem; letter-spacing: .1em; }
    .nav-toggle { padding: .45rem; }
    .nav-toggle span { width: 22px; }
    .site-nav { padding: .75rem .9rem; }
    .nav-list { gap: .1rem .5rem; }
    .nav-list a { font-size: .93rem; padding: .72rem .5rem; line-height: 1.35; }
    .lang-switch { font-size: .9rem; margin-top: .7rem; padding: .4rem 1rem; }
}
