/* ==========================================================================
   Apostolic Faith Church Githurai Kimbo Assembly — Master Stylesheet
   Brand: Blue #265D97 | Gold #D5AC51 | Red #E33738 | Silver #D2D3D5
   STRICT RULE: NO ITALICS IN ANY DESIGN OR ARTWORK
   ========================================================================== */

:root {
    --brand-blue: #265D97;
    --brand-blue-dark: #1A4470;
    --brand-blue-light: #3B75B4;
    --brand-gold: #D5AC51;
    --brand-gold-hover: #C2983E;
    --brand-gold-light: #FAF4E6;
    --brand-red: #E33738;
    --brand-silver: #D2D3D5;
    --brand-silver-light: #F4F4F5;
    --dark-surface: #062A49;
    --dark-footer: #031B2F;
    --bg-light: #F8FAF8;
    --card-bg: #FFFFFF;
    --border-color: #E2E4E8;
    --text-dark: #111827;
    --text-muted: #4B5563;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;
    --font-primary: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(38,93,151,0.06);
    --shadow-md: 0 8px 24px rgba(38,93,151,0.12);
    --shadow-lg: 0 16px 36px rgba(38,93,151,0.18);
    --shadow-gold: 0 8px 24px rgba(213,172,81,0.35);
    --transition: all 0.22s ease-in-out;
}

/* NO ITALICS — STRICT BRAND RULE */
*, *::before, *::after, em, i, cite, blockquote, q { font-style: normal !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-primary); background: var(--bg-light); color: var(--text-dark); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.bg-dark { background-color: var(--dark-surface); }
.bg-darker { background-color: var(--dark-footer); }
.bg-light { background-color: var(--bg-light); }
.text-white { color: var(--text-white) !important; }
.text-gold { color: var(--brand-gold) !important; }
.text-light { color: var(--text-light) !important; }
.text-center { text-align: center; }
.margin-top-lg { margin-top: 3rem; }

h1, h2, h3, h4 { font-family: var(--font-primary); font-weight: 800; line-height: 1.2; color: var(--brand-blue); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.7rem 1.5rem; font-family: var(--font-primary); font-weight: 700; font-size: 0.9rem;
    border-radius: var(--radius-full); border: 2px solid transparent; cursor: pointer;
    transition: var(--transition); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.4px;
}
.btn-gold { background: var(--brand-gold); color: var(--dark-surface); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--brand-gold-hover); transform: translateY(-2px); color: #000; }
.btn-blue { background: var(--brand-blue); color: var(--text-white); }
.btn-blue:hover { background: var(--brand-blue-dark); transform: translateY(-2px); }
.btn-outline-gold { border-color: var(--brand-gold); color: var(--brand-gold); background: transparent; }
.btn-outline-gold:hover { background: var(--brand-gold); color: var(--dark-surface); }
.btn-outline-blue { border-color: var(--brand-blue); color: var(--brand-blue); background: transparent; }
.btn-outline-blue:hover { background: var(--brand-blue); color: var(--text-white); }
.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--text-white); background: rgba(255,255,255,0.07); }
.btn-outline-light:hover { border-color: var(--brand-gold); color: var(--brand-gold); }
.btn-portal { background: rgba(213,172,81,0.12); color: var(--brand-gold); border: 1.5px solid var(--brand-gold); font-size: 0.82rem; padding: 0.5rem 1rem; border-radius: var(--radius-full); cursor: pointer; }
.btn-portal:hover { background: var(--brand-gold); color: var(--dark-surface); }
.btn-whatsapp-nav { background: #25D366; color: white; border: none; font-size: 0.82rem; padding: 0.5rem 1rem; border-radius: var(--radius-full); }
.btn-whatsapp-nav:hover { background: #1EBE57; }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 0.95rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-whatsapp-sm { background: #25D366; color: white; padding: 0.4rem 1rem; border-radius: var(--radius-full); font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 0.4rem; border: none; cursor: pointer; }
.btn-whatsapp-sm:hover { background: #1EBE57; }

/* ============ TOP BAR ============ */
.top-bar { background: var(--dark-footer); color: var(--brand-silver); font-size: 0.8rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.5rem; }
.top-bar-left { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; }
.top-bar-left i { color: var(--brand-gold); }
.tb-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.2); margin: 0 0.2rem; }
.top-bar-left a { color: var(--brand-silver); }
.top-bar-left a:hover { color: var(--brand-gold); }
.top-bar-right { display: flex; align-items: center; gap: 0.8rem; }
.tb-social { color: var(--brand-silver); font-size: 0.9rem; transition: var(--transition); }
.tb-social:hover { color: var(--brand-gold); }

/* ============ MAIN HEADER ============ */
.main-header { position: sticky; top: 0; z-index: 1000; background: var(--brand-blue); border-bottom: 3px solid var(--brand-gold); box-shadow: 0 4px 18px rgba(0,0,0,0.18); transition: var(--transition); }

/* Compact "thin strip" state once the page is scrolled - keeps every nav
   link and the WhatsApp/Give buttons accessible without eating vertical
   space while reading further down the page. */
.main-header.scrolled .nav-container { height: 54px; }
.main-header.scrolled .official-logo-img { height: 36px; width: 36px; }
.main-header.scrolled .tag-line { display: none; }
.main-header.scrolled .church-name { font-size: 0.78rem; }
.main-header.scrolled .assembly-name { font-size: 0.66rem; }
.main-header.scrolled { box-shadow: 0 6px 28px rgba(0,0,0,0.28); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand-logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.official-logo-img { height: 52px; width: 52px; object-fit: contain; border-radius: 50%; background: var(--text-white); padding: 2px; border: 2px solid var(--brand-gold); box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.church-name { font-weight: 800; font-size: 0.88rem; color: var(--text-white); letter-spacing: 0.3px; }
.assembly-name { font-size: 0.75rem; font-weight: 700; color: var(--brand-gold); letter-spacing: 0.3px; }
.tag-line { font-size: 0.62rem; color: var(--brand-silver); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* NAV MENU */
.nav-menu ul { display: flex; align-items: center; gap: 0.15rem; flex-wrap: nowrap; }
.nav-link { color: var(--text-white); font-weight: 600; font-size: 0.82rem; padding: 0.45rem 0.55rem; position: relative; text-transform: uppercase; letter-spacing: 0.2px; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--brand-gold); background: rgba(213,172,81,0.1); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.mobile-toggle { display: none; background: transparent; border: none; color: var(--text-white); font-size: 1.4rem; cursor: pointer; padding: 0.3rem; }

/* ============ HERO SECTION ============ */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--text-white); overflow: hidden; }
.hero-bg-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-bg-image { position: absolute; inset: 0; background-size: cover; background-position: center top; background-repeat: no-repeat; opacity: 0; transition: opacity 1.5s ease; }
.hero-bg-image.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,19,32,0.82) 0%, rgba(38,93,151,0.7) 60%, rgba(11,19,32,0.75) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 5rem 0 4rem; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(213,172,81,0.15); border: 1px solid var(--brand-gold); color: var(--brand-gold); padding: 0.4rem 1.2rem; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 700; margin-bottom: 1.4rem; text-transform: uppercase; letter-spacing: 0.5px; }
.pulse-dot { width: 8px; height: 8px; background: var(--brand-gold); border-radius: 50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
.hero-title { font-size: 3rem; font-weight: 800; color: var(--text-white); margin-bottom: 1.2rem; line-height: 1.15; }
.highlight-gold { color: var(--brand-gold); }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-weight: 500; max-width: 760px; margin-left: auto; margin-right: auto; }
.scripture-banner { background: rgba(255,255,255,0.08); border-left: 4px solid var(--brand-gold); padding: 1.1rem 1.6rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 0 auto 2rem; max-width: 720px; text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
.scripture-icon { font-size: 1.4rem; color: var(--brand-gold); flex-shrink: 0; }
.scripture-text { font-size: 0.98rem; font-weight: 500; }
.scripture-ref { display: block; font-size: 0.8rem; font-weight: 800; color: var(--brand-gold); margin-top: 0.3rem; text-transform: uppercase; }
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.next-service-card { background: var(--dark-surface); border: 2px solid var(--brand-gold); border-radius: var(--radius-lg); padding: 1.3rem 1.8rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; max-width: 800px; margin: 0 auto; }
.service-card-info .label { display: block; font-size: 0.72rem; font-weight: 800; color: var(--brand-gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.2rem; }
.service-time-title { font-size: 0.95rem; font-weight: 600; }
.countdown-timer { display: flex; gap: 0.7rem; }
.timer-unit { background: rgba(255,255,255,0.07); border: 1px solid var(--brand-silver); border-radius: var(--radius-md); padding: 0.5rem 0.8rem; min-width: 58px; text-align: center; }
.timer-unit span { display: block; font-size: 1.4rem; font-weight: 800; color: var(--brand-gold); line-height: 1; }
.timer-unit small { font-size: 0.6rem; color: var(--brand-silver); text-transform: uppercase; font-weight: 700; }

/* ============ STATS BAR ============ */
.stats-bar { background: var(--brand-blue); padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 1rem; background: rgba(255,255,255,0.08); border-radius: var(--radius-md); }
.stat-item i { font-size: 1.6rem; color: var(--brand-gold); }
.stat-info h3 { font-size: 0.88rem; color: var(--text-white); margin-bottom: 0.1rem; }
.stat-info p { font-size: 0.75rem; color: var(--brand-silver); }

/* ============ SECTION HEADERS ============ */
.section-header { max-width: 740px; margin: 0 auto 3rem; }
.section-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 800; color: var(--brand-blue); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.5rem; }
.section-tag-gold { color: var(--brand-gold); }
.section-title { font-size: 2.1rem; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); }
.subsection-title { font-size: 1.3rem; color: var(--brand-blue); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.6rem; }
.subsection-title i { color: var(--brand-gold); }

/* ============ ABOUT ============ */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.image-glass-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid var(--brand-blue); position: relative; }
.about-img { width: 100%; height: 440px; object-fit: cover; }
.experience-badge { position: absolute; bottom: 1.2rem; left: 1.2rem; background: var(--brand-blue); border: 2px solid var(--brand-gold); border-radius: var(--radius-md); padding: 0.8rem 1.2rem; color: var(--text-white); display: flex; align-items: center; gap: 0.8rem; }
.experience-badge .number { font-size: 1.5rem; font-weight: 800; color: var(--brand-gold); }
.experience-badge .text { font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
.quote-card { background: var(--brand-gold-light); border-left: 4px solid var(--brand-gold); padding: 1.2rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-bottom: 1.2rem; }
.quote-icon { font-size: 1.2rem; color: var(--brand-gold); margin-bottom: 0.3rem; }
.quote-text { font-size: 0.92rem; color: var(--brand-blue-dark); font-weight: 600; }
.about-description { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.8rem; }
.highlight-box { display: flex; gap: 0.7rem; align-items: flex-start; }
.highlight-box i { font-size: 1.3rem; color: var(--brand-gold); margin-top: 0.1rem; }
.highlight-box h4 { font-size: 0.88rem; color: var(--brand-blue); margin-bottom: 0.2rem; }
.highlight-box p { font-size: 0.8rem; color: var(--text-muted); }
.action-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ============ FAITH TABS ============ */
.faith-tabs-container { max-width: 960px; margin: 0 auto; }
.faith-tabs-header { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.faith-tab-btn { padding: 0.65rem 1.2rem; background: rgba(255,255,255,0.06); border: 1px solid var(--brand-silver); border-radius: var(--radius-full); color: var(--brand-silver); font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.45rem; text-transform: uppercase; }
.faith-tab-btn:hover, .faith-tab-btn.active { background: var(--brand-gold); color: var(--dark-surface); border-color: var(--brand-gold); }
.faith-tab-pane { display: none; }
.faith-tab-pane.active { display: block; }
.faith-card { background: rgba(255,255,255,0.05); border: 2px solid var(--brand-gold); border-radius: var(--radius-lg); padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.faith-card-icon { width: 56px; height: 56px; background: var(--brand-gold); color: var(--dark-surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.faith-card-body h3 { color: var(--text-white); font-size: 1.25rem; margin-bottom: 0.7rem; }
.faith-card-body p { color: var(--brand-silver); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; }
.faith-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.faith-tags span { background: rgba(213,172,81,0.12); color: var(--brand-gold); border: 1px solid var(--brand-gold); padding: 0.2rem 0.7rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }

/* ============ LEADERSHIP ============ */
.leadership-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.8rem; }
.leader-card { background: var(--card-bg); border-radius: var(--radius-lg); border: 2px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.leader-card:hover { transform: translateY(-4px); border-color: var(--brand-blue); box-shadow: var(--shadow-md); }
.leader-img-container { position: relative; height: 340px; overflow: hidden; background: var(--dark-surface); }
.leader-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-badge { position: absolute; top: 1rem; right: 1rem; background: var(--brand-gold); color: var(--dark-surface); font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.8rem; border-radius: var(--radius-full); text-transform: uppercase; }
.leader-badge-sub { background: var(--brand-blue); color: var(--text-white); }
.leader-info { padding: 1.6rem; flex-grow: 1; display: flex; flex-direction: column; }
.leader-info h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.leader-role { display: block; color: var(--brand-gold-hover); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.7rem; text-transform: uppercase; }
.leader-bio { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; flex-grow: 1; }
.leader-quote { background: var(--bg-light); border-left: 3px solid var(--brand-gold); padding: 0.75rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.85rem; font-weight: 600; color: var(--brand-blue-dark); }

/* ============ MINISTRIES ============ */
.ministry-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.ministry-card { background: var(--card-bg); border-radius: var(--radius-md); border: 1px solid var(--border-color); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.ministry-card:hover { transform: translateY(-4px); border-color: var(--brand-blue); box-shadow: var(--shadow-md); }
.ministry-icon { width: 48px; height: 48px; background: var(--brand-gold-light); color: var(--brand-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 0.9rem; border: 1px solid var(--brand-gold); }
.ministry-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.ministry-card p { color: var(--text-muted); font-size: 0.85rem; }
.highlight-card { border: 2px solid var(--brand-gold); background: linear-gradient(135deg, #fff, var(--brand-gold-light)); }
.age-badge { display: inline-block; background: var(--brand-gold); color: var(--dark-surface); font-weight: 800; font-size: 0.7rem; padding: 0.15rem 0.55rem; border-radius: var(--radius-full); margin-bottom: 0.5rem; text-transform: uppercase; }

/* SUNDAY TABLE */
.sunday-classes-wrapper { background: var(--card-bg); border-radius: var(--radius-lg); border: 2px solid var(--border-color); box-shadow: var(--shadow-md); overflow: hidden; }
.table-header-card { padding: 1.6rem; background: var(--brand-blue); color: var(--text-white); }
.table-title { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1rem; }
.table-title i { font-size: 1.6rem; color: var(--brand-gold); }
.table-title h3 { color: var(--text-white); font-size: 1.2rem; }
.table-title p { color: var(--brand-silver); font-size: 0.85rem; }
.porridge-banner { background: rgba(213,172,81,0.18); border: 1px dashed var(--brand-gold); border-radius: var(--radius-md); padding: 0.8rem 1.1rem; display: flex; align-items: center; gap: 0.9rem; }
.porridge-icon { font-size: 1.4rem; color: var(--brand-gold); }
.porridge-text { font-size: 0.85rem; color: var(--text-white); font-weight: 600; }
.table-responsive { overflow-x: auto; }
.sunday-table { width: 100%; border-collapse: collapse; text-align: left; }
.sunday-table th { background: var(--brand-silver-light); color: var(--brand-blue-dark); font-weight: 800; font-size: 0.82rem; padding: 0.85rem 1.3rem; border-bottom: 2px solid var(--border-color); text-transform: uppercase; }
.sunday-table td { padding: 0.9rem 1.3rem; border-bottom: 1px solid var(--border-color); font-size: 0.88rem; }
.sunday-table tr:hover { background: var(--bg-light); }
.sunday-table tr.highlight-row { background: #FFFDF5; }
.dept-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.dept-infant { background: #E2E8F0; color: #475569; }
.dept-junior { background: #FEF3C7; color: #92400E; }
.dept-senior { background: #DBEAFE; color: #1E40AF; }
.dept-teen { background: #E0E7FF; color: #3730A3; }
.dept-youth { background: #F3E8FF; color: #6B21A8; }
.dept-vessels { background: #D1FAE5; color: #065F46; }
.age-pill { background: var(--bg-light); border: 1px solid var(--border-color); padding: 0.18rem 0.55rem; border-radius: var(--radius-sm); font-weight: 800; font-size: 0.78rem; color: var(--brand-blue); }

/* ============ SERMONS ============ */
.sermons-grid { display: flex; flex-direction: column; gap: 2rem; }
.sermon-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.sermon-card:hover { border-color: var(--brand-gold); }
.video-container { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--dark-footer); }
.sermon-iframe { width: 100%; height: 100%; border: 0; }
.sermon-content { padding: 1.3rem; }
.sermon-date { display: block; font-size: 0.75rem; color: var(--brand-gold); font-weight: 800; margin-bottom: 0.3rem; text-transform: uppercase; }
.sermon-content h3 { color: var(--text-white); font-size: 1.3rem; margin-bottom: 0.3rem; }
.sermon-content h4 { color: var(--text-white); font-size: 0.95rem; margin-bottom: 0.25rem; }
.sermon-speaker { color: var(--brand-silver); font-size: 0.82rem; margin-bottom: 0.8rem; font-weight: 600; }
.sermon-text { color: var(--brand-silver); font-size: 0.88rem; margin-bottom: 1.2rem; }
.other-sermons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============ GALLERY ============ */
.gallery-section { background: var(--dark-surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2rem; }

.gallery-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.gallery-item:hover { border-color: var(--brand-gold); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(213,172,81,0.18); }

.gallery-photo-wrap { position: relative; height: 220px; overflow: hidden; cursor: pointer; background: var(--dark-footer); }
.gallery-photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.35s ease; }
.gallery-item:hover .gallery-photo-wrap img { transform: scale(1.04); }

/* Shimmer placeholder while a gallery image loads, then fade it in - a
   perceived-speed improvement for photos coming from Drive hotlinks,
   which can be slower to first-byte than same-server assets. */
.gallery-photo-wrap img { opacity: 0; }
.gallery-photo-wrap img.loaded { opacity: 1; }
.gallery-photo-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, var(--dark-footer) 30%, rgba(255,255,255,0.06) 50%, var(--dark-footer) 70%);
    background-size: 200% 100%;
    animation: gallery-shimmer 1.4s ease-in-out infinite;
}
.gallery-photo-wrap:has(img.loaded)::before { display: none; }
@keyframes gallery-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.gallery-overlay { position: absolute; inset: 0; background: rgba(38,93,151,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); font-size: 1.8rem; color: white; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-footer { padding: 0.9rem 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.photo-caption { flex: 1; font-size: 0.82rem; color: var(--brand-silver); line-height: 1.45; }

/* LIKE BUTTON */
.gallery-like-btn { display: flex; align-items: center; gap: 0.35rem; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2); color: var(--brand-silver); padding: 0.35rem 0.7rem; border-radius: var(--radius-full); cursor: pointer; font-size: 0.8rem; font-weight: 700; transition: var(--transition); flex-shrink: 0; }
.gallery-like-btn:hover { border-color: var(--brand-red); color: var(--brand-red); }
.gallery-like-btn.liked { background: rgba(227,55,56,0.15); border-color: var(--brand-red); color: var(--brand-red); }
.gallery-like-btn.liked i { color: var(--brand-red); }
.gallery-like-btn.like-pop { animation: likePop 0.4s ease; }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.gallery-note { font-size: 0.82rem; color: var(--brand-silver); background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 1rem 1.3rem; display: flex; align-items: flex-start; gap: 0.7rem; }
.gallery-note i { color: var(--brand-gold); margin-top: 0.15rem; }

/* ============ EVENTS ============ */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.event-card { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.event-card-highlight { border: 2px solid var(--brand-gold); }
.event-day-badge { background: var(--brand-blue); color: var(--text-white); padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.event-day-badge .day { font-size: 1.5rem; font-weight: 800; color: var(--brand-gold); }
.event-day-badge .title { font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.event-details { padding: 1.4rem; }
.event-details h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.schedule-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--border-color); font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.55rem; }
.schedule-list li:last-child { border-bottom: none; }
.schedule-list i { color: var(--brand-gold-hover); }

/* ============ UPCOMING EVENTS ============ */
.upcoming-events-section { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 2rem; box-shadow: var(--shadow-sm); }
.upcoming-events-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }

.add-event-panel { background: var(--bg-light); border: 1.5px dashed var(--brand-blue); border-radius: var(--radius-md); padding: 1.6rem; margin-bottom: 1.5rem; display: none; }
.add-event-panel.open { display: block; }
.add-event-panel h4 { font-size: 1rem; color: var(--brand-blue); margin-bottom: 1.2rem; }
.add-event-form { display: flex; flex-direction: column; gap: 1rem; }
.ae-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ae-btn-row { display: flex; gap: 0.9rem; }

.upcoming-events-list { display: flex; flex-direction: column; gap: 0.9rem; }
.upcoming-events-list[hidden] { display: none; }
.upcoming-event-card { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; display: flex; align-items: flex-start; gap: 1.2rem; transition: var(--transition); }
.upcoming-event-card:hover { border-color: var(--brand-blue); }
.upcoming-event-date { background: var(--brand-blue); color: var(--text-white); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; text-align: center; min-width: 56px; flex-shrink: 0; }
.ue-day { display: block; font-size: 1.4rem; font-weight: 800; color: var(--brand-gold); line-height: 1; }
.ue-month { display: block; font-size: 0.65rem; text-transform: uppercase; font-weight: 700; color: var(--brand-silver); }
.upcoming-event-body { flex: 1; }
.upcoming-event-body h4 { font-size: 1rem; color: var(--brand-blue); margin-bottom: 0.25rem; }
.ue-time { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.ue-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.35rem; }
.ue-delete-btn { background: transparent; border: none; color: var(--text-light); cursor: pointer; padding: 0.3rem; border-radius: var(--radius-sm); transition: var(--transition); }
.ue-delete-btn:hover { color: var(--brand-red); background: rgba(227,55,56,0.08); }
.no-events-text { color: var(--text-muted); font-size: 0.9rem; padding: 1.2rem 0; }

/* ============ GIVING ============ */
.giving-card-wrapper { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-bg); border-radius: var(--radius-lg); border: 2px solid var(--border-color); box-shadow: var(--shadow-lg); overflow: hidden; }
.giving-info { padding: 3rem; }
.giving-info .section-tag { margin-bottom: 0.5rem; }
.giving-info p { font-size: 0.95rem; margin: 1rem 0; }
.scripture-box { background: rgba(213,172,81,0.15); border-left: 3px solid var(--brand-gold); padding: 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-white); font-weight: 600; font-size: 0.9rem; }
.giving-mpesa-box { background: var(--dark-surface); border-left: 3px solid var(--brand-gold); padding: 3rem; color: var(--text-white); display: flex; flex-direction: column; justify-content: center; }
.mpesa-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.mpesa-header i { font-size: 2rem; color: var(--brand-gold); }
.mpesa-header h3 { color: var(--text-white); font-size: 1.3rem; }
.mpesa-header p { color: var(--brand-silver); font-size: 0.82rem; }
.mpesa-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.detail-box { background: rgba(255,255,255,0.06); border: 1px solid var(--brand-gold); border-radius: var(--radius-md); padding: 1rem; }
.detail-box .label { display: block; font-size: 0.68rem; color: var(--brand-silver); margin-bottom: 0.3rem; text-transform: uppercase; font-weight: 700; }
.copy-field { display: flex; justify-content: space-between; align-items: center; }
.copy-field strong { font-size: 1.4rem; color: var(--brand-gold); font-weight: 800; }
.btn-copy { background: rgba(213,172,81,0.18); border: 1px solid var(--brand-gold); color: var(--brand-gold); padding: 0.18rem 0.55rem; border-radius: var(--radius-sm); font-size: 0.68rem; font-weight: 800; cursor: pointer; text-transform: uppercase; }
.btn-copy:hover { background: var(--brand-gold); color: var(--dark-surface); }
.hint { font-size: 0.7rem; color: var(--brand-silver); display: block; margin-top: 0.3rem; }
.mpesa-instructions h4 { color: var(--brand-gold); font-size: 0.85rem; margin-bottom: 0.4rem; text-transform: uppercase; }
.mpesa-instructions ol { padding-left: 1.1rem; font-size: 0.82rem; color: var(--brand-silver); line-height: 1.65; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
.contact-card { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 2rem; box-shadow: var(--shadow-md); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.contact-item { display: flex; gap: 0.9rem; margin-bottom: 1.4rem; }
.contact-item i { font-size: 1.3rem; color: var(--brand-gold-hover); margin-top: 0.1rem; }
.contact-item h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.social-connect h4 { font-size: 0.85rem; margin-bottom: 0.7rem; color: var(--brand-blue); text-transform: uppercase; }
.social-links { display: flex; gap: 0.7rem; }
.social-links a { background: var(--bg-light); border: 1px solid var(--border-color); padding: 0.4rem 0.9rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.35rem; text-transform: uppercase; }
.social-links a:hover { background: var(--brand-blue); color: var(--text-white); }
.contact-form-card { background: var(--card-bg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 2rem; box-shadow: var(--shadow-md); }
.contact-form-card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.form-subtext { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 800; color: var(--brand-blue-dark); margin-bottom: 0.3rem; text-transform: uppercase; }
.form-input { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 0.9rem; transition: var(--transition); background: var(--bg-light); }
.form-input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(38,93,151,0.12); background: white; }
.link-gold { color: var(--brand-gold); font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.link-gold:hover { color: var(--brand-blue); }

/* ============ FOOTER ============ */
.main-footer { padding: 4rem 0 0; border-top: 3px solid var(--brand-gold); color: var(--brand-silver); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; margin-bottom: 1.2rem; }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a { width: 34px; height: 34px; background: rgba(255,255,255,0.08); color: var(--brand-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-socials a:hover { background: var(--brand-gold); color: var(--dark-surface); }
.footer-col h4 { color: var(--text-white); font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.4px; }
.footer-col p { font-size: 0.82rem; margin-bottom: 0.4rem; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: var(--brand-silver); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-links a:hover { color: var(--brand-gold); transform: translateX(3px); }
.footer-cms-btn { background: transparent; border: none; color: var(--brand-gold); font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-primary); padding: 0; text-align: left; }
.footer-cms-btn:hover { color: var(--text-white); }
.live-domain-badge { display: inline-block; background: rgba(213,172,81,0.12); border: 1px solid var(--brand-gold); color: var(--brand-gold); padding: 0.3rem 0.7rem; border-radius: var(--radius-sm); font-weight: 800; font-size: 0.75rem; margin-top: 0.5rem; }
.footer-bottom { background: rgba(0,0,0,0.5); padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.78rem; color: var(--brand-silver); }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.9rem; }

/* ============ MODALS ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,12,21,0.87); backdrop-filter: blur(6px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-dialog { background: var(--card-bg); border-radius: var(--radius-lg); width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(24px); transition: transform 0.25s ease; }
.modal-overlay.active .modal-dialog { transform: translateY(0); }
.modal-header { background: var(--brand-blue); color: var(--text-white); padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--brand-gold); }
.modal-header h3 { color: var(--text-white); font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.modal-close { background: transparent; border: none; color: var(--brand-silver); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--brand-gold); }
.modal-body { padding: 1.6rem; }

/* Other Offerings modal can hold several accordion items - cap its
   height and let it scroll internally rather than overflow the viewport
   on a short mobile screen. */
#otherOfferingsModal .modal-dialog { max-height: 88vh; display: flex; flex-direction: column; }
#otherOfferingsModal .modal-body { overflow-y: auto; }
.modal-mpesa-icon { font-size: 2.6rem; color: var(--brand-gold); margin-bottom: 0.4rem; }
.mpesa-modal-card { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem; margin: 1rem 0; }
.mpesa-modal-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; }
.modal-hint { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.2rem; }

/* CMS PORTAL MODAL */
.cms-modal-overlay { align-items: stretch; padding: 0; }
.cms-modal-dialog { max-width: none; width: 100%; height: 100vh; display: flex; flex-direction: column; max-height: none; border-radius: 0; }
.cms-iframe-wrapper { flex: 1; position: relative; background: var(--dark-surface); overflow: hidden; }
.cms-iframe-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--brand-gold); gap: 1rem; font-size: 1rem; }
.cms-iframe-loading i { font-size: 2.5rem; }
#cmsIframe { width: 100%; height: 100%; border: 0; display: block; }
.cms-modal-footer { padding: 0.8rem 1.5rem; background: var(--brand-blue-dark); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--brand-silver); }

/* LIGHTBOX */
.gallery-lightbox { align-items: center; }
.lightbox-dialog { position: relative; width: 100%; max-width: 900px; display: flex; align-items: center; gap: 1rem; }
.lightbox-content { flex: 1; text-align: center; }
.lightbox-content img { max-height: 78vh; max-width: 100%; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.6); object-fit: contain; }
.lightbox-caption { color: var(--brand-silver); font-size: 0.88rem; margin-top: 0.9rem; padding: 0 1rem; font-weight: 500; }
.lightbox-close { position: absolute; top: -2.5rem; right: 0; background: rgba(255,255,255,0.12); border: none; color: white; font-size: 1.6rem; cursor: pointer; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.lightbox-nav { background: rgba(255,255,255,0.12); border: none; color: white; font-size: 1.2rem; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.lightbox-nav:hover { background: var(--brand-gold); color: var(--dark-surface); }

/* AUDIO PLAYER */
.audio-player-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--brand-blue); border-top: 3px solid var(--brand-gold); padding: 0.7rem 0; z-index: 1500; }
.audio-player-bar.hidden { display: none; }
.audio-player-container { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.audio-info { display: flex; align-items: center; gap: 0.7rem; color: var(--text-white); }
.audio-info small { display: block; color: var(--brand-gold); font-size: 0.75rem; }
.audio-close { background: transparent; border: none; color: var(--brand-silver); font-size: 1.3rem; cursor: pointer; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .ministry-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .leadership-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .grid-2-col, .giving-card-wrapper, .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .nav-menu { position: absolute; top: 76px; left: 0; width: 100%; background: var(--brand-blue); padding: 1.2rem 1.5rem; border-bottom: 3px solid var(--brand-gold); display: none; box-shadow: var(--shadow-lg); z-index: 999; }
    .nav-menu.active { display: block; }
    .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .mobile-toggle { display: block; }
    .btn-whatsapp-nav span { display: none; }
    .btn-whatsapp-nav { padding: 0.5rem 0.65rem; }
    .top-bar-left span:first-of-type { display: none; }
    .hero-title { font-size: 1.8rem; }
    .next-service-card { flex-direction: column; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .leadership-grid { grid-template-columns: 1fr; }
    .form-row, .ae-form-row, .mpesa-details-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cms-modal-dialog { height: 100vh; max-height: none; }
    .other-sermons-grid { grid-template-columns: 1fr; }

    /* Header logo block: was a fixed-width flex item (flex-shrink:0) that
       never compressed, so on narrow phones it - not any single button -
       was what pushed the whole page wider than the screen. Let it shrink
       and truncate instead of forcing horizontal overflow. */
    .container.nav-container { padding-left: 1rem; padding-right: 1rem; }
    .brand-logo { flex-shrink: 1; min-width: 0; gap: 0.5rem; }
    .official-logo-img { height: 40px; width: 40px; flex-shrink: 0; }
    .logo-text { min-width: 0; overflow: hidden; }
    .church-name, .assembly-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    .tag-line { display: none; } /* already shown prominently in the hero section */
    .header-actions { gap: 0.35rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.55rem; }
    .header-actions .btn-portal { display: none; }
    .faith-tabs-header { flex-direction: column; align-items: stretch; }
    .ministry-cards-grid { grid-template-columns: 1fr; }
}

/* ACCESSIBILITY */
:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
/* Reliable YouTube fallback for local previews and privacy-restricted browsers */
.sermon-watch-card { display: grid; place-items: center; padding: 1.5rem; text-align: center; color: var(--text-white); background: linear-gradient(135deg, var(--dark-footer), var(--brand-blue-dark)); }
.sermon-watch-card > div { display: grid; justify-items: center; gap: 0.85rem; }
.sermon-watch-card .fa-youtube { color: #ff0000; font-size: 2.5rem; }
.sermon-watch-card h4 { color: var(--text-white); font-size: 1rem; }
/* OFFERINGS: high-contrast reading surface */
.giving-card-wrapper { background: var(--dark-surface); border-color: var(--brand-gold); }
.giving-info { background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue)); color: var(--text-white); }
.giving-info .section-title, .giving-info p { color: var(--text-white) !important; }
.giving-info .section-tag { color: #FFE2A0; }
.scripture-box { background: rgba(0, 0, 0, 0.26); border-left-color: #FFE2A0; color: var(--text-white); }

/* Tuesday fellowship locations */
.fellowship-locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.75rem; margin-top: 1rem; }
.fellowship-locations li { color: var(--text-muted); font-size: 0.82rem; padding-left: 1rem; position: relative; }
.fellowship-locations li::before { content: '•'; color: var(--brand-gold-hover); left: 0; position: absolute; }

/* Apps Script blocks framing until its deployment allows embedding. */
.portal-setup-notice { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; background: var(--dark-surface); color: var(--text-white); }
.portal-setup-notice > i { color: var(--brand-gold); font-size: 2.5rem; }
.portal-setup-notice h4 { color: var(--text-white); font-size: 1.25rem; }
.portal-setup-notice p { max-width: 620px; color: var(--brand-silver); }
.portal-setup-detail { padding: 0.75rem 1rem; border: 1px solid var(--brand-gold); border-radius: var(--radius-sm); color: #FFE2A0 !important; }
@media (max-width: 480px) { .fellowship-locations { grid-template-columns: 1fr; } }
.hero-ministry-tag { display: block; margin-top: 0.7rem; color: var(--text-white); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lightbox-like-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; margin-top: 1rem; padding: 0.5rem 0.9rem; border: 1px solid rgba(255,255,255,0.45); border-radius: var(--radius-full); background: rgba(255,255,255,0.1); color: var(--text-white); cursor: pointer; font-weight: 700; }
.lightbox-like-btn:hover, .lightbox-like-btn.liked { border-color: var(--brand-red); color: #FF9A9A; background: rgba(227,55,56,0.18); }
/* ==========================================================================
   AJAX FORM STATES (Prayer + Contact) — plumbing fix, replaces mailto:
   ========================================================================== */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { display: none; margin: 0.75rem 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 600; white-space: pre-line; }
.form-status.visible { display: block; }
.form-status.success { background: rgba(37, 211, 102, 0.12); color: #1C8A4C; border: 1px solid rgba(37, 211, 102, 0.4); }
.form-status.error { background: rgba(227, 55, 56, 0.1); color: var(--brand-red); border: 1px solid rgba(227, 55, 56, 0.35); }
.form-status.sending { background: rgba(38, 93, 151, 0.08); color: var(--brand-blue-dark); border: 1px solid rgba(38, 93, 151, 0.25); }
.ajax-form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==========================================================================
   YOUTUBE LITE-EMBED (real thumbnails, click-to-load iframe)
   ========================================================================== */
.yt-lite { position: relative; cursor: pointer; overflow: hidden; background: var(--dark-surface); }
.yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(11,19,32,0.28); transition: background 0.2s ease;
}
.yt-play-overlay i {
    width: 64px; height: 64px; border-radius: 50%; background: var(--brand-red);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35); transition: transform 0.2s ease;
}
.yt-lite:hover .yt-play-overlay { background: rgba(11,19,32,0.15); }
.yt-lite:hover .yt-play-overlay i { transform: scale(1.08); }
.yt-lite iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ==========================================================================
   GALLERY: VIDEO ITEMS + MULTI-EVENT TABS
   ========================================================================== */
.gallery-video-wrap { background: #000; }
.gallery-video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.gallery-item-video .gallery-photo-wrap { cursor: default; }

.gallery-event-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
    margin: 0 0 2rem;
}
.gallery-tab-btn {
    padding: 0.55rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--brand-silver);
    background: var(--card-bg); color: var(--text-dark); font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: all 0.2s ease;
}
.gallery-tab-btn:hover { border-color: var(--brand-gold); }
.gallery-tab-btn.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* Consent line above form submit buttons (Privacy Policy link) */
.form-consent { font-size: 0.8rem; color: var(--text-muted); margin: 0.4rem 0 0.8rem; }
.form-consent a { color: var(--brand-blue); text-decoration: underline; }

/* ==========================================================================
   FOOTER: SINGLE PIPE-SEPARATED LEGAL/PORTAL LINE
   ========================================================================== */
.footer-legal-line {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    row-gap: 0.5rem;
    color: var(--brand-silver);
    margin: 0;
}
.footer-legal-line a { color: var(--brand-silver); text-decoration: none; cursor: pointer; }
.footer-legal-line a:hover { color: var(--brand-gold); text-decoration: underline; }
.footer-legal-line .fl-sep { color: rgba(255,255,255,0.25); }

/* Small embedded map — church location, focused on the church name */
.mini-map-wrap { border-radius: var(--radius-md); overflow: hidden; margin: 0.7rem 0; border: 1px solid var(--brand-silver); }
.mini-map { width: 100%; height: 220px; border: 0; display: block; }

/* ==========================================================================
   YOUTUBE LIVE DETECTION — full-width strip + in-section banner
   ========================================================================== */
.live-strip {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--brand-red); color: #fff; font-weight: 800; font-size: 0.85rem;
    text-decoration: none; padding: 0.55rem 1rem; text-align: center;
    letter-spacing: 0.03em;
}
.live-strip:hover { background: #c62d2e; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.live-banner {
    background: rgba(227,55,56,0.1); border: 1px solid var(--brand-red); border-radius: var(--radius-lg);
    padding: 1rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.8rem;
}
.live-banner .live-banner-label { display: flex; align-items: center; gap: 0.5rem; color: #FF9A9A; font-weight: 800; font-size: 0.9rem; }
.live-banner .video-container { border-radius: var(--radius-md); overflow: hidden; }

/* ==========================================================================
   SITE-WIDE THIN NAV STRIP — used on Privacy/Terms/KMS/Verse pages so the
   same navigation is available there, not just on the homepage. Scrolls
   horizontally on narrow phones (contained scroll, doesn't push page
   width) rather than wrapping/overflowing, since 11 items can't all fit
   on a 320px screen otherwise.
   ========================================================================== */
.site-nav-strip {
    position: sticky; top: 0; z-index: 999;
    background: var(--brand-blue); border-bottom: 3px solid var(--brand-gold);
    display: flex; align-items: center; gap: 1.1rem;
    padding: 0.5rem 1.1rem; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.site-nav-strip::-webkit-scrollbar { display: none; }
.site-nav-strip a { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.site-nav-strip a:hover { color: var(--brand-gold); }
.site-nav-strip .snb-logo { display: flex; align-items: center; }
.site-nav-strip .snb-logo img { height: 24px; width: 24px; border-radius: 50%; object-fit: contain; background: #fff; padding: 1px; }
.site-nav-strip .snb-give { background: var(--brand-gold); color: var(--brand-blue-dark); padding: 0.3rem 0.75rem; border-radius: var(--radius-full); }
.site-nav-strip .snb-whatsapp { background: #25D366; color: #fff; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); }

/* ==========================================================================
   GIVING ACCORDION — Offerings shown by default, others click to expand
   ========================================================================== */
.giving-accordion { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.giving-accordion-item { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); overflow: hidden; background: rgba(255,255,255,0.03); }
.giving-accordion-item.open { border-color: var(--brand-gold); }
.giving-accordion-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.1rem; background: transparent; border: none; color: var(--text-white);
    font-weight: 700; font-size: 0.95rem; cursor: pointer; text-align: left;
}
.giving-accordion-header i.fa-solid:first-child { color: var(--brand-gold); margin-right: 0.5rem; }
.giving-accordion-chevron { transition: transform 0.2s ease; font-size: 0.8rem; }
.giving-accordion-item.open .giving-accordion-chevron { transform: rotate(180deg); }
.giving-accordion-body { padding: 0 1.1rem 1.1rem; }
.giving-accordion-desc { color: var(--brand-silver); font-size: 0.88rem; margin-bottom: 0.8rem; }
.giving-comment-row { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.giving-comment-row label { display: block; color: var(--text-white); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.giving-comment-input-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.giving-comment-input { flex: 1; min-width: 160px; }
.giving-comment-note { font-size: 0.76rem; color: var(--brand-silver); margin-top: 0.5rem; opacity: 0.8; }
.giving-comment-status { font-size: 0.82rem; margin-top: 0.5rem; display: none; }
.giving-comment-status.visible { display: block; }

/* The accordion above was originally built only for the dark
   .giving-mpesa-box context (dark-surface background), using light/white
   text colors. It's also reused inside #otherOfferingsModal, which - like
   every other modal on the site - has a LIGHT (--card-bg, white)
   background, making that same light text invisible there. This
   overrides the text/border colors specifically inside that modal,
   without touching the original dark-background styling used for the
   inline "Offerings" category on the page itself. */
#otherOfferingsModal .giving-accordion-item { border-color: var(--border-color); background: var(--bg-light); }
#otherOfferingsModal .giving-accordion-header { color: var(--text-dark); }
#otherOfferingsModal .giving-accordion-desc { color: var(--text-muted); }
#otherOfferingsModal .giving-comment-row { border-top-color: var(--border-color); }
#otherOfferingsModal .giving-comment-row label { color: var(--text-dark); }
#otherOfferingsModal .giving-comment-note { color: var(--text-muted); }
#otherOfferingsModal .detail-box strong { color: var(--text-dark); }
.giving-comment-status.success { color: #6EE7A0; }
.giving-comment-status.error { color: #FF9A9A; }
.giving-comment-status.info { color: var(--brand-silver); }
.giving-modal-more-link { display: block; margin-top: 1rem; font-size: 0.85rem; color: var(--brand-blue); text-align: center; }

/* ==========================================================================
   SERMON AUDIO — real uploaded audio files, separate from YouTube videos
   ========================================================================== */
.sermon-audio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.sermon-audio-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.1rem; }
.sermon-audio-info h4 { color: var(--text-white); margin: 0 0 0.2rem; font-size: 1rem; }
.sermon-audio-speaker { color: var(--brand-silver); font-size: 0.85rem; margin: 0 0 0.5rem; }
.sermon-audio-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.sermon-audio-tags span { background: rgba(213,172,81,0.15); color: var(--brand-gold); border-radius: var(--radius-full); padding: 0.2rem 0.6rem; font-size: 0.72rem; font-weight: 700; }
.sermon-audio-card audio { width: 100%; height: 36px; }

/* ==========================================================================
   EVENTS: UPCOMING / PAST TABS
   ========================================================================== */
.events-tab-bar { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.events-tab-btn { padding: 0.55rem 1.2rem; border-radius: var(--radius-full); border: 1px solid var(--brand-silver); background: var(--card-bg); color: var(--text-dark); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; }
.events-tab-btn:hover { border-color: var(--brand-gold); }
.events-tab-btn.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.event-card-past { opacity: 0.75; }
.event-card-past .event-day-badge { background: var(--text-muted); }

/* Gallery-to-event tag badge */
.gallery-event-badge { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; padding: 0.35rem 0.9rem; background: rgba(213,172,81,0.12); color: var(--brand-gold); border: 1px solid rgba(213,172,81,0.4); border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.gallery-event-badge:hover { background: rgba(213,172,81,0.22); }

/* ==========================================================================
   PRAYER WALL — admin-fed items, visitor tick (shared count via Likes)
   ========================================================================== */
.prayer-wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.prayer-wall-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 1.2rem; }
.prayer-wall-card h4 { color: var(--text-white); margin: 0 0 0.5rem; }
.prayer-wall-card p { color: var(--brand-silver); font-size: 0.9rem; margin: 0 0 1rem; }
.prayer-wall-tick { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.6rem; border-radius: var(--radius-full); border: 1px solid var(--brand-gold); background: transparent; color: var(--brand-gold); font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.prayer-wall-tick.ticked { background: var(--brand-gold); color: var(--brand-blue-dark); }

/* ==========================================================================
   ACCESSIBILITY: SKIP-TO-CONTENT LINK
   Standard WCAG pattern - invisible until keyboard-focused, then jumps a
   keyboard/screen-reader user straight past the header/nav to the main
   content instead of forcing them to tab through every nav link first.
   ========================================================================== */
.skip-to-content {
    position: absolute; top: -100px; left: 0.5rem; z-index: 3000;
    background: var(--brand-blue); color: #fff; padding: 0.8rem 1.4rem;
    border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus { top: 0.5rem; }

/* ==========================================================================
   ADMIN: LIVE CHARACTER COUNTERS — shown under every field with a
   maxlength attribute, so staff can see how much room they have before
   text risks distorting the public site's layout (badges, cards, table
   cells all have limited space).
   ========================================================================== */
.char-counter { font-size: 0.72rem; color: var(--text-muted); text-align: right; margin-top: 0.2rem; }
.char-counter-near-limit { color: #B45309; font-weight: 700; }
