/* =============================================================
   CFH CHAPEL — single-page stylesheet
   Consolidated from the inline <style> blocks of the former pages
   (Home, About, Visit, Sermons, Ministries, Kids, Mizizi, Give,
   Contact, etc.) and Static/site-motion.css.
   Tailwind (CDN) still supplies the utility classes in the markup.
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
    --cfh-dark: #1F2937;
    --cfh-dark-lighter: #2c3a4d;
    --cfh-dark-card: #1a202c;
    --cfh-green: #4CAF50;
    --cfh-green-hover: #45a049;
    --cfh-gold: #FFC107;
    --cfh-gold-hover: #e0a800;
    --cfh-light-bg: #f3f4f6;
    --soft-glow: rgba(76, 175, 80, 0.35);
    --gold-glow: rgba(255, 193, 7, 0.28);

    /* Updated by script.js to the real header height */
    --header-h: 7rem;
    /* Height of the header once it has shrunk on scroll — used for anchor offsets */
    --header-compact: 4.75rem;
}

/* ---------- 2. Global ---------- */
html {
    scroll-behavior: smooth;
    /* Stops section headings from hiding under the fixed header */
    scroll-padding-top: calc(var(--header-compact) + 0.5rem);
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top, rgba(76, 175, 80, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 193, 7, 0.12), transparent 25%),
        #0d1117;
    color: #e5e7eb;
    overflow-x: hidden;
    padding-top: var(--header-h); /* room for the fixed header */
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.02), transparent 30%, rgba(255,255,255,0.01));
    pointer-events: none;
    z-index: 0;
}

main, footer { position: relative; z-index: 1; }

.no-underline { text-decoration: none !important; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: var(--cfh-green); border-radius: 10px; }

/* Divider used between the big top-level sections */
.page-section { position: relative; }
.page-section + .page-section { border-top: 1px solid rgba(255,255,255,0.05); }

/* Sub-section heading block (Beliefs, Leadership, Worship, Kids …) */
.sub-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--cfh-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ---------- 2b. Background slideshow ---------- */
/* Two layers that take turns fading in; script.js swaps the photos */
.bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #0d1117;
}

.bg-slideshow__slide {
    position: absolute;
    inset: -2%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.8s ease, transform 9s ease-out;
    filter: saturate(0.9);
}

.bg-slideshow__slide.is-active {
    opacity: 1;
    transform: scale(1.12); /* slow zoom while the photo is showing */
}

/* Dark tint so text stays readable over any photo */
.bg-slideshow__tint {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(76, 175, 80, 0.10), transparent 35%),
        linear-gradient(rgba(13, 17, 23, 0.62), rgba(13, 17, 23, 0.78));
}

/* Let the slideshow show through the section bands.
   Only section-level bands are targeted (not the cards inside them),
   and the extra selector weight keeps this working whatever order
   the Tailwind CDN injects its styles in. */
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark         { background-color: rgba(31, 41, 55, 0.72); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-gray-900         { background-color: rgba(17, 24, 39, 0.72); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark-lighter { background-color: rgba(44, 58, 77, 0.74); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-dark-accent      { background-color: rgba(31, 41, 55, 0.62); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-content-dark     { background-color: rgba(15, 20, 26, 0.70); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-gray-900\/90,
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-gray-900\/80,
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-gray-900\/70     { background-color: rgba(17, 24, 39, 0.68); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark-lighter\/90,
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark-lighter\/50 { background-color: rgba(44, 58, 77, 0.62); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark-card\/90,
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark-card\/50 { background-color: rgba(26, 32, 44, 0.66); }
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark\/60,
:is(.page-section, .page-section > *, .page-section > [id] > *).bg-cfh-dark\/80     { background-color: rgba(31, 41, 55, 0.62); }
/* Sections that had no background of their own get a light veil */
#sermons, #give, #hope-cells { background-color: rgba(13, 17, 23, 0.35); }
footer.bg-cfh-dark { background-color: rgba(31, 41, 55, 0.92); }

/* ---------- 3. Fixed header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header nav {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    transition: padding 0.3s ease;
}

.site-header .brand-logo {
    height: 5rem;
    width: auto;
    transition: height 0.3s ease, transform 0.3s ease;
}

.site-header .brand-name {
    font-size: 1.875rem;
    transition: font-size 0.3s ease;
}

.site-header .nav-link {
    padding: 0.625rem 1rem;
    font-size: 1.05rem;
    border-radius: 0.375rem;
    color: #d1d5db;
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.site-header .nav-link:hover {
    transform: translateY(-1px);
    color: #ffffff;
}

/* Scroll-spy: the link for the section in view */
.site-header .nav-link.is-active {
    color: #ffffff;
    background-color: var(--cfh-green);
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #d1d5db;
}
.mobile-menu .nav-link:hover { background-color: #374151; color: #fff; }
.mobile-menu .nav-link.is-active { background-color: var(--cfh-green); color: #fff; }

/* Compact header once the page has scrolled */
.site-header.is-scrolled nav { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.site-header.is-scrolled .brand-logo { height: 3.25rem; }
.site-header.is-scrolled .brand-name { font-size: 1.4rem; }

@media (max-width: 767px) {
    :root { --header-compact: 4.25rem; }
    .site-header .brand-logo { height: 3.5rem; }
    .site-header .brand-name { font-size: 1.25rem; }
    .site-header.is-scrolled .brand-logo { height: 2.75rem; }
    .site-header.is-scrolled .brand-name { font-size: 1.1rem; }
}

/* ---------- 4. Home: hero ---------- */
.hero-home {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
}

.bg-gradient-overlay {
    /* lighter than before so the background slideshow shows through the hero */
    background-image: linear-gradient(to top, rgba(13, 17, 23, 0.85) 4%, rgba(13, 17, 23, 0.2) 60%, rgba(13, 17, 23, 0.35));
}

.hero-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(10px);
    opacity: 0.7;
    animation: floatOrb 8s ease-in-out infinite alternate;
    pointer-events: none;
}
.hero-orb.orb-1 { width: 420px; height: 420px; background: rgba(76, 175, 80, 0.18); top: 10%; left: 8%; }
.hero-orb.orb-2 { width: 380px; height: 380px; background: rgba(255, 193, 7, 0.16); right: 12%; bottom: 16%; animation-delay: 1.2s; }

@keyframes floatOrb {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(18px, -18px, 0) scale(1.08); }
}

.hero-text-line:not(.flex) { display: block; }
.hero-text-line {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUpText 0.9s ease forwards;
}
.hero-text-line:nth-child(2) { animation-delay: 0.18s; }
.hero-text-line:nth-child(3) { animation-delay: 0.3s; }
.hero-text-line:nth-child(4) { animation-delay: 0.42s; }

@keyframes fadeUpText { to { opacity: 1; transform: translateY(0); } }

.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 18px rgba(255, 193, 7, 0.4);
    animation: drift 12s linear infinite;
    opacity: 0.5;
}

@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0; }
    15%  { opacity: 0.9; }
    100% { transform: translate3d(30px, -140px, 0) scale(1.4); opacity: 0; }
}

.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 28rem);
    margin: 2.5rem auto 3rem;
}

.stat-card {
    width: 100%;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stat-number { font-size: clamp(1.6rem, 2vw, 2.6rem); font-weight: 800; color: #fff; }
.stat-label { color: #d1d5db; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- 5. Home: photo mosaic + intro ---------- */
.visual-mosaic {
    position: relative;
    max-width: 78rem;
    margin: -5rem auto 0;
    padding: 0 1rem 5rem;
    z-index: 5;
}

.visual-mosaic__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr;
    grid-template-rows: 14rem 14rem;
    gap: 1rem;
}

.visual-tile {
    position: relative;
    min-height: 12rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.25rem;
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 35px rgba(0,0,0,0.28);
    isolation: isolate;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.visual-tile::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,10,16,0.82), rgba(6,10,16,0.05) 65%);
    content: "";
    z-index: -1;
}
/* Brand gradient wash (green → gold) over each photo */
.visual-tile::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(76, 175, 80, 0.45) 0%, rgba(76, 175, 80, 0.08) 45%, rgba(255, 193, 7, 0.10) 65%, rgba(255, 193, 7, 0.40) 100%);
    mix-blend-mode: soft-light;
    content: "";
    z-index: -1;
    opacity: 0.9;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

/* Gradient border (green → gold) drawn just inside the tile edge */
.visual-tile .visual-tile__label::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.6rem;
    width: 2.5rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cfh-green), var(--cfh-gold));
    transition: width 0.45s ease;
}
.visual-tile > .tile-ring {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(255, 255, 255, 0.08) 45%, rgba(255, 193, 7, 0.9));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0.55;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.visual-tile:hover { z-index: 2; box-shadow: 0 24px 45px rgba(0,0,0,0.45), 0 0 40px rgba(76, 175, 80, 0.25); transform: translateY(-0.5rem) scale(1.02); }
.visual-tile:hover::after { opacity: 1; mix-blend-mode: overlay; }
.visual-tile:hover > .tile-ring { opacity: 1; }
.visual-tile:hover .visual-tile__label::before { width: 4.5rem; }
.visual-tile--featured { grid-row: span 2; }
.visual-tile__label { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; color: #fff; }
.visual-tile__label span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--cfh-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.visual-tile__label strong { font-size: clamp(1.15rem, 2vw, 1.7rem); }

.visual-intro {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: end;
    max-width: 78rem;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}
.visual-intro h2 { margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 0.98; font-weight: 800; }
.visual-intro p { max-width: 38rem; margin: 0; color: #9ca3af; font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 768px) {
    .visual-mosaic { margin-top: -2rem; padding-bottom: 3rem; }
    .visual-mosaic__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 12rem 12rem 12rem; }
    .visual-tile--featured { grid-column: span 2; grid-row: span 1; }
    .visual-intro { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- 6. Home: photo slider ---------- */
.photo-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    min-height: 520px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.9s ease, transform 1.4s ease;
    background-size: cover;
    background-position: center;
}
.slide.active { opacity: 1; transform: scale(1); }
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 20, 0.82), rgba(10, 14, 20, 0.2));
}

.slide-content {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.48);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.slide-content h3 { font-size: clamp(1.4rem, 2vw, 2.1rem); font-weight: 800; margin-bottom: 0.35rem; color: #fff; }
.slide-content p { color: rgba(229, 231, 235, 0.9); margin: 0; }

.slider-dots { position: absolute; bottom: 1.25rem; right: 1.5rem; display: flex; gap: 0.5rem; z-index: 2; }
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}
.slider-dot.active { width: 30px; background: var(--cfh-gold); }

.slider-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 9999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.slider-control:hover { background: rgba(76, 175, 80, 0.85); transform: translateY(-50%) scale(1.08); }
.slider-control.previous { left: 1rem; }
.slider-control.next { right: 1rem; }

/* ---------- 7. Shared card + button effects ---------- */
.bg-dark-accent { background-color: rgba(31, 41, 55, 0.8); backdrop-filter: blur(5px); }
.bg-content-dark { background-color: rgba(15, 20, 26, 0.9); }

.glow-card,
.feature-card,
.cta-card,
.next-step-link {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.glow-card::before,
.feature-card::before,
.cta-card::before,
.next-step-link::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 30%, rgba(76,175,80,0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.glow-card:hover::before,
.feature-card:hover::before,
.cta-card:hover::before,
.next-step-link:hover::before { opacity: 1; }

.glow-card, .feature-card, .cta-card, .next-step-link, .primary-btn, .secondary-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.glow-card:hover, .feature-card:hover, .cta-card:hover, .next-step-link:hover, .primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
}

.primary-btn, .secondary-btn { position: relative; overflow: hidden; display: inline-block; }
.primary-btn::after, .secondary-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}
.primary-btn:hover::after, .secondary-btn:hover::after { transform: translateX(120%); }

/* Glass panels (Worship, Mizizi) */
.glass-card {
    background-color: rgba(44, 58, 77, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.glass-card--hover:hover { border-color: rgba(76, 175, 80, 0.5); transform: translateY(-5px); }

.icon-feature-card { transition: all 0.3s ease; }
.icon-feature-card:hover { transform: translateY(-5px); background-color: rgba(76, 175, 80, 0.1); border-color: var(--cfh-green); }

.card-glow { box-shadow: 0 20px 45px rgba(76,175,80,0.18); }

/* Form panels */
.form-container {
    background-color: rgba(44, 58, 77, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- 8. Visit ---------- */
.service-card-img { height: 250px; width: 100%; object-fit: cover; }
.expect-icon {
    width: 60px; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--cfh-green); color: #fff;
    border-radius: 50%; margin-right: 20px; font-size: 1.8rem; flex-shrink: 0;
}
.faq-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--cfh-green); color: #fff;
    border-radius: 50%; margin-right: 15px; flex-shrink: 0;
}

/* FAQ accordion (native <details>, replaces the Bootstrap accordion) */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chevron { transition: transform 0.3s ease; }
.faq-item[open] summary .faq-chevron { transform: rotate(180deg); }

/* ---------- 9. About: beliefs + leadership ---------- */
.beliefs-grid { counter-reset: belief-counter; }
.belief-card { counter-increment: belief-counter; transition: all 0.3s ease; }
.belief-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7); }
.belief-card::before {
    content: counter(belief-counter);
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--cfh-green);
    color: var(--cfh-dark);
    font-weight: 900;
    font-size: 1.125rem;
    padding: 0.5rem;
    border-top-left-radius: 0.75rem;
}

.leader-accent { border-top: 4px solid var(--cfh-gold); }
.leader-card { transition: all 0.3s ease; }
.leader-card:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7); transform: scale(1.01); }

/* ---------- 10. Sermons ---------- */
.sermon-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--cfh-green);
}
.sermon-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2); border-color: var(--cfh-green); }

/* ---------- 11. Ministries ---------- */
.ministry-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    background: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ministry-card:hover {
    transform: translateY(-10px);
    background: rgba(26, 32, 44, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}
/* Two-colour bar along the bottom of each ministry card */
.ministry-card .card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--cfh-green) 50%, var(--cfh-gold) 50%);
}

/* Kids */
.kids-hero { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
.program-card {
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--cfh-gold);
    background-color: #fff;
}
.program-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4); }
.dark-form-card {
    background-color: var(--cfh-dark-lighter);
    color: #fff;
    border: 1px solid #30363d;
    border-top: 8px solid var(--cfh-gold);
}

/* Outreach */
.outreach-hero { background: rgba(31, 41, 55, 0.6); backdrop-filter: blur(4px); }

/* Collapsible sign-up forms inside the ministry blocks */
.form-toggle > summary { list-style: none; cursor: pointer; }
.form-toggle > summary::-webkit-details-marker { display: none; }
.form-toggle > summary .toggle-icon { transition: transform 0.3s ease; }
.form-toggle[open] > summary .toggle-icon { transform: rotate(45deg); }

/* Native validation feedback (replaces Bootstrap .needs-validation) */
.validate-on-submit.was-validated :invalid { box-shadow: 0 0 0 2px #ef4444; }

/* ---------- 12. Give ---------- */
.payment-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 8px solid var(--cfh-green);
}
.payment-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--cfh-gold);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

/* ---------- 13. Scroll reveal (Home + site-motion) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

.site-motion-reveal { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.site-motion-reveal.is-hidden { opacity: 0; transform: translateY(24px); }

main img { max-width: 100%; }

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bg-slideshow__slide { transition: none; transform: none; }
    .bg-slideshow__slide.is-active { transform: none; }
    .reveal, .site-motion-reveal.is-hidden { opacity: 1; transform: none; }
    .hero-text-line { opacity: 1; transform: none; animation: none; }
    .hero-orb, .particle, .primary-btn::after, .secondary-btn::after { animation: none; transition: none; }
}

/* ---------- 15. Sunday photos (filled from /sunday-photos/) ---------- */
.sunday-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 11rem;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .sunday-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 13rem; gap: 1rem; }
}

/* First tile is bigger to anchor the grid */
.sunday-grid > :first-child { grid-column: span 2; grid-row: span 2; }

.sunday-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(44, 58, 77, 0.45);
    color: rgba(255, 255, 255, 0.35);
    font-size: 2rem;
}
.sunday-placeholder span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 0 1rem;
}
.sunday-placeholder--wide { font-size: 3rem; }

.sunday-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: #111827;
    cursor: zoom-in;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.sunday-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sunday-photo:hover img,
.sunday-photo:focus-visible img { transform: scale(1.06); }
.sunday-photo:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 2px; }
.sunday-photo__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 0.9rem 0.7rem;
    background: linear-gradient(to top, rgba(6, 10, 16, 0.85), transparent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
}

/* Lightbox */
.sunday-lightbox {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(6, 10, 16, 0.95);
    color: #fff;
}
.sunday-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.sunday-lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.sunday-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.sunday-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 0.75rem; margin: 0 auto; }
.sunday-lightbox figcaption { margin-top: 0.9rem; color: #d1d5db; font-weight: 600; }
.sunday-lightbox__close,
.sunday-lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    transition: background-color 0.2s ease;
}
.sunday-lightbox__close:hover,
.sunday-lightbox__nav:hover { background: var(--cfh-green); }
.sunday-lightbox__close { top: 1rem; right: 1rem; }
.sunday-lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.sunday-lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- 16. Floating "back to top" button ---------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 45; /* above the page, below the header and photo viewer */
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9999px;
    background: var(--cfh-green);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(13, 17, 23, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { background: var(--cfh-gold); color: var(--cfh-dark); transform: translateY(-3px) scale(1.05); }
.back-to-top:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 3px; }
.back-to-top i { position: relative; z-index: 1; }

/* Ring that fills as the visitor scrolls down the page */
.back-to-top__ring {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    transform: rotate(-90deg);
    pointer-events: none;
}
.back-to-top__ring circle { fill: none; stroke-width: 3; }
.back-to-top__track { stroke: rgba(255, 255, 255, 0.18); }
.back-to-top__progress {
    stroke: var(--cfh-gold);
    stroke-linecap: round;
    stroke-dasharray: 138.23;   /* 2 × π × 22 */
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.15s linear;
}
.back-to-top:hover .back-to-top__progress { stroke: var(--cfh-green); }

@media (max-width: 767px) {
    .back-to-top { right: 1rem; bottom: 1rem; width: 3rem; height: 3rem; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .back-to-top, .back-to-top__progress { transition: none; }
}

/* ---------- 17. Page buttons in the header (replace the text menu / dropdown list) ---------- */
.nav-pills--desktop { gap: 0.4rem; }

.site-header .nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.site-header .nav-pill i { font-size: 0.85em; color: var(--cfh-gold); transition: color 0.25s ease; }

.site-header .nav-pill:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(76, 175, 80, 0.7);
    background: rgba(76, 175, 80, 0.15);
}
.site-header .nav-pill:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 2px; }

/* The section currently on screen */
.site-header .nav-pill.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cfh-green), var(--cfh-green-hover));
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.35);
}
.site-header .nav-pill.is-active i { color: #fff; }

/* Phones & tablets: a swipeable row of buttons under the logo */
.nav-pills--mobile {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-pills__track {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 1rem 0.7rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nav-pills__track::-webkit-scrollbar { display: none; }
.nav-pills__track .nav-pill { scroll-snap-align: start; flex-shrink: 0; font-size: 0.9rem; padding: 0.55rem 0.9rem; }
/* Soft fade at the right edge hints there are more buttons to swipe to */
.nav-pills--mobile::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    background: linear-gradient(to right, transparent, rgba(31, 41, 55, 0.95));
    pointer-events: none;
}
/* On wider tablets all buttons fit, so centre them */
@media (min-width: 900px) {
    .nav-pills__track { justify-content: center; }
    .nav-pills--mobile::after { display: none; }
}

/* Compact header after scrolling */
.site-header.is-scrolled .nav-pills__track { padding-top: 0.45rem; padding-bottom: 0.5rem; }
.site-header.is-scrolled .nav-pill { padding-top: 0.45rem; padding-bottom: 0.45rem; }
/* Used for an instant while script.js measures the header (no animation mid-measure) */
.site-header.is-measuring,
.site-header.is-measuring * { transition: none !important; }

/* ---------- 18. "Read more: Our Story" under the lead pastor ---------- */
.read-more-icon { transition: transform 0.3s ease; }
.read-more-btn[aria-expanded="true"] .read-more-icon { transform: rotate(180deg); }
.our-story:not([hidden]) { animation: storyIn 0.45s ease both; }
@keyframes storyIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .our-story:not([hidden]) { animation: none; } }

/* ---------- 19. Video previews (YouTube loads only when tapped) ---------- */
.yt-lite {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #0b0f15;
    cursor: pointer;
}
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s ease, transform 0.5s ease; }
.yt-lite:hover img, .yt-lite:focus-visible img { opacity: 1; transform: scale(1.03); }
.yt-lite__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.25rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background: rgba(76, 175, 80, 0.92);
    color: #fff;
    font-size: 1.5rem;
    padding-left: 0.2rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.yt-lite:hover .yt-lite__play, .yt-lite:focus-visible .yt-lite__play { background: var(--cfh-gold); color: var(--cfh-dark); transform: translate(-50%, -50%) scale(1.08); }
.yt-lite:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: -3px; }
.yt-lite__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(6, 10, 16, 0.85), transparent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
}
/* If the preview picture can't load, show a branded box instead */
.yt-lite--noimg { background: linear-gradient(135deg, #1a202c, #2c3a4d); }

/* ---------- 18. Floating WhatsApp chat button (bottom-left; back-to-top sits bottom-right) ---------- */
.wa-float {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 3.5rem;
    padding: 0 1.25rem 0 1rem;
    border-radius: 9999px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float i { font-size: 1.75rem; line-height: 1; }
.wa-float:hover { background: #1ebe5b; transform: translateY(-2px); color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 3px; }
@media (max-width: 640px) {
    .wa-float { left: 1rem; bottom: 1rem; width: 3rem; height: 3rem; padding: 0; justify-content: center; }
    .wa-float__label { display: none; }
    .wa-float i { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ---------- 20. Meet Our Team (square photos on top, text below) ---------- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.team-card {
    flex: 0 1 214px;
    display: flex;
    flex-direction: column;
    background: var(--cfh-dark);
    border-radius: 1rem;
    overflow: hidden;
    border-top: 4px solid var(--cfh-green);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 24px 45px rgba(0, 0, 0, 0.6); }
.team-card--lead { border-top-color: var(--cfh-gold); }
.team-card__photo {
    aspect-ratio: 1 / 1;
    background: var(--cfh-dark-lighter);
    overflow: hidden;
}
.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}
.team-card:hover .team-card__photo img { transform: scale(1.04); }
.team-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.4rem 1.25rem 1.6rem;
}
.team-card__name { font-size: 1.3rem; font-weight: 800; color: #fff; line-height: 1.25; }
.team-card__cred { margin-top: 0.15rem; font-size: 0.85rem; font-weight: 600; color: #9ca3af; letter-spacing: 0.04em; }
.team-card__role { margin-top: 0.45rem; font-size: 0.95rem; font-weight: 700; color: var(--cfh-gold); line-height: 1.35; }
.team-card--lead .team-card__role { color: var(--cfh-green); }
.team-card__bio { margin-top: 0.7rem; font-size: 0.95rem; color: #d1d5db; line-height: 1.6; }
.team-card__more { margin-top: 1.1rem; font-size: 0.9rem; }
/* The two founders sit on their own row with larger photos; everyone else follows */
.team-card--founder { flex-basis: 340px; }
.team-card--founder .team-card__name { font-size: 1.5rem; }
.team-grid__break { flex-basis: 100%; height: 0; margin-top: -1.5rem; }
/* Rows of 5 on wide screens; 3 + 2 on laptops and tablets */
@media (min-width: 1024px) and (max-width: 1279px) {
    .team-card:not(.team-card--founder) { flex-basis: 280px; }
}
@media (max-width: 639px) {
    .team-card, .team-card--founder { flex-basis: 100%; max-width: 340px; }
    .team-grid__break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .team-card, .team-card__photo img { transition: none; }
    .team-card:hover, .team-card:hover .team-card__photo img { transform: none; }
}

/* ---------- 21. Giving details (M-Pesa and bank) ---------- */
.give-details {
    width: 100%;
    margin: 1.1rem 0 1.25rem;
    display: grid;
    gap: 0.6rem;
    text-align: left;
}
.give-details > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.6rem;
    background: rgba(17, 24, 39, 0.85);
}
.give-details dt { font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; }
.give-details dd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
}
.give-details dd.give-details__text { font-family: inherit; font-size: 1rem; word-break: normal; }
.give-copy { width: 100%; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.give-copy__btn {
    flex: 1 1 9.5rem;
    padding: 0.75rem 0.8rem;
    white-space: nowrap;
    font-size: 0.95rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--cfh-gold);
    color: var(--cfh-dark);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.give-copy__btn:hover { background: var(--cfh-gold-hover); transform: translateY(-2px); }
.give-copy__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- 22. Quick links inside long sections (e.g. Ministries) ---------- */
.section-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}
.section-chips a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(31, 41, 55, 0.75);
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.section-chips a i { color: var(--cfh-gold); }
.section-chips a:hover { background: var(--cfh-green); border-color: var(--cfh-green); color: #fff; }
.section-chips a:hover i { color: #fff; }

/* Anything marked hidden stays hidden, even if a layout class (flex, grid…) sets display */
[hidden] { display: none !important; }

/* Header: with eight page buttons, tighten them a little on laptop-width screens */
.site-header .brand-name { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1535px) {
    .nav-pills--desktop { gap: 0.3rem; }
    .site-header .nav-pills--desktop .nav-pill { padding: 0.5rem 0.72rem; font-size: 0.88rem; gap: 0.4rem; }
}

/* ---------- 23. Ministries: cards (image, title, text, Join + Explore) ---------- */
.ministry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* a short last row sits in the middle */
    gap: 1.75rem 1.5rem;
    max-width: 1240px;
    margin: 0 auto;
}
.ministry-grid > .ministry-tile { flex: 0 1 280px; }
@media (max-width: 639px) { .ministry-grid > .ministry-tile { flex-basis: 100%; max-width: 420px; } }
.ministry-tile {
    display: flex;
    flex-direction: column;
    background: var(--cfh-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ministry-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 45px rgba(0, 0, 0, 0.55); }
.ministry-tile__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cfh-dark-lighter); }
.ministry-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.ministry-tile:hover .ministry-tile__img img { transform: scale(1.05); }
.ministry-tile__body { flex: 1; display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.5rem; }
.ministry-tile__title { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.2; }
.ministry-tile__text { flex: 1; margin-top: 0.6rem; color: #cbd5e1; line-height: 1.6; }
.ministry-tile__actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-join, .btn-explore {
    flex: 1 1 8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.1rem;
    border-radius: 9999px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-join { background: var(--cfh-gold); color: var(--cfh-dark); border: 1px solid var(--cfh-gold); }
.btn-join:hover { background: var(--cfh-gold-hover); border-color: var(--cfh-gold-hover); color: var(--cfh-dark); transform: translateY(-1px); }
.btn-explore { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-explore:hover { border-color: var(--cfh-green); background: rgba(76, 175, 80, 0.15); color: #fff; }
.btn-explore i { font-size: 0.8em; transition: transform 0.3s ease; }
.btn-explore[aria-expanded="true"] { background: var(--cfh-green); border-color: var(--cfh-green); }
.btn-explore[aria-expanded="true"] i { transform: rotate(180deg); }
.btn-join:focus-visible, .btn-explore:focus-visible, .ministry-panel__close:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 2px; }
.ministry-panel .panel-actions .btn-join, .ministry-panel .panel-actions .btn-explore { flex: 0 1 auto; }

/* Partner organisation (EYF): wide card, always last */
.partner-card {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--cfh-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 4px solid var(--cfh-green);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
}
.partner-card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.partner-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-card__body { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem 1.5rem 2rem; }
@media (min-width: 768px) {
    .partner-card { grid-template-columns: 2fr 3fr; }
    .partner-card__img { position: relative; aspect-ratio: auto; min-height: 17rem; }
    .partner-card__img img { position: absolute; inset: 0; }
    .partner-card__body { padding: 2.25rem 2.5rem; }
}

/* Ministry details panel (opens below the cards) */
.ministry-panel {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding: 1.75rem 1.25rem 2.25rem;
    background: rgba(17, 24, 39, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--cfh-gold);
    border-radius: 1.25rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) { .ministry-panel { padding: 2.5rem 3rem 3rem; } }
.ministry-panel:not([hidden]) { animation: storyIn 0.45s ease both; }
.ministry-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.ministry-panel__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.15; }
.ministry-panel__close {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ministry-panel__close:hover { background: var(--cfh-green); border-color: var(--cfh-green); }
.ministry-panel__lead { font-size: 1.1rem; color: #e5e7eb; line-height: 1.75; max-width: 62rem; }
.ministry-panel .panel-sub { margin: 2rem 0 1rem; font-size: 1.3rem; font-weight: 700; color: var(--cfh-gold); }
.panel-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.panel-item {
    padding: 1.1rem 1.2rem;
    background: rgba(31, 41, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.9rem;
}
.panel-item h5 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.panel-item h5 i { color: var(--cfh-green); }
.panel-item p { margin-top: 0.45rem; color: #9ca3af; font-size: 0.95rem; line-height: 1.55; }
.panel-item .tag { display: inline-block; margin-top: 0.6rem; font-size: 0.75rem; font-weight: 700; color: var(--cfh-gold); text-transform: uppercase; letter-spacing: 0.05em; }
.panel-list { display: grid; gap: 0.65rem; margin-top: 1.25rem; }
.panel-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: #d1d5db; line-height: 1.6; }
.panel-list li i { margin-top: 0.3rem; color: var(--cfh-gold); }
.panel-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.panel-chips span {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 9999px;
    background: rgba(76, 175, 80, 0.12); border: 1px solid rgba(76, 175, 80, 0.35);
    color: #fff; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.panel-chips span i { color: var(--cfh-green); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.panel-form { margin-top: 2rem; }
.panel-form > details { margin-top: 0 !important; }

/* ---------- 24. Your Next Step (home page) ---------- */
.next-step-card {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(31, 41, 55, 0.96) 60%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--cfh-gold);
    border-radius: 1.5rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) { .next-step-card { padding: 3rem; } }
.next-step-form { margin-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.next-step-form select {
    flex: 1 1 17rem;
    max-width: 26rem;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--cfh-dark);
    color: #fff;
    font-size: 1rem;
}
.next-step-form select:focus { outline: none; border-color: var(--cfh-gold); box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25); }
.next-step-form button {
    flex: 0 0 auto;
    padding: 0.9rem 1.6rem;
    border: 0;
    border-radius: 9999px;
    background: var(--cfh-gold);
    color: var(--cfh-dark);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.next-step-form button:hover { background: var(--cfh-gold-hover); transform: translateY(-1px); }
.next-step-form button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Small spacing helpers used by the Give header and testimonials (not in the pre-built Tailwind file) */
.pt-20 { padding-top: 5rem; }
.mt-3 { margin-top: 0.75rem; }
@media (min-width: 768px) { .md\:pt-28 { padding-top: 7rem; } }

/* Keep Join + Explore side by side on the narrower four-across cards */
.ministry-tile .btn-join, .ministry-tile .btn-explore { flex-basis: 6rem; padding: 0.65rem 0.75rem; }
.btn-join, .btn-explore { white-space: nowrap; }

/* Header slogan: lower case, as in the church's branding */
.site-header .brand-tagline { text-transform: none; letter-spacing: 0.08em; }

/* =====================================================================
   25. 22 Oct 2026: welcome block, events, news, Sunday slideshow,
       devotional, assistant, project, sub-pages
   ===================================================================== */

/* Hero: one bold welcome block */
.hero-badge { letter-spacing: 0.12em; }
.hero-welcome {
    max-width: 42rem;
    margin: 0.5rem auto 2.25rem;
    padding: 1.35rem 1.6rem;
    border-radius: 1.25rem;
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--cfh-gold);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.hero-welcome p { font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 600; line-height: 1.55; color: #fff; text-align: center; }
@media (min-width: 768px) { .hero-welcome { padding: 1.6rem 2.25rem; } }

/* Section heading with a link on the right */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head__link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cfh-gold); font-weight: 700; text-decoration: none; }
.section-head__link:hover { color: #fff; }

/* Event cards: small poster on the left, details on the right */
.event-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .event-list { grid-template-columns: 1fr 1fr; } }
.event-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    padding-right: 1.1rem;
    background: rgba(26, 32, 44, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--cfh-gold);
    border-radius: 0.9rem;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
a.event-card:hover { transform: translateY(-2px); border-color: var(--cfh-green); background: rgba(31, 41, 55, 0.95); }
a.event-card:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 2px; }
.event-card__media {
    flex: 0 0 auto;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.65rem;
    overflow: hidden;
    background: var(--cfh-dark-lighter);
    display: grid;
    place-items: center;
}
.event-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.event-card__title { font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.25; }
.event-card__meta { font-size: 0.9rem; font-weight: 600; color: var(--cfh-gold); }
.event-card__summary { font-size: 0.9rem; color: #9ca3af; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card__go { color: #6b7280; transition: transform 0.2s ease, color 0.2s ease; }
a.event-card:hover .event-card__go { color: var(--cfh-green); transform: translateX(3px); }
.event-card--past { border-left-color: #4b5563; opacity: 0.9; }
.event-card.is-target, .event-full.is-target { box-shadow: 0 0 0 3px var(--cfh-gold), 0 20px 40px rgba(0, 0, 0, 0.45); }

/* Date tile shown when an event has no poster */
.event-tile {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--cfh-green), #2e7d32);
    color: #fff; line-height: 1;
}
.event-tile__m { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; color: var(--cfh-gold); }
.event-tile__d { font-size: 2rem; font-weight: 900; margin-top: 0.15rem; }
.event-tile--big { min-height: 14rem; border-radius: 0.9rem; }
.event-tile--big .event-tile__m { font-size: 1.2rem; }
.event-tile--big .event-tile__d { font-size: 4.5rem; }

/* Events page: full event */
.event-full-list { display: grid; gap: 1.75rem; }
.event-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--cfh-gold);
    border-radius: 1.1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    scroll-margin-top: calc(var(--header-compact, 5rem) + 1rem);
}
@media (min-width: 768px) { .event-full { grid-template-columns: 17rem 1fr; padding: 1.75rem; gap: 2rem; } }
.event-full__poster img { width: 100%; border-radius: 0.9rem; display: block; box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35); }
.event-full__when { color: var(--cfh-gold); font-weight: 700; }
.event-full__title { margin-top: 0.4rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: #fff; line-height: 1.2; }
.event-full__venue { margin-top: 0.5rem; color: #d1d5db; }
.event-full__venue i { color: var(--cfh-green); }
.event-full__text { margin-top: 1rem; color: #d1d5db; line-height: 1.75; }
.event-full__text p + p, .event-full__text p + ul, .event-full__text ul + p { margin-top: 0.85rem; }
.event-full__contact { margin-top: 0.85rem; color: #9ca3af; }
.event-full__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.event-full__actions .btn-join, .event-full__actions .btn-explore { flex: 0 1 auto; }
.content-list { list-style: disc; padding-left: 1.4rem; display: grid; gap: 0.35rem; }
.text-muted { color: #9ca3af; font-style: italic; }

/* Sub-pages */
.page-hero { padding: 4rem 0 2.5rem; background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.6)); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
@media (min-width: 768px) { .page-hero { padding: 5.5rem 0 3.5rem; } }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 4.5rem); font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -0.02em; }
.page-hero__lead { margin-top: 1rem; max-width: 46rem; font-size: 1.15rem; color: #d1d5db; line-height: 1.7; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.page-hero__actions .btn-join, .page-hero__actions .btn-explore { flex: 0 1 auto; padding: 0.85rem 1.4rem; }
.content-h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 1.5rem; }
.subpage .page-hero + section { background: rgba(17, 24, 39, 0.55); }

/* News */
.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card {
    display: flex; flex-direction: column;
    background: var(--cfh-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem; overflow: hidden;
    color: inherit; text-decoration: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(0, 0, 0, 0.5); }
.news-card:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 2px; }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cfh-dark-lighter); display: grid; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem 1.3rem; }
.news-card__date { font-size: 0.85rem; font-weight: 700; color: var(--cfh-gold); }
.news-card__title { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.25; }
.news-card__summary { color: #9ca3af; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { margin-top: auto; padding-top: 0.5rem; color: var(--cfh-green); font-weight: 700; }
.news-empty { padding: 1.5rem; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 1rem; color: #d1d5db; text-align: center; }
.news-empty a { color: var(--cfh-gold); font-weight: 700; }
.news-article { max-width: 52rem; margin: 0 auto; }
.news-back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cfh-gold); font-weight: 700; text-decoration: none; }
.news-article__meta { margin-top: 1.5rem; color: var(--cfh-gold); font-weight: 700; }
.news-article__title { margin-top: 0.4rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: #fff; line-height: 1.12; outline: none; }
.news-article__cover { margin-top: 1.5rem; }
.news-article__cover img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: 1rem; display: block; }
.news-article__text { margin-top: 1.5rem; font-size: 1.1rem; color: #e5e7eb; line-height: 1.8; }
.news-article__text p + p, .news-article__text p + ul, .news-article__text ul + p { margin-top: 1rem; }
.news-article__sub { margin: 2rem 0 1rem; font-size: 1.35rem; font-weight: 800; color: #fff; }
.news-photos { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.news-photos__item { padding: 0; border: 0; border-radius: 0.6rem; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; background: var(--cfh-dark-lighter); }
.news-photos__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.news-photos__item:hover img { transform: scale(1.05); }
.news-article__credit { margin-top: 0.75rem; color: #9ca3af; font-size: 0.9rem; }

/* Sunday photos slideshow */
.sunday-show {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0b1220;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
.sunday-show__stage { position: relative; aspect-ratio: 16 / 10; }
.sunday-show__stage > .sunday-placeholder { position: absolute; inset: 0; }
.sunday-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.sunday-slide.is-active { opacity: 1; visibility: visible; }
.sunday-slide__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sunday-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sunday-slide figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.5rem 1.25rem 2.6rem;
    background: linear-gradient(to top, rgba(6, 10, 16, 0.85), transparent);
    color: #fff; font-weight: 700; pointer-events: none;
}
.sunday-show__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 2.9rem; height: 2.9rem; border-radius: 9999px; border: 0;
    background: rgba(17, 24, 39, 0.65); color: #fff; cursor: pointer;
    display: grid; place-items: center;
    transition: background-color 0.2s ease;
}
.sunday-show__nav:hover { background: var(--cfh-green); }
.sunday-show__nav--prev { left: 0.85rem; }
.sunday-show__nav--next { right: 0.85rem; }
.sunday-show__dots { position: absolute; left: 0; right: 0; bottom: 0.85rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem; }
.sunday-show__dots button { width: 0.6rem; height: 0.6rem; border-radius: 9999px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: width 0.3s ease, background-color 0.3s ease; }
.sunday-show__dots button[aria-current="true"] { width: 1.6rem; background: var(--cfh-gold); }
@media (prefers-reduced-motion: reduce) { .sunday-slide { transition: none; } }

/* Floating: devotional card (left, above WhatsApp) */
.devo-pill {
    position: fixed;
    left: 1.5rem;
    bottom: 5.75rem;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 17rem;
    padding: 0.65rem 1.1rem 0.65rem 0.8rem;
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 1rem;
    background: rgba(31, 41, 55, 0.96);
    color: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.devo-pill:hover { transform: translateY(-2px); border-color: var(--cfh-gold); }
.devo-pill:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 3px; }
.devo-pill > i { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 0.7rem; background: var(--cfh-gold); color: var(--cfh-dark); font-size: 1.1rem; }
.devo-pill__text { display: flex; flex-direction: column; min-width: 0; }
.devo-pill__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cfh-gold); }
.devo-pill__title { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
    .devo-pill { left: 1rem; bottom: 4.75rem; padding: 0.3rem; border-radius: 9999px; }
    .devo-pill > i { width: 2.4rem; height: 2.4rem; border-radius: 9999px; }
    .devo-pill__text { display: none; }
}
.devo-dialog {
    width: min(40rem, calc(100vw - 2rem));
    max-height: min(85vh, 48rem);
    padding: 2rem 1.5rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--cfh-gold);
    border-radius: 1.25rem;
    background: #111827;
    color: #e5e7eb;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) { .devo-dialog { padding: 2.5rem 2.5rem 2.25rem; } }
.devo-dialog::backdrop { background: rgba(3, 7, 18, 0.75); backdrop-filter: blur(3px); }
.devo-dialog__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; cursor: pointer; }
.devo-dialog__close:hover { background: var(--cfh-green); border-color: var(--cfh-green); }
.devo-dialog__title { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; color: #fff; line-height: 1.15; margin-top: 0.25rem; }
.devo-dialog__verse { margin-top: 1.25rem; padding: 1rem 1.2rem; border-left: 4px solid var(--cfh-green); background: rgba(76, 175, 80, 0.08); border-radius: 0 0.75rem 0.75rem 0; font-style: italic; color: #f3f4f6; line-height: 1.7; }
.devo-dialog__verse cite { display: block; margin-top: 0.4rem; font-style: normal; font-weight: 700; color: var(--cfh-gold); }
.devo-dialog__text { margin-top: 1.25rem; line-height: 1.8; }
.devo-dialog__text p + p, .devo-dialog__text p + .devo-dialog__box, .devo-dialog__box + p, .devo-dialog__box + .devo-dialog__box { margin-top: 1rem; }
.devo-dialog__box { padding: 0.9rem 1.1rem; border-radius: 0.75rem; background: rgba(255, 193, 7, 0.08); border: 1px solid rgba(255, 193, 7, 0.25); }
.devo-dialog__box strong { display: block; color: var(--cfh-gold); margin-bottom: 0.25rem; }
.devo-dialog__author { margin-top: 1.25rem; color: #9ca3af; font-style: italic; }

/* Floating: site assistant (right) — back-to-top moves up above it */
.has-assistant .back-to-top { bottom: 5.75rem; }
@media (max-width: 640px) { .has-assistant .back-to-top { bottom: 4.75rem; } }
.assistant__launcher {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 46;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    height: 3.5rem;
    padding: 0 1.3rem 0 1.1rem;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--cfh-green), #2e7d32);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}
.assistant__launcher i { font-size: 1.35rem; }
.assistant__launcher:hover { transform: translateY(-2px); }
.assistant__launcher:focus-visible { outline: 3px solid var(--cfh-gold); outline-offset: 3px; }
.assistant.is-open .assistant__launcher { background: var(--cfh-dark-lighter); }
@media (max-width: 640px) {
    .assistant__launcher { right: 1rem; bottom: 1rem; width: 3rem; height: 3rem; padding: 0; justify-content: center; }
    .assistant__launcher-label { display: none; }
}
.assistant__panel {
    position: fixed;
    right: 1.5rem;
    bottom: 5.75rem;
    z-index: 60;
    width: 23rem;
    max-height: min(36rem, calc(100vh - 8rem));
    display: flex;
    flex-direction: column;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.assistant__panel[hidden] { display: none !important; }
@media (max-width: 640px) {
    .assistant__panel { left: 0.75rem; right: 0.75rem; bottom: 4.75rem; width: auto; max-height: calc(100vh - 5.5rem - var(--header-h, 7rem)); }
}
.assistant__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(31, 41, 55, 0.9)); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.assistant__head img { width: 2.25rem; height: auto; }
.assistant__head div { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.assistant__head strong { color: #fff; }
.assistant__head span { font-size: 0.8rem; color: #9ca3af; }
.assistant__close { width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; cursor: pointer; }
.assistant__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 9rem; }
.assistant__msg { max-width: 88%; padding: 0.7rem 0.9rem; border-radius: 1rem; font-size: 0.95rem; line-height: 1.5; }
.assistant__msg p + p { margin-top: 0.35rem; }
.assistant__msg--bot { align-self: flex-start; background: #1f2937; color: #e5e7eb; border-bottom-left-radius: 0.3rem; }
.assistant__msg--user { align-self: flex-end; background: var(--cfh-green); color: #fff; border-bottom-right-radius: 0.3rem; }
.assistant__links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.assistant__links a, .assistant__inline-btn {
    display: inline-flex; align-items: center;
    padding: 0.35rem 0.75rem; border-radius: 9999px;
    border: 1px solid rgba(255, 193, 7, 0.5); color: var(--cfh-gold);
    font-size: 0.85rem; font-weight: 700; text-decoration: none; background: transparent; cursor: pointer;
}
.assistant__inline-btn { margin-top: 0.6rem; }
.assistant__links a:hover, .assistant__inline-btn:hover { background: var(--cfh-gold); color: var(--cfh-dark); }
.assistant__chips { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0 1rem 0.75rem; scrollbar-width: none; }
.assistant__chips::-webkit-scrollbar { display: none; }
.assistant__chip { flex: 0 0 auto; padding: 0.4rem 0.8rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); color: #e5e7eb; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.assistant__chip:hover { border-color: var(--cfh-green); background: rgba(76, 175, 80, 0.15); }
.assistant__form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.assistant__form input { flex: 1; min-width: 0; padding: 0.7rem 0.9rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.15); background: #0b1220; color: #fff; font-size: 0.95rem; }
.assistant__form input:focus { outline: none; border-color: var(--cfh-gold); }
.assistant__form button { width: 2.75rem; border: 0; border-radius: 0.75rem; background: var(--cfh-gold); color: var(--cfh-dark); cursor: pointer; }
.assistant__note { padding: 0 1rem 0.8rem; font-size: 0.75rem; color: #6b7280; }
.assistant__note a { color: var(--cfh-green); }

/* Project page and home project card */
.project-card__img { display: block; }
.plan-figure { margin: 0; }
.plan-figure img { width: 100%; border-radius: 1rem; display: block; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45); }
.plan-figure figcaption { margin-top: 0.6rem; color: #9ca3af; font-size: 0.9rem; text-align: center; }
.progress { margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: 1rem; background: rgba(17, 24, 39, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); }
.progress__labels { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; color: #d1d5db; }
.progress__labels strong { color: var(--cfh-gold); font-size: 1.25rem; }
.progress__track { margin-top: 0.75rem; height: 0.9rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 9999px; background: linear-gradient(90deg, var(--cfh-green), var(--cfh-gold)); transition: width 1s ease; }
.project-ways { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.project-ways .payment-card { display: flex; flex-direction: column; }
.event-full__body { min-width: 0; }
.mt-14 { margin-top: 3.5rem; }
@media (min-width: 768px) { .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; } }
.project-card__title { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Project page: campaign giving card spans the full row on tablets and up */
.give-subhead { margin-top: 1.4rem; font-size: 1rem; font-weight: 800; color: #fff; }
.project-ways__main .give-details { margin-top: 0.6rem; }
.project-ways__main .give-copy { margin-top: 1.25rem; }
@media (min-width: 768px) { .project-ways { grid-template-columns: 1fr 1fr; } .project-ways__main { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .project-ways__main .give-details { grid-template-columns: 1fr 1fr; } }

/* Devotional: keep the eyebrow clear of the close button */
#devoBody > .sub-eyebrow { display: block; padding-right: 2.75rem; }
