/* ═══════════════════════════════════════════════════
   CODARAF — Premium Institutional Design System v3.0
   Modern · Elegant · Alive · Globally Competitive
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #002147;
    --primary-rgb: 0, 33, 71;
    --primary-light: #003366;
    --primary-dark: #001229;
    --accent: #2E7D32;
    --accent-rgb: 46, 125, 50;
    --accent-light: #43A047;
    --accent-glow: rgba(46, 125, 50, 0.25);
    --bg-light: #F4F6F9;
    --bg-white: #FFFFFF;
    --bg-cream: #FAFBFD;
    --text-main: #1A1D23;
    --text-muted: #4A5568;
    --text-light: #718096;
    --border-subtle: rgba(0, 33, 71, 0.06);
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,33,71,0.04);
    --shadow-md: 0 8px 30px -8px rgba(0,33,71,0.1);
    --shadow-lg: 0 20px 50px -15px rgba(0,33,71,0.14);
    --shadow-hover: 0 25px 60px -12px rgba(0,33,71,0.2);
    --shadow-glow-accent: 0 8px 30px rgba(46,125,50,0.2);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --ease-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 400ms var(--ease-premium);
    --transition-fast: all 250ms var(--ease-premium);
    --container: 1240px;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'IBM Plex Serif', Georgia, serif;
    --section-pad: clamp(5rem, 10vw, 9rem);
}

/* ── Base Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-primary); background: var(--bg-white); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Typography System ── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--primary); }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -0.01em; }
p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section { padding: var(--section-pad) 0; position: relative; }

.section-alt {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-cream) 50%, var(--bg-white) 100%);
    position: relative;
}
.section-alt::before {
    content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

/* ── Premium Navigation ── */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 33, 71, 0.04);
    padding: 1rem 0;
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: var(--transition);
}
nav.scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0,33,71,0.06);
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 46px; transition: var(--transition); }
nav.scrolled .logo img { height: 38px; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    font-weight: 500; font-size: 0.85rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    position: relative; padding: 0.5rem 0; transition: var(--transition-fast);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: var(--transition-fast); transform: translateX(-50%); border-radius: 2px;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── Hamburger Toggle ── */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; /* Increased for better touch target */
    padding: 10px; /* Internal hit area */
    position: relative; z-index: 1001;
    flex-direction: column; justify-content: space-around;
    align-items: center;
}
.hamburger span {
    display: block; width: 24px; height: 2.5px; background: var(--primary);
    border-radius: 2px; transition: all 300ms var(--ease-premium);
    transform-origin: center;
    pointer-events: none; /* Ensure clicks hit the button */
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
.nav-links.mobile-open {
    display: flex !important; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #FFFFFF;
    z-index: 998; justify-content: center; align-items: center;
    gap: 0; padding: 5rem 2rem 2rem;
    animation: fadeInNav 300ms var(--ease-premium);
    list-style: none;
}
.nav-links.mobile-open li {
    width: 100%; text-align: center; border-bottom: 1px solid var(--border-subtle);
}
.nav-links.mobile-open li:first-child {
    border-top: 1px solid var(--border-subtle);
}
.nav-links.mobile-open a {
    font-size: 1.1rem; color: var(--primary); font-weight: 600;
    display: block; padding: 1.2rem 0;
    letter-spacing: 0.06em;
}
.nav-links.mobile-open a:hover {
    color: var(--accent);
}
@keyframes fadeInNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero — Cinematic ── */
.hero { height: 100vh; min-height: 750px; position: relative; overflow: hidden; background: var(--primary-dark); }
.hero-slider { height: 100%; width: 100%; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    transform: scale(1);
}
.hero-slide.active { opacity: 1; z-index: 1; transform: scale(1.04); }
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg,
        rgba(0,18,41,0.96) 0%,
        rgba(0,33,71,0.82) 35%,
        rgba(0,33,71,0.45) 65%,
        rgba(0,33,71,0.25) 100%);
    z-index: 2;
}
.hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03; mix-blend-mode: overlay; z-index: 3;
}
.hero-content { position: relative; z-index: 10; max-width: 800px; }
.hero-slide .hero-content { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-premium); }
.hero-slide.active .hero-content { opacity: 1; transform: translateY(0); transition-delay: 500ms; }

.hero-tag {
    display: inline-block; padding: 0.5rem 1.25rem;
    background: rgba(46, 125, 50, 0.15); border: 1px solid rgba(46, 125, 50, 0.3);
    backdrop-filter: blur(10px); color: var(--accent-light);
    border-radius: 100px; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 2rem;
}
.hero h1 { color: #FFFFFF; margin-bottom: 1.5rem; text-shadow: 0 2px 40px rgba(0,0,0,0.15); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.2rem; margin-bottom: 2.5rem; max-width: 580px; line-height: 1.8; }
.hero-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Hero decorative elements */
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to top, var(--bg-white), transparent); z-index: 5;
}

/* ── Premium Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2.2rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; font-family: var(--font-primary);
    transition: var(--transition); cursor: pointer; border: none;
    position: relative; overflow: hidden; letter-spacing: 0.01em;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%); transition: transform 500ms ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #388E3C 100%);
    color: #FFFFFF; box-shadow: 0 4px 15px rgba(46,125,50,0.3);
}
.btn-primary:hover {
    transform: translateY(-3px); box-shadow: 0 8px 30px rgba(46,125,50,0.4);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}
.btn-outline {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
    color: #FFFFFF; backdrop-filter: blur(5px);
}
.btn-outline:hover { background: #FFFFFF; color: var(--primary); transform: translateY(-3px); border-color: transparent; }

/* ── Donate Button System ── */
.btn-donate {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #E53935 0%, #C62828 50%, #B71C1C 100%);
    color: #FFFFFF; font-weight: 700; border: none; cursor: pointer;
    text-decoration: none; position: relative; overflow: hidden;
    transition: var(--transition); box-shadow: 0 4px 15px rgba(229,57,53,0.35);
}
.btn-donate::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 600ms ease;
}
.btn-donate:hover::before { left: 100%; }
.btn-donate:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 30px rgba(229,57,53,0.5); }
.btn-donate svg { transition: transform 300ms ease; }
.btn-donate:hover svg { transform: scale(1.2); animation: heartbeat 0.6s ease-in-out; }

@keyframes heartbeat {
    0% { transform: scale(1.2); } 25% { transform: scale(1.4); }
    50% { transform: scale(1.2); } 75% { transform: scale(1.35); } 100% { transform: scale(1.2); }
}
.nav-donate { padding: 0.65rem 1.4rem; font-size: 0.85rem; border-radius: var(--radius-sm); animation: subtlePulse 3s ease-in-out infinite; }
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(229,57,53,0.3); }
    50% { box-shadow: 0 4px 25px rgba(229,57,53,0.55); }
}
.hero-donate { padding: 0.9rem 2rem; font-size: 0.95rem; border-radius: var(--radius-sm); }

/* ── Stats Bar ── */
.stats-bar-container { margin-top: -4.5rem; padding: 0; position: relative; z-index: 20; }
.stats-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3.5rem 3rem; border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px -15px rgba(0,33,71,0.35);
    position: relative; overflow: hidden;
}
.stats-bar::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; color: #FFF; position: relative; }
.stat-item { position: relative; padding: 1rem 0; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
}
.stat-item h3 { color: var(--accent-light); font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 0.5rem; font-family: var(--font-primary); font-weight: 700; }
.stat-item p { color: rgba(255,255,255,0.55); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }

/* ── Premium Card System ── */
.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.premium-card {
    background: var(--bg-white); padding: 2.5rem;
    border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm); transition: var(--transition);
    position: relative; display: flex; flex-direction: column; gap: 1.25rem;
    overflow: hidden;
}
.premium-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    opacity: 0; transition: var(--transition); transform: scaleX(0);
}
.premium-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-hover);
    border-color: rgba(46,125,50,0.15);
}
.premium-card:hover::before { opacity: 1; transform: scaleX(1); }

.icon-halo {
    width: 56px; height: 56px; background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(46,125,50,0.04));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: var(--accent); transition: var(--transition);
}
.premium-card:hover .icon-halo {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #FFF; transform: rotate(8deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(46,125,50,0.3);
}

/* ── Split Layout ── */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.visual-anchor {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.visual-anchor::before {
    content: ''; position: absolute; inset: -2px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--primary));
    border-radius: inherit; z-index: -1; opacity: 0; transition: var(--transition);
}
.visual-anchor:hover::before { opacity: 1; inset: -3px; }
.visual-anchor img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-premium); }
.visual-anchor:hover img { transform: scale(1.05); }

/* ── Glass Panel ── */
.glass-panel {
    background: rgba(255,255,255,0.6); backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.5); padding: 3.5rem;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.glass-panel::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0.4; pointer-events: none;
}

/* ── Governance Profiles ── */
.profile-card { text-align: center; padding: 3rem; }
.profile-image {
    width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(255,255,255,0.8), 0 0 0 6px var(--border-subtle);
    transition: var(--transition); overflow: hidden;
}
.profile-card:hover .profile-image { transform: translateY(-5px) scale(1.03); box-shadow: var(--shadow-hover), 0 0 0 4px rgba(255,255,255,0.9), 0 0 0 8px var(--accent-glow); }

/* ── Donation CTA Banner ── */
.donate-cta-section {
    position: relative; padding: 6rem 0;
    background: linear-gradient(135deg, #002147 0%, #001a38 40%, #001229 100%);
    overflow: hidden;
}
.donate-cta-glow {
    position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(229,57,53,0.12) 0%, transparent 70%);
    top: 50%; right: 10%; transform: translateY(-50%); border-radius: 50%;
    animation: glowFloat 6s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes glowFloat {
    0% { transform: translateY(-50%) scale(1); opacity: 0.7; }
    100% { transform: translateY(-55%) scale(1.2); opacity: 1; }
}
.donate-cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03; mix-blend-mode: overlay; pointer-events: none;
}
.donate-cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 4rem;
    position: relative; z-index: 2;
    background: rgba(255,255,255,0.03); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 4rem;
}
.donate-cta-content { flex: 1; }
.donate-cta-action { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex-shrink: 0; }
.btn-donate-lg { padding: 1.25rem 3rem; font-size: 1.1rem; border-radius: var(--radius-md); animation: subtlePulse 3s ease-in-out infinite; }
.donate-cta-secure { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.35) !important; font-size: 0.8rem !important; font-weight: 500; }
.donate-cta-secure svg { opacity: 0.5; }

/* ── Footer ── */
footer {
    background: linear-gradient(180deg, #001229 0%, #000d1f 100%);
    color: #FFFFFF; padding: 7rem 0 3rem; position: relative;
}
footer::before {
    content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(67,160,71,0.3), transparent);
}
.footer-logo-badge {
    background: white; padding: 0.8rem; border-radius: var(--radius-sm);
    display: inline-block; margin-bottom: 1.5rem; transition: var(--transition);
}
.footer-logo-badge:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 3rem; margin-bottom: 2rem;
}
.footer-links a { transition: var(--transition-fast); }
.footer-links a:hover { color: var(--accent-light) !important; transform: translateX(3px); display: inline-block; }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 2rem; opacity: 0.25; font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
}

/* ── Governance Grid ── */
.governance-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
}

/* ── Scroll Reveal Animations ── */
[data-reveal] { opacity: 0; transform: translateY(35px); transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-35px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(35px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal="scale"].revealed { transform: scale(1); }

/* ── Stagger Children ── */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 120ms; }
.stagger-children > *:nth-child(3) { transition-delay: 240ms; }
.stagger-children > *:nth-child(4) { transition-delay: 360ms; }

/* ── Section Decorators ── */
.section-decorator {
    position: absolute; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0.3; pointer-events: none; filter: blur(60px);
}

/* ── Community Support Gallery ── */
.community-gallery {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.gallery-featured {
    display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem;
    min-height: 420px;
}
.gallery-secondary {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    min-height: 300px;
}
.gallery-item {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    cursor: pointer; box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s var(--ease-premium), filter 0.6s ease;
}
.gallery-item:hover {
    box-shadow: var(--shadow-hover); transform: translateY(-4px);
}
.gallery-item:hover img {
    transform: scale(1.08); filter: brightness(0.7);
}
.gallery-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end;
    background: linear-gradient(to top,
        rgba(0,18,41,0.92) 0%,
        rgba(0,18,41,0.4) 40%,
        transparent 70%);
    opacity: 0; transition: opacity 0.5s var(--ease-premium);
    padding: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
    transform: translateY(15px);
    transition: transform 0.5s var(--ease-premium);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-label {
    display: inline-block; padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #FFFFFF; border-radius: 100px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.65rem;
}
.gallery-caption p {
    color: rgba(255,255,255,0.8); font-size: 0.88rem; line-height: 1.5; margin: 0;
}
.gallery-item-large { min-height: 420px; }
.gallery-item-tall { min-height: 420px; }

/* ── Community Impact Bar ── */
.community-impact-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    margin-top: 3.5rem; padding: 3rem 2.5rem;
    background: linear-gradient(135deg, rgba(0,33,71,0.03) 0%, rgba(46,125,50,0.04) 100%);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    position: relative;
}
.community-impact-bar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.impact-stat {
    text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    position: relative;
}
.impact-stat:not(:last-child)::after {
    content: ''; position: absolute; right: -1rem; top: 15%; height: 70%; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle), transparent);
}
.impact-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(46,125,50,0.05));
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); transition: var(--transition);
}
.impact-stat:hover .impact-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #FFF; transform: rotate(5deg) scale(1.08);
    box-shadow: 0 6px 20px rgba(46,125,50,0.3);
}
.impact-stat h4 {
    font-size: 1rem; color: var(--primary); font-family: var(--font-serif);
}
.impact-stat p {
    font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .stat-item:not(:last-child)::after { display: none; }
    .donate-cta-inner { flex-direction: column; text-align: center; gap: 2.5rem; padding: 3rem; }
    .donate-cta-content p { margin-left: auto; margin-right: auto; }
    .gallery-featured { grid-template-columns: 1fr; min-height: auto; }
    .gallery-secondary { grid-template-columns: 1fr 1fr; }
    .gallery-item-large, .gallery-item-tall { min-height: 320px; }
    .community-impact-bar { grid-template-columns: 1fr; gap: 1.5rem; }
    .impact-stat:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
    :root { --section-pad: 4rem; }
    .nav-links { display: none; }
    .nav-actions .btn-primary { display: none; }
    .nav-actions { gap: 0.5rem; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.25rem; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .hero-donate { margin-left: 0; width: auto; }
    .premium-grid { grid-template-columns: 1fr; }
    .gallery-featured, .gallery-secondary { grid-template-columns: 1fr; }
    .gallery-item-large, .gallery-item-tall { min-height: 260px; }
    .gallery-overlay { opacity: 1; }
    .gallery-caption { transform: translateY(0); }
    .community-impact-bar { padding: 2rem 1.5rem; }
    .donate-cta-inner { padding: 2rem; }
    .stats-bar { padding: 2.5rem 1.5rem; }
    .glass-panel { padding: 2rem; }
    h1 { font-size: 2.4rem; }
}
