/* ==========================================================================
   TANDS — public site design system
   One stylesheet for every public page. Order: tokens → base → layout
   primitives → components → page sections. Colors come straight from the
   logo (indigo #1b1464 + the Tanzanian flag accents in its corner).
   ========================================================================== */

:root {
    /* Color */
    --ink: #0f0c38;
    --navy: #1b1464;
    --navy-600: #2a2384;
    --blue: #00a3dd;
    --blue-600: #0087b8;
    --sky: #e6f6fc;
    --paper: #ffffff;
    --paper-2: #f4f5fa;
    --line: #e2e3ee;
    --line-strong: #c9cbdd;
    --text: #1c1a3a;
    --muted: #5b5a78;
    --on-dark: #e8e7f5;
    --on-dark-muted: #a3a1c4;
    --flag-green: #1eb53a;
    --flag-yellow: #fcd116;
    --flag-black: #111111;
    --flag-blue: #00a3dd;
    --success: #137a43;
    --success-bg: #e7f5ed;
    --danger: #b42318;
    --danger-bg: #fdecea;

    /* Type — one display face, one text face, one scale, everywhere */
    --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --fs-xs: .78rem;
    --fs-sm: .9rem;
    --fs-base: 1.0625rem;
    --fs-lg: clamp(1.1rem, 1.35vw, 1.25rem);
    --fs-h4: 1.2rem;
    --fs-h3: clamp(1.4rem, 2.1vw, 1.75rem);
    --fs-h2: clamp(2rem, 3.8vw, 3rem);
    --fs-h1: clamp(2.5rem, 5.6vw, 4.4rem);

    /* Shape & space */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 18px 40px -20px rgba(15, 12, 56, .28);
    --header-h: 84px;
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 32px);
    --section-y: clamp(64px, 8.5vw, 112px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding-top: var(--header-h);
    font-family: var(--font-text);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
}

h1 { font-size: var(--fs-h1); font-stretch: 108%; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); font-stretch: 106%; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }

img { max-width: 100%; height: auto; }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link:focus {
    position: fixed !important;
    top: 12px; left: 12px;
    z-index: 2000;
    width: auto !important; height: auto !important;
    padding: 10px 16px !important;
    clip: auto !important;
    color: var(--ink);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

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

/* ---------- Layout primitives ------------------------------------------- */

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

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

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--flush-top { padding-top: 0; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.split--top { align-items: start; }

@media (max-width: 991px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Typography components --------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue-600);
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
}

.section--dark .eyebrow, .on-dark .eyebrow { color: var(--blue); }

.lead {
    font-size: var(--fs-lg);
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
}

.section--dark .lead, .on-dark .lead { color: var(--on-dark-muted); }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
    margin-bottom: clamp(36px, 4.5vw, 56px);
}

.section-head__text { max-width: 720px; }
.section-head h2 { margin-bottom: .3em; }
.section-head .lead { margin: 0; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
}

.link-arrow i { font-size: .8em; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--blue-600); }
.link-arrow:hover i { transform: translateX(4px); }
.section--dark .link-arrow, .on-dark .link-arrow { color: #fff; }

/* Long-form HTML from the admin rich-text editor */
.prose { font-size: var(--fs-base); line-height: 1.75; color: var(--text); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 {
    margin-top: 1.8em;
    font-size: var(--fs-h4);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.prose h4 { padding-left: 12px; border-left: 3px solid var(--blue); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue-600); }
.prose blockquote {
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--line-strong);
    color: var(--muted);
    font-style: italic;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}
.prose th, .prose td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.prose th, .prose table:not(:has(th)) tr:first-child td { background: var(--paper-2); font-weight: 700; color: var(--ink); }
@media (max-width: 700px) {
    .prose table { display: block; overflow-x: auto; }
}
.prose img { border-radius: var(--radius); }

/* ---------- Buttons ------------------------------------------------------ */

.btn-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn-x i { font-size: .85em; transition: transform .2s var(--ease); }
.btn-x:hover .fa-arrow-right { transform: translateX(3px); }
.btn-x--sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-x--block { width: 100%; }

.btn-x--primary { background: var(--navy); color: #fff; }
.btn-x--primary:hover { background: var(--ink); color: #fff; }
.btn-x--accent { background: var(--blue); color: #fff; }
.btn-x--accent:hover { background: var(--blue-600); color: #fff; }
.btn-x--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-x--outline:hover { color: var(--ink); border-color: var(--ink); }
.btn-x--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-x--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn-x[disabled], .btn-x.is-loading { opacity: .75; pointer-events: none; }
.btn-x__spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: tands-spin .7s linear infinite;
}
.btn-x.is-loading .btn-x__spinner { display: inline-block; }
@keyframes tands-spin { to { transform: rotate(360deg); } }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.2;
    border-radius: 4px;
    background: var(--paper-2);
    color: var(--muted);
}
.tag--live { background: var(--sky); color: var(--blue-600); }
.tag--live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Header & navigation ----------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: transform .35s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

/* Tanzanian flag strip — the same four colors as the logo's corner */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--flag-green) 0 34%, var(--flag-yellow) 34% 37%,
        var(--flag-black) 37% 63%, var(--flag-yellow) 63% 66%,
        var(--flag-blue) 66% 100%);
}

.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(15, 12, 56, .45); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
    padding-top: 4px;
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { display: block; height: 50px; width: auto; }

.main-nav { margin: 0 auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }

.main-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.main-nav__link i { font-size: .65em; transition: transform .2s var(--ease); }

.main-nav__link::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 3px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}

.main-nav__link:hover { color: var(--ink); }
.main-nav__link:hover::after,
.main-nav__link.is-active::after,
.has-panel:focus-within > .main-nav__link::after,
.has-panel:hover > .main-nav__link::after { transform: scaleX(1); }

.has-panel { position: relative; }
.has-panel:hover > .main-nav__link i, .has-panel:focus-within > .main-nav__link i { transform: rotate(180deg); }

.events-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: max-content;
    min-width: 440px;
    max-width: min(680px, 90vw);
    padding: 22px 24px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
}

.events-panel::before { content: ''; position: absolute; inset: -18px 0 auto 0; height: 18px; }

.has-panel:hover .events-panel,
.has-panel:focus-within .events-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.events-panel__grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 28px; }

.events-panel__series {
    display: block;
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.events-panel ul { margin: 0; padding: 0; list-style: none; }

.events-panel ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 -8px;
    padding: 7px 8px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.events-panel ul a:hover { background: var(--paper-2); color: var(--navy); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Mobile off-canvas menu */
.mobile-nav { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.mobile-nav.is-open { visibility: visible; }

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 56, .5);
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-nav__panel {
    position: absolute;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    width: min(380px, 88vw);
    padding: 20px 24px 28px;
    overflow-y: auto;
    background: #fff;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
}

.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }

.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mobile-nav__top img { height: 42px; width: auto; }

.mobile-nav__close {
    width: 44px; height: 44px;
    font-size: 1.1rem;
    color: var(--ink);
    background: var(--paper-2);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mobile-nav__links { margin: 0; padding: 0; list-style: none; }
.mobile-nav__links > li { border-bottom: 1px solid var(--line); }

.mobile-nav__links > li > a,
.mobile-nav__acc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.mobile-nav__acc i { font-size: .75em; transition: transform .25s var(--ease); }
.mobile-nav__acc[aria-expanded="true"] i { transform: rotate(180deg); }

.mobile-nav__sub { display: none; padding: 0 0 16px; }
.mobile-nav__sub.is-open { display: block; }

.mobile-nav__series { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; }

.mobile-nav__series > span {
    flex: 0 0 64px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--muted);
}

.mobile-nav__series div { display: flex; flex-wrap: wrap; gap: 8px; }

.mobile-nav__series a {
    padding: 6px 12px;
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper-2);
    border-radius: var(--radius-sm);
}

.mobile-nav__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }

@media (max-width: 991px) {
    :root { --header-h: 72px; }
    .main-nav, .site-header__actions .btn-x { display: none; }
    .site-header__actions { margin-left: auto; }
    .nav-toggle { display: inline-flex; }
    .brand img { height: 42px; }
}

/* ---------- Social icons ------------------------------------------------- */

.socials { display: flex; gap: 10px; }

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--ink);
    text-decoration: none;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.socials a:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.on-dark .socials a { color: #fff; border-color: rgba(255, 255, 255, .25); }
.on-dark .socials a:hover { background: var(--blue); border-color: var(--blue); }

/* ---------- Hero (home) -------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    min-height: clamp(560px, 86vh, 780px);
    overflow: hidden;
    color: #fff;
    background: var(--ink);
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 7s linear;
}

.hero__img.is-active { opacity: 1; transform: scale(1); }

.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 12, 56, .66) 0%, rgba(15, 12, 56, .34) 42%, rgba(15, 12, 56, 0) 72%),
        linear-gradient(0deg, rgba(15, 12, 56, .5) 0%, rgba(15, 12, 56, 0) 34%);
}

.hero__text .hero__title, .hero__text p, .hero .eyebrow { text-shadow: 0 2px 22px rgba(10, 8, 40, .45); }

@media (max-width: 700px) {
    .hero__scrim { background: linear-gradient(0deg, rgba(15, 12, 56, .78) 0%, rgba(15, 12, 56, .35) 55%, rgba(15, 12, 56, .12) 100%); }
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 80px;
    padding-bottom: 48px;
}

.hero__content { max-width: 760px; }
.hero__texts { display: grid; }

.hero__text {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s var(--ease);
    pointer-events: none;
}

.hero__text.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero .eyebrow { font-size: var(--fs-xs); line-height: 1.4; letter-spacing: .16em; font-stretch: 100%; color: var(--blue); }

.hero__text .hero__title {
    max-width: none;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 800;
    font-stretch: 108%;
    line-height: 1.04;
    letter-spacing: -.035em;
    color: #fff;
}
.hero__text p { max-width: 600px; font-size: var(--fs-lg); color: rgba(255, 255, 255, .82); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: clamp(40px, 7vh, 72px);
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero__count { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.hero__count b { color: #fff; font-weight: 800; }

.hero__progress { flex: 1; height: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.hero__progress span { display: block; height: 100%; width: 0; background: var(--blue); }
.hero__progress span.is-running { width: 100%; transition: width 6s linear; }

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

.hero__arrows button {
    width: 44px; height: 44px;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.hero__arrows button:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Page hero (inner pages) -------------------------------------- */

.page-hero {
    position: relative;
    padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 7vw, 88px);
    overflow: hidden;
    color: var(--on-dark);
    background: var(--ink);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .6;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 12, 56, .9) 0%, rgba(15, 12, 56, .62) 48%, rgba(15, 12, 56, .25) 100%);
}

.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .lead { max-width: 680px; color: var(--on-dark-muted); }

.breadcrumb-x {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: var(--fs-sm);
    color: var(--on-dark-muted);
}

.breadcrumb-x li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.breadcrumb-x a { color: var(--on-dark); text-decoration: none; }
.breadcrumb-x a:hover { color: #fff; text-decoration: underline; }

.page-hero__quote {
    max-width: 720px;
    margin: 0;
    padding-left: 18px;
    border-left: 3px solid var(--blue);
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--on-dark);
}

.page-hero__quote cite { display: block; margin-top: 10px; font-size: var(--fs-sm); font-style: normal; color: var(--on-dark-muted); }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: var(--fs-sm); color: var(--on-dark); }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-row i { color: var(--blue); }

/* ---------- Cards -------------------------------------------------------- */

.card-x {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}

a.card-x { color: inherit; text-decoration: none; }
a.card-x:hover, .card-x--hover:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

.card-x h4 { margin-bottom: 8px; }
.card-x p { color: var(--muted); font-size: .98rem; }

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: 22px;
    font-size: 1.3rem;
    color: var(--navy);
    background: var(--sky);
    border-radius: var(--radius-sm);
}

.card-x__index {
    position: absolute;
    top: 24px; right: 26px;
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--line-strong);
    font-variant-numeric: tabular-nums;
}

/* ---------- About intro (home) ------------------------------------------ */

.about-media { position: relative; }

.about-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-media__badge {
    position: absolute;
    left: 24px; bottom: 24px;
    padding: 16px 20px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius);
}

.about-media__badge b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.about-media__badge span { font-size: var(--fs-sm); color: var(--on-dark-muted); }

/* ---------- Stats band --------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.stat { padding: 8px clamp(20px, 3vw, 40px); border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat i { font-size: 1.15rem; color: var(--blue); }

.stat__value {
    display: block;
    margin: 14px 0 6px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 800;
    font-stretch: 108%;
    line-height: 1;
    letter-spacing: -.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stat__label { font-size: var(--fs-sm); color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

@media (max-width: 700px) {
    .stat { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
    .stat:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- Events (cards + page) --------------------------------------- */

.event-card { padding: 0; overflow: hidden; }

.event-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }

.event-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

a.event-card:hover .event-card__media img { transform: scale(1.05); }

.event-card__media .tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); }
.event-card__media .tag--live { background: var(--blue); color: #fff; }

.event-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }

.event-card__series {
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-600);
}

.event-card__meta { margin-top: auto; padding-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.event-card__meta i { width: 16px; color: var(--navy); }

.event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.event-block + .event-block { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.event-block h2 { font-size: var(--fs-h3); margin-bottom: 20px; }

.event-block__image {
    display: block;
    width: 100%;
    max-height: 440px;
    margin-bottom: 28px;
    object-fit: cover;
    border-radius: var(--radius);
}

.event-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.event-aside .card-x { padding: 24px; }

.facts { margin: 0 0 20px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.facts div:first-child { padding-top: 0; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }

.toc { margin: 0; padding: 0; list-style: none; counter-reset: toc; }

.toc a {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.toc a::before {
    counter-increment: toc;
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--line-strong);
}

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

.aside-title {
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.editions { display: flex; flex-wrap: wrap; gap: 8px; }

.editions a {
    padding: 8px 14px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.editions a:hover { color: #fff; background: var(--navy); border-color: var(--navy); }

@media (max-width: 991px) {
    .event-layout { grid-template-columns: 1fr; }
    .event-aside { position: static; order: -1; }
    .event-aside .toc-card { display: none; }
}

/* ---------- Gallery ------------------------------------------------------ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(180px, 21vw, 280px);
    grid-auto-flow: dense;
    gap: 14px;
}

/* Layout is chosen in Blade from the photo count so every row comes out
   full: 3 columns, widening the first one or two tiles to absorb the
   remainder. The homepage variant is a 1-large + 4-small bento. */
.gallery-grid--single { grid-template-columns: 1fr; grid-auto-rows: clamp(240px, 38vw, 460px); }
.gallery-grid--r2 > :first-child { grid-column: span 2; }
.gallery-grid--r1 > :nth-child(-n + 2) { grid-column: span 2; }
.gallery-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 17vw, 230px); }
.gallery-grid--featured > :first-child { grid-column: span 2; grid-row: span 2; }

.gallery-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-2);
}

.gallery-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}

.gallery-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 12, 56, .82) 0%, rgba(15, 12, 56, 0) 55%);
    opacity: .85;
    transition: opacity .3s ease;
}

.gallery-tile__caption {
    position: absolute;
    left: 18px; right: 18px; bottom: 16px;
    z-index: 1;
    color: #fff;
    transform: translateY(6px);
    transition: transform .35s var(--ease);
}

.gallery-tile__caption b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.gallery-tile__caption span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); }

.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile:hover::after { opacity: 1; }
.gallery-tile:hover .gallery-tile__caption { transform: none; }

@media (max-width: 991px) {
    .gallery-grid, .gallery-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
    .gallery-grid > *, .gallery-grid--featured > :first-child { grid-column: auto; grid-row: auto; }
    .gallery-grid--odd > :first-child { grid-column: span 2; }
    .gallery-grid--single { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-auto-rows: 150px; gap: 10px; }
}

/* ---------- Team --------------------------------------------------------- */

.person { padding: 0; overflow: hidden; text-align: left; cursor: pointer; }
.person:focus-visible { outline-offset: 4px; }

.person__photo {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    object-position: center top;
    background: var(--paper-2);
    transition: transform .6s var(--ease);
}

.person__media { overflow: hidden; }
.person:hover .person__photo { transform: scale(1.04); }
.person__body { padding: 20px 22px 22px; }
.person__body h4 { margin-bottom: 4px; }
.person__role { font-size: var(--fs-sm); color: var(--muted); }
.person__more { margin-top: 14px; }

/* Bootstrap modal, restyled */
.modal-content { border: 0; border-radius: var(--radius-lg); overflow: hidden; }
.modal-header { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-size: var(--fs-h4); }
.modal-body { padding: 26px; }
.modal-footer { padding: 16px 26px; border-top: 1px solid var(--line); }
.modal-bio { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.modal-bio img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); }
.modal-bio .eyebrow { margin-bottom: 10px; }

@media (max-width: 575px) {
    .modal-bio { grid-template-columns: 1fr; }
    .modal-bio img { max-width: 180px; }
    .modal-body { max-height: 70vh; overflow-y: auto; }
}

/* ---------- Partners ----------------------------------------------------- */

.partner__logo {
    display: flex;
    align-items: center;
    height: 72px;
    margin-bottom: 22px;
}

.partner__logo img { max-height: 72px; max-width: 160px; width: auto; object-fit: contain; }
.partner p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.partner .link-arrow { margin-top: auto; padding-top: 16px; font-size: .9rem; }

/* ---------- Activities --------------------------------------------------- */

.activity + .activity { margin-top: clamp(56px, 8vw, 96px); }
.activity:nth-child(even) .activity__media { order: 2; }

.activity__media { border-radius: var(--radius-lg); overflow: hidden; }

.activity__media .carousel-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.activity__media .carousel-indicators { margin-bottom: 14px; }
.activity__media .carousel-indicators [data-bs-target] { width: 24px; height: 3px; border: 0; border-radius: 2px; }

@media (max-width: 991px) {
    .activity:nth-child(even) .activity__media { order: 0; }
}

/* ---------- Mission & vision -------------------------------------------- */

.pillar { padding: 0; overflow: hidden; }
.pillar img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.pillar__body { padding: 28px 30px 32px; }
.pillar__body p { font-size: var(--fs-base); color: var(--text); }

/* ---------- Testimonials ------------------------------------------------- */

.quotes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }

.quotes__controls { display: flex; align-items: center; gap: 14px; margin-top: 32px; }

.round-btn {
    width: 48px; height: 48px;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.round-btn:hover { background: var(--blue); border-color: var(--blue); }
.quotes__count { font-family: var(--font-display); font-weight: 600; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.quotes__count b { color: #fff; }

.quotes__stage { display: grid; }

.quote {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s var(--ease);
    pointer-events: none;
}

.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote > i { font-size: 2rem; color: var(--blue); }

.quote p {
    margin: 18px 0 28px;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.7;
    color: #fff;
}

.quote footer { display: flex; align-items: center; gap: 14px; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px; height: 48px;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    background: var(--blue);
    border-radius: 50%;
}

.quote cite { font-style: normal; font-family: var(--font-display); font-weight: 700; color: #fff; }
.quote cite span { display: block; font-family: var(--font-text); font-weight: 400; font-size: var(--fs-sm); color: var(--on-dark-muted); }

@media (max-width: 991px) {
    .quotes { grid-template-columns: 1fr; }
}

/* ---------- Forms -------------------------------------------------------- */

.form-x .form-label {
    margin-bottom: 7px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
}

.form-x .form-control,
.form-x .form-select {
    min-height: 48px;
    padding: 11px 14px;
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--ink);
    background-color: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-x textarea.form-control { min-height: 128px; resize: vertical; }
.form-x .form-control::placeholder { color: #9a99b3; }

.form-x .form-control:focus,
.form-x .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 163, 221, .16);
}

.form-x .form-control.is-invalid,
.form-x .form-select.is-invalid { border-color: var(--danger); }

.form-x .invalid-feedback { font-size: .85rem; color: var(--danger); }

.form-x--dark .form-label { color: var(--on-dark); }

.form-x--dark .form-control {
    color: #fff;
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .2);
}

.form-x--dark .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.form-x--dark .form-control:focus { background-color: rgba(255, 255, 255, .1); }

.form-group-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 16px;
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-600);
}

.form-group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-group-label:first-child { margin-top: 0; }

.form-status {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.form-status.is-pending { display: block; color: var(--muted); background: var(--paper-2); }
.form-status.is-success { display: block; color: var(--success); background: var(--success-bg); }
.form-status.is-error { display: block; color: var(--danger); background: var(--danger-bg); }

.form-card {
    padding: clamp(26px, 4vw, 44px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-card__head { margin-bottom: 28px; }
.form-card__head h2 { font-size: var(--fs-h3); margin-bottom: 8px; }

/* ---------- Contact page ------------------------------------------------- */

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

.contact-list li {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-list .icon-tile { flex-shrink: 0; margin: 0; width: 46px; height: 46px; font-size: 1.05rem; }
.contact-list b { display: block; margin-bottom: 2px; font-family: var(--font-display); color: var(--ink); }
.contact-list span, .contact-list a { color: var(--muted); }

.map-frame { display: block; width: 100%; height: 440px; border: 0; border-radius: var(--radius-lg); }

/* ---------- Subscribe band ---------------------------------------------- */

.cta-band {
    position: relative;
    padding: clamp(64px, 8vw, 104px) 0;
    overflow: hidden;
    color: var(--on-dark);
    background: var(--navy);
}

.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; mix-blend-mode: luminosity; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }

.inline-form { display: flex; gap: 10px; }
.inline-form .form-control { flex: 1; }

@media (max-width: 575px) {
    .inline-form { flex-direction: column; }
}

/* ---------- Footer ------------------------------------------------------- */

.site-footer { color: var(--on-dark); background: var(--ink); }

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 40px clamp(28px, 4vw, 64px);
    padding: clamp(64px, 8vw, 96px) 0 56px;
}

.site-footer__brand img { height: 50px; width: auto; margin-bottom: 20px; }
.site-footer__brand p { max-width: 400px; color: var(--on-dark-muted); }

.footer-contact { margin: 22px 0 24px; padding: 0; list-style: none; }
.footer-contact li { display: flex; gap: 12px; padding: 5px 0; color: var(--on-dark); }
.footer-contact i { width: 18px; margin-top: 5px; font-size: .9rem; color: var(--blue); }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-col { padding-top: 6px; }

.footer-col h4 {
    margin-bottom: 18px;
    padding-bottom: 12px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 10px; }

.footer-col a {
    color: var(--on-dark-muted);
    text-decoration: none;
    transition: color .2s ease, padding-left .2s var(--ease);
}

.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-staff {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 7px 14px !important;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius-sm);
}

.footer-staff i { font-size: .75rem; color: var(--blue); }
.footer-staff:hover { border-color: var(--blue); background: rgba(0, 163, 221, .12); }

@media (max-width: 991px) {
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 22px 0 28px;
    font-size: var(--fs-sm);
    color: var(--on-dark-muted);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__bottom a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer__bottom a:hover { color: var(--blue); }

/* ---------- WhatsApp widget --------------------------------------------- */

.wa-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 8px;
    color: var(--ink);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 16px 36px -14px rgba(15, 12, 56, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity .3s ease, transform .35s var(--ease), visibility .3s, box-shadow .2s ease;
}

.wa-widget.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-widget:hover { color: var(--ink); box-shadow: 0 20px 40px -14px rgba(15, 12, 56, .55); }

.wa-widget__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    font-size: 1.55rem;
    color: #fff;
    background: #25d366;
    border-radius: 50%;
}

.wa-widget__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
    animation: wa-pulse 2.4s ease-out 3;
}

@keyframes wa-pulse { to { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

.wa-widget__text { font-family: var(--font-display); font-size: .92rem; font-weight: 700; line-height: 1.2; }
.wa-widget__text small { display: block; font-family: var(--font-text); font-size: .75rem; font-weight: 500; color: var(--muted); }

@media (max-width: 575px) {
    .wa-widget { right: 16px; bottom: 16px; padding: 6px; }
    .wa-widget__text { display: none; }
    .wa-widget__icon { width: 52px; height: 52px; }
}

/* ---------- Fancybox caption & misc ------------------------------------- */

.fancybox-caption__body { font-family: var(--font-text); }

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    background: var(--paper-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
