/* ==========================================================================
   Tanzania Flying Doctors Community Relief: site design
   Loaded after the template's style.css. Tokens first, then components.
   ========================================================================== */

:root {
    --tf-green: #1F7A3E;          /* primary: brand, links, progress */
    --tf-green-dark: #165C2E;
    --tf-green-tint: #E7F1EA;
    --tf-orange: #F28C28;         /* only for Donate actions */
    --tf-orange-dark: #D9741A;
    --tf-navy: #1E2A5E;           /* text and headings */
    --tf-navy-soft: #4A5378;      /* secondary text */
    --tf-surface: #F7F5EF;        /* warm off-white sections */
    --tf-line: #E2DFD5;
    --tf-white: #FFFFFF;

    --tf-font-head: "Bitter", Georgia, serif;
    --tf-font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;

    --tf-radius-sm: 4px;
    --tf-radius: 8px;
    --tf-radius-lg: 14px;
    --tf-gap: clamp(1rem, 2.5vw, 2rem);
    --tf-section: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 90px; }
body {
    font-family: var(--tf-font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--tf-navy);
    background: var(--tf-white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tf-font-head);
    color: var(--tf-navy);
    line-height: 1.2;
    letter-spacing: -0.01em;
}
p { max-width: 70ch; }
a { color: var(--tf-green); }
a:hover { color: var(--tf-green-dark); }
:focus-visible { outline: 3px solid var(--tf-orange); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--tf-navy); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.tf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--tf-font-body); font-weight: 700; font-size: 1rem;
    padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tf-btn--lg { padding: .9rem 1.9rem; font-size: 1.0625rem; }
.tf-btn--block { width: 100%; }
/* Donate is the only orange element. Navy text keeps contrast above 4.5:1 */
.tf-btn--donate { background: var(--tf-orange); color: var(--tf-navy); }
.tf-btn--donate:hover, .tf-btn--donate:focus { background: var(--tf-orange-dark); color: var(--tf-navy); }
.tf-btn--primary { background: var(--tf-green); color: #fff; }
.tf-btn--primary:hover, .tf-btn--primary:focus { background: var(--tf-green-dark); color: #fff; }
.tf-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.tf-btn--ghost:hover, .tf-btn--ghost:focus { background: #fff; color: var(--tf-navy); }
.tf-btn--outline { background: transparent; color: var(--tf-green); border-color: var(--tf-green); }
.tf-btn--outline:hover, .tf-btn--outline:focus { background: var(--tf-green); color: #fff; }

/* Template buttons take the new look */
.button-style-1 a, .button-style-2 a, .btn-primary,
.contact-form button, .enquery-form button, .pay-now {
    background: var(--tf-green) !important; border-color: var(--tf-green) !important;
    color: #fff !important; border-radius: 999px !important; font-weight: 700;
}
.button-style-1 a:hover, .button-style-2 a:hover, .btn-primary:hover,
.contact-form button:hover, .enquery-form button:hover, .pay-now:hover { background: var(--tf-green-dark) !important; }
.donate-now, .btn-danger.donate-now { background: var(--tf-orange) !important; border-color: var(--tf-orange) !important; color: var(--tf-navy) !important; border-radius: 999px !important; font-weight: 700; }

/* ---------- Top bar ---------- */
.tf-topbar { background: var(--tf-navy); color: #dfe3f2; font-size: .875rem; }
.tf-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.tf-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; align-items: center; }
.tf-topbar a { color: #dfe3f2; text-decoration: none; }
.tf-topbar a:hover { color: #fff; }
.tf-topbar i { margin-right: .35rem; opacity: .8; }
.tf-lang { display: inline-flex; gap: .15rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px; }
.tf-lang a, .tf-lang span { padding: .1rem .7rem; border-radius: 999px; }
.tf-lang .is-active { background: #fff; color: var(--tf-navy); font-weight: 700; }

/* ---------- Header and navigation ---------- */
.tf-header { background: #fff; border-bottom: 1px solid var(--tf-line); position: sticky; top: 0; z-index: 1000; }
.tf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.tf-header__logo img { height: 56px; width: auto; display: block; }
.tf-nav { display: flex; align-items: center; gap: 1.25rem; }
.tf-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.tf-nav__item { position: relative; }
.tf-nav__link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .8rem; border-radius: var(--tf-radius-sm);
    font-weight: 700; color: var(--tf-navy); text-decoration: none;
    background: none; border: 0; font-size: 1rem; font-family: var(--tf-font-body);
}
.tf-nav__link i { font-size: .7rem; }
.tf-nav__link:hover, .tf-nav__link.is-current { color: var(--tf-green); }
.tf-nav__link.is-current { box-shadow: inset 0 -3px 0 var(--tf-green); }
.tf-nav__sub {
    list-style: none; margin: 0; padding: .4rem; display: none;
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-radius);
    box-shadow: 0 12px 28px rgba(30, 42, 94, .12);
}
.tf-nav__item.is-open > .tf-nav__sub { display: block; }
@media (hover: hover) and (min-width: 992px) {
    .tf-nav__item:hover > .tf-nav__sub { display: block; }
}
.tf-nav__sub a { display: block; padding: .55rem .8rem; color: var(--tf-navy); text-decoration: none; border-radius: var(--tf-radius-sm); }
.tf-nav__sub a:hover, .tf-nav__sub a:focus { background: var(--tf-green-tint); color: var(--tf-green-dark); }

.tf-nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.tf-nav__toggle-bars, .tf-nav__toggle-bars::before, .tf-nav__toggle-bars::after {
    position: absolute; left: 10px; width: 24px; height: 2.5px; background: var(--tf-navy); border-radius: 2px; content: "";
    transition: transform .2s ease;
}
.tf-nav__toggle-bars { top: 21px; }
.tf-nav__toggle-bars::before { left: 0; top: -7px; }
.tf-nav__toggle-bars::after { left: 0; top: 7px; }
.tf-nav__toggle[aria-expanded="true"] .tf-nav__toggle-bars { background: transparent; }
.tf-nav__toggle[aria-expanded="true"] .tf-nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.tf-nav__toggle[aria-expanded="true"] .tf-nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .tf-header__inner { min-height: 66px; }
    .tf-header__logo img { height: 46px; }
    .tf-nav__toggle { display: block; }
    .tf-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--tf-line);
        flex-direction: column; align-items: stretch; padding: .75rem 1rem 1.25rem; gap: .75rem;
        max-height: calc(100vh - 66px); overflow-y: auto;
    }
    .tf-nav.is-open { display: flex; }
    .tf-nav__list { flex-direction: column; align-items: stretch; }
    .tf-nav__link { width: 100%; justify-content: space-between; padding: .8rem .5rem; border-bottom: 1px solid var(--tf-line); border-radius: 0; }
    .tf-nav__link.is-current { box-shadow: none; }
    .tf-nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; }
    .tf-header__donate { width: 100%; }
}

/* ---------- Page banner (template pages) ---------- */
.page-top { position: relative; margin-top: 0 !important; padding: 3.5rem 0 !important; background-size: cover; background-position: center; }
.page-top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,52,36,.88), rgba(22,52,36,.55)); }
.page-top .container { position: relative; }
.page-top h2 { color: #fff; font-family: var(--tf-font-head); font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem); text-align: left; }
.page-top .breadcrumb-container { text-align: left; }
.page-top .breadcrumb { justify-content: flex-start; background: none; }
.page-top .breadcrumb-item, .page-top .breadcrumb-item a { color: #dfe9e2; }

/* ---------- Sections ---------- */
.tf-section { padding: var(--tf-section) 0; }
.tf-section--surface { background: var(--tf-surface); }
.tf-section--tint { background: var(--tf-green-tint); }
.tf-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tf-section__head h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); margin: 0 0 .4rem; }
.tf-section__head p { margin: 0; color: var(--tf-navy-soft); }
.tf-link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.tf-hero {
    position: relative; overflow: hidden; color: #fff;
    background: #163424 center / cover no-repeat;
    min-height: min(78vh, 680px); display: flex; align-items: center;
}
.tf-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(14,40,26,.92) 0%, rgba(14,40,26,.72) 45%, rgba(14,40,26,.25) 100%);
}
.tf-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .8fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 8vw, 5rem) 0; }
.tf-hero h1 { color: #fff; font-size: clamp(2.3rem, 3.6vw + 1rem, 3.9rem); font-weight: 700; line-height: 1.08; margin-bottom: 1.1rem; max-width: 16ch; }
.tf-hero__text { font-size: 1.15rem; color: #e5efe8; max-width: 52ch; margin-bottom: 1.8rem; }
.tf-hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* The flight path: the one bold element. Dashed route from the text to the donation card. */
.tf-flightpath { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tf-flightpath path { fill: none; stroke: var(--tf-orange); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .9; }
.tf-flightpath .tf-flightpath__dot { fill: var(--tf-orange); }
@media (prefers-reduced-motion: no-preference) {
    .tf-flightpath path { stroke-dashoffset: 900; animation: tf-fly 2.4s cubic-bezier(.4,.0,.2,1) .3s forwards; }
    .tf-flightpath .tf-flightpath__plane { opacity: 0; animation: tf-land .4s ease 2.5s forwards; }
}
@keyframes tf-fly { to { stroke-dashoffset: 0; } }
@keyframes tf-land { to { opacity: 1; } }

.tf-quickgive {
    background: #fff; color: var(--tf-navy); border-radius: var(--tf-radius-lg);
    padding: 1.6rem; box-shadow: 0 24px 60px rgba(0,0,0,.28); position: relative;
}
.tf-quickgive h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.tf-quickgive p { font-size: .95rem; color: var(--tf-navy-soft); margin-bottom: 1rem; }
.tf-quickgive label { font-weight: 700; font-size: .9rem; display: block; margin: .9rem 0 .4rem; }
.tf-select, .tf-input {
    width: 100%; border: 1.5px solid var(--tf-line); border-radius: var(--tf-radius);
    padding: .7rem .85rem; font: inherit; color: var(--tf-navy); background: #fff;
}
.tf-select:focus, .tf-input:focus { border-color: var(--tf-green); outline: none; box-shadow: 0 0 0 3px var(--tf-green-tint); }
.tf-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.tf-amount input { position: absolute; opacity: 0; pointer-events: none; }
.tf-amount span {
    display: block; text-align: center; padding: .65rem .3rem; border-radius: var(--tf-radius);
    border: 1.5px solid var(--tf-line); font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tf-amount input:checked + span { border-color: var(--tf-green); background: var(--tf-green-tint); color: var(--tf-green-dark); }
.tf-amount input:focus-visible + span { outline: 3px solid var(--tf-orange); outline-offset: 2px; }
.tf-quickgive .tf-btn { margin-top: 1.1rem; }
.tf-quickgive--side { box-shadow: none; border: 1px solid var(--tf-line); padding: 1.4rem; margin-bottom: 2rem; }
.cause-detail .right-item h2.mt_30 { font-family: var(--tf-font-head); }
.tf-quickgive__note { font-size: .82rem; color: var(--tf-navy-soft); margin: .7rem 0 0; display: flex; gap: .4rem; align-items: center; }

@media (max-width: 991.98px) {
    .tf-hero__grid { grid-template-columns: 1fr; }
    .tf-flightpath { display: none; }
    .tf-hero::before { background: linear-gradient(180deg, rgba(14,40,26,.85), rgba(14,40,26,.75)); }
}

/* ---------- Trust strip ---------- */
.tf-trust { background: var(--tf-navy); color: #e7eaf5; }
.tf-trust ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tf-trust li { display: flex; gap: .65rem; align-items: center; font-size: .95rem; line-height: 1.35; }
.tf-trust i { color: var(--tf-orange); font-size: 1.15rem; width: 1.4rem; text-align: center; flex: none; }
@media (max-width: 767.98px) { .tf-trust ul { grid-template-columns: 1fr 1fr; } }

/* ---------- What your gift does ---------- */
.tf-gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--tf-line); border: 1px solid var(--tf-line); border-radius: var(--tf-radius); overflow: hidden; }
.tf-gift { background: #fff; padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--tf-navy); }
.tf-gift:hover { background: var(--tf-surface); color: var(--tf-navy); }
.tf-gift__amount { font-family: var(--tf-font-head); font-size: 2rem; font-weight: 700; color: var(--tf-green); line-height: 1; }
.tf-gift__text { margin: 0; }
.tf-gift__cta { margin-top: auto; font-weight: 700; color: var(--tf-orange-dark); }

/* ---------- Programme cards ---------- */
.tf-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.tf-filter {
    border: 1.5px solid var(--tf-line); background: #fff; color: var(--tf-navy);
    border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.tf-filter[aria-pressed="true"] { background: var(--tf-navy); border-color: var(--tf-navy); color: #fff; }
.tf-programmes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--tf-gap); }
.tf-programme { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); overflow: hidden; display: flex; flex-direction: column; }
.tf-programme[hidden] { display: none; }
.tf-programme__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tf-surface); }
.tf-programme__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-programme__tag { position: absolute; left: .8rem; top: .8rem; background: #fff; color: var(--tf-navy); font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.tf-programme__body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.tf-programme__body h3 { font-size: 1.25rem; margin: 0; }
.tf-programme__body h3 a { color: var(--tf-navy); text-decoration: none; }
.tf-programme__body h3 a:hover { color: var(--tf-green); }
.tf-programme__body p { margin: 0; color: var(--tf-navy-soft); font-size: .98rem; }
.tf-progress { height: 8px; border-radius: 999px; background: var(--tf-green-tint); overflow: hidden; margin-top: auto; }
.tf-progress span { display: block; height: 100%; background: var(--tf-green); border-radius: 999px; }
.tf-programme__figures { display: flex; justify-content: space-between; font-size: .9rem; color: var(--tf-navy-soft); }
.tf-programme__figures b { color: var(--tf-navy); }
.tf-programme__actions { display: flex; gap: .6rem; align-items: center; }
.tf-programme__actions .tf-btn { flex: 1; }
.tf-badge-done { display: inline-block; background: var(--tf-green-tint); color: var(--tf-green-dark); font-weight: 700; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; }

/* ---------- How it works (a real sequence, so it is numbered) ---------- */
.tf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tf-gap); counter-reset: step; }
.tf-steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.tf-steps li::before {
    content: counter(step); position: absolute; top: 0; left: 0;
    width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--tf-green); color: #fff; font-family: var(--tf-font-head); font-weight: 700; font-size: 1.15rem;
}
.tf-steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.3rem; left: 3.3rem; right: -1rem; border-top: 2px dashed #b9d3c0; }
.tf-steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.tf-steps p { margin: 0; color: var(--tf-navy-soft); }
@media (max-width: 767.98px) { .tf-steps { grid-template-columns: 1fr; } .tf-steps li:not(:last-child)::after { display: none; } }

/* ---------- Activities (calendar rows) ---------- */
.tf-activities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tf-line); }
.tf-activity { display: grid; grid-template-columns: 76px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--tf-line); }
.tf-date { width: 76px; text-align: center; border-radius: var(--tf-radius); overflow: hidden; border: 1px solid var(--tf-line); background: #fff; }
.tf-date__month { display: block; background: var(--tf-green); color: #fff; font-size: .8rem; font-weight: 700; padding: .15rem 0; }
.tf-date__day { display: block; font-family: var(--tf-font-head); font-size: 1.8rem; font-weight: 700; line-height: 1.35; color: var(--tf-navy); }
.tf-activity h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.tf-activity h3 a { color: var(--tf-navy); text-decoration: none; }
.tf-activity h3 a:hover { color: var(--tf-green); }
.tf-activity__meta { margin: 0; color: var(--tf-navy-soft); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.tf-free { display: inline-block; background: var(--tf-green-tint); color: var(--tf-green-dark); font-weight: 700; font-size: .8rem; padding: .1rem .6rem; border-radius: 999px; }
@media (max-width: 575.98px) {
    .tf-activity { grid-template-columns: 64px 1fr; }
    .tf-date { width: 64px; }
    .tf-activity .tf-btn { grid-column: 1 / -1; }
}

/* ---------- Stories and articles ---------- */
.tf-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--tf-gap); }
.tf-post { display: flex; flex-direction: column; gap: .6rem; }
.tf-post__img { aspect-ratio: 3 / 2; border-radius: var(--tf-radius); overflow: hidden; display: block; background: var(--tf-surface); }
.tf-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-post__cat { font-size: .88rem; font-weight: 700; color: var(--tf-green); }
.tf-post h3 { font-size: 1.2rem; margin: 0; }
.tf-post h3 a { color: var(--tf-navy); text-decoration: none; }
.tf-post h3 a:hover { color: var(--tf-green); }
.tf-post p { margin: 0; color: var(--tf-navy-soft); font-size: .98rem; }
.tf-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--tf-gap); align-items: center; }
.tf-story__img { border-radius: var(--tf-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.tf-story__img img { width: 100%; height: 100%; object-fit: cover; }
.tf-story blockquote { font-family: var(--tf-font-head); font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); line-height: 1.3; margin: 0 0 1rem; }
@media (max-width: 767.98px) { .tf-story { grid-template-columns: 1fr; } }

/* ---------- Featured videos ---------- */
.tf-section--navy { background: var(--tf-navy); color: #e7eaf5; }
.tf-section--navy .tf-section__head h2, .tf-section--navy h3 { color: #fff; }
.tf-section--navy .tf-section__head p { color: #c4cae2; }
.tf-section--navy .tf-link-more { color: var(--tf-orange); }
.tf-videos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--tf-gap); align-items: start; }
.tf-videos--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.tf-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tf-radius-lg); overflow: hidden; background: #0d1530; }
.tf-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf-player__poster { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; width: 100%; }
.tf-player__poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; }
.tf-player__icon {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 76px; height: 76px; border-radius: 50%; background: var(--tf-orange); color: var(--tf-navy);
    display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.tf-player__icon i { margin-left: 5px; }
.tf-player__poster:hover .tf-player__icon, .tf-player__poster:focus-visible .tf-player__icon { background: #fff; }
.tf-videos__title { font-size: 1.25rem; margin: 1rem 0 0; }
.tf-videos__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.tf-videos__item {
    width: 100%; display: grid; grid-template-columns: 132px 1fr; gap: .9rem; align-items: center; text-align: left;
    background: rgba(255,255,255,.06); border: 1.5px solid transparent; border-radius: var(--tf-radius); padding: .5rem; color: #fff; cursor: pointer;
}
.tf-videos__item:hover { background: rgba(255,255,255,.12); }
.tf-videos__item[aria-current="true"] { border-color: var(--tf-orange); }
.tf-videos__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--tf-radius-sm); overflow: hidden; display: block; }
.tf-videos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-videos__thumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.tf-videos__name { font-weight: 700; line-height: 1.35; font-size: .97rem; }
@media (max-width: 991.98px) { .tf-videos { grid-template-columns: 1fr; } }

/* ---------- Counters (only when the admin shows them) ---------- */
.tf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tf-gap); }
.tf-stat b { display: block; font-family: var(--tf-font-head); font-size: clamp(2rem, 3vw + 1rem, 3rem); color: var(--tf-green); line-height: 1.1; }
.tf-stat span { color: var(--tf-navy-soft); }
@media (max-width: 767.98px) { .tf-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Get involved split ---------- */
.tf-involve { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tf-gap); }
.tf-involve__item { border-radius: var(--tf-radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.tf-involve__item--green { background: var(--tf-green); color: #fff; }
.tf-involve__item--green h3, .tf-involve__item--green p { color: #fff; }
.tf-involve__item--navy { background: var(--tf-navy); color: #fff; }
.tf-involve__item--navy h3, .tf-involve__item--navy p { color: #fff; }
.tf-involve__item h3 { font-size: 1.5rem; }
.tf-involve__item p { opacity: .92; }
@media (max-width: 767.98px) { .tf-involve { grid-template-columns: 1fr; } }

/* ---------- Share ---------- */
.tf-share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.tf-share__label { font-weight: 700; margin-right: .25rem; }
.tf-share a, .tf-share button {
    display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px;
    border: 1.5px solid var(--tf-line); background: #fff; color: var(--tf-navy); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.tf-share a:hover, .tf-share button:hover { border-color: var(--tf-green); color: var(--tf-green); }
.tf-share .tf-share--wa { background: #1f9e55; border-color: #1f9e55; color: #fff; }
.tf-share .tf-share--wa:hover { background: #17803f; color: #fff; }

/* ---------- Programme page ---------- */
.tf-updates { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--tf-green-tint); }
.tf-updates li { position: relative; padding: 0 0 1.75rem 1.4rem; }
.tf-updates li::before { content: ""; position: absolute; left: -8px; top: .45rem; width: 13px; height: 13px; border-radius: 50%; background: var(--tf-green); border: 3px solid #fff; }
.tf-updates time { font-size: .88rem; color: var(--tf-navy-soft); font-weight: 700; }
.tf-updates h3 { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.tf-updates img { border-radius: var(--tf-radius); margin: .5rem 0; max-height: 320px; object-fit: cover; }
.cause-detail .right-item .donate-sec { background: var(--tf-navy) !important; border-radius: var(--tf-radius-lg); }
.tf-tribute { border-top: 1px solid rgba(255,255,255,.2); margin-top: .5rem; padding-top: .5rem; }
.tf-tribute summary { cursor: pointer; color: #fff; font-weight: 700; padding: .4rem 0; }
.tf-tribute .form-check-label, .tf-tribute label { color: #fff; }

/* ---------- Donate page ---------- */
.tf-donate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.tf-donate__form { background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); }
.tf-donate__form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.tf-donate__form legend { font-family: var(--tf-font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: .8rem; float: none; width: auto; }
.tf-choice-list { display: grid; gap: .5rem; }
.tf-choice { display: flex; gap: .8rem; align-items: center; border: 1.5px solid var(--tf-line); border-radius: var(--tf-radius); padding: .75rem .9rem; cursor: pointer; }
.tf-choice:has(input:checked) { border-color: var(--tf-green); background: var(--tf-green-tint); }
.tf-choice input { accent-color: var(--tf-green); width: 1.1rem; height: 1.1rem; flex: none; }
.tf-choice__title { font-weight: 700; display: block; }
.tf-choice__meta { font-size: .88rem; color: var(--tf-navy-soft); }
.tf-donate__form .tf-amounts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.tf-field { margin-bottom: .9rem; }
.tf-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.tf-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.tf-check { display: flex; gap: .55rem; align-items: flex-start; margin: .4rem 0; }
.tf-check input { accent-color: var(--tf-green); margin-top: .3rem; }
.tf-aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.tf-aside__box { background: var(--tf-surface); border-radius: var(--tf-radius-lg); padding: 1.5rem; }
.tf-aside__box h2 { font-size: 1.2rem; }
.tf-aside__box ul { padding-left: 1.1rem; margin: 0; }
.tf-aside__box li { margin-bottom: .4rem; }
@media (max-width: 991.98px) {
    .tf-donate { grid-template-columns: 1fr; }
    .tf-aside { position: static; }
    .tf-donate__form .tf-amounts { grid-template-columns: repeat(2, 1fr); }
    .tf-field-row { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.tf-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.tf-contact__info h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); }
.tf-contact__list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.tf-contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.tf-contact__list i { width: 42px; height: 42px; border-radius: 50%; background: var(--tf-green-tint); color: var(--tf-green); display: grid; place-items: center; flex: none; font-size: 1.05rem; }
.tf-contact__list b { display: block; font-size: .9rem; }
.tf-contact__list span, .tf-contact__list a { color: var(--tf-navy-soft); }
.tf-contact__list a { color: var(--tf-green); font-weight: 700; text-decoration: none; }
.tf-contact__map { position: sticky; top: 100px; }
.tf-map { border-radius: var(--tf-radius-lg) var(--tf-radius-lg) 0 0; overflow: hidden; border: 1px solid var(--tf-line); border-bottom: 0; line-height: 0; }
.tf-map iframe { width: 100%; height: 460px; display: block; }
.tf-map__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; border: 1px solid var(--tf-line); border-radius: 0 0 var(--tf-radius-lg) var(--tf-radius-lg); background: var(--tf-surface); font-weight: 700; }
.tf-map__bar i { color: var(--tf-orange); }
@media (max-width: 991.98px) { .tf-contact { grid-template-columns: 1fr; } .tf-contact__map { position: static; } .tf-map iframe { height: 340px; } }

/* ---------- CTA band, newsletter, footer ---------- */
.tf-cta { background: var(--tf-green); color: #fff; padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.tf-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.tf-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); margin: 0 0 .4rem; max-width: 26ch; }
.tf-cta p { color: #e3f0e7; margin: 0; }
.tf-newsletter { background: var(--tf-surface); padding: 2.5rem 0; border-top: 1px solid var(--tf-line); }
.tf-newsletter__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.tf-newsletter h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.tf-newsletter p { margin: 0; color: var(--tf-navy-soft); }
.tf-newsletter__form { display: flex; gap: .5rem; flex: 1 1 300px; max-width: 480px; min-width: 0; }
@media (max-width: 575.98px) { .tf-newsletter__form { flex-basis: 100%; } .tf-newsletter__form .tf-btn { padding-left: 1rem; padding-right: 1rem; } }
.tf-newsletter__form input { flex: 1; min-width: 0; border: 1.5px solid var(--tf-line); border-radius: 999px; padding: .7rem 1.1rem; font: inherit; }
.tf-footer { background: #142046; color: #c7cde3; padding-top: 3.5rem; font-size: .97rem; }
.tf-footer a { color: #e3e7f4; text-decoration: none; }
.tf-footer a:hover { color: #fff; text-decoration: underline; }
.tf-footer__brand { font-family: var(--tf-font-head); font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.tf-footer__lead { color: #b8bfd8; }
.tf-footer__heading { font-family: var(--tf-font-body); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .9rem; }
.tf-footer__links, .tf-footer__contact, .tf-footer__social { list-style: none; margin: 0; padding: 0; }
.tf-footer__links li { margin-bottom: .45rem; }
.tf-footer__contact li { display: flex; gap: .7rem; margin-bottom: .6rem; }
.tf-footer__contact i { color: var(--tf-orange); margin-top: .3rem; width: 1rem; }
.tf-footer__social { display: flex; gap: .5rem; margin-top: 1rem; }
.tf-footer__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.tf-footer__secure { margin-top: 1rem; font-size: .9rem; color: #b8bfd8; }
.tf-footer__secure i { color: var(--tf-orange); }
.tf-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.1rem 0; font-size: .88rem; }
.tf-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tf-footer__bottom-inner a { margin-left: 1rem; }

/* Phones: sticky Donate bar */
.tf-mobile-donate { display: none; }
@media (max-width: 767.98px) {
    .tf-mobile-donate {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
        background: #fff; border-top: 1px solid var(--tf-line); box-shadow: 0 -6px 20px rgba(30,42,94,.12);
        padding: .6rem 1rem; align-items: center; justify-content: space-between; gap: .75rem;
    }
    .tf-mobile-donate span { font-size: .88rem; font-weight: 700; line-height: 1.25; }
    body { padding-bottom: 70px; }
    .scroll-top { bottom: 84px !important; }
}

/* ---------- Template sections that remain on inner pages ---------- */
.cause-detail .left-item h2, .event-detail .left-item h2, .post-detail h2 { font-family: var(--tf-font-head); }
.progress-bar { background-color: var(--tf-green) !important; }
.footer, .footer-bottom { display: none; }   /* replaced by .tf-footer */
.about-content h3 { margin-top: 1.5rem; }
.about-content ol, .about-content ul { padding-left: 1.3rem; }

/* ==========================================================================
   NGO features: announcement, search, WhatsApp, thank-you, accountability,
   activity page, articles, team, FAQ, galleries, sign-in, error states
   ========================================================================== */

/* Announcement bar */
.tf-announce { background: var(--tf-orange); color: var(--tf-navy); font-weight: 700; font-size: .95rem; text-align: center; }
.tf-announce .container { padding-top: .5rem; padding-bottom: .5rem; }
.tf-announce a { color: var(--tf-navy); text-decoration: none; }
.tf-announce a:hover { text-decoration: underline; color: var(--tf-navy); }
.tf-announce i { margin-left: .35rem; font-size: .85em; }

/* Header search */
.tf-search { display: flex; align-items: center; border: 1.5px solid var(--tf-line); border-radius: 999px; overflow: hidden; background: #fff; }
.tf-search input { border: 0; outline: 0; padding: .45rem .2rem .45rem .9rem; width: 130px; font: inherit; font-size: .95rem; color: var(--tf-navy); background: transparent; }
.tf-search button { border: 0; background: none; color: var(--tf-navy); width: 38px; height: 38px; display: grid; place-items: center; }
.tf-search:focus-within { border-color: var(--tf-green); box-shadow: 0 0 0 3px var(--tf-green-tint); }
.tf-search button:hover { color: var(--tf-green); }
@media (min-width: 992px) { .tf-nav__link { white-space: nowrap; } }
@media (min-width: 992px) and (max-width: 1599.98px) {
    .tf-search { border-color: transparent; }
    .tf-search input { width: 0; padding: 0; }
    .tf-search:focus-within input { width: 140px; padding: .45rem .2rem .45rem .9rem; }
    .tf-nav { gap: .5rem; }
    .tf-nav__link { padding: .55rem .55rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .tf-nav__link { padding: .55rem .4rem; font-size: .95rem; } .tf-header__logo img { height: 48px; } }
@media (max-width: 991.98px) { .tf-search input { width: 100%; flex: 1; } }

/* Floating WhatsApp */
.tf-whatsapp {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 54px; height: 54px; border-radius: 50%;
    background: #1f9e55; color: #fff; display: grid; place-items: center; font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25); text-decoration: none;
}
.tf-whatsapp:hover, .tf-whatsapp:focus { background: #17803f; color: #fff; }
.scroll-top { right: 84px !important; }
@media (max-width: 767.98px) { .tf-whatsapp { bottom: 82px; width: 48px; height: 48px; font-size: 1.5rem; right: 14px; } .scroll-top { display: none !important; } }

/* Breadcrumbs on custom headers */
.tf-crumbs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--tf-navy-soft); }
.tf-crumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .6; }
.tf-crumbs a { color: var(--tf-navy-soft); text-decoration: none; }
.tf-crumbs a:hover { color: var(--tf-green); }

/* Empty states */
.tf-empty { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; border: 1.5px dashed var(--tf-line); border-radius: var(--tf-radius-lg); background: #fff; }
.tf-empty > i { font-size: 2.2rem; color: var(--tf-green); margin-bottom: .8rem; display: block; }
.tf-empty p { margin: 0 auto 1.1rem; color: var(--tf-navy-soft); }

/* Thank-you */
.tf-thanks { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: linear-gradient(180deg, var(--tf-green-tint), #fff 60%); }
.tf-thanks__card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 0 20px 50px rgba(30,42,94,.08); text-align: center; }
.tf-thanks__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--tf-orange); color: var(--tf-navy); font-size: 1.8rem; }
.tf-thanks h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem); margin-bottom: .5rem; }
.tf-thanks__lead { font-size: 1.15rem; margin: 0 auto 1.5rem; color: var(--tf-navy-soft); }
.tf-thanks__note { margin: 1rem auto; font-size: .95rem; color: var(--tf-navy-soft); }
.tf-thanks__note i { color: var(--tf-green); margin-right: .3rem; }
.tf-thanks__progress { max-width: 460px; margin: 1.5rem auto; display: grid; gap: .4rem; text-align: left; }
.tf-thanks__h2 { font-size: 1.3rem; margin: 2rem 0 .3rem; }
.tf-thanks__card p { margin-left: auto; margin-right: auto; }
.tf-thanks__card .tf-share { justify-content: center; }
.tf-thanks__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.tf-thanks__next-title { text-align: center; font-size: 1.4rem; margin: 3rem 0 1.25rem; }
.tf-receipt { margin: 0 auto; max-width: 460px; text-align: left; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); overflow: hidden; }
.tf-receipt div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; }
.tf-receipt div:nth-child(odd) { background: var(--tf-surface); }
.tf-receipt dt { font-weight: 600; color: var(--tf-navy-soft); }
.tf-receipt dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.tf-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tf-gap); max-width: 960px; margin: 0 auto; }
.tf-next__item { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; border: 1px solid var(--tf-line); border-radius: var(--tf-radius-lg); background: #fff; color: var(--tf-navy); text-decoration: none; }
.tf-next__item:hover { border-color: var(--tf-green); color: var(--tf-navy); box-shadow: 0 10px 26px rgba(30,42,94,.08); }
.tf-next__item i { color: var(--tf-green); font-size: 1.5rem; }
.tf-next__item span { color: var(--tf-navy-soft); font-size: .95rem; }
@media (max-width: 767.98px) { .tf-next { grid-template-columns: 1fr; } }

/* Accountability */
.tf-account { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.tf-account__h { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); margin-bottom: 1.2rem; }
.tf-promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.tf-promises li { display: flex; gap: .9rem; align-items: flex-start; }
.tf-promises i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tf-green-tint); color: var(--tf-green); }
.tf-promises b { display: block; }
.tf-promises span { color: var(--tf-navy-soft); }
.tf-account__reg { margin-top: 1.5rem; padding: .8rem 1rem; background: var(--tf-surface); border-radius: var(--tf-radius); }
.tf-account__reg i { color: var(--tf-orange); margin-right: .3rem; }
.tf-account__money { background: var(--tf-surface); border-radius: var(--tf-radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.tf-account__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--tf-line); padding-top: 1.25rem; }
.tf-account__stats b { display: block; font-family: var(--tf-font-head); font-size: 1.5rem; color: var(--tf-green); line-height: 1.2; overflow-wrap: anywhere; }
.tf-account__stats span { font-size: .9rem; color: var(--tf-navy-soft); }
@media (max-width: 991.98px) { .tf-account { grid-template-columns: 1fr; } }
.tf-fund__bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--tf-line); }
.tf-fund__bar span { display: block; height: 100%; }
.tf-fund__bar span + span { box-shadow: inset 2px 0 0 #fff; }
.tf-fund__legend { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.tf-fund__legend li { display: flex; gap: .55rem; align-items: center; }
.tf-fund__legend i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.tf-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--tf-gap); }
.tf-docs__group h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.tf-docs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.tf-docs a { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .8rem 1rem; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); color: var(--tf-navy); text-decoration: none; }
.tf-docs a:hover { border-color: var(--tf-green); color: var(--tf-navy); }
.tf-docs__ext { font-size: .72rem; font-weight: 700; background: var(--tf-navy); color: #fff; border-radius: 4px; padding: .25rem .45rem; }
.tf-docs__title { font-weight: 700; }
.tf-docs__title small { color: var(--tf-navy-soft); font-weight: 600; }
.tf-docs__size { font-size: .85rem; color: var(--tf-navy-soft); white-space: nowrap; }
.tf-docs__size i { color: var(--tf-green); margin-left: .3rem; }

/* Other ways to give */
.tf-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.tf-ways__item { border: 1px solid var(--tf-line); border-radius: var(--tf-radius-lg); padding: 1.3rem 1.4rem; background: #fff; }
.tf-ways__item h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.tf-ways__item h3 i { color: var(--tf-green); margin-right: .4rem; }
.tf-ways__item p { margin: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; overflow-wrap: anywhere; }
.tf-ways__note { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--tf-navy-soft); }
.tf-donate__other { margin-top: clamp(2rem, 5vw, 3.5rem); }
.tf-donate__other h2 { font-size: 1.5rem; margin-bottom: .3rem; }

/* Partners strip */
.tf-partners { padding: 2.5rem 0; border-top: 1px solid var(--tf-line); }
.tf-partners h2 { font-family: var(--tf-font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tf-navy-soft); text-align: center; margin-bottom: 1.3rem; }
.tf-partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem; justify-content: center; align-items: center; }
.tf-partners img { max-height: 56px; max-width: 160px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.tf-partners a:hover img, .tf-partners a:focus img { filter: none; opacity: 1; }

/* Search page */
.tf-searchpage { display: flex; gap: .6rem; max-width: 680px; margin-bottom: 2rem; }
.tf-searchpage .tf-input { border-radius: 999px; padding-left: 1.2rem; }
.tf-results__count { font-weight: 700; color: var(--tf-navy-soft); }
.tf-results__h { font-size: 1.25rem; margin: 2rem 0 .8rem; }
.tf-results { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--tf-line); }
.tf-results a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--tf-line); color: var(--tf-navy); text-decoration: none; }
.tf-results a:hover b { color: var(--tf-green); text-decoration: underline; }
.tf-results b { display: block; font-size: 1.1rem; }
.tf-results span { color: var(--tf-navy-soft); font-size: .95rem; }
@media (max-width: 575.98px) { .tf-searchpage { flex-direction: column; } }

/* Activity page */
.tf-ehead { background: var(--tf-surface); padding: 1.75rem 0 2.25rem; border-bottom: 1px solid var(--tf-line); }
.tf-ehead__grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.tf-ehead h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.8rem); margin: 0 0 .7rem; }
.tf-ehead__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--tf-navy-soft); }
.tf-ehead__meta i { color: var(--tf-green); margin-right: .3rem; }
.tf-date--lg { width: 92px; }
.tf-date--lg .tf-date__day { font-size: 2.4rem; }
@media (max-width: 575.98px) { .tf-ehead__grid { grid-template-columns: 1fr; } .tf-date--lg { width: 76px; } }
.tf-event { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.tf-event__main h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.tf-event__photo { margin: 0; border-radius: var(--tf-radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tf-surface); }
.tf-event__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-event__lead { font-size: 1.2rem; margin-top: 1.5rem; }
.tf-event__side { position: sticky; top: 100px; display: grid; gap: 1rem; }
.tf-regcard { background: #fff; border: 1px solid var(--tf-line); border-top: 5px solid var(--tf-green); border-radius: var(--tf-radius-lg); padding: 1.5rem; box-shadow: 0 16px 40px rgba(30,42,94,.08); }
.tf-regcard h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.tf-regcard__seats { font-weight: 700; color: var(--tf-green-dark); background: var(--tf-green-tint); display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .9rem; }
.tf-regcard__seats i { margin-right: .3rem; }
.tf-regcard__legend { font-weight: 700; font-size: .92rem; margin-bottom: .35rem; float: none; width: auto; }
.tf-regcard__cal { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; border-top: 1px solid var(--tf-line); margin-top: 1.1rem; padding-top: .9rem; font-size: .92rem; }
.tf-regcard__cal span { color: var(--tf-navy-soft); font-weight: 700; }
.tf-regcard__cal a { font-weight: 700; text-decoration: none; }
.tf-ask { border: 1px solid var(--tf-line); border-radius: var(--tf-radius-lg); padding: .9rem 1.2rem; background: var(--tf-surface); }
.tf-ask summary { font-weight: 700; cursor: pointer; }
.tf-ask form { margin-top: 1rem; }
.tf-map--round { border-radius: var(--tf-radius-lg); border-bottom: 1px solid var(--tf-line); }
.tf-map--round iframe { width: 100%; height: 320px; }
@media (max-width: 991.98px) { .tf-event { grid-template-columns: 1fr; } .tf-event__side { position: static; } }

/* Galleries */
.tf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.tf-gallery--lg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.tf-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--tf-radius); overflow: hidden; background: var(--tf-surface); position: relative; }
.tf-gallery a[hidden] { display: none; }
.tf-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tf-gallery a:hover img { transform: scale(1.04); }
.tf-gallery__video i, .tf-vgrid i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--tf-orange); color: var(--tf-navy); display: grid; place-items: center; padding-left: 4px; }
.tf-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--tf-gap); }
.tf-vgrid__item { margin: 0; }
.tf-vgrid__item a { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--tf-radius); overflow: hidden; background: #0d1530; }
.tf-vgrid__item img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.tf-vgrid__item figcaption { font-weight: 700; margin-top: .6rem; }

/* Team */
.tf-team-group + .tf-team-group { margin-top: 3rem; }
.tf-team-group > h2 { font-size: 1.6rem; margin-bottom: 1.25rem; padding-bottom: .6rem; border-bottom: 2px solid var(--tf-green-tint); }
.tf-team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--tf-gap); }
.tf-person { text-align: center; }
.tf-person__photo { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; width: min(180px, 80%); margin: 0 auto .9rem; border: 4px solid var(--tf-green-tint); }
.tf-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.tf-person h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.tf-person h3 a { color: var(--tf-navy); text-decoration: none; }
.tf-person h3 a:hover { color: var(--tf-green); }
.tf-person p { margin: 0 auto .5rem; color: var(--tf-navy-soft); font-size: .95rem; }
.tf-person__social { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; justify-content: center; }
.tf-person__social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tf-surface); color: var(--tf-navy); text-decoration: none; font-size: .9rem; }
.tf-person__social a:hover { background: var(--tf-green); color: #fff; }

/* FAQ */
.tf-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.tf-faq__intro { position: sticky; top: 100px; }
.tf-faq__intro h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
.tf-accordion { display: grid; gap: .7rem; }
.tf-accordion details { border: 1px solid var(--tf-line); border-radius: var(--tf-radius); background: #fff; }
.tf-accordion details[open] { border-color: var(--tf-green); box-shadow: 0 8px 24px rgba(30,42,94,.06); }
.tf-accordion summary { list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.25rem; font-weight: 700; font-size: 1.05rem; position: relative; }
.tf-accordion summary::-webkit-details-marker { display: none; }
.tf-accordion summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--tf-green-tint); color: var(--tf-green-dark); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
.tf-accordion details[open] summary::after { content: "\2212"; background: var(--tf-green); color: #fff; }
.tf-accordion .tf-prose { padding: 0 1.25rem 1.1rem; color: var(--tf-navy-soft); }
@media (max-width: 991.98px) { .tf-faq { grid-template-columns: 1fr; } .tf-faq__intro { position: static; } }

/* Article list */
.tf-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.tf-chips a { padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--tf-line); color: var(--tf-navy); font-weight: 700; font-size: .92rem; text-decoration: none; background: #fff; }
.tf-chips a:hover { border-color: var(--tf-green); color: var(--tf-green); }
.tf-chips a[aria-current="page"] { background: var(--tf-navy); border-color: var(--tf-navy); color: #fff; }
.tf-lead-post { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--tf-gap); align-items: center; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--tf-line); }
.tf-lead-post__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--tf-radius-lg); overflow: hidden; }
.tf-lead-post__img img { width: 100%; height: 100%; object-fit: cover; }
.tf-lead-post h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.2rem); margin: .4rem 0 .7rem; }
.tf-lead-post h2 a { color: var(--tf-navy); text-decoration: none; }
.tf-lead-post h2 a:hover { color: var(--tf-green); }
.tf-lead-post p { color: var(--tf-navy-soft); }
@media (max-width: 767.98px) { .tf-lead-post { grid-template-columns: 1fr; } }
.tf-post__meta { display: flex; gap: .8rem; align-items: center; font-size: .88rem; color: var(--tf-navy-soft); flex-wrap: wrap; }
a.tf-post__cat { text-decoration: none; }
.tf-pager { margin-top: 2.5rem; }
.tf-pager .pagination { gap: .3rem; flex-wrap: wrap; }
.tf-pager .page-link { border-radius: 999px !important; color: var(--tf-navy); border-color: var(--tf-line); min-width: 40px; text-align: center; }
.tf-pager .active .page-link, .tf-pager .page-item.active .page-link { background: var(--tf-green); border-color: var(--tf-green); color: #fff; }

/* Article page */
.tf-article__narrow { max-width: 780px; }
.tf-article__head { padding: clamp(1.75rem, 4vw, 3rem) 0 1.5rem; }
.tf-article__head h1 { font-size: clamp(2rem, 3vw + 1rem, 3.1rem); line-height: 1.12; margin-bottom: .8rem; }
.tf-article__dek { font-size: 1.25rem; color: var(--tf-navy-soft); margin-bottom: 1rem; }
.tf-article__meta { display: flex; gap: .4rem 1.3rem; flex-wrap: wrap; font-size: .92rem; color: var(--tf-navy-soft); margin: 0; }
.tf-article__meta i { color: var(--tf-green); margin-right: .25rem; }
.tf-article__photo { max-width: 1100px; margin: 0 auto 2.25rem; border-radius: var(--tf-radius-lg); overflow: hidden; aspect-ratio: 2 / 1; background: var(--tf-surface); }
.tf-article__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-prose { font-size: 1.1rem; line-height: 1.75; }
.tf-prose h2, .tf-prose h3 { margin: 2rem 0 .7rem; }
.tf-prose h2 { font-size: 1.6rem; } .tf-prose h3 { font-size: 1.3rem; }
.tf-prose ul, .tf-prose ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.tf-prose li { margin-bottom: .4rem; }
.tf-prose blockquote { border-left: 4px solid var(--tf-orange); padding: .3rem 0 .3rem 1.2rem; font-family: var(--tf-font-head); font-size: 1.3rem; margin: 1.5rem 0; }
.tf-prose img { border-radius: var(--tf-radius); }
.tf-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.tf-prose td, .tf-prose th { border: 1px solid var(--tf-line); padding: .5rem .7rem; }
.tf-tags { list-style: none; padding: 0; margin: 2rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tf-tags a { background: var(--tf-green-tint); color: var(--tf-green-dark); padding: .25rem .8rem; border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none; }
.tf-tags a:hover { background: var(--tf-green); color: #fff; }
.tf-article__cta { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap; background: var(--tf-navy); color: #fff; border-radius: var(--tf-radius-lg); padding: 1.5rem 1.75rem; margin: 2rem 0 3rem; }
.tf-article__cta h2 { color: #fff; font-size: 1.3rem; margin: 0 0 .3rem; }
.tf-article__cta p { color: #c9cfe6; margin: 0; }
.tf-comments { border-top: 1px solid var(--tf-line); padding-top: 2rem; margin-bottom: 3rem; }
.tf-comments > h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.tf-comments__form-title { font-size: 1.25rem; margin: 2rem 0 .3rem; }
.tf-comment { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; margin-bottom: 1.4rem; }
.tf-comment--reply { margin: 1rem 0 0; }
.tf-comment__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--tf-green-tint); color: var(--tf-green-dark); display: grid; place-items: center; font-weight: 700; font-family: var(--tf-font-head); }
.tf-comment__who { margin: 0 0 .2rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.tf-comment__who span { color: var(--tf-navy-soft); font-size: .88rem; }
.tf-comment__text { color: var(--tf-navy); }
.tf-comment__reply summary { cursor: pointer; color: var(--tf-green); font-weight: 700; font-size: .9rem; margin-top: .3rem; display: inline-block; }
.tf-comment__reply form { margin-top: .8rem; }

/* Sign in / register */
.tf-auth { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--tf-surface); }
.tf-auth__card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: var(--tf-radius-lg); overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(30,42,94,.1); }
.tf-auth__aside { background: var(--tf-green); color: #fff; padding: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; background-image: radial-gradient(circle at 100% 0, rgba(242,140,40,.35), transparent 45%); }
.tf-auth__aside h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.tf-auth__aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.tf-auth__aside li { display: flex; gap: .7rem; align-items: flex-start; }
.tf-auth__aside li i { color: var(--tf-orange); margin-top: .3rem; width: 1.1rem; }
.tf-auth__note { color: #dcebe1; font-size: .95rem; margin: auto 0 0; }
.tf-auth__aside .tf-btn { align-self: flex-start; }
.tf-auth__form { padding: clamp(1.5rem, 4vw, 2.75rem); }
.tf-auth__form h1 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.1rem); margin-bottom: 1.25rem; }
.tf-auth__links { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.1rem; font-weight: 700; }
.tf-auth__links a { text-decoration: none; }
@media (max-width: 767.98px) { .tf-auth__card { grid-template-columns: 1fr; } .tf-auth__aside { order: 2; } }

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

/* ---------- Currency (TSh / USD) ---------- */
.tf-cur { display: inline-flex; gap: .15rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px; }
.tf-cur a, .tf-cur span { padding: .1rem .65rem; border-radius: 999px; text-decoration: none; }
.tf-cur .is-active { background: var(--tf-orange); color: var(--tf-navy); font-weight: 700; }
.tf-legend-row { display: flex !important; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; width: 100% !important; }
.tf-legend-row .tf-cur { background: var(--tf-surface); border: 1px solid var(--tf-line); font-family: var(--tf-font-body); font-size: .9rem; }
.tf-legend-row .tf-cur a { color: var(--tf-navy); }
.tf-legend-row .tf-cur a:hover { background: var(--tf-green-tint); }
.tf-money-input { position: relative; }
.tf-money-input span { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--tf-navy-soft); pointer-events: none; }
.tf-money-input .tf-input { padding-left: 3.2rem; font-size: 1.25rem; font-weight: 700; }
.tf-convert { margin: .35rem 0 0; font-size: .92rem; color: var(--tf-navy-soft); min-height: 1.4em; }
.tf-rate-note { font-size: .82rem; color: var(--tf-navy-soft); margin: .8rem auto 0; text-align: center; }
.tf-rate-note i { color: var(--tf-green); margin-right: .25rem; }
@media (max-width: 575.98px) {
    .tf-topbar__contact li:first-child a { font-size: 0; }
    .tf-topbar__contact li:first-child a i { font-size: .875rem; margin: 0; }
    .tf-topbar__right { gap: .6rem !important; }
    .tf-cur a, .tf-cur span, .tf-lang a, .tf-lang span { padding: .1rem .5rem; }
}

/* ---------- Photo credits ---------- */
.tf-credits { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.tf-credits li { display: grid; grid-template-columns: 110px 1fr; gap: .9rem; align-items: start; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); padding: .7rem; background: #fff; }
.tf-credits img { width: 110px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tf-radius-sm); }
.tf-credits div { display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; }
.tf-credits span { color: var(--tf-navy-soft); }
.tf-credits a { font-weight: 700; text-decoration: none; }

/* ---------- About: official documents & governance ---------- */
.tf-official { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--tf-gap); }
.tf-official__doc { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; background: #fff; border: 1px solid var(--tf-line); border-top: 4px solid var(--tf-green); border-radius: var(--tf-radius-lg); padding: 1.4rem; }
.tf-official__icon { width: 64px; height: 76px; border-radius: 6px; background: #fdecec; color: #c0392b; display: grid; place-items: center; font-size: 2rem; }
.tf-official__doc h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.tf-official__doc p { margin: 0 0 .6rem; color: var(--tf-navy-soft); font-size: .97rem; }
.tf-official__meta { font-size: .85rem !important; font-weight: 700; }
.tf-official__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tf-official__actions .tf-btn { padding: .5rem 1rem; font-size: .92rem; }
.tf-gov__title { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.tf-gov { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tf-gov__item { background: #fff; border-radius: var(--tf-radius-lg); padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--tf-line); }
.tf-gov__item i { color: var(--tf-green); font-size: 1.4rem; }
.tf-gov__item span { color: var(--tf-navy-soft); font-size: .95rem; }
@media (max-width: 991.98px) { .tf-gov { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .tf-gov { grid-template-columns: 1fr; } .tf-official { grid-template-columns: 1fr; } .tf-official__doc { grid-template-columns: 1fr; } }
.tf-founders { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.tf-founders li { display: flex; gap: .75rem; align-items: center; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); padding: .75rem; }
.tf-founders__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--tf-green); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--tf-font-head); flex: none; }
.tf-founders b { display: block; line-height: 1.25; }
.tf-founders small { color: var(--tf-navy-soft); font-weight: 700; }
.tf-founders img.tf-founders__avatar { object-fit: cover; }

/* Logo never shrinks; the menu tightens instead */
.tf-header__logo { flex: none; }
.tf-header__logo img { max-width: none; }
@media (min-width: 992px) { .tf-nav { min-width: 0; } .tf-nav__list { gap: 0; } }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .tf-nav__link { padding: .5rem .35rem; font-size: .92rem; }
    .tf-header__logo img { height: 44px; }
    .tf-header__donate { padding: .6rem 1.1rem; }
}
@media (min-width: 1200px) and (max-width: 1439.98px) { .tf-nav__link { padding: .55rem .5rem; } }
@media (min-width: 1600px) { .tf-search input { width: 120px; } }
.tf-search, .tf-header__donate { flex: none; }
@media (min-width: 992px) and (max-width: 1099.98px) { .tf-nav__link { padding: .5rem .3rem; font-size: .9rem; } .tf-nav { gap: .4rem; } }

/* ---------- Mobile money (LipaHuru) ---------- */
.tf-momo { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--tf-radius); background: var(--tf-green-tint); }
.tf-momo__lead { margin: 0 0 .8rem; font-weight: 700; font-size: .95rem; }
.tf-momo__lead i { color: var(--tf-green); margin-right: .3rem; }
.tf-momo__note { margin: 0; font-size: .85rem; color: var(--tf-navy-soft); }
.tf-momo .tf-field { margin-bottom: .6rem; }
.tf-wait__phone { position: relative; width: 84px; height: 84px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--tf-green); color: #fff; display: grid; place-items: center; font-size: 2.3rem; }
.tf-wait__pulse { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--tf-green); }
@media (prefers-reduced-motion: no-preference) {
    .tf-wait__pulse { animation: tf-pulse 1.8s ease-out infinite; }
    .tf-wait__spinner { animation: tf-spin 1s linear infinite; }
}
@keyframes tf-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@keyframes tf-spin { to { transform: rotate(360deg); } }
.tf-wait__steps { text-align: left; max-width: 460px; margin: 0 auto 1.2rem; padding-left: 1.3rem; }
.tf-wait__steps li { margin-bottom: .45rem; }
.tf-wait__status { font-weight: 700; color: var(--tf-green-dark); display: flex; gap: .5rem; align-items: center; justify-content: center; }
.tf-wait__spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--tf-green-tint); border-top-color: var(--tf-green); display: inline-block; }
.tf-wait__time { color: var(--tf-navy-soft); font-weight: 600; }
.tf-wait .tf-thanks__actions form { margin: 0; }
.tf-wait__status { flex-wrap: wrap; text-align: center; }

/* ==========================================================================
   Home page v2 (2026-10-19): hero slider, three-way strip, Our Impact, testimonial carousel
   ========================================================================== */
.tf-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tf-green); margin: 0 0 .6rem; }
.tf-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--tf-orange); }

/* Slider */
.tf-slider { position: relative; overflow: hidden; background: #163424; color: #fff; min-height: min(84vh, 720px); display: grid; }
.tf-slider > .tf-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.tf-slider > .tf-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.tf-slide__bg { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.06); }
.tf-slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,20,.55) 0%, rgba(10,30,20,.62) 55%, rgba(10,30,20,.8) 100%); }
@media (prefers-reduced-motion: no-preference) {
    .tf-slide.is-active .tf-slide__bg { animation: tf-kenburns 9s ease-out forwards; }
    .tf-slide.is-active .tf-slide__inner > * { animation: tf-rise .8s ease both; }
    .tf-slide.is-active .tf-slide__inner > *:nth-child(2) { animation-delay: .12s; }
    .tf-slide.is-active .tf-slide__inner > *:nth-child(3) { animation-delay: .24s; }
}
@keyframes tf-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes tf-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tf-slide__inner { position: relative; z-index: 2; text-align: center; padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(8rem, 14vw, 10rem); }
.tf-slide__title { color: #fff; font-size: clamp(2.2rem, 4vw + 1rem, 4.2rem); font-weight: 700; line-height: 1.08; max-width: 20ch; margin: 0 auto 1.1rem; text-wrap: balance; }
.tf-slide__text { font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); color: #e8f1eb; max-width: 58ch; margin: 0 auto 2rem; }
.tf-slide__actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.tf-slider__controls { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: clamp(6.5rem, 11vw, 7.5rem); display: flex; align-items: center; gap: .6rem; }
.tf-slider__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(0,0,0,.18); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.tf-slider__arrow:hover { background: rgba(255,255,255,.2); }
.tf-slider__arrow:focus-visible, .tf-slider__dot:focus-visible { outline: 3px solid var(--tf-orange); outline-offset: 2px; }
.tf-slider__dots { display: flex; gap: .45rem; padding: 0 .3rem; }
.tf-slider__dot { width: 11px; height: 11px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.tf-slider__dot[aria-current="true"] { width: 30px; background: var(--tf-orange); }

/* Three-way strip overlapping the slider */
.tf-ways { position: relative; z-index: 4; margin-top: clamp(-5.5rem, -8vw, -4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.tf-ways__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.tf-way { position: relative; border-radius: 18px; padding: clamp(1.4rem, 2.4vw, 2rem); box-shadow: 0 22px 50px rgba(20,40,30,.18); display: flex; flex-direction: column; gap: .55rem; background: #fff; color: var(--tf-navy); margin: 0; }
.tf-way--green { background: var(--tf-green); color: #fff; }
.tf-way--navy { background: var(--tf-navy); color: #fff; }
.tf-way--give { border-top: 5px solid var(--tf-orange); }
.tf-way__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,.14); color: #fff; margin-bottom: .3rem; }
.tf-way--give .tf-way__icon { background: #FDEBD8; color: var(--tf-orange-dark); }
.tf-way__title { font-size: 1.35rem; margin: 0; color: inherit; }
.tf-way__kicker { margin: 0; font-weight: 700; opacity: .85; font-size: .92rem; }
.tf-way__big { margin: 0; font-family: var(--tf-font-head); font-weight: 700; font-size: clamp(2rem, 2vw + 1.2rem, 2.7rem); line-height: 1.05; color: #fff; }
.tf-way__text { margin: 0; opacity: .92; font-size: .98rem; }
.tf-way__link { margin-top: auto; padding-top: .4rem; color: #fff; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.tf-way__link:hover { color: #fff; text-decoration: underline; }
.tf-way__link i { color: var(--tf-orange); transition: transform .2s; }
.tf-way__link:hover i { transform: translateX(3px); }
.tf-way .tf-amounts { margin-top: .2rem; }
.tf-way .tf-amount span { padding: .5rem .2rem; font-size: .92rem; }
.tf-select--sm { padding: .55rem .75rem; font-size: .95rem; }
.tf-way .tf-btn { margin-top: .35rem; }
.tf-way__note { margin: 0; font-size: .8rem; color: var(--tf-navy-soft); display: flex; gap: .4rem; align-items: center; }
.tf-trustline { list-style: none; padding: 0; margin: clamp(1.5rem, 3vw, 2.2rem) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; color: var(--tf-navy-soft); font-size: .93rem; }
.tf-trustline li { display: flex; gap: .5rem; align-items: center; }
.tf-trustline i { color: var(--tf-green); }
@media (max-width: 991.98px) {
    .tf-ways__grid { grid-template-columns: 1fr 1fr; }
    .tf-way--give { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 575.98px) {
    .tf-ways__grid { grid-template-columns: 1fr; }
    .tf-slider { min-height: 560px; }
    .tf-slide__actions .tf-btn { flex: 1 1 100%; }
    .tf-slider__controls .tf-slider__arrow:not(.tf-slider__pause) { display: none; }
}

/* Our Impact */
.tf-impact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tf-impact__body h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); margin: 0 0 .8rem; }
.tf-impact__text { color: var(--tf-navy-soft); font-size: 1.07rem; margin-bottom: 1.6rem; }
.tf-impact__figures { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tf-impact__figures li { background: var(--tf-surface); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.tf-impact__figures i { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tf-green-tint); color: var(--tf-green); font-size: 1.2rem; }
.tf-impact__figures b { font-family: var(--tf-font-head); font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); line-height: 1.1; color: var(--tf-green-dark); }
.tf-impact__figures span:not([data-count]) { color: var(--tf-navy-soft); font-size: .92rem; line-height: 1.35; }
.tf-impact__collage { display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr; grid-template-rows: 220px 220px; }
.tf-impact__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.tf-impact__collage--3 img:first-child { grid-row: span 2; }
.tf-impact__collage--2 { grid-template-rows: 380px; }
.tf-impact__collage--1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
@media (max-width: 991.98px) { .tf-impact__grid { grid-template-columns: 1fr; } .tf-impact__collage { grid-template-rows: 170px 170px; } .tf-impact__collage--2, .tf-impact__collage--1 { grid-template-rows: 260px; } }
@media (max-width: 575.98px) { .tf-impact__figures { grid-template-columns: 1fr; } }

/* Testimonial carousel */
.tf-quotes__head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.tf-quotes__head h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); margin: 0 0 .4rem; }
.tf-quotes__head p { color: var(--tf-navy-soft); margin: 0; }
.tf-quotes__stage { display: grid; max-width: 820px; margin: 0 auto; }
.tf-quotes__stage > .tf-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.tf-quotes__stage > .tf-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.tf-quote { position: relative; background: #fff; border-radius: 20px; padding: clamp(2rem, 4vw, 3rem); margin: 0; box-shadow: 0 18px 40px rgba(30,42,94,.08); text-align: center; }
.tf-quote__mark { display: block; font-family: var(--tf-font-head); font-size: 5rem; line-height: .6; color: var(--tf-orange); height: 2.2rem; }
.tf-quote__text { font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem); line-height: 1.6; color: var(--tf-navy); margin: 0 0 1.6rem; }
.tf-quote__text p:last-child { margin-bottom: 0; }
.tf-quote__who { display: inline-flex; align-items: center; gap: .9rem; text-align: left; }
.tf-quote__who img, .tf-quote__initials { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.tf-quote__initials { display: grid; place-items: center; background: var(--tf-green); color: #fff; font-family: var(--tf-font-head); font-weight: 700; font-size: 1.4rem; }
.tf-quote__who b { display: block; font-size: 1.05rem; }
.tf-quote__who small { display: block; color: var(--tf-navy-soft); font-size: .9rem; }
.tf-slider__controls--dark { position: static; transform: none; justify-content: center; margin-top: 1.6rem; }
.tf-slider__controls--dark .tf-slider__arrow { border-color: var(--tf-line); background: #fff; color: var(--tf-navy); }
.tf-slider__controls--dark .tf-slider__arrow:hover { background: var(--tf-green-tint); }
.tf-slider__controls--dark .tf-slider__dot { background: var(--tf-line); }
.tf-slider__controls--dark .tf-slider__dot[aria-current="true"] { background: var(--tf-green); }

/* Get involved: single partner banner */
.tf-involve--single { grid-template-columns: 1fr; }
.tf-involve__item--row { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.tf-involve__item--row h3 { grid-column: 1; margin: 0; }
.tf-involve__item--row p { grid-column: 1; margin: 0; }
.tf-involve__item--row .tf-btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 767.98px) { .tf-involve__item--row { grid-template-columns: 1fr; } .tf-involve__item--row .tf-btn { grid-column: 1; grid-row: auto; justify-self: start; } }

/* Header: lift with a soft shadow; rounded pill feel on wide screens */
.tf-header { box-shadow: 0 6px 24px rgba(30,42,94,.06); }
.tf-impact__figures b { font-size: clamp(1.35rem, .8vw + 1rem, 1.8rem); white-space: nowrap; }
.tf-impact__figures li > span { grid-column: 2; }
@media (max-width: 575.98px) {
    .tf-slide__inner { padding-top: 2.2rem; padding-bottom: 10.5rem; }
    .tf-slide__text { font-size: 1rem; margin-bottom: 1.4rem; }
    .tf-slide__actions .tf-btn { padding-top: .75rem; padding-bottom: .75rem; }
    .tf-way .tf-amount span { font-size: .85rem; }
}
@media (max-width: 575.98px) {
    .tf-impact__figures { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .tf-impact__figures li { display: block; padding: .9rem; }
    .tf-impact__figures i { width: 38px; height: 38px; font-size: 1rem; margin-bottom: .5rem; }
    .tf-impact__figures b { display: block; white-space: normal; font-size: 1.3rem; }
    .tf-impact__figures li > span { display: block; font-size: .85rem; }
}
