/* =====================================================================
   Malaysia Baptist Convention — Public stylesheet
   Editorial redesign: warm, elegant, institutional.
   Mobile-first, lightweight, no frameworks.
   ===================================================================== */

:root {
    --bg: #f7f4ee;
    --bg-alt: #efe9de;
    --surface: #fffdf8;
    --text: #211d17;
    --text-muted: #6f675b;
    --border: #e6dfd1;
    --accent: #9c7a3c;
    --accent-dark: #7b5f2e;
    --ink: #1c1813;
    --ink-soft: #272119;
    --ink-text: #d9d1c3;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 2px rgba(33, 29, 23, .05), 0 20px 44px rgba(33, 29, 23, .09);
    --shadow-sm: 0 1px 3px rgba(33, 29, 23, .07);
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: "Fraunces", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
    --maxw: 1200px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Visual enhancement palette */
    --ivory: #f6f2ea;
    --cream: #f3ede0;
    --warm: #f7f3eb;
    --paper: #f4ede0;
    --forest: #172a24;
    --forest-deep: #12201a;
    --gold: #c6923e;
    --gold-deep: #a8782c;

    /* Decorative background patterns (thin-stroke inline SVG) */
    --pattern-flow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Cg fill='none' stroke='%23c6923e' stroke-width='1.4'%3E%3Cpath d='M-60 120 C260 20 440 260 780 170 S1240 130 1480 240'/%3E%3Cpath d='M-60 230 C280 130 480 400 820 290 S1280 260 1500 380'/%3E%3Cpath d='M-60 360 C300 250 520 540 860 420 S1320 400 1540 520'/%3E%3Cpath d='M-60 510 C320 400 560 700 900 560 S1360 540 1580 660'/%3E%3Cpath d='M-60 680 C340 560 600 860 940 720 S1400 700 1620 820'/%3E%3C/g%3E%3C/svg%3E");
    --pattern-circles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Cg fill='none' stroke='%23e8cf9a' stroke-width='1.3'%3E%3Ccircle cx='300' cy='300' r='190'/%3E%3Ccircle cx='470' cy='270' r='150'/%3E%3Ccircle cx='900' cy='320' r='210'/%3E%3Ccircle cx='1070' cy='280' r='160'/%3E%3Ccircle cx='620' cy='620' r='200'/%3E%3Ccircle cx='790' cy='590' r='140'/%3E%3Ccircle cx='140' cy='700' r='170'/%3E%3Ccircle cx='1180' cy='720' r='180'/%3E%3C/g%3E%3C/svg%3E");
    --pattern-circles-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Cg fill='none' stroke='%23fff6e3' stroke-width='1.4'%3E%3Ccircle cx='300' cy='300' r='190'/%3E%3Ccircle cx='470' cy='270' r='150'/%3E%3Ccircle cx='900' cy='320' r='210'/%3E%3Ccircle cx='1070' cy='280' r='160'/%3E%3Ccircle cx='620' cy='620' r='200'/%3E%3Ccircle cx='790' cy='590' r='140'/%3E%3Ccircle cx='140' cy='700' r='170'/%3E%3Ccircle cx='1180' cy='720' r='180'/%3E%3C/g%3E%3C/svg%3E");
    --pattern-contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Cg fill='none' stroke='%239c7a3c' stroke-width='1.3'%3E%3Cpath d='M-40 140 C220 60 400 220 680 130 S1160 110 1460 210'/%3E%3Cpath d='M-40 260 C240 180 440 360 720 260 S1200 240 1500 350'/%3E%3Cpath d='M-40 400 C260 320 480 520 760 400 S1240 380 1540 500'/%3E%3Cpath d='M-40 560 C280 480 520 700 800 560 S1280 540 1580 670'/%3E%3Cpath d='M-40 740 C300 660 560 880 840 740 S1320 720 1620 850'/%3E%3C/g%3E%3C/svg%3E");
    --pattern-dots-random: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Cg fill='%239c7a3c' fill-opacity='.45'%3E%3Ccircle cx='40' cy='90' r='1.5'/%3E%3Ccircle cx='120' cy='260' r='1.2'/%3E%3Ccircle cx='210' cy='60' r='1.8'/%3E%3Ccircle cx='300' cy='180' r='1'/%3E%3Ccircle cx='380' cy='40' r='1.6'/%3E%3Ccircle cx='460' cy='300' r='1.3'/%3E%3Ccircle cx='540' cy='120' r='1.9'/%3E%3Ccircle cx='620' cy='260' r='1.1'/%3E%3Ccircle cx='700' cy='80' r='1.5'/%3E%3Ccircle cx='780' cy='200' r='1.2'/%3E%3Ccircle cx='90' cy='380' r='1.4'/%3E%3Ccircle cx='180' cy='500' r='1.7'/%3E%3Ccircle cx='270' cy='420' r='1'/%3E%3Ccircle cx='350' cy='620' r='1.5'/%3E%3Ccircle cx='430' cy='520' r='1.2'/%3E%3Ccircle cx='510' cy='660' r='1.8'/%3E%3Ccircle cx='590' cy='560' r='1.1'/%3E%3Ccircle cx='670' cy='720' r='1.4'/%3E%3Ccircle cx='750' cy='620' r='1.6'/%3E%3Ccircle cx='60' cy='640' r='1.3'/%3E%3Ccircle cx='140' cy='760' r='1.5'/%3E%3Ccircle cx='240' cy='700' r='1'/%3E%3Ccircle cx='340' cy='820' r='1.7'/%3E%3Ccircle cx='420' cy='780' r='1.2'/%3E%3Ccircle cx='500' cy='860' r='1.5'/%3E%3Ccircle cx='600' cy='800' r='1.3'/%3E%3Ccircle cx='700' cy='860' r='1.6'/%3E%3Ccircle cx='790' cy='780' r='1.1'/%3E%3Ccircle cx='820' cy='300' r='1.4'/%3E%3Ccircle cx='900' cy='140' r='1.5'/%3E%3Ccircle cx='980' cy='320' r='1.2'/%3E%3Ccircle cx='1060' cy='180' r='1.8'/%3E%3Ccircle cx='1140' cy='300' r='1'/%3E%3Ccircle cx='1220' cy='120' r='1.5'/%3E%3Ccircle cx='1300' cy='260' r='1.3'/%3E%3Ccircle cx='1380' cy='160' r='1.6'/%3E%3Ccircle cx='860' cy='480' r='1.4'/%3E%3Ccircle cx='960' cy='580' r='1.2'/%3E%3Ccircle cx='1040' cy='460' r='1.7'/%3E%3Ccircle cx='1120' cy='620' r='1.5'/%3E%3Ccircle cx='1200' cy='520' r='1.1'/%3E%3Ccircle cx='1280' cy='660' r='1.4'/%3E%3Ccircle cx='1340' cy='560' r='1.6'/%3E%3Ccircle cx='900' cy='720' r='1.3'/%3E%3Ccircle cx='1000' cy='820' r='1.5'/%3E%3Ccircle cx='1100' cy='760' r='1'/%3E%3Ccircle cx='1180' cy='860' r='1.7'/%3E%3Ccircle cx='1260' cy='800' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.14;
    color: var(--text);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ============================= Buttons & links ============================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(33, 29, 23, .12);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    text-align: center;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(33, 29, 23, .2);
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-accent::after { content: "\2192"; transition: transform .3s var(--ease); }
.btn-accent:hover::after { transform: translateX(4px); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    letter-spacing: .01em;
    position: relative;
    padding: 4px 0;
    border-bottom: 2px solid var(--accent);
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow::after {
    content: "\2192";
    font-size: 1.3em;
    line-height: 1;
    color: var(--accent);
    transition: transform .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent-dark); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ============================= Announcement ============================= */
.announcement-bar { background: var(--ink); color: var(--ink-text); text-align: center; padding: 9px 16px; font-size: 14px; letter-spacing: .01em; overflow: hidden; }
.announcement-track { display: flex; width: max-content; animation: announcement-scroll 30s linear infinite; }
.announcement-track:hover { animation-play-state: paused; }
.announcement-item { flex: none; white-space: nowrap; }
@keyframes announcement-scroll {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* ============================= Header ============================= */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 50;
}
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }

/* Overlay header on the home page (transparent over the hero, solid after scroll) */
.header--overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* Keep header text legible over any hero image or colour. */
.header--overlay .brand { color: #fff; }
.header--overlay .brand-name-en,
.header--overlay .brand-name { color: #fff; }
.header--overlay .nav-item > a { color: rgba(255, 255, 255, .92); }
.header--overlay .nav-item > a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.header--overlay .lang-switcher a,
.header--overlay .lang-current { color: rgba(255, 255, 255, .85); }
.header--overlay .lang-switcher a:hover { color: #fff; }
.header--overlay .lang-current { color: #fff; }
.header--overlay .nav-toggle span { background: #fff; }
.header--overlay .lang-switcher a + .lang-current::before,
.header--overlay .lang-current + a::before { color: rgba(255, 255, 255, .4); }

.header--overlay.scrolled {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header--overlay.scrolled .brand { color: var(--text); }
.header--overlay.scrolled .brand-name-en,
.header--overlay.scrolled .brand-name { color: var(--text); }
.header--overlay.scrolled .nav-item > a { color: var(--text); }
.header--overlay.scrolled .nav-item > a:hover { background: var(--bg-alt); color: var(--accent); }
.header--overlay.scrolled .lang-switcher a { color: var(--text-muted); }
.header--overlay.scrolled .lang-switcher a:hover { color: var(--accent); }
.header--overlay.scrolled .lang-current { color: var(--accent); }
.header--overlay.scrolled .nav-toggle span { background: var(--text); }
.header--overlay.scrolled .lang-switcher a + .lang-current::before,
.header--overlay.scrolled .lang-current + a::before { color: var(--border); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo { max-height: 64px; width: auto; border-radius: var(--radius); }
.brand-mark {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    background: var(--accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; letter-spacing: .5px; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.brand-name-en { font-size: 14px; color: var(--text-muted); letter-spacing: .3px; font-weight: 500; }

.main-nav { display: none; }

.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a {
    display: block; padding: 10px 15px; color: var(--text);
    border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
}
.nav-item > a:hover { background: var(--bg-alt); color: var(--accent); }

.nav-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 8px 0 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-item.has-children:hover > .nav-dropdown,
.nav-item.has-children:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; }
.nav-dropdown a:hover { background: var(--bg-alt); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switcher { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lang-switcher a { color: var(--text-muted); }
.lang-switcher a:hover { color: var(--accent); }
.lang-current { font-weight: 600; color: var(--accent); }
.lang-switcher a + .lang-current::before, .lang-current + a::before { content: "|"; margin-right: 6px; color: var(--border); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav-list { list-style: none; margin: 0; padding: 12px 24px 24px; }
.mobile-nav-list > li > a { display: block; padding: 13px 4px; font-size: 16px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--bg-alt); }
.mobile-nav-sublist { list-style: none; margin: 0; padding: 0 0 8px 12px; }
.mobile-nav-sublist a { display: block; padding: 8px 4px; font-size: 14px; color: var(--text-muted); }

/* ============================= Hero ============================= */
.hero {
    position: relative;
    min-height: 82vh;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 1.1s var(--ease);
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-empty { background: linear-gradient(135deg, #2a231b 0%, #1c1813 55%, #3a2c18 100%); }
.hero-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.hero-media-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    transition: opacity .5s ease;
    pointer-events: auto;
}
.hero-media-poster.is-ready {
    opacity: 0;
    pointer-events: none;
}
.hero-overlay {
    position: absolute; inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(20, 16, 11, .55) 0%, rgba(20, 16, 11, .28) 45%, rgba(20, 16, 11, .72) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 132px; padding-bottom: 112px; }
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: .32em;
    font-size: 12px;
    font-weight: 600;
    opacity: .9;
    margin: 0 0 22px;
}
.hero-title {
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 4.6rem);
    line-height: 1.05;
    font-weight: 500;
    margin: 0 0 22px;
    max-width: 820px;
}
.hero-caption { font-size: 18px; line-height: 1.7; opacity: .9; max-width: 600px; margin: 0 0 34px; }
.hero-content .btn-accent { background: #fff; color: var(--text); }
.hero-content .btn-accent:hover { background: var(--accent); color: #fff; }

/* Hero entrance animation.
   1) Eyebrow & caption dissolve in first (dither / quantized fade).
   2) Then title & button slide in from the right — gentle and slow. */
@keyframes hero-slide-in {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-dither-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hero-slide.is-active .hero-eyebrow { animation: hero-dither-in 1.6s steps(16, end) both; }
.hero-slide.is-active .hero-caption { animation: hero-dither-in 1.9s steps(18, end) .2s both; }
.hero-slide.is-active .hero-title { animation: hero-slide-in 2.4s var(--ease) 2s both; }
.hero-slide.is-active .hero-content .btn { animation: hero-slide-in 2.4s var(--ease) 2.15s both; }

.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; z-index: 3; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: background .3s var(--ease), transform .3s var(--ease); }
.hero-dot:hover { background: rgba(255, 255, 255, .7); }
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

.hero-count {
    position: absolute;
    right: 24px;
    bottom: 22px;
    z-index: 3;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    letter-spacing: .16em;
    font-variant-numeric: tabular-nums;
}
.hero-count-sep { margin: 0 6px; color: rgba(255, 255, 255, .4); }

/* ============================= Statement / intro ============================= */
.statement { padding: 56px 0; text-align: center; }
.statement-title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.18;
    font-weight: 500;
    margin: 0 auto;
    max-width: 820px;
}
.statement-text { color: var(--text-muted); font-size: 18px; line-height: 1.8; max-width: 660px; margin: 22px auto 0; }

/* ============================= Shared section furniture ============================= */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 0 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.section-eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 12px;
    margin: 0 0 16px;
    font-weight: 600;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 16px; }
.section-lead { color: var(--text-muted); font-size: 17px; margin: 0; }
.section-cta { margin-top: 40px; }

/* ============================= About editorial ============================= */
.about-editorial { background: var(--bg); }
.editorial-grid { display: grid; gap: 44px; align-items: center; }
.editorial-copy .section-eyebrow { margin-bottom: 18px; }
.editorial-title { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; margin: 0 0 22px; }
.editorial-text { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 0 28px; }

.editorial-visual { position: relative; }
.heritage {
    position: relative;
    padding: 8px 0 8px 32px;
    border-left: 2px solid var(--accent);
}
.heritage-year { display: block; font-family: var(--font-serif); font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 500; color: var(--text); line-height: .95; }
.heritage-rule { display: block; width: 100%; max-width: 300px; height: 1px; background: var(--border); margin: 30px 0 22px; }
.heritage-label { display: block; color: var(--text-muted); font-size: 16px; letter-spacing: .02em; max-width: 300px; }

/* ============================= Ministries ============================= */
.ministries-list { display: flex; flex-direction: column; gap: 72px; }
.ministry-row { display: grid; gap: 0; color: var(--text); }

/* 干净的、不被裁剪的照片面板 */
.ministry-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius); }
.ministry-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ministry-row:hover .ministry-media img { transform: scale(1.03); }
.ministry-media-empty { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-alt), var(--border)); }
.ministry-media-watermark {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    color: #f4efe6;
    opacity: .7;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}
.ministry-media-watermark__col { writing-mode: vertical-lr; }

/* 高对比、半透明标签容器（叠压在照片上） */
.ministry-body {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.7);
    color: #000000;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius);
    margin: -64px 16px 0;
    z-index: 2;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.10),
        0 30px 60px -12px rgba(23, 42, 36, 0.28);
}
.ministry-index { display: block; font-size: 13px; letter-spacing: .18em; color: #000000; font-weight: 600; margin-bottom: 14px; }
.ministry-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; color: #000000; transition: color .3s var(--ease); }
.ministry-row:hover .ministry-title { color: var(--gold); }
.ministry-text { color: #000000; font-size: 16px; margin: 0 0 20px; }
.ministry-body .link-arrow { color: #000000; border-color: #000000; }
.ministry-body .link-arrow::after { color: #000000; }
.ministry-body .link-arrow:hover { color: var(--gold); border-color: var(--gold); }

/* ============================= Events ============================= */
.events-list { border-top: 1px solid var(--border); }
.event-row { border-bottom: 1px solid var(--border); color: var(--text); }
.event-row-link { display: flex; align-items: center; gap: 22px; padding: 30px 0; color: inherit; text-decoration: none; }
.event-row:hover .event-title { color: var(--accent); }
.event-row:hover .event-arrow { transform: translateX(5px); }
.event-date { flex: none; width: 74px; text-align: center; }
.event-day { display: block; font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; font-weight: 500; }
.event-month { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 6px; font-weight: 600; }
.event-body { flex: 1; min-width: 0; }
.event-title { font-size: 1.4rem; margin: 0 0 6px; transition: color .3s var(--ease); }
.event-location { font-size: 14px; color: var(--accent); margin: 0 0 8px; }
.event-text { color: var(--text-muted); font-size: 15px; margin: 0; }
.event-arrow { flex: none; color: var(--accent); font-size: 24px; transition: transform .3s var(--ease); }

/* Event countdown */
.event-countdown { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 2px 0 26px; }
.event-countdown-timer { display: flex; align-items: center; gap: 14px; }
.countdown-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 14px 12px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 1px 1px rgba(33, 29, 23, .05),
        0 8px 20px -6px rgba(33, 29, 23, .18),
        0 20px 40px -16px rgba(33, 29, 23, .22);
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    will-change: transform, box-shadow;
}
.countdown-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 2px rgba(33, 29, 23, .06),
        0 16px 30px -8px rgba(33, 29, 23, .22),
        0 30px 54px -18px rgba(33, 29, 23, .28);
}
.countdown-value {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.countdown-label {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 6px;
}
.event-countdown-cta { margin: 0; }
.event-countdown-ended { display: none; margin: 0; color: var(--accent); font-weight: 600; letter-spacing: .02em; }
.event-countdown.is-ended .event-countdown-timer,
.event-countdown.is-ended .event-countdown-cta { display: none; }
.event-countdown.is-ended .event-countdown-ended { display: block; animation: countdown-fade .5s var(--ease); }
@keyframes countdown-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 639px) {
    .event-countdown { gap: 12px; }
    .event-countdown-timer { gap: 6px; }
    .countdown-card { min-width: 60px; padding: 12px 8px 10px; }
}

/* ============================= Network / agencies ============================= */
.network-grid { display: grid; gap: 56px; grid-template-columns: 1fr; }
.network-panel { border-top: 2px solid var(--text); padding-top: 28px; }
.network-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.network-title { font-size: 1.35rem; margin: 0; }
.network-head .link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
    flex: none;
    transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.network-head .link-arrow::after { content: none; }
.network-head .link-arrow:hover {
    background: var(--accent);
    color: #fff;
    transform: translateX(2px);
}
.network-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.network-entry { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.network-entry-logo { width: 32px; height: 32px; object-fit: contain; flex: none; filter: grayscale(1); opacity: .8; }
.network-entry-name { font-size: 15px; color: var(--text); font-weight: 500; letter-spacing: .01em; }

/* ============================= Newsletter ============================= */
.newsletter-feature { display: grid; gap: 28px; }
.newsletter-feature-main { display: grid; gap: 20px; color: var(--text); }
.newsletter-feature-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-alt);
    box-shadow: 0 1px 2px rgba(33, 29, 23, .06), 0 24px 60px -18px rgba(23, 42, 36, .35);
    transition: all .4s ease-out;
    will-change: transform, box-shadow;
}
.newsletter-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease-out;
}
.newsletter-feature-media-glass {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, 0) 62%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
    pointer-events: none;
    opacity: .85;
    transition: opacity .4s ease-out;
}
.newsletter-feature-main:hover .newsletter-feature-media {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(33, 29, 23, .08), 0 36px 72px -20px rgba(23, 42, 36, .48);
}
.newsletter-feature-main:hover .newsletter-feature-media img { transform: scale(1.04); }
.newsletter-feature-main:hover .newsletter-feature-media-glass { opacity: 1; }
.newsletter-feature-body .newsletter-date { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.newsletter-feature-body .newsletter-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 16px; color: var(--text); }
.newsletter-archive { border-top: 1px solid var(--border); }
.newsletter-archive-item { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.newsletter-archive-item:hover .newsletter-title { color: var(--accent); }
.newsletter-archive-item .newsletter-date { flex: none; font-size: 13px; color: var(--text-muted); min-width: 96px; }
.newsletter-archive-item .newsletter-title { flex: 1; font-weight: 600; color: var(--text); transition: color .3s var(--ease); }

/* ============================= Giving ============================= */
.giving-band { background: var(--ink); color: var(--ink-text); padding: 72px 0; text-align: center; }
.giving-title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 auto 20px; max-width: 800px; }
.giving-text { color: var(--ink-text); font-size: 18px; max-width: 640px; margin: 0 auto 34px; }
.giving-band .btn-accent { background: #fff; color: var(--text); }
.giving-band .btn-accent:hover { background: var(--accent); color: #fff; }

/* ============================= Subscribe ============================= */
.subscribe-band { padding: 64px 0; border-top: 1px solid var(--border); }
.subscribe-band-inner { display: grid; gap: 32px; }
.subscribe-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 12px; }
.subscribe-text { color: var(--text-muted); font-size: 17px; margin: 0; }
.subscribe-form-wrap .alert { margin: 0 0 18px; }
.subscribe-form .form-row { display: flex; flex-direction: column; gap: 12px; }
.subscribe-form input[type=text], .subscribe-form input[type=email] {
    flex: 1;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 2px;
    font-size: 17px;
}
.subscribe-form input[type=text]:focus, .subscribe-form input[type=email]:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.consent input { margin-top: 3px; }

/* ============================= Forms ============================= */
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], textarea, select {
    width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 15px; color: var(--text); background: var(--surface);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
label { font-weight: 600; font-size: 14px; }
.form-row, .form-grid { display: grid; gap: 14px; }
.form-field-full { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ============================= Alerts ============================= */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 15px; }
.alert-success { background: #eef7ee; color: #1c6b2b; border: 1px solid #cde8cf; }
.alert-error { background: #fbeceb; color: #a42a20; border: 1px solid #f0cfcb; }

/* ============================= Page banner ============================= */
.page-banner { position: relative; background: var(--ink); color: #fff; padding: 76px 0 60px; overflow: hidden; }
.page-banner h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-banner-sub { margin: 12px 0 0; opacity: .8; font-size: 17px; }
.page-banner.has-bg { background-size: cover; background-position: center; }
.page-banner.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(28, 24, 19, .74); }
.page-banner.has-bg .container { position: relative; }

/* ============================= Prose / content ============================= */
.prose { font-size: 17px; }
.prose h2 { margin-top: 1.6em; }
.prose p { margin: 0 0 1.1em; }
.prose img { border-radius: var(--radius-sm); }
.page-feature { width: 100%; border-radius: var(--radius-sm); margin-bottom: 24px; }
.info-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; margin: 8px 0 20px; white-space: pre-line; }

/* Giving bank cards */
.giving-banks { display: grid; gap: 20px; margin: 8px 0 24px; }
.bank-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.bank-card__info { flex: 1 1 auto; min-width: 0; }
.bank-card__info h3 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 1.3rem; color: var(--text); }
.bank-card__info p { margin: 0 0 6px; font-size: 15px; color: var(--text-muted); }
.bank-card__info p span { font-weight: 600; color: var(--text); }
.bank-card__info p:last-child { margin-bottom: 0; }
.bank-card__instructions {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}
.bank-card__divider {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    padding-left: 24px;
    min-height: 130px;
}
.bank-card__qr {
    flex: 0 0 clamp(150px, 22vw, 190px);
    width: clamp(150px, 22vw, 190px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.bank-card__qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

@media (max-width: 767px) {
    .bank-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
    .bank-card__divider {
        writing-mode: horizontal-tb;
        border-left: 0;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 16px;
        min-height: 0;
        text-align: center;
    }
    .bank-card__qr {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }
}

/* ============================= Contact ============================= */
.contact-layout { display: grid; gap: 36px; grid-template-columns: 1fr; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--bg-alt); }
.map-wrap { margin-top: 40px; }
.map-embed { width: 100%; height: 360px; border: 0; border-radius: var(--radius-sm); }

/* ============================= Event detail ============================= */
.event-detail { max-width: 820px; }
.event-meta { display: grid; gap: 10px; grid-template-columns: 1fr; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 20px; margin: 8px 0 24px; }
.event-meta-item { font-size: 15px; }

/* Event gallery (photos + videos) */
.event-gallery-title { margin-top: 36px; }
.event-gallery {
    column-count: 1;
    column-gap: 1.25rem;
    margin: 16px 0 24px;
}
.event-gallery-item {
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.event-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}
.event-gallery-item:hover {
    box-shadow: 0 16px 36px -12px rgba(23, 42, 36, 0.38);
}
.event-gallery-item:hover img { transform: scale(1.025); }
.event-video { position: relative; aspect-ratio: 16 / 9; margin: 16px 0; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.event-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================= Lightbox ============================= */
.lightbox {
    position: fixed; inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .14); border: 0; color: #fff; font-size: 28px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .28); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ============================= Error pages ============================= */
.error-code { font-size: 5rem; color: var(--accent); margin: 0; }

/* ============================= Cards (inner listing pages) ============================= */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; color: var(--text); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.card-date { font-size: 13px; color: var(--text-muted); }
.card-title { font-size: 1.2rem; margin: 0; }
.card-text { color: var(--text-muted); margin: 0; flex: 1; }
.card-meta { font-size: 14px; color: var(--text-muted); margin: 0; }
.card-cta { font-weight: 600; font-size: 14px; color: var(--accent); }
.card-link { justify-content: center; }
.subsection-title { font-size: 1.5rem; margin: 48px 0 24px; }

/* ============================= Agencies (inner page) ============================= */
.agency-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.agency-grid-full { grid-template-columns: 1fr; }
.agency-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start; color: var(--text); }
.agency-card img { width: 56px; height: 56px; object-fit: contain; flex: none; border-radius: var(--radius-sm); }
.agency-name { font-size: 1.1rem; margin: 0 0 4px; }
.agency-cat { font-size: 13px; color: var(--accent); margin: 0 0 8px; }
.agency-desc { color: var(--text-muted); margin: 0 0 8px; font-size: 15px; }
.agency-link { font-size: 14px; font-weight: 600; }

/* ============================= Newsletter list (inner page) ============================= */
.newsletter-list { display: flex; flex-direction: column; gap: 12px; }
.newsletter-item { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); color: var(--text); transition: transform .2s, box-shadow .2s; }
.newsletter-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.newsletter-date { font-size: 13px; color: var(--text-muted); min-width: 84px; }
.newsletter-title { flex: 1; font-weight: 600; }
.newsletter-arrow { color: var(--accent); }

/* ============================= Legacy section helpers ============================= */
.intro-section .section-title, .intro-section .section-lead { text-align: center; }
.intro-section .section-lead { max-width: 620px; margin: 0 auto; }
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-aside { display: none; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; }
.about-year { display: block; font-family: var(--font-serif); font-size: 3rem; color: var(--accent); }
.giving-cta { background: var(--ink); color: #fff; }
.giving-cta .section-title, .giving-cta .section-lead { color: #fff; }
.subscribe-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); }

/* ============================= Footer ============================= */
.site-footer { background: var(--ink); color: var(--ink-text); padding: 72px 0 0; }
.site-footer a { color: var(--ink-text); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
.footer-brand-link { color: #fff; margin-bottom: 14px; }
.footer-brand-link .brand-mark { background: var(--accent); }
.footer-brand-link .brand-name { color: #fff; }
.footer-desc { color: #a89e8e; font-size: 15px; margin: 0 0 18px; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0 0 28px; }
.footer-links li, .footer-contact li { padding: 6px 0; font-size: 15px; }
.footer-contact { color: #a89e8e; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { font-size: 14px; padding: 7px 14px; border: 1px solid #4a443c; border-radius: var(--radius-sm); }
.social-links a:hover { border-color: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid #322d25; padding: 24px 0; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-bottom p { margin: 0; font-size: 14px; color: #948a7a; }
.footer-legal { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-size: 14px; }

/* ============================= WhatsApp ============================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 56px;
    height: 56px;
    padding: 0 14px;
    border-radius: 9999px;
    background-color: #79947D;
    color: #FFFFFF;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.12),
        0 10px 28px -8px rgba(23, 42, 36, 0.38);
    overflow: hidden;
    white-space: nowrap;
    transition:
        width .4s cubic-bezier(.25, 1, .5, 1),
        padding .4s cubic-bezier(.25, 1, .5, 1),
        box-shadow .4s cubic-bezier(.25, 1, .5, 1);
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    shape-rendering: geometricPrecision;
}
.whatsapp-label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: #ffffff !important;
    transition:
        opacity .4s cubic-bezier(.25, 1, .5, 1),
        max-width .4s cubic-bezier(.25, 1, .5, 1),
        margin-left .4s cubic-bezier(.25, 1, .5, 1);
}
.whatsapp-float:hover {
    width: 180px;
    padding: 0 22px;
    color: #ffffff;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.12),
        0 18px 44px -10px rgba(23, 42, 36, 0.48);
}
.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    max-width: 98px;
    margin-left: 10px;
}

.empty { color: var(--text-muted); text-align: center; padding: 48px 0; }

/* ============================= Scroll reveal ============================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================= Homepage visual enhancement ============================= */
/* Subtle decorative backgrounds layered behind section content. All patterns are
   static and low-opacity; content is always kept above via z-index. */

.statement,
.about-editorial,
.section--ministries,
.section--events,
.section--agencies,
.section--newsletter,
.giving-band,
.subscribe-band { position: relative; overflow: hidden; }

.statement > .container,
.about-editorial > .container,
.section--ministries > .container,
.section--events > .container,
.section--agencies > .container,
.section--newsletter > .container,
.giving-band > .container,
.subscribe-band > .container { position: relative; z-index: 1; }

/* Welcome / intro — warm ivory + organic flow lines (Pattern 01) */
.statement { background: var(--ivory); }
.statement::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image: var(--pattern-flow);
    background-size: cover;
    opacity: .04;
    pointer-events: none;
}

/* About MBC — warm cream, faint circular seal, heritage flow + gold rule */
.about-editorial {
    background:
        radial-gradient(circle at 88% 14%, transparent 0 118px, rgba(156, 122, 60, .10) 119px 120px, transparent 121px),
        radial-gradient(circle at 88% 14%, transparent 0 146px, rgba(156, 122, 60, .07) 147px 148px, transparent 149px),
        var(--cream);
}
.about-editorial::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image: var(--pattern-flow);
    background-size: cover;
    opacity: .04;
    pointer-events: none;
}
.about-editorial::after {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 150px; height: 3px;
    background: var(--accent);
    z-index: 1;
}

/* Ministries — warm neutral + fine dot corners (Pattern 03) */
.section--ministries {
    background-color: var(--warm);
    background-image: var(--pattern-dots-random);
    background-size: cover;
    background-position: center;
}
.section--ministries::before,
.section--ministries::after {
    content: "";
    position: absolute;
    width: 46%; height: 46%;
    background-image: radial-gradient(rgba(156, 122, 60, .16) 1.1px, transparent 1.8px);
    background-size: 22px 22px;
    opacity: .4;
    pointer-events: none;
    z-index: 0;
}
.section--ministries::before { top: 0; left: 0; }
.section--ministries::after { right: 0; bottom: 0; }

/* Events — contrasting warm background + oversized low-opacity year */
.section--events { background: #f2ead9; }
/* Decorative watercolor splatter layer (behind section text) */
.section-splatter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    z-index: 0;
    background-image: url('../../storage/uploads/splatter-mask.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    mix-blend-mode: normal;
    filter: hue-rotate(0deg);
    opacity: 0.5;
    pointer-events: none;
}
.section--events::after {
    content: "2026";
    position: absolute;
    right: -10px; bottom: -64px;
    font-family: var(--font-serif);
    font-size: clamp(10rem, 26vw, 22rem);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.04em;
    color: var(--text);
    opacity: .04;
    z-index: 0;
    pointer-events: none;
}

/* Members & agencies — geographic contour pattern, biased right/bottom (Pattern 04) */
.section--agencies { background: var(--bg-alt); }
.section--agencies::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image: var(--pattern-contour);
    background-size: cover;
    background-position: 80% 100%;
    opacity: .05;
    pointer-events: none;
}

/* Newsletter — warm paper + subtle editorial texture */
.section--newsletter { background: var(--paper); }
.section--newsletter::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(rgba(156, 122, 60, .07) 1px, transparent 1.6px),
        repeating-linear-gradient(180deg, rgba(156, 122, 60, .03) 0 1px, transparent 1px 32px);
    background-size: 26px 26px, auto;
    pointer-events: none;
}

/* Giving — full-width forest band + fellowship circles (Pattern 02) */
.giving-band { background: var(--forest); color: #fff; }
.giving-band::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image: var(--pattern-circles-light);
    background-size: cover;
    opacity: .08;
    pointer-events: none;
}
.giving-title { color: #fff; }
.giving-text { color: rgba(255, 255, 255, .92); }
.giving-band .btn-accent { background: #fff; color: var(--text); }
.giving-band .btn-accent:hover { background: var(--gold); color: #fff; }

/* Subscribe — clean ivory, one gold rule + faint background shape */
.subscribe-band { background: var(--surface); border-top: 0; }
.subscribe-band::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 160px; height: 2px;
    background: var(--accent);
    z-index: 1;
}
.subscribe-band::after {
    content: "";
    position: absolute;
    right: -90px; bottom: -130px;
    width: 340px; height: 340px;
    border: 1px solid rgba(156, 122, 60, .14);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Footer — deep forest green + large cropped MBC watermark */
.site-footer { position: relative; overflow: hidden; background: var(--forest); }
.site-footer::before {
    content: "MBC";
    position: absolute;
    right: -4%; bottom: -22%;
    font-family: var(--font-serif);
    font-size: clamp(14rem, 34vw, 30rem);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .05);
    pointer-events: none;
    z-index: 0;
}
.site-footer > .container,
.site-footer .footer-bottom { position: relative; z-index: 1; }
.site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, .12); }
.site-footer .social-links a { border-color: rgba(255, 255, 255, .16); }

/* Reduce decorative intensity on small screens */
@media (max-width: 639px) {
    .section--ministries::before, .section--ministries::after { width: 40%; height: 40%; opacity: .3; }
    .section--events::after { opacity: .03; }
    .about-editorial::after { width: 110px; }
    .giving-band::before { opacity: .05; }
    .site-footer::before { opacity: .03; }
}

/* ============================= Responsive ============================= */
@media (max-width: 639px) {
    .hero-content { padding-top: 108px; padding-bottom: 96px; }
}

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .agency-grid { grid-template-columns: repeat(2, 1fr); }
    .subscribe-form .form-row { flex-direction: row; align-items: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .event-meta { grid-template-columns: repeat(2, 1fr); }
    .event-gallery { column-count: 2; }
}

@media (min-width: 900px) {
    .main-nav { display: block; margin-left: auto; }
    .nav-toggle { display: none; }
    .mobile-nav { display: none !important; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1.4fr 1fr; }
    .about-aside { display: block; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
    .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
    .contact-layout { grid-template-columns: 1fr 1.4fr; }
    .event-meta { grid-template-columns: repeat(2, 1fr); }
    .event-gallery { column-count: 3; }

    /* Editorial layouts */
    .hero { min-height: 92vh; }
    .hero-content { padding-top: 150px; padding-bottom: 130px; }
    .section { padding: 72px 0; }
    .statement { padding: 72px 0; }
    .editorial-grid { grid-template-columns: 1.25fr .75fr; gap: 96px; }
    .ministry-row { grid-template-columns: 1.05fr .95fr; align-items: center; }
    .ministry-body { margin: 0 0 0 -72px; }
    .ministry-row--reverse .ministry-media { order: 2; }
    .ministry-row--reverse .ministry-body { order: 1; margin: 0 -72px 0 0; }
    .network-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .newsletter-feature { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 48px; }
    .subscribe-band-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
}

@media (min-width: 1100px) {
    .network-grid { grid-template-columns: 1.1fr .9fr; }
}

/* ============================= Focus visibility ============================= */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}