/* ==========================================================================
   components.css: building blocks shared by several pages.
   ========================================================================== */

/* ---------- Background patterns ---------- */
/* Offset stone blocks, a nod to the cornerstone logo */
.hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cg fill='none' stroke='%2333312c' stroke-opacity='.06' stroke-width='2'%3E%3Cpath d='M0 1h120M0 31h120M60 1v30M0 31v30M120 31v30'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: linear-gradient(180deg, #000 30%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; fill: var(--bg); }

/* ---------- Banners (home and inner pages) ----------
   A full photo behind the words, darkened on the text side so the white
   title stays easy to read. Photos: images/photos/<name>-banner.jpg */
.hero, .page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--forest-900);
}
.hero { min-height: clamp(560px, 88vh, 820px); padding: clamp(4rem, 8vw, 6rem) 0 clamp(6rem, 10vw, 8rem); }
.page-hero { min-height: clamp(440px, 66vh, 620px); padding: clamp(4rem, 8vw, 6rem) 0 clamp(5.5rem, 9vw, 7rem); }
.hero-photo, .page-hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center 40%;
    animation: hero-zoom 18s ease-out both;
}
.hero-photo::after, .page-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 19, 16, .9) 0%, rgba(20, 19, 16, .72) 42%, rgba(20, 19, 16, .25) 78%, rgba(20, 19, 16, .1) 100%),
        linear-gradient(0deg, rgba(20, 19, 16, .65) 0%, transparent 35%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }
.hero .hero-pattern, .page-hero .hero-pattern { z-index: -1; opacity: .5; filter: invert(1); }
.hero-glow { position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(221, 197, 125, .22), transparent 70%); filter: blur(20px); animation: float 12s ease-in-out infinite; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; width: 100%; }
.page-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; width: 100%; }
.page-hero-text { max-width: 820px; }

/* Eyebrow on a photo: frosted glass */
.hero .eyebrow, .page-hero .eyebrow {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    color: var(--white);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Banner title: large display serif, the second part in gold italic */
.hero-title {
    margin: 0 0 1.25rem;
    font-family: var(--font-title);
    font-size: clamp(2.6rem, 6.2vw, 5rem);
    font-weight: 800;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    line-height: 1.02;
    letter-spacing: -.025em;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
    text-wrap: balance;
}
.page-hero .hero-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.hero-title em {
    display: block;
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(100deg, #f3dfa0 0%, var(--gold-400) 35%, var(--leaf-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .45));
    padding-bottom: .06em;
}
.hero-title::after {
    content: '';
    display: block;
    width: 96px;
    height: 5px;
    margin-top: 1.4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-400), var(--leaf-500));
}
.hero .lead, .page-hero .lead {
    max-width: 640px;
    margin: 0;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.hero-rotator { margin-top: 1.25rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.rotator { display: inline-block; font-family: var(--font-title); font-style: italic; font-size: 1.45rem; color: var(--gold-400); min-width: 8ch; transition: opacity .35s, transform .35s var(--ease); }
.rotator.out { opacity: 0; transform: translateY(-8px); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .btn-outline, .page-hero .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .7); }
.hero .btn-outline:hover, .page-hero .btn-outline:hover { background: var(--white); color: var(--forest-900); }

/* Programme logos on the banner */
.hero-logos { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-logos img { width: 92px; height: 92px; padding: 10px; object-fit: contain; border-radius: 24px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.hero-logos img:hover { transform: translateY(-4px) rotate(-2deg); }

/* Circle of programme logos around the CDA logo (home banner) */
.hero-visual { display: flex; justify-content: center; }
.orbit { position: relative; width: min(420px, 80vw); aspect-ratio: 1; }
.orbit::before, .orbit::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(221, 197, 125, .6); animation: spin 60s linear infinite; }
.orbit::after { inset: 14%; border: 1px solid rgba(255, 255, 255, .25); animation-direction: reverse; }
.orbit-center { position: absolute; inset: 22%; display: grid; place-items: center; padding: 6%; border-radius: 50%; background: radial-gradient(circle, var(--white) 55%, var(--leaf-100)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); animation: float 7s ease-in-out infinite; }
.orbit-center img { width: 100%; height: 100%; object-fit: contain; }
.orbit-badge { position: absolute; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lg); padding: 10px; color: var(--leaf-700); animation: float 6s ease-in-out infinite; transition: box-shadow .3s; }
.orbit-badge:hover { box-shadow: 0 0 0 4px var(--gold-400), var(--shadow-lg); }
.orbit-badge img { width: 100%; height: 100%; object-fit: contain; }
.orbit-badge-icon { background: var(--leaf-500); color: var(--forest-900); }
.orbit-badge.b1 { top: 0; left: 8%; animation-delay: -1s; }
.orbit-badge.b2 { top: 6%; right: 2%; animation-delay: -2.5s; }
.orbit-badge.b3 { bottom: 4%; right: 10%; animation-delay: -3s; }
.orbit-badge.b4 { bottom: 8%; left: 0; animation-delay: -4s; }
.orbit-label { position: absolute; left: 50%; bottom: -1.75rem; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
    .orbit { width: min(300px, 74vw); margin-bottom: 2rem; }
    .orbit-badge { width: 62px; height: 62px; }
    .hero-inner, .page-hero-inner { grid-template-columns: 1fr; }
    .hero-photo::after, .page-hero-photo::after { background: linear-gradient(0deg, rgba(20, 19, 16, .9) 0%, rgba(20, 19, 16, .72) 60%, rgba(20, 19, 16, .55) 100%); }
    .hero-logos img { width: 70px; height: 70px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo, .page-hero-photo { animation: none; } }

/* ---------- Photo placeholder (shown until the photo is added) ---------- */
.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    height: 100%;
    min-height: 160px;
    padding: 1rem;
    text-align: center;
    color: var(--leaf-700);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cg fill='none' stroke='%2333312c' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M0 .5h60M0 15.5h60M30 .5v15M0 15.5v15M60 15.5v15'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--stone-100), var(--stone-200));
}
.photo-placeholder > span { font-weight: 700; font-size: .95rem; }
.photo-placeholder small { font-size: .72rem; font-weight: 600; color: var(--ink-soft); word-break: break-all; }

/* ---------- Key figures ---------- */
.stats-section { position: relative; margin-top: -4.5rem; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 2rem 1.5rem; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-title); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--forest-800); line-height: 1.1; }
.stat > span { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 760px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3)::before { display: none; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.icon-card:hover, .program-card:hover, .news-card:hover, .resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--stone-300); }

.icon-badge { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--forest-100); color: var(--forest-700); flex-shrink: 0; transition: transform .35s var(--ease), background .35s, color .35s; }
.icon-card .icon-badge { margin-bottom: 1.25rem; }
.icon-card:hover .icon-badge { transform: rotate(-8deg) scale(1.08); background: var(--forest-800); color: var(--leaf-400); }
.icon-badge-accent { background: var(--leaf-500); color: var(--forest-950); }
.icon-badge-lg { width: 68px; height: 68px; border-radius: 20px; }

.stack-cards { display: grid; gap: 1rem; }
.feature-card { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.6rem; }
.feature-card:hover { transform: translateX(6px); border-color: var(--leaf-500); }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { font-size: .97rem; color: var(--ink-soft); }

.highlight-card { background: var(--stone-100); border: 1px solid var(--stone-200); border-top: 4px solid var(--leaf-700); box-shadow: var(--shadow); }
.quote-text { font-family: var(--font-title); font-size: 1.25rem; font-style: italic; color: var(--white); line-height: 1.5; }

.quote {
    margin: 1.75rem 0 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--leaf-500);
    background: var(--leaf-100);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--forest-900);
}

/* ---------- Pills, badges, tags ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li { padding: .35rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--forest-800); }
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: var(--forest-100); color: var(--forest-800); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.badge-accent { background: var(--leaf-500); color: var(--forest-950); }
.mini-tag { display: inline-block; padding: .2rem .6rem; border-radius: 6px; font-size: .78rem; font-weight: 700; background: var(--stone-100); color: var(--ink); }
.tag-cla { background: var(--forest-800); color: var(--white); }
.tag-cosa { background: var(--forest-600); color: var(--white); }
.tag-hld { background: var(--leaf-500); color: var(--forest-950); }
.tag-aylf { background: var(--stone-300); color: var(--forest-900); }
.mini-tag.is-soon { background: transparent; border: 1px dashed var(--stone-300); color: var(--ink-soft); font-weight: 500; }

/* ---------- Check list ---------- */
.check-list { display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { flex-shrink: 0; margin-top: .25rem; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-500); color: var(--forest-950); stroke-width: 3; }
.check-list-light li { color: var(--ink); }

/* ---------- L.I.F.E. flip cards ---------- */
.life-section .container { position: relative; }
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; perspective: 1200px; }
.life-card { height: 300px; padding: 0; border: 0; background: none; color: inherit; text-align: center; }
.life-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.life-card:hover .life-inner, .life-card:focus-visible .life-inner, .life-card[aria-pressed="true"] .life-inner { transform: rotateY(180deg); }
.life-front, .life-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.75rem; border-radius: var(--radius-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.life-front { background: var(--white); border: 1px solid var(--stone-300); box-shadow: var(--shadow); }
.life-back { background: var(--forest-800); color: #fff; transform: rotateY(180deg); }
.life-back strong { font-family: var(--font-title); font-size: 1.35rem; color: var(--leaf-400); }
.life-back span:last-child { font-size: .95rem; line-height: 1.6; }
.life-letter { font-family: var(--font-title); font-size: 6rem; line-height: 1; font-weight: 700; color: var(--leaf-700); text-shadow: 0 10px 30px rgba(120, 109, 69, .2); }
.life-word { font-size: 1.25rem; font-weight: 600; color: var(--forest-900); letter-spacing: .04em; }
.life-name { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.life-name.is-same { visibility: hidden; }
@media (max-width: 960px) { .life-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .life-card { height: 260px; } .life-letter { font-size: 4.5rem; } }

.value-tile { position: relative; padding: 2rem 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--stone-300); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.value-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.value-letter { position: absolute; right: -.5rem; top: -1.5rem; font-family: var(--font-title); font-size: 8rem; font-weight: 700; color: rgba(120, 109, 69, .14); line-height: 1; }
.value-tile h3 { position: relative; color: var(--leaf-700); }
.value-tile p { position: relative; margin: 0; }

/* ---------- Three stages ---------- */
.stage-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; counter-reset: stage; }
.stage-path::before { content: ''; position: absolute; top: 74px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--leaf-500) 0 10px, transparent 10px 20px); }
.stage { position: relative; }
.stage-card { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 2rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.stage-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--ink); border-color: var(--leaf-500); }
.stage-num { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf-700); }
.stage-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 1rem 0 1.25rem; border-radius: 50%; background: var(--forest-800); color: var(--leaf-400); box-shadow: 0 0 0 8px var(--forest-100); transition: transform .5s var(--ease); }
.stage-card:hover .stage-icon { transform: rotate(360deg); }
.stage-card h3 { margin-bottom: .2rem; font-size: 1.6rem; }
.stage-name { font-weight: 600; color: var(--forest-700); font-size: .95rem; }
.stage-card p { color: var(--ink-soft); }
.stage-card .link-arrow { margin-top: auto; }
.stage.is-current .stage-card { border: 2px solid var(--leaf-500); background: var(--leaf-100); }
@media (max-width: 860px) {
    .stage-path { grid-template-columns: 1fr; }
    .stage-path::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--leaf-500) 0 10px, transparent 10px 20px); }
}

/* ---------- Program cards (HLD, AYLF, Shalom) ---------- */
.program-card { display: flex; flex-direction: column; color: var(--ink); position: relative; overflow: hidden; }
.program-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--forest-800); transform: scaleX(.15); transform-origin: left; transition: transform .45s var(--ease); }
.program-card:hover { color: var(--ink); }
.program-card:hover::before { transform: scaleX(1); }
.program-hld::before { background: var(--leaf-500); }
.program-shalom::before { background: var(--forest-600); }
.program-logo { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1.25rem; border-radius: 20px; background: var(--stone-100); color: var(--forest-700); padding: 8px; }
.program-logo img { width: 100%; height: 100%; object-fit: contain; }
.program-name { font-weight: 600; color: var(--forest-700); font-size: .95rem; margin-bottom: .75rem; }
.program-card p:not(.program-name) { color: var(--ink-soft); }
.program-card .link-arrow { margin-top: auto; padding-top: .5rem; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.25rem; }
.filter-btn { padding: .55rem 1.25rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: .92rem; transition: all .25s var(--ease); }
.filter-btn:hover { border-color: var(--forest-700); color: var(--forest-800); }
.filter-btn.active { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); box-shadow: var(--shadow); }
.is-filtered-out { display: none !important; }
.filter-in { animation: filterIn .45s var(--ease); }
@keyframes filterIn { from { opacity: 0; transform: scale(.95) translateY(10px); } }
.empty-note { text-align: center; color: var(--ink-soft); padding: 2rem; }

/* ---------- Cities ---------- */
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.city-card { padding: 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf-500); }
.city-card.is-hq { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
.city-card.is-hq h3 { color: var(--white); }
.city-card.is-hq .city-note { color: rgba(255, 255, 255, .7); }
.city-card.is-hq .city-pin { background: var(--leaf-500); color: var(--forest-950); }
.city-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.city-top h3 { margin: 0; font-size: 1.15rem; flex: 1; }
.city-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--forest-100); color: var(--forest-700); }
.city-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.city-note { margin: .75rem 0 0; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 960px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .city-grid { grid-template-columns: 1fr; } }

.city-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.city-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: .92rem; transition: background .25s, color .25s, transform .25s; }
.city-chips li .icon { color: var(--leaf-600); }
.city-chips li:hover { background: var(--forest-800); color: var(--white); transform: translateY(-2px); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-visual { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--forest-800); background: linear-gradient(135deg, var(--stone-200), var(--stone-300)); overflow: hidden; }
.news-visual::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cg fill='none' stroke='%2333312c' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M0 .5h60M0 15.5h60M30 .5v15M0 15.5v15M60 15.5v15'/%3E%3C/g%3E%3C/svg%3E"); }
.news-hld { background: linear-gradient(135deg, var(--leaf-100), var(--leaf-600)); color: var(--leaf-700); }
.news-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-visual .icon { position: relative; z-index: 1; transition: transform .5s var(--ease); }
.news-card:hover .news-visual .icon { transform: scale(1.15) rotate(-6deg); }
.news-card:hover .news-visual img { transform: scale(1.06); }
.news-visual .tag { position: absolute; z-index: 1; top: 1rem; left: 1rem; padding: .25rem .75rem; border-radius: 999px; background: var(--white); color: var(--forest-800); font-size: .78rem; font-weight: 700; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.75rem 1.75rem; }
.news-body > p:not(.news-date) { color: var(--ink-soft); }
.news-body .link-arrow { margin-top: auto; }
.news-date { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--leaf-700); margin-bottom: .6rem; }

.news-dialog { width: min(680px, calc(100vw - 2rem)); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--white); }
.news-dialog::backdrop { background: rgba(20, 19, 16, .65); backdrop-filter: blur(4px); }
.news-dialog[open] { animation: dialogIn .4s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.dialog-content { padding: 2.5rem; }
.dialog-content h2 { font-size: 1.8rem; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--stone-100); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.dialog-close:hover { background: var(--forest-800); color: var(--white); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 960px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--line); border-radius: 3px; }
.timeline::after { content: ''; position: absolute; left: 50%; top: 0; width: 3px; height: var(--line-progress, 0%); transform: translateX(-50%); background: linear-gradient(var(--leaf-500), var(--forest-700)); border-radius: 3px; transition: height .2s linear; }
.timeline-item { position: relative; width: 50%; padding: 0 3rem 2.5rem 0; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.5rem 3rem; }
.timeline-dot { position: absolute; top: 1.75rem; right: -11px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--leaf-500); transition: transform .3s, background .3s; }
.timeline-item:nth-child(even) .timeline-dot { right: auto; left: -11px; }
.timeline-item.is-visible .timeline-dot { background: var(--forest-800); transform: scale(1.15); }
.timeline-card { padding: 1.5rem 1.75rem; }
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline-year { display: inline-block; font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--leaf-600); margin-bottom: .2rem; }
.timeline-card h3 { font-size: 1.2rem; }
.timeline-card p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 760px) {
    .timeline::before, .timeline::after { left: 10px; transform: none; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2rem 2.75rem; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; }
}

/* ---------- Tabs ---------- */
.tabs { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.tab-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--stone-50); scrollbar-width: none; }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1.1rem 1rem; border: 0; background: none; color: var(--ink-soft); font-weight: 700; font-size: .95rem; white-space: nowrap; position: relative; transition: color .25s, background .25s; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--leaf-500); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab:hover { color: var(--forest-800); background: var(--white); }
.tab[aria-selected="true"] { color: var(--forest-800); background: var(--white); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { display: grid; grid-template-columns: auto 1fr; gap: 2rem; padding: clamp(1.75rem, 4vw, 3rem); animation: filterIn .45s var(--ease); }
.tab-panel-icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: var(--forest-800); color: var(--leaf-400); }
@media (max-width: 640px) { .tab-panel { grid-template-columns: 1fr; } .tab span { display: none; } .tab { flex: 0 0 auto; padding: 1rem 1.25rem; } }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: .75rem; max-width: 860px; margin: 0 auto; }
.accordion details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.accordion details[open] { box-shadow: var(--shadow); border-color: var(--leaf-500); }
.accordion summary { display: flex; align-items: center; gap: .85rem; padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--forest-900); list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary > .icon { color: var(--leaf-600); }
.acc-icon { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stone-100); transition: transform .3s var(--ease), background .3s; }
.accordion details[open] .acc-icon { transform: rotate(180deg); background: var(--leaf-500); }
.accordion details > :not(summary) { margin: 0 1.5rem 1.5rem; color: var(--ink-soft); }

/* ---------- Bars (HLD schools) ---------- */
.bars { display: grid; gap: 1rem; margin: 1.25rem 0; }
.bars li { display: grid; grid-template-columns: 90px 1fr 92px; gap: 1rem; align-items: center; font-size: .95rem; }
.bar-label { font-weight: 600; }
.bar-track { height: 12px; border-radius: 999px; background: var(--stone-100); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--forest-700), var(--leaf-500)); transition: width 1.4s var(--ease); }
.is-visible .bar-fill { width: var(--w); }
html:not(.js) .bar-fill { width: var(--w); }
.bar-value { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; text-align: right; }
.soon-note { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--leaf-100); color: var(--leaf-700); font-weight: 600; font-size: .92rem; }

/* ---------- Call to action band ---------- */
.cta-band { position: relative; padding: 0 0 clamp(4rem, 8vw, 6rem); }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius-lg);
    color: var(--ink-soft);
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(255, 255, 255, .6), transparent 60%),
        linear-gradient(135deg, var(--sage-100), var(--gold-200));
    box-shadow: var(--shadow);
}
.section-soft + .cta-band { background: var(--stone-100); }
.cta-inner > div:first-child { max-width: 620px; }
.cta-inner h2 { color: var(--forest-900); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { margin: 0; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--forest-900); padding: 0; margin-bottom: .1rem; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .85rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--stone-50);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-600); background: var(--white); box-shadow: 0 0 0 4px rgba(226, 221, 192, .25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #fdf3f0; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--success); }
.field-error { font-size: .85rem; color: var(--error); font-weight: 500; }
.char-count { align-self: flex-end; font-size: .8rem; color: var(--ink-soft); }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--stone-50); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .2s; }
.chip span:hover { border-color: var(--forest-600); }
.chip input:checked + span { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
.chip input:checked + span::before { content: '✓'; color: var(--leaf-400); }
.chip input:focus-visible + span { outline: 3px solid var(--leaf-500); outline-offset: 2px; }
.form-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.form-note { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; font-weight: 500; }
.alert .icon { flex-shrink: 0; margin-top: .15rem; }
.alert-success { background: #e8f2e6; color: var(--success); border: 1px solid #c4dcc0; }
.alert-error { background: #fbeae5; color: var(--error); border: 1px solid #f0c6b9; }
button[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Stage One application ---------- */
.apply-band { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.apply-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--white); border: 2px dashed var(--stone-300); box-shadow: var(--shadow); }
.apply-card.is-open { border: 2px solid var(--leaf-700); }
.apply-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--stone-100); color: var(--leaf-700); }
.apply-card.is-open .apply-icon { background: var(--leaf-700); color: var(--white); }
.apply-text .eyebrow { margin-bottom: .4rem; }
.apply-text h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .4rem; }
.apply-text p { margin: 0; color: var(--ink-soft); }
.apply-text strong { color: var(--ink); }
.badge-closed { background: #f6e7df; color: var(--error); font-family: var(--font-body); }
.badge-open { background: #e3efe0; color: var(--success); font-family: var(--font-body); }
.btn-disabled { background: var(--stone-100); color: var(--ink-soft); border-color: var(--stone-300); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
@media (max-width: 860px) { .apply-card { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Clubs ---------- */
.club-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.club-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.club-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.club-photo img, .club-photo .photo-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.club-card:hover .club-photo img { transform: scale(1.06); }
.club-body { position: relative; padding: 2rem 1.5rem 1.5rem; }
.club-body .icon-badge { position: absolute; top: -27px; left: 1.5rem; background: var(--white); box-shadow: var(--shadow); }
.club-body h3 { font-size: 1.15rem; }
.club-body p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Testimonies ---------- */
.testimonies { max-width: 860px; margin: 0 auto; }
.testimony { position: relative; padding: clamp(2rem, 5vw, 3rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); text-align: center; animation: filterIn .5s var(--ease); }
.testimony-quote { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 50%; background: var(--stone-100); color: var(--leaf-700); }
.testimony blockquote { margin: 0 0 1.75rem; font-family: var(--font-title); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.6; color: var(--forest-900); }
.testimony-author { display: inline-flex; align-items: center; gap: 1rem; text-align: left; }
.testimony-photo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--stone-200); }
.testimony-photo img { width: 100%; height: 100%; object-fit: cover; }
.testimony-photo .photo-placeholder { min-height: 0; padding: 0; }
.testimony-photo .photo-placeholder span, .testimony-photo .photo-placeholder small { display: none; }
.testimony-photo .photo-placeholder .icon { width: 24px; height: 24px; }
.testimony-author strong { display: block; color: var(--forest-900); }
.testimony-author small { color: var(--leaf-700); font-weight: 600; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.slider-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--stone-300); background: var(--white); color: var(--forest-800); transition: background .25s, color .25s; }
.slider-btn:hover { background: var(--forest-800); color: var(--white); }
.slider-dots { display: flex; gap: .5rem; }
.slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--stone-300); transition: width .3s var(--ease), background .3s; }
.slider-dot.active { width: 28px; background: var(--leaf-700); }

/* ---------- Activity gallery and lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-open { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: none; overflow: hidden; cursor: zoom-in; }
.gallery-open img, .gallery-open .photo-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover .gallery-open img { transform: scale(1.07); }
.gallery-item figcaption { padding: 1rem 1.15rem 1.2rem; }
.gallery-item figcaption strong { display: block; color: var(--forest-900); }
.gallery-item figcaption span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { width: min(980px, calc(100vw - 2rem)); border: 0; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); overflow: visible; }
.lightbox::backdrop { background: rgba(20, 19, 16, .75); backdrop-filter: blur(4px); }
.lightbox[open] { animation: dialogIn .35s var(--ease); }
.lightbox-body img, .lightbox-body .photo-placeholder { display: flex; width: 100%; max-height: 75vh; aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--stone-100); }
.lightbox-body .lightbox-caption { padding: 1rem 1.5rem 1.25rem; }
.lightbox-caption strong { display: block; font-family: var(--font-title); font-size: 1.25rem; color: var(--forest-900); }
.lightbox .dialog-close { z-index: 2; }
.lightbox-nav { position: absolute; top: 40%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--forest-800); box-shadow: var(--shadow); }
.lightbox-nav:hover { background: var(--forest-800); color: var(--white); }
.lightbox-nav.prev { left: -24px; }
.lightbox-nav.next { right: -24px; }
@media (max-width: 640px) { .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; } }

/* ==========================================================================
   Photo blocks, programme tiles, cities and news by department
   ========================================================================== */

/* ---------- Dark section (home stages) ---------- */
.section-dark { background: radial-gradient(900px 500px at 10% 0%, rgba(174, 176, 71, .16), transparent 60%), linear-gradient(160deg, var(--forest-900), var(--brown-900)); color: rgba(255, 255, 255, .85); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: rgba(255, 255, 255, .82); }
.section-dark .eyebrow { background: rgba(255, 255, 255, .08); border-color: rgba(221, 197, 125, .45); color: var(--gold-400); }

/* ---------- Home: stages and outreach as photo tiles ---------- */
.program-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.program-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 460px; border-radius: var(--radius-lg); overflow: hidden; color: var(--white); isolation: isolate; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .12); }
.program-tile:hover, .program-tile:focus-visible { color: var(--white); }
.program-tile-photo { position: absolute; inset: 0; z-index: -2; }
.program-tile-photo img, .program-tile-photo .photo-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.program-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 19, 16, .05) 20%, rgba(20, 19, 16, .55) 55%, rgba(20, 19, 16, .95) 100%); transition: background .4s; }
.program-tile:hover .program-tile-photo img { transform: scale(1.08); }
.program-tile-label { position: absolute; top: 1.1rem; left: 1.1rem; padding: .4rem .95rem; border-radius: 999px; background: var(--gold-400); color: var(--brown-900); font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
.program-tile-body { display: grid; gap: .35rem; padding: 1.5rem 1.4rem 1.4rem; }
.program-tile-body strong { font-family: var(--font-title); font-size: 2rem; font-weight: 800; line-height: 1.05; }
.program-tile-name { font-weight: 700; color: var(--gold-400); font-size: .95rem; }
.program-tile-text { font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.program-tile-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .25); font-weight: 700; }
.program-tile-link .icon { transition: transform .3s var(--ease); }
.program-tile:hover .program-tile-link .icon { transform: translateX(5px); }
@media (max-width: 1040px) { .program-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .program-tile { min-height: 400px; } }
@media (max-width: 560px) { .program-tiles { grid-template-columns: 1fr; } .program-tile { min-height: 360px; } }

/* ---------- Framed photo next to text ---------- */
.photo-frame { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); border: 6px solid var(--white); background: var(--white); }
.photo-frame img, .photo-frame .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.photo-frame-sm { margin-top: 2rem; aspect-ratio: 16 / 10; }
.photo-badge { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .7rem; max-width: calc(100% - 2rem); padding: .7rem 1.1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); color: var(--ink-soft); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.photo-badge strong { font-family: var(--font-title); font-size: 1.9rem; color: var(--leaf-700); line-height: 1; white-space: nowrap; }
.photo-mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: .9rem; height: 420px; }
.photo-mosaic > * { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-mosaic > :first-child { grid-row: span 2; }
.prose-plain p { color: var(--ink-soft); }
.highlight-card { margin-top: 1.5rem; }
.highlight-card .quote-text { color: var(--forest-900); }
.highlight-card .small-label:first-child { margin-top: 0; }
.gallery-label { margin-top: 3.5rem; }
.narrow { max-width: 860px; }

/* ---------- Stage One: mission band and value cards ---------- */
.mission-band { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 6rem) 0; background: linear-gradient(135deg, var(--forest-900), var(--brown-700)); color: var(--white); }
.mission-band .hero-pattern { filter: invert(1); opacity: .5; }
.mission-band .eyebrow { background: rgba(255, 255, 255, .1); border-color: rgba(221, 197, 125, .5); color: var(--gold-400); }
.mission-quote-icon { display: block; width: max-content; margin: .5rem auto 1rem; color: var(--gold-400); }
.mission-band h2 { color: var(--white); margin-bottom: 0; }
.mission-band blockquote { margin: 0; font-family: var(--font-title); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-style: italic; font-weight: 500; line-height: 1.5; }
.value-card { text-align: center; border-top: 4px solid var(--leaf-500); transition: transform .35s var(--ease), box-shadow .35s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--forest-800); color: var(--gold-400); box-shadow: 0 0 0 8px var(--leaf-100); }
.value-card p { color: var(--ink-soft); font-size: .97rem; }
/* Cards that wrap and stay centred (5 programs, 5 clubs) */
.card-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.card-flow > * { flex: 0 1 calc((100% - 3rem) / 3); min-width: 260px; }
@media (max-width: 960px) { .card-flow > * { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) { .card-flow > * { flex-basis: 100%; } .photo-mosaic { height: 320px; } }

/* ---------- Cities where our programs are ---------- */
.city-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--forest-900), var(--brown-700)); box-shadow: var(--shadow-lg); }
.city-stats li { display: grid; gap: .15rem; padding: 1.5rem 1.25rem; text-align: center; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .9rem; border-right: 1px solid rgba(255, 255, 255, .12); }
.city-stats li:last-child { border-right: 0; }
.city-stats strong { font-family: var(--font-title); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--gold-400); }
.city-filter { justify-content: center; }
.city-filter .filter-btn { display: inline-flex; align-items: center; gap: .45rem; }
.city-filter .filter-btn img { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; background: var(--white); }
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.1rem; }
.city-card { position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 190px; padding: 1.4rem 1.3rem 1.25rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.city-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--leaf-500), var(--gold-400)); transform: scaleY(.25); transform-origin: top; transition: transform .45s var(--ease); }
.city-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--leaf-500); }
.city-card:hover::before { transform: none; }
.city-index { position: absolute; right: 1rem; top: .4rem; z-index: -1; font-family: var(--font-title); font-size: 3.6rem; font-weight: 800; line-height: 1; color: rgba(79, 100, 32, .1); }
.city-head h3 { margin: 0; font-size: 1.55rem; line-height: 1.15; }
.city-province { display: flex; align-items: center; gap: .35rem; margin: .3rem 0 0; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.city-province .icon { color: var(--leaf-600); }
.city-programs { display: flex; flex-wrap: wrap; gap: .4rem; }
.city-program { display: inline-flex; align-items: center; padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; background: var(--stone-100); color: var(--ink); }
.city-program.is-soon { background: transparent; border: 1px dashed var(--stone-300); color: var(--ink-soft); font-weight: 600; }
.city-note { display: flex; align-items: center; gap: .45rem; margin: auto 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--forest-700); }
.city-note .icon { color: var(--leaf-600); flex-shrink: 0; }
/* Headquarters: a large photo card */
.city-card.is-hq { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 400px; padding: 1.8rem; color: var(--white); border: 0; background: var(--forest-900); }
.city-card.is-hq::before { display: none; }
.city-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.city-card.is-hq::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 19, 16, .1) 0%, rgba(20, 19, 16, .55) 45%, rgba(20, 19, 16, .95) 100%); }
.city-card.is-hq:hover .city-photo { transform: scale(1.05); }
.city-card.is-hq .city-index { color: rgba(255, 255, 255, .18); font-size: 5rem; }
.city-card.is-hq h3 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3rem); }
.city-card.is-hq .city-province { color: rgba(255, 255, 255, .85); }
.city-card.is-hq .city-province .icon, .city-card.is-hq .city-note .icon { color: var(--gold-400); }
.city-card.is-hq .city-note { color: rgba(255, 255, 255, .9); border-top-color: rgba(255, 255, 255, .25); margin-top: 0; }
.city-badge { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .6rem; padding: .3rem .8rem; border-radius: 999px; background: var(--gold-400); color: var(--brown-900); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1040px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .city-stats { grid-template-columns: repeat(2, 1fr); } .city-stats li:nth-child(2) { border-right: 0; } .city-stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); } }
@media (max-width: 480px) { .city-grid { grid-template-columns: 1fr; } .city-card.is-hq { grid-column: auto; grid-row: auto; min-height: 340px; } }

/* ---------- News page: one block per department ---------- */
.news-dept { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.news-dept-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 2rem; }
.news-dept-head > div { flex: 1; min-width: 220px; }
.news-dept-head .eyebrow { margin-bottom: .5rem; }
.news-dept-head h2 { margin: 0; }
.news-dept-logo { display: grid; place-items: center; flex-shrink: 0; width: 84px; height: 84px; padding: 10px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--leaf-700); }
.news-dept-logo img { width: 100%; height: 100%; object-fit: contain; }
.news-empty { display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 2rem; border-radius: var(--radius-lg); border: 2px dashed var(--stone-300); background: rgba(255, 255, 255, .6); }
.news-empty-icon { display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--stone-100); color: var(--brown-500); }
.news-empty strong { display: block; font-family: var(--font-title); font-size: 1.3rem; color: var(--forest-900); }
.news-empty p { margin: .2rem 0 0; color: var(--ink-soft); }

/* ---------- Menu: Shalom Sport under Stage 3, HLD and AYLF under Outreach ---------- */
.dropdown .is-sub a { padding-left: 2.4rem; font-size: .93rem; }

/* Home banner: the tree at sunset. The photo stops above the key figures so
   the tree stays visible, and is less darkened than the inner pages. */
.hero .hero-photo { bottom: 90px; background-position: center bottom; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.hero .hero-photo::after { background: linear-gradient(90deg, rgba(20, 19, 16, .82) 0%, rgba(20, 19, 16, .55) 45%, rgba(20, 19, 16, .1) 80%), linear-gradient(0deg, rgba(20, 19, 16, .35) 0%, transparent 30%); }
.hero { background: linear-gradient(180deg, var(--forest-900), #2a2418); }
