/* About Us and Donation pages. All rules are scoped to .ztf-page. */
.ztf-page {
    --ztf-blue: #063b83;
    --ztf-navy: #062958;
    --ztf-gold: var(--sopot-base, #d4af37);
    --ztf-gold-soft: #fbf5e2;
    --ztf-ink: #102949;
    --ztf-muted: #5b6b80;
    --ztf-line: #e4e9f1;
    --ztf-paper: #f6f8fc;
    color: var(--ztf-muted);
    font-family: var(--sopot-font, 'Rubik', sans-serif);
}
.ztf-page *, .ztf-page *::before, .ztf-page *::after { box-sizing: border-box; }
.ztf-page h2, .ztf-page h3, .ztf-page h4 { color: var(--ztf-ink); font-family: var(--sopot-font-two, 'Fira Sans', sans-serif); }
.ztf-page p { margin: 0 0 16px; font-size: 16px; line-height: 1.75; }
.ztf-page a { text-decoration: none; }
.ztf-page .section-title { margin-bottom: 40px; }
.ztf-page .section-title__title span { color: var(--ztf-gold); }
.ztf-page .text-center { text-align: center; }
.ztf-page .text-center .ztf-lead { max-width: 720px; margin-inline: auto; }

.ztf-section { padding: 100px 0; }
.ztf-section--paper { background: var(--ztf-paper); }
.ztf-section--tight { padding-top: 0; }
.ztf-lead { font-size: 18px !important; color: var(--ztf-ink); }

/* Buttons: Sopot .thm-btn, plus a blue and an outline variant */
.ztf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ztf-page .thm-btn { border-radius: 6px; }
.ztf-page .ztf-btn-blue { background-color: var(--ztf-blue); }
.ztf-page .ztf-btn-outline { background: transparent; color: var(--ztf-blue); box-shadow: inset 0 0 0 2px var(--ztf-blue); }
.ztf-page .ztf-btn-outline:hover { color: #fff; }

/* Intro: text beside a two-photo collage */
.ztf-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ztf-collage { position: relative; padding: 0 0 70px 0; }
.ztf-collage img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 10px; }
.ztf-collage__main { aspect-ratio: 4 / 3.2; }
.ztf-collage__small { position: absolute; right: -24px; bottom: 0; width: 46% !important; aspect-ratio: 1; border: 8px solid #fff; box-shadow: 0 18px 40px rgb(6 41 88 / 18%); }
.ztf-collage::before { content: ''; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; border-radius: 10px; background: var(--ztf-gold); z-index: -1; }
.ztf-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ztf-checks li { position: relative; padding-left: 34px; color: var(--ztf-ink); font-size: 16px; line-height: 1.6; }
.ztf-checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ztf-gold-soft); box-shadow: inset 0 0 0 1.5px var(--ztf-gold); }
.ztf-checks li::after { content: ''; position: absolute; left: 8px; top: 7px; width: 6px; height: 10px; border-right: 2px solid var(--ztf-blue); border-bottom: 2px solid var(--ztf-blue); transform: rotate(45deg); }

/* Card grids */
.ztf-grid { display: grid; gap: 24px; }
.ztf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ztf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ztf-grid--5 { grid-template-columns: repeat(5, 1fr); }
.ztf-card { position: relative; height: 100%; padding: 34px 30px; border-radius: 10px; background: #fff; border: 1px solid var(--ztf-line); box-shadow: 0 10px 30px rgb(6 41 88 / 6%); transition: transform .2s, box-shadow .2s; }
.ztf-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(6 41 88 / 12%); }
.ztf-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; }
.ztf-card p { margin: 0; font-size: 15px; line-height: 1.7; }
.ztf-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 20px; border-radius: 50%; background: var(--ztf-gold-soft); color: var(--ztf-blue); }
.ztf-card__icon svg { width: 28px; height: 28px; }
.ztf-card--feature { padding: 44px 40px; border-top: 4px solid var(--ztf-gold); }
.ztf-card--feature h3 { font-size: 26px; }
.ztf-card--value { padding: 30px 22px; text-align: center; }
.ztf-card--value h3 { font-size: 19px; }
.ztf-card--value .ztf-card__icon { margin-inline: auto; }
.ztf-card__link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--ztf-blue); font-weight: 500; font-size: 15px; }
.ztf-card__link:hover { color: var(--ztf-gold); }

/* Call-to-action band */
.ztf-band { position: relative; overflow: hidden; padding: 70px 60px; border-radius: 14px; color: #e6edf8; background: linear-gradient(110deg, #073c84 0%, #07336f 55%, #062958 100%); }
.ztf-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgb(212 175 55 / 18%); }
.ztf-band h2 { margin: 0 0 12px; color: #fff; font-size: 38px; line-height: 1.2; }
.ztf-band h2 span { color: var(--ztf-gold); }
.ztf-band p { max-width: 640px; color: #d5e0f0; }
.ztf-band .ztf-btn-outline { color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 70%); }

/* Donation: M-Pesa panel */
.ztf-donate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 40px; align-items: start; }
.ztf-mpesa { padding: 44px 40px; border-radius: 14px; background: #fff; border: 1px solid var(--ztf-line); box-shadow: 0 16px 44px rgb(6 41 88 / 9%); }
.ztf-mpesa__head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.ztf-mpesa__badge { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border-radius: 6px; background: #3aa935; color: #fff; font-weight: 700; letter-spacing: .02em; }
.ztf-mpesa__head h2 { margin: 0; font-size: 28px; }
.ztf-steps { list-style: none; counter-reset: ztf-step; margin: 0; padding: 0; display: grid; gap: 4px; }
.ztf-steps li { counter-increment: ztf-step; position: relative; padding: 12px 0 12px 54px; color: var(--ztf-ink); font-size: 16px; line-height: 1.6; border-bottom: 1px dashed var(--ztf-line); }
.ztf-steps li:last-child { border-bottom: 0; }
.ztf-steps li::before { content: counter(ztf-step); position: absolute; left: 0; top: 9px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ztf-blue); color: #fff; font-size: 14px; font-weight: 600; }
.ztf-steps strong { color: var(--ztf-blue); }
.ztf-paybill { position: sticky; top: 30px; display: grid; gap: 16px; }
.ztf-paybill__card { padding: 32px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #073c84 0%, #062958 100%); box-shadow: 0 16px 44px rgb(6 41 88 / 22%); }
.ztf-paybill__card h3 { margin: 0 0 20px; color: #fff; font-size: 20px; }
.ztf-paybill__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 12px; border-radius: 10px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); }
.ztf-paybill__row small { display: block; color: #b9c9e2; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ztf-paybill__row b { display: block; color: var(--ztf-gold); font-family: var(--sopot-font-two, 'Fira Sans', sans-serif); font-size: 30px; line-height: 1.2; letter-spacing: .04em; }
.ztf-copy { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 6px; background: transparent; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.ztf-copy:hover, .ztf-copy:focus-visible { background: rgb(255 255 255 / 14%); }
.ztf-copy.is-copied { border-color: var(--ztf-gold); color: var(--ztf-gold); }
.ztf-paybill__note { margin: 6px 0 0 !important; color: #d5e0f0; font-size: 14px !important; }
.ztf-paybill__note b { color: #fff; }
.ztf-help { padding: 26px 28px; border-radius: 14px; background: var(--ztf-gold-soft); border: 1px solid rgb(212 175 55 / 45%); }
.ztf-help h3 { margin: 0 0 8px; font-size: 19px; }
.ztf-help p { margin: 0 0 12px; font-size: 15px; }
.ztf-help a { color: var(--ztf-blue); font-weight: 600; }
.ztf-help a:hover { color: var(--ztf-gold); }

/* Give card (compact, KES) */
.ztf-give { overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid var(--ztf-line); box-shadow: 0 16px 44px rgb(6 41 88 / 12%); }
.ztf-give input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ztf-give .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ztf-give__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: #f3f2ee; border-bottom: 1px solid var(--ztf-line); }
.ztf-give__tabs label { margin: 0; cursor: pointer; }
.ztf-give__tabs span { display: block; padding: 9px 8px; border-radius: 6px; text-align: center; color: #8a8f99; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: background .15s, color .15s; }
.ztf-give__tabs input:checked + span { background: var(--ztf-gold); color: var(--ztf-ink); }
.ztf-give__tabs input:focus-visible + span { outline: 2px solid var(--ztf-blue); outline-offset: 2px; }
.ztf-give__body { padding: 18px 18px 20px; }
.ztf-give__label { margin: 0 0 12px !important; color: var(--ztf-ink); font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4 !important; }
.ztf-give__amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ztf-give__amounts label { margin: 0; cursor: pointer; }
.ztf-give__amounts label > span { display: flex; align-items: baseline; justify-content: center; gap: 3px; min-height: 48px; padding: 12px 8px; border-radius: 6px; border: 1px solid #e1e0da; background: #f3f2ee; color: #8a8f99; font-size: 17px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.ztf-give__amounts input:checked + span { background: var(--ztf-gold); border-color: var(--ztf-gold); color: var(--ztf-ink); }
.ztf-give__amounts input:focus-visible + span { outline: 2px solid var(--ztf-blue); outline-offset: 2px; }
.ztf-give__per { font-size: 11px; font-weight: 400; }
.ztf-give.is-once .ztf-give__per { display: none; }
.ztf-give__other { grid-column: 1 / -1; }
.ztf-give__other input { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 6px; border: 1px solid #e1e0da; background: #f3f2ee; color: var(--ztf-ink); font-size: 16px; text-align: center; }
.ztf-give__other input:focus { outline: 2px solid var(--ztf-gold); border-color: var(--ztf-gold); background: #fff; }
.ztf-give__impact { display: flex; gap: 8px; margin: 14px 0 !important; color: var(--ztf-ink); font-size: 14px !important; line-height: 1.5 !important; }
.ztf-give__impact > span:first-child { color: var(--ztf-gold); }
.ztf-give__btn { width: 100%; min-height: 50px; border: 0; border-radius: 6px; background: var(--ztf-gold); color: var(--ztf-ink); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.ztf-give__btn:hover { background: #e2bf4a; }
.ztf-give__btn:focus-visible { outline: 2px solid var(--ztf-blue); outline-offset: 2px; }
.ztf-give__result { margin-top: 14px; padding: 14px 16px; border-radius: 8px; background: var(--ztf-gold-soft); border: 1px solid rgb(212 175 55 / 45%); color: var(--ztf-ink); font-size: 14px; line-height: 1.55; }
.ztf-give__result-title { margin: 0 0 8px !important; font-weight: 600; font-size: 15px !important; }
.ztf-give__result ol { margin: 0; padding-left: 20px; }
.ztf-give__result li + li { margin-top: 4px; }

/* Gallery album */
.ztf-page--gallery .ztf-section { padding-bottom: 40px; }
/* Intro: text and video side by side, same height */
.ztf-gallery-intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.ztf-gallery-intro .section-title { margin-bottom: 18px; }
.ztf-gallery-intro__date { margin: 0 0 10px !important; color: var(--ztf-gold); font-weight: 600; font-size: 14px !important; letter-spacing: .08em; text-transform: uppercase; }
.ztf-gallery-intro__stats { display: flex; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.ztf-gallery-intro__stats li { padding: 10px 16px; border-radius: 8px; background: var(--ztf-paper); border: 1px solid var(--ztf-line); color: var(--ztf-muted); font-size: 14px; }
.ztf-gallery-intro__stats strong { color: var(--ztf-blue); font-size: 18px; margin-right: 4px; }
.ztf-gallery-intro__video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; box-shadow: 0 18px 48px rgb(6 41 88 / 20%); }
/* Photo blocks share one header style and grid */
.ztf-gallery-block { padding: 80px 0; }
.ztf-gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ztf-line); }
.ztf-gallery-head h3 { margin: 0; font-size: 26px; }
.ztf-gallery-head span { color: var(--ztf-muted); font-size: 14px; }
.ztf-album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ztf-album__item { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: var(--ztf-line); }
/* Featured first photo fills a 2x2 area exactly (its height comes from the rows, not its own ratio) */
.ztf-album__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ztf-album--archive { grid-template-columns: repeat(3, 1fr); }
.ztf-album--archive .ztf-album__item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.ztf-album__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ztf-album__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(6 41 88 / 45%)); opacity: 0; transition: opacity .25s; }
.ztf-album__item:hover img, .ztf-album__item:focus-visible img { transform: scale(1.05); }
.ztf-album__item:hover::after, .ztf-album__item:focus-visible::after { opacity: 1; }
.ztf-album__item:focus-visible { outline: 3px solid var(--ztf-gold); outline-offset: 3px; }

@media (max-width: 1199px) {
    .ztf-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .ztf-section { padding: 70px 0; }
    .ztf-intro, .ztf-donate { grid-template-columns: 1fr; gap: 48px; }
    .ztf-collage { max-width: 560px; }
    .ztf-collage__small { right: 0; }
    .ztf-grid--3, .ztf-grid--5 { grid-template-columns: repeat(2, 1fr); }
    .ztf-paybill { position: static; max-width: 520px; order: -1; }
    .ztf-album, .ztf-album--archive { grid-template-columns: repeat(2, 1fr); }
    .ztf-gallery-intro__grid { grid-template-columns: 1fr; gap: 36px; }
    .ztf-gallery-block { padding: 60px 0; }
    .ztf-band { padding: 54px 36px; }
    .ztf-band h2 { font-size: 32px; }
}
@media (max-width: 599px) {
    .ztf-section { padding: 56px 0; }
    .ztf-grid--2, .ztf-grid--3, .ztf-grid--5 { grid-template-columns: 1fr; }
    .ztf-album { gap: 10px; }
    .ztf-gallery-head { flex-direction: column; gap: 4px; }
    .ztf-gallery-head h3 { font-size: 22px; }
    .ztf-card--feature, .ztf-mpesa { padding: 30px 22px; }
    .ztf-band { padding: 44px 24px; }
    .ztf-band h2 { font-size: 27px; }
    .ztf-paybill__card { padding: 24px 18px; }
    .ztf-paybill__row b { font-size: 25px; }
    .ztf-collage::before { left: -8px; top: -8px; width: 80px; height: 80px; }
    .ztf-page .section-title__title { font-size: 28px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) { .ztf-card, .ztf-album__item img { transition: none; } .ztf-card:hover, .ztf-album__item:hover img { transform: none; } }
