/* ============================================================
   CFC TANZANIA — tovuti ya umma
   Rangi za chapa zimetoka kwenye logo ya CFNET na kadi za viongozi:
   navy (msingi), nyekundu (msalaba, accent), dhahabu (Biblia).
   Hakuna CDN — fonti ziko assets/fonts.
   ============================================================ */

@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f0f3fa;
    --tint: #eef2fb;
    --text: #111a30;
    --muted: #5a6479;
    --border: #e1e5ef;
    --primary: #0b2a6f;
    --primary-solid: #0b2a6f;
    --primary-hover: #133a92;
    --primary-soft: #e3eaf9;
    --accent: #d21f2c;
    --accent-hover: #b41622;
    --accent-soft: #fde8ea;
    --gold: #e0a526;
    --gold-soft: #fdf3dc;
    --on-primary: #ffffff;
    --hero-1: #06173f;
    --hero-2: #0b2a6f;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
    --shadow: 0 8px 28px rgba(11, 42, 111, .09);
    --shadow-lg: 0 18px 50px rgba(11, 42, 111, .16);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1180px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-head: 'Poppins', 'Inter', system-ui, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a0f1e; --surface: #121a2f; --surface-2: #172039; --tint: #0e1528;
        --text: #e8ebf4; --muted: #9ba4ba; --border: #243152;
        --primary: #8fb0ff; --primary-solid: #2451c7; --primary-hover: #2f5fd9; --primary-soft: #182850;
        --accent: #f0525c; --accent-hover: #f46a73; --accent-soft: #3a1a20;
        --gold: #f1bb45; --gold-soft: #2e2512;
        --hero-1: #040a1c; --hero-2: #0a1f55;
        --shadow: 0 8px 28px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .45);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0a0f1e; --surface: #121a2f; --surface-2: #172039; --tint: #0e1528;
    --text: #e8ebf4; --muted: #9ba4ba; --border: #243152;
    --primary: #8fb0ff; --primary-solid: #2451c7; --primary-hover: #2f5fd9; --primary-soft: #182850;
    --accent: #f0525c; --accent-hover: #f46a73; --accent-soft: #3a1a20;
    --gold: #f1bb45; --gold-soft: #2e2512;
    --hero-1: #040a1c; --hero-2: #0a1f55;
    --shadow: 0 8px 28px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

/* ---------- Msingi ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 16px; line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -.18em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Vitufe ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.2rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .95rem/1 var(--font); cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary-solid); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(210, 31, 44, .28); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text); cursor: pointer; transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .icon { width: 19px; height: 19px; }

.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .only-dark { display: block; }
    :root:not([data-theme="light"]) .only-light { display: none; }
}

/* ---------- Utepe wa usakinishaji ---------- */
.install-bar {
    display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap;
    padding: .55rem 1rem; background: var(--gold-soft); color: var(--text);
    font-size: .88rem; border-bottom: 1px solid var(--border); text-align: center;
}
.install-bar .icon { color: var(--gold); }
.install-bar a { font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -.01em; }
.brand-text strong em { font-style: normal; color: var(--accent); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
    display: block; padding: .5rem .75rem; border-radius: 10px;
    color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.main-nav ul a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.main-nav ul a.on { color: var(--primary); background: var(--primary-soft); }

.header-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: .5rem .6rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.lang-switch a.on { background: var(--primary-solid); color: #fff; }
.menu-btn { display: none; }

@media (max-width: 1180px) {
    .menu-btn { display: inline-grid; }
    .header-tools { margin-left: auto; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
        flex-direction: column; align-items: stretch; gap: .75rem;
        padding: 1rem 20px 1.5rem; background: var(--surface);
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .18s, transform .18s, visibility .18s;
        max-height: calc(100vh - 74px); overflow-y: auto;
    }
    .main-nav.open { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: .8rem 1rem; font-size: 1rem; }
}
@media (max-width: 420px) {
    .brand-text small { display: none; }
    .header-tools { gap: .35rem; }
}

/* ---------- Vipengele vya jumla ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 2.5rem; max-width: 680px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; margin-bottom: 1.5rem; }
.section-title { font-size: clamp(1.6rem, 2.6vw + .6rem, 2.35rem); font-weight: 700; }
.section-title.small { font-size: 1.5rem; }
.kicker {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    color: var(--accent); margin-bottom: .75rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker-light { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--text); }
.meta { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: .4rem; }
.sample-tag {
    display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem;
    font-size: .74rem; color: var(--muted); border: 1px dashed var(--border);
    padding: .25rem .6rem; border-radius: 999px;
}
.sample-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-top { align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) {
    .split, .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .section { padding: 64px 0; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .icon { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 3px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 60%, #16389a 100%);
    padding: 96px 0 150px;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% 20%, rgba(210, 31, 44, .28), transparent 65%),
        radial-gradient(500px 380px at 10% 110%, rgba(224, 165, 38, .22), transparent 65%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0; opacity: .07;
    background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw + .5rem, 4rem); font-weight: 700; line-height: 1.08; margin-bottom: 1.1rem; }
.hero-lead { font-size: clamp(1.05rem, .6vw + .9rem, 1.25rem); color: rgba(255,255,255,.85); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.25rem; }
.hero-verse {
    margin: 0; padding-left: 1rem; border-left: 3px solid var(--gold);
    font-style: italic; color: rgba(255,255,255,.8); max-width: 520px;
}
.hero-verse cite { display: block; font-style: normal; font-weight: 700; font-size: .85rem; color: var(--gold); margin-top: .3rem; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 400px; justify-self: center; width: 100%; }
.hero-ring {
    position: absolute; inset: 6%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,.02) 70%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 0 0 22px rgba(255,255,255,.04), 0 0 0 46px rgba(255,255,255,.025);
}
.hero-logo { position: relative; width: 62%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
    .hero { padding: 64px 0 130px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 240px; order: -1; }
}

/* ---------- Ratiba ya ibada (inaelea juu ya hero) ---------- */
.services-strip { margin-top: -86px; position: relative; z-index: 2; }
.services-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    box-shadow: var(--shadow-lg); padding: 1.6rem 1.8rem;
    display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 2.5rem; align-items: center;
}
.services-head { display: flex; gap: .9rem; align-items: center; }
.services-head > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.services-head h2 { font-size: 1.2rem; margin: 0; }
.services-head p { margin: 0; color: var(--muted); font-size: .88rem; max-width: 240px; }
.services-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.services-list li { padding: .85rem 1rem; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; }
.svc-day { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.services-list strong { font-size: .98rem; }
.svc-time { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.services-card .sample-tag { grid-column: 1 / -1; margin-top: 0; justify-self: start; }
@media (max-width: 900px) {
    .services-card { grid-template-columns: 1fr; padding: 1.3rem; }
    .services-list { grid-template-columns: 1fr; }
}

/* ---------- Kuhusu (collage) ---------- */
.about-collage { position: relative; max-width: 460px; margin: 0 auto; }
.ac-main {
    margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, var(--primary-soft), var(--surface-2));
    border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: center;
}
.ac-main img { height: 93%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom; }
.ac-badge {
    position: absolute; right: -16px; bottom: 32px;
    background: var(--accent); color: #fff; border-radius: 16px; padding: 1rem 1.2rem;
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column; line-height: 1.2;
}
.ac-badge strong { font-family: var(--font-head); font-size: 1.8rem; }
.ac-badge span { font-size: .78rem; opacity: .9; }
.about-collage::before {
    content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; z-index: -1;
    background-image: radial-gradient(var(--gold) 2px, transparent 2px); background-size: 14px 14px; opacity: .6;
}
@media (max-width: 520px) { .ac-badge { right: 8px; } }

/* ---------- Malengo / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.feature-icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--primary-soft); color: var(--primary);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature:nth-child(3n+2) .feature-icon { background: var(--accent-soft); color: var(--accent); }
.feature:nth-child(3n+3) .feature-icon { background: var(--gold-soft); color: var(--gold); }
.feature-cta {
    background: linear-gradient(145deg, var(--primary-solid), #16389a); color: #fff; border-color: transparent;
    display: flex; flex-direction: column;
}
.feature-cta:hover { text-decoration: none; }
.feature-cta h3 { margin-top: 0; font-size: 1.25rem; }
.feature-cta p { color: rgba(255,255,255,.8); flex: 1; margin-bottom: 1rem; }
.feature-cta .link-arrow { color: var(--gold); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Viongozi ---------- */
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.leader-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.leader-photo {
    position: relative; aspect-ratio: 4 / 4.2; overflow: hidden;
    background: linear-gradient(170deg, #eef2fb 0%, #d7e0f5 100%);
    display: flex; align-items: flex-end; justify-content: center;
}
:root[data-theme="dark"] .leader-photo { background: linear-gradient(170deg, #1b2747 0%, #101a36 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leader-photo { background: linear-gradient(170deg, #1b2747 0%, #101a36 100%); } }
.leader-photo::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    background: linear-gradient(90deg, var(--primary-solid) 0 70%, var(--accent) 70% 100%);
}
/* Picha ni ndefu (wima): ipime kwa urefu, si upana — kichwa kisikatwe. */
.leader-photo img {
    height: 93%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom;
    transform-origin: bottom center; transition: transform .35s;
}
.leader-card:hover .leader-photo img { transform: scale(1.03); }
.leader-body { padding: 1.25rem 1.4rem 1.4rem; }
.leader-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.leader-body h3 { font-size: 1.2rem; margin: .2rem 0 .3rem; }
.leader-body p { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.leader-place { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); background: var(--surface-2); padding: .25rem .6rem; border-radius: 999px; }
@media (max-width: 900px) { .leader-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .leader-grid { grid-template-columns: 1fr; } }

/* ---------- Matukio na mahubiri (orodha) ---------- */
.event-list, .sermon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.event-item, .sermon-item {
    display: flex; align-items: center; gap: 1rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem;
}
.event-item h3, .sermon-item h3 { font-size: 1rem; margin: 0 0 .15rem; }
.sermon-item > div { flex: 1; min-width: 0; }
.date-chip {
    flex: 0 0 auto; width: 58px; text-align: center; border-radius: 12px; padding: .45rem 0;
    background: var(--primary-solid); color: #fff; display: flex; flex-direction: column; line-height: 1.1;
}
.date-chip strong { font-family: var(--font-head); font-size: 1.35rem; }
.date-chip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.date-chip-lg { width: 84px; padding: .8rem 0; }
.date-chip-lg strong { font-size: 2rem; }
.play-btn {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: var(--accent); color: #fff;
    box-shadow: 0 6px 16px rgba(210, 31, 44, .3); transition: transform .15s;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn .icon { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.play-lg { width: 76px; height: 76px; }
.play-lg .icon { width: 30px; height: 30px; }
.duration { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: 24px; padding: 3rem;
    background: linear-gradient(120deg, var(--hero-1), var(--hero-2) 55%, #7a1420 130%); color: #fff;
    display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta-band::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
    border: 40px solid rgba(255,255,255,.05);
}
.cta-band h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.82); max-width: 620px; }
.cta-verse { font-style: italic; font-size: .92rem; border-left: 3px solid var(--gold); padding-left: .9rem; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 2rem 1.5rem; } .cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Tutembelee / ramani ---------- */
.visit { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }
.contact-rows { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1rem; }
.contact-rows li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-rows strong { display: block; }
.contact-rows small { color: var(--muted); }
.ci { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }

.map-card {
    position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3;
    border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text);
}
.map-card:hover { text-decoration: none; }
.map-card svg { width: 100%; height: 100%; display: block; }
.m-land { fill: #e8eef6; }
.m-road-major { fill: none; stroke: #f6c453; stroke-width: 12; }
.m-road { fill: none; stroke: #fff; stroke-width: 7; }
.m-block { fill: #d7e1ee; }
.m-park { fill: #cfe8d3; }
.m-label { font: 600 11px var(--font); fill: #7b8799; }
:root[data-theme="dark"] .m-land { fill: #16203a; }
:root[data-theme="dark"] .m-road { stroke: #26345a; }
:root[data-theme="dark"] .m-block { fill: #1d2946; }
:root[data-theme="dark"] .m-park { fill: #173327; }
:root[data-theme="dark"] .m-road-major { stroke: #6b5520; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .m-land { fill: #16203a; }
    :root:not([data-theme="light"]) .m-road { stroke: #26345a; }
    :root:not([data-theme="light"]) .m-block { fill: #1d2946; }
    :root:not([data-theme="light"]) .m-park { fill: #173327; }
    :root:not([data-theme="light"]) .m-road-major { stroke: #6b5520; }
}
.map-pin {
    position: absolute; left: 53%; top: 36%; transform: translate(-50%, -100%);
    width: 50px; height: 50px; border-radius: 50% 50% 50% 0; rotate: -45deg;
    background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(210,31,44,.4);
}
.map-pin .icon { rotate: 45deg; color: #fff; width: 22px; height: 22px; }
.map-caption {
    position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
    background: var(--surface); border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column; line-height: 1.35;
}
.map-caption small { color: var(--muted); }

/* ---------- Kichwa cha kurasa za ndani ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff; padding: 64px 0 60px;
    background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 70%, #16389a);
}
.page-hero::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(210,31,44,.35), transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 3vw + .8rem, 3rem); margin: .6rem 0 .5rem; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0; font-size: 1.08rem; }
.crumbs { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: .3rem; }
.crumbs .icon { width: 14px; height: 14px; }

/* ---------- Kuhusu ---------- */
.note-box {
    display: flex; gap: .9rem; padding: 1rem 1.1rem; border-radius: 14px;
    background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.note-box > .icon { color: var(--gold); width: 24px; height: 24px; margin-top: 2px; }
.note-box p { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }
.vm-stack { display: grid; gap: 1.1rem; }
.vm-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.vm-card h3 { font-size: 1.3rem; margin: .9rem 0 .4rem; }
.vm-card p { color: var(--muted); margin: 0; }
.vm-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.vm-accent { background: linear-gradient(145deg, var(--primary-solid), #16389a); color: #fff; border-color: transparent; }
.vm-accent p { color: rgba(255,255,255,.85); }
.vm-accent .vm-icon { background: rgba(255,255,255,.14); color: var(--gold); }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.value { text-align: center; padding: 1.75rem 1.25rem; background: var(--surface); border-radius: 18px; border: 1px solid var(--border); }
.value h3 { font-size: 1.08rem; margin: 1rem 0 .3rem; }
.value p { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
.value h3 + p { margin-top: 0; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

.objective-list { list-style: none; padding: 0; margin: 0 auto; max-width: 880px; display: grid; gap: .9rem; counter-reset: none; }
.objective-list li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.objective-list h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.objective-list p { color: var(--muted); margin: 0; font-size: .95rem; }
.obj-letter {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); font: 700 1rem var(--font-head); text-transform: uppercase;
}

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem; display: flex; flex-direction: column; }
.info-card h3 { margin: 1rem 0 .5rem; font-size: 1.15rem; }
.info-card p { color: var(--muted); font-size: .94rem; }
.info-card .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .info-cards { grid-template-columns: 1fr; } }

/* ---------- Mchoro wa muundo (org chart) ---------- */
.org-chart { display: flex; flex-direction: column; align-items: center; }
.org-node {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem;
    text-align: center; display: flex; flex-direction: column; min-width: 150px; box-shadow: var(--shadow-sm);
}
.org-node small { color: var(--muted); font-size: .8rem; }
.org-top { background: var(--gold-soft); border-color: transparent; }
.org-top small { color: var(--text); font-weight: 600; }
.org-main { background: var(--primary-solid); color: #fff; border-color: transparent; padding: 1rem 1.6rem; }
.org-soft { border-style: dashed; }
.org-line { width: 2px; height: 26px; background: var(--border); }
.org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; position: relative; }
.org-row .org-node { min-width: 0; }
.org-row .org-node strong { font-size: .9rem; }

/* ---------- Huduma ---------- */
.ministry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.ministry { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.ministry:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ministry h3 { font-size: 1.08rem; margin: 1rem 0 .4rem; }
.ministry p { color: var(--muted); font-size: .92rem; flex: 1; }
.ministry:nth-child(4n+2) .feature-icon { background: var(--accent-soft); color: var(--accent); }
.ministry:nth-child(4n+3) .feature-icon { background: var(--gold-soft); color: var(--gold); }
@media (max-width: 1000px) { .ministry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ministry-grid { grid-template-columns: 1fr; } }

/* ---------- Mahubiri ---------- */
.sermon-feature {
    display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface);
    border: 1px solid var(--border); border-radius: 22px; overflow: hidden; margin-bottom: 2.5rem; box-shadow: var(--shadow);
}
.sf-media {
    position: relative; min-height: 280px; display: grid; place-items: center;
    background:
        radial-gradient(circle at 70% 30%, rgba(210,31,44,.45), transparent 55%),
        linear-gradient(135deg, var(--hero-1), var(--hero-2));
}
.sf-media::before {
    content: ""; position: absolute; inset: 0; opacity: .12;
    background: url('../img/logo.png') center / 44% no-repeat;
}
.sf-media .duration { position: absolute; right: 1rem; bottom: 1rem; color: #fff; background: rgba(0,0,0,.4); padding: .2rem .5rem; border-radius: 6px; }
.sf-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.sf-body h2 { font-size: 1.7rem; }
.sf-body .meta { margin-bottom: 1.4rem; }
@media (max-width: 800px) { .sermon-feature { grid-template-columns: 1fr; } .sf-media { min-height: 200px; } }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.toolbar .sample-tag { margin-top: 0; }
.search {
    display: flex; align-items: center; gap: .5rem; flex: 1; max-width: 420px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 .9rem;
}
.search .icon { color: var(--muted); }
.search input { border: 0; background: transparent; padding: .75rem 0; flex: 1; font: inherit; color: var(--text); outline: none; min-width: 0; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.sermon-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sermon-card h3 { font-size: 1.05rem; margin: .3rem 0 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .15rem .7rem; margin: 0; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.sermon-card .meta { margin-top: auto; }

/* ---------- Matukio (kadi) ---------- */
.event-cards { display: grid; gap: 1rem; }
.event-card {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.25rem 1.4rem;
    transition: box-shadow .2s, border-color .2s;
}
.event-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.ec-body h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.ec-body p { color: var(--muted); margin: 0 0 .4rem; }
@media (max-width: 700px) { .event-card { grid-template-columns: auto 1fr; } .event-card .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Matawi ---------- */
.branch-list { display: grid; gap: 1rem; }
.branch-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem; }
.branch-card.is-hq { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.branch-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.branch-card p { margin: 0 0 .3rem; display: flex; align-items: center; gap: .35rem; }
.branch-card .btn { grid-column: 2; justify-self: start; }

/* ---------- Sadaka ---------- */
.pay-methods { display: grid; gap: .75rem; margin: 1.5rem 0 1rem; }
.pay-method { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; }
.pay-method > div { flex: 1; display: flex; flex-direction: column; }
.give-card, .steps-card, .form-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow);
}
.give-card h3, .steps-card h3 { font-size: 1.2rem; }
.form-card h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.give-types, .amounts, .chip-checks { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.amounts { display: grid; grid-template-columns: 1fr 1fr; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span {
    display: block; text-align: center; padding: .55rem .95rem; border-radius: 12px; border: 1.5px solid var(--border);
    font-weight: 600; font-size: .9rem; transition: all .15s; background: var(--surface);
}
.chip-radio:hover span { border-color: var(--primary); }
.chip-radio input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.verse-line { font-style: italic; }

/* ---------- Fomu ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; padding: 0; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=date], input[type=time], select, textarea {
    width: 100%; font: inherit; color: var(--text); background: var(--surface);
    border: 1.5px solid var(--border); border-radius: 12px; padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.seg { display: flex; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.seg label { flex: 1; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .7rem .5rem; font-weight: 600; font-size: .9rem; }
.seg input:checked + span { background: var(--primary-solid); color: #fff; }
.checks { display: grid; gap: .5rem; margin-bottom: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary-solid); }
.form-note { display: flex; gap: .4rem; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.form-note .icon { margin-top: 3px; color: var(--gold); }

.step-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.step-list li { display: flex; gap: .8rem; align-items: center; font-weight: 600; }
.step-list span { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 700 .95rem var(--font-head); }

/* ---------- Mawasiliano ---------- */
.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.contact-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; color: var(--text); transition: transform .2s, box-shadow .2s; }
a.contact-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-tile h3 { font-size: 1.02rem; margin: 1rem 0 .25rem; }
.contact-tile p { color: var(--muted); margin: 0; font-size: .92rem; word-break: break-word; }
@media (max-width: 900px) { .contact-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .contact-tiles { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.empty-state { text-align: center; max-width: 520px; }
.big-code { font: 700 clamp(5rem, 14vw, 8rem)/1 var(--font-head); color: var(--primary-soft); -webkit-text-stroke: 2px var(--primary); }
.empty-state p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #06112e; color: rgba(255,255,255,.72); padding-top: 72px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.55); }
.footer-brand p { margin: 1rem 0 1.25rem; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .15s; }
.socials a:hover { background: var(--accent); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
.footer-contact small { color: rgba(255,255,255,.5); }
.footer-verse { background: rgba(255,255,255,.05); border-radius: 16px; padding: 1.4rem; align-self: start; }
.footer-verse .icon { width: 28px; height: 28px; color: var(--accent); }
.footer-verse p { color: #fff; font-style: italic; margin: .6rem 0 .4rem; font-size: 1rem; }
.footer-verse cite { color: var(--gold); font-style: normal; font-weight: 700; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   NYONGEZA — mawazo kutoka tag.or.tz (topbar, slider, takwimu,
   ujumbe wa kiongozi, tabs, nyaraka, FAQ, hatua za malipo)
   ============================================================ */

/* ---------- Topbar ---------- */
.topbar { background: #06112e; color: rgba(255,255,255,.75); font-size: .8rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.25rem; }
.topbar li { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.topbar .icon { color: var(--gold); width: 14px; height: 14px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar ul.topbar-links li.topbar-social { gap: .15rem; }
.topbar-social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; }
.topbar-social a:hover { background: rgba(255,255,255,.1); }
.topbar-social .icon { color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .topbar .hide-sm { display: none; } }
@media (max-width: 520px) { .topbar-info li:first-child { display: none; } .topbar ul { gap: .75rem; } }

/* ---------- Hero slider ---------- */
.slider { display: grid; }
/* hero-bg ni absolute: bila grid-area inajaza hero yote (pamoja na padding). */
.slide {
    grid-area: 1 / 1; position: relative; z-index: 1;
    opacity: 0; visibility: hidden; transform: translateX(24px);
    transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-title { font-size: clamp(2.2rem, 4.8vw + .5rem, 4rem); font-weight: 700; line-height: 1.08; margin-bottom: 1.1rem; }
.hero-person {
    position: relative; height: 92%; width: auto; max-width: 80%; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
}
.hero-emblem {
    position: relative; width: 58%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), #8f1019); box-shadow: 0 24px 60px rgba(210,31,44,.45);
}
.hero-emblem .icon { width: 46%; height: 46%; color: #fff; }
.sample-light { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.slider-nav {
    grid-area: 2 / 1; position: relative; z-index: 3;
    display: flex; align-items: center; gap: .9rem; margin-top: 2rem; pointer-events: none;
}
.slider-nav > * { pointer-events: auto; }
.slider-arrow {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.slider-arrow:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.slider-dots { display: flex; gap: .45rem; }
.slider-dots button {
    width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: rgba(255,255,255,.35); transition: width .3s, background .3s;
}
.slider-dots button.on { width: 34px; background: var(--gold); }
@media (max-width: 900px) {
    .slider-nav { justify-content: center; }
    .hero-person { max-height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; transform: none; } }

/* ---------- Takwimu ---------- */
.stats-band { background: linear-gradient(120deg, var(--hero-1), var(--hero-2)); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.stats-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(400px 200px at 90% 50%, rgba(210,31,44,.35), transparent 70%);
}
.stats-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.12); }
.stat-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--gold); margin-bottom: .4rem; }
.stat-ic .icon { width: 24px; height: 24px; }
.stat-item strong { font: 700 clamp(2rem, 3vw + .6rem, 2.8rem)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.stat-item > span:last-child { color: rgba(255,255,255,.75); font-size: .9rem; }
@media (max-width: 760px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .stat-item:nth-child(3) { border-left: 0; }
}

/* ---------- Ujumbe wa Askofu Mkuu ---------- */
.message-card {
    display: grid; grid-template-columns: .8fr 1.2fr; align-items: stretch; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow);
}
.message-photo {
    position: relative; min-height: 380px; display: flex; align-items: flex-end; justify-content: center;
    background: linear-gradient(160deg, var(--hero-2), var(--hero-1));
}
.message-photo::before {
    content: ""; position: absolute; width: 70%; aspect-ratio: 1; top: 12%; border-radius: 50%;
    background: radial-gradient(circle, rgba(224,165,38,.35), transparent 70%);
}
.message-photo img { position: relative; height: 94%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom; }
.message-body { padding: 2.75rem 3rem; position: relative; }
.message-quote { position: absolute; right: 2rem; top: 2rem; width: 72px; height: 72px; color: var(--accent); opacity: .12; }
.message-text { font-size: 1.2rem; line-height: 1.7; font-style: italic; color: var(--text); border-left: 3px solid var(--gold); padding-left: 1.1rem; }
.message-sign { display: flex; flex-direction: column; margin-top: 1.4rem; }
.message-sign strong { font: 700 1.15rem var(--font-head); }
.message-sign span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
    .message-card { grid-template-columns: 1fr; }
    .message-photo { min-height: 300px; }
    .message-body { padding: 2rem 1.5rem; }
}

/* ---------- Tabs ---------- */
.tab-list {
    display: flex; gap: .4rem; flex-wrap: wrap; padding: .4rem; margin-bottom: 1.75rem;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; width: fit-content; max-width: 100%;
}
.tab-list [role="tab"] {
    display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.1rem; border: 0; border-radius: 12px;
    background: transparent; color: var(--muted); font: 600 .92rem var(--font); cursor: pointer; transition: background .15s, color .15s;
}
.tab-list [role="tab"]:hover { color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .tab-list { width: 100%; } .tab-list [role="tab"] { flex: 1; justify-content: center; padding: .65rem .5rem; font-size: .85rem; } }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.media-tile {
    position: relative; aspect-ratio: 16 / 10; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
}
.media-tile::before { content: ""; position: absolute; inset: 0; background: url('../img/logo.png') center / 30% no-repeat; opacity: .08; }
.media-tile.tone-1 { background: linear-gradient(135deg, #5c0f16, var(--accent)); }
.media-tile.tone-2 { background: linear-gradient(135deg, #6b4a06, var(--gold)); }
.media-ic { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; }
.media-ic .icon { width: 24px; height: 24px; }
.media-badge { position: absolute; left: .75rem; top: .75rem; display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.35); padding: .2rem .5rem; border-radius: 6px; }
.media-note { margin-top: 1rem; }
@media (max-width: 760px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.doc-list li { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.2rem; }
.doc-list li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.doc-list small { color: var(--muted); }
@media (max-width: 560px) { .doc-list li { flex-wrap: wrap; } .doc-list .btn { margin-left: 64px; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.faq[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
    padding: 1.1rem 1.3rem; font: 600 1.02rem var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--primary); transition: transform .2s; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }
.steps-card > .feature-icon { margin-bottom: .8rem; }
.hours-title { display: flex; align-items: center; gap: .4rem; font-size: 1rem; margin: 1.5rem 0 .6rem; }

.hours { margin: 0 0 .5rem; display: grid; gap: .35rem; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps-card .btn-block { margin-top: 1.25rem; }
.site-footer .hours > div { border-color: rgba(255,255,255,.1); }
.site-footer .hours dt { color: rgba(255,255,255,.6); }
.site-footer .hours dd { color: #fff; }
.site-footer .sample-tag { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.2); margin-top: .5rem; }
.site-footer .footer-verse { margin-top: 1.25rem; }

/* ---------- Hatua za malipo ---------- */
.pay-tabs .tab-list { margin-left: auto; margin-right: auto; }
@media (max-width: 560px) { .pay-tabs .tab-list { display: grid; grid-template-columns: 1fr 1fr; } }
.pay-steps { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; }
.pay-steps .step-list { counter-reset: st; margin: 0; }
.pay-steps .step-list li { counter-increment: st; font-weight: 500; }
.pay-steps .step-list span::before { content: counter(st); }
.pay-summary {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem;
    padding: 1.75rem 1rem; border-radius: 16px; background: linear-gradient(145deg, var(--hero-1), var(--hero-2)); color: #fff;
}
.pay-summary .mono { color: rgba(255,255,255,.7); }
.ussd { font: 700 2rem/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--gold); letter-spacing: .02em; }
@media (max-width: 760px) { .pay-steps { grid-template-columns: 1fr; padding: 1.25rem; } }

/* ============================================================
   YOUTUBE — Live na Video
   ============================================================ */
:root { --yt: #e62117; }

.btn-yt { background: var(--yt); color: #fff; box-shadow: 0 6px 18px rgba(230, 33, 23, .28); }
.btn-yt:hover { background: #c81a11; }

/* Nukta ya "Live" kwenye menyu */
.nav-live { display: inline-flex !important; align-items: center; gap: .4rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yt); box-shadow: 0 0 0 0 rgba(230,33,23,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(230,33,23,0); } 100% { box-shadow: 0 0 0 0 rgba(230,33,23,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot, .live-badge .dot { animation: none; } }

.live-badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 6px;
    background: var(--yt); color: #fff; font: 800 .75rem/1 var(--font); letter-spacing: .08em;
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live-badge.off { background: rgba(255,255,255,.14); }
.live-badge.off .dot { animation: none; background: rgba(255,255,255,.6); }
.live-badge.sm { font-size: .62rem; padding: .2rem .4rem; }

/* Utepe wa Live — ukurasa wa Mwanzo */
.live-band-wrap { padding: 2rem 0 0; }
.live-band {
    display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.4rem; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.live-band:hover { text-decoration: none; border-color: color-mix(in srgb, var(--yt) 45%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); }
.live-band-ic { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--yt) 12%, transparent); color: var(--yt); }
.live-band-ic > .icon { width: 28px; height: 28px; }
.live-band-ic .live-badge { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); }
.live-band-copy { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.live-band-copy strong { font: 700 1.08rem var(--font-head); }
.live-band-copy span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .live-band { flex-wrap: wrap; } .live-band .btn { width: 100%; } }

/* Ukurasa wa Live */
.live-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.75rem; align-items: start; }
@media (max-width: 960px) { .live-grid { grid-template-columns: 1fr; } }
.live-player { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.live-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-poster {
    position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; text-align: center; padding: 1.5rem;
    background:
        radial-gradient(circle at 75% 25%, rgba(230,33,23,.35), transparent 55%),
        linear-gradient(135deg, var(--hero-1), var(--hero-2));
    font: inherit;
}
.is-offline .live-poster { cursor: default; }
.live-poster .live-badge { position: absolute; top: 1rem; left: 1rem; }
.live-logo { width: 90px; opacity: .9; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.live-poster strong { font: 700 1.4rem var(--font-head); }
.live-cta { color: rgba(255,255,255,.8); font-size: .95rem; max-width: 420px; }
.live-poster .play-btn { background: var(--yt); }
.live-poster:hover .play-btn { transform: scale(1.08); }
.live-side { display: grid; gap: 1rem; }
.live-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.3rem; }
.live-card h3 { display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; margin-bottom: 1rem; }
.live-card h3 .icon { color: var(--yt); }
.live-sched { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.live-sched li { display: flex; flex-direction: column; padding: .75rem .9rem; border-radius: 12px; background: var(--surface-2); }
.live-sched .svc-time { display: inline-flex; align-items: center; gap: .3rem; }
.share-label { font-size: .82rem; color: var(--muted); margin: 1rem 0 .5rem; }
.share-row { display: flex; gap: .5rem; }

/* Gridi ya video */
.chip-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip-filter button {
    padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
    color: var(--text); font: 600 .88rem var(--font); cursor: pointer;
}
.chip-filter button:hover { border-color: var(--primary); }
.chip-filter button.on { background: var(--primary-solid); border-color: var(--primary-solid); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video-thumb {
    position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); overflow: hidden;
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45)); }
.video-play {
    position: relative; z-index: 1; width: 58px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--yt); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.35); transition: transform .15s;
}
.video-play .icon { width: 20px; height: 20px; fill: currentColor; }
.video-thumb:hover .video-play { transform: scale(1.1); }
.video-kind { position: absolute; z-index: 1; left: .7rem; bottom: .7rem; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.5); padding: .2rem .55rem; border-radius: 6px; }
.video-body { padding: 1rem 1.1rem 1.1rem; }
.video-body h3 { font-size: 1rem; margin: 0 0 .35rem; }
.video-card[hidden] { display: none; }

/* Hali tupu (skeleton) */
.video-card.skeleton { pointer-events: none; }
.skeleton .video-thumb { cursor: default; }
.skeleton .video-thumb.tone-1 { background: linear-gradient(135deg, #5c0f16, var(--accent)); }
.skeleton .video-thumb.tone-2 { background: linear-gradient(135deg, #6b4a06, var(--gold)); }
.skeleton .video-play { opacity: .55; }
.sk-line { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); margin-bottom: .55rem; }
.sk-line.short { width: 55%; }
.tab-foot { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Dirisha la kuchezea video */
.video-modal {
    width: min(960px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; overflow: hidden;
    background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.video-modal::backdrop { background: rgba(4, 10, 28, .75); backdrop-filter: blur(4px); }
.vm-head { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem .75rem 1.2rem; }
.vm-head h2 { flex: 1; font-size: 1rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { #video-modal-yt { display: none; } }

/* ============================================================
   BACKEND — fomu halisi, hali tupu, Lipa Namba
   ============================================================ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; align-items: flex-start; gap: .55rem; padding: .75rem .9rem; border-radius: 12px; margin-bottom: 1rem; font-size: .92rem; }
.form-alert .icon { margin-top: 3px; }
.form-alert.ok { background: #e3f6ea; color: #14683d; }
.form-alert.bad { background: var(--accent-soft); color: var(--accent); }
:root[data-theme="dark"] .form-alert.ok { background: #12301f; color: #5fd08f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-alert.ok { background: #12301f; color: #5fd08f; } }

.empty-state.soft { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin: 0 auto; padding: 3rem 1.5rem; max-width: 560px; background: var(--surface); border: 1px dashed var(--border); border-radius: 20px; }
.empty-state.soft p { margin: 0; }
.empty-inline { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; padding: 1rem; border: 1px dashed var(--border); border-radius: 14px; margin: 0 0 .75rem; }
.play-btn.is-disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; }
.play-btn.is-disabled:hover { transform: none; }
a.play-btn:hover { text-decoration: none; }

.give-card h3 { display: flex; align-items: center; gap: .45rem; }
.give-card h3 .icon { color: var(--accent); }
.lipa-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: 12px; background: var(--surface-2); margin-bottom: .55rem; }
.lipa-row span { color: var(--muted); font-size: .88rem; }
.lipa-num { font: 700 1.2rem/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .03em; }
.pill-soft { display: inline-block; padding: .35rem .7rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 600; }
.give-card .give-types { margin: 1rem 0 .5rem; }
.give-card .btn-block { margin-top: 1rem; }
.icon-btn.copied { border-color: #18804a; color: #18804a; }
