:root {
    --pine: #16423c;
    --moss: #2f6f4f;
    --clay: #d36f3a;
    --mist: #f3f7f5;
    --ink: #1f2a28;
    --sun: #f4bf4f;
}

* { box-sizing: border-box; }

body.public-site {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f5f7f6 0%, #fbf9f5 100%);
    font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", sans-serif;
}

.site-shell {
    min-height: 100vh;
}

.public-nav {
    background: rgba(22, 66, 60, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    flex-shrink: 0;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.brand-text {
    line-height: 1.2;
}

.public-brand small {
    display: block;
    color: #bdd9c8;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.public-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.public-nav .nav-link:hover,
.public-nav .nav-link.active {
    color: #fff;
}

/* More dropdown */
.public-more-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.75);
}

.public-dropdown {
    background: rgba(18, 54, 48, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    min-width: 210px;
    padding: 6px 4px;
    margin-top: 6px;
}

.public-dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 8px 14px;
    transition: background 0.15s, color 0.15s;
}

.public-dropdown-item:hover,
.public-dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.public-dropdown-item.active {
    background: rgba(244, 191, 79, 0.18);
    color: var(--sun);
}

.public-dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 4px 10px;
}

.btn-portal {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 700;
}

.btn-portal:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-wrap {
    position: relative;
    background: radial-gradient(circle at 80% 10%, rgba(244, 191, 79, 0.28), transparent 34%),
        linear-gradient(130deg, #133a35, #205346 52%, #3d7f5b 100%);
    color: #fff;
    overflow: hidden;
}

.hero-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/globe-watermark.svg') no-repeat right -110px top -120px / 430px;
    opacity: 0.09;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    color: #d5efde;
    font-size: 0.82rem;
}

.hero-title {
    font-size: clamp(1.9rem, 4.7vw, 3.6rem);
    line-height: 1.1;
    font-weight: 800;
    margin-top: 1rem;
}

.hero-sub {
    color: #d6eadf;
    font-size: 1.05rem;
    max-width: 760px;
}

.section-pad {
    padding: 4.2rem 0;
}

.heading-kicker {
    font-size: 0.78rem;
    color: var(--moss);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.heading-main {
    font-weight: 800;
    color: #173a36;
}

.scope-list li,
.bullet-list li {
    margin-bottom: 0.5rem;
}

.surface-card {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 35, 30, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.stat-pill {
    border-radius: 14px;
    background: #eff6f2;
    padding: 1rem;
}

.stat-pill .v {
    color: var(--pine);
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
}

.stat-pill .k {
    color: #4f635f;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
}

.program-row {
    border-bottom: 1px dashed #d6e2dd;
}

.program-row:last-child {
    border-bottom: 0;
}

.banner-note {
    background: linear-gradient(110deg, #fdf2de, #fce9cf);
    border: 1px solid #f5d9ae;
    border-radius: 14px;
    padding: 1rem 1.2rem;
}

.public-footer {
    margin-top: 3rem;
    background: #123530;
    color: #b8d5c6;
    padding: 2rem 0;
    font-size: 0.92rem;
}

.public-footer a { color: #d5ebde; }

.floating-donate {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #d2471b, #ee7b2a);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(176, 70, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.floating-donate:hover {
    color: #fff;
    transform: translateY(-1px);
}

.page-hero {
    background: linear-gradient(125deg, #1a463f, #285e4e);
    color: #fff;
    padding: 3rem 0;
}

.rich-block p {
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6edea;
    box-shadow: 0 8px 22px rgba(20, 35, 30, 0.07);
}

.gallery-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.gallery-cap {
    padding: 0.8rem 0.9rem;
    font-weight: 600;
    font-size: 0.93rem;
    color: #1d3832;
}

.gallery-note {
    font-size: 0.88rem;
    color: #4a645f;
}

.donation-year-block {
    border: 1px solid #e3ece7;
    border-radius: 12px;
    overflow: hidden;
    background: #fcfefd;
}

.donation-year-head {
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, #eef5f1, #f6faf8);
    border-bottom: 1px solid #e3ece7;
    color: #1b3e37;
    font-size: 0.95rem;
}

.donation-wall-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4a625d;
    background: #f9fcfa;
}

.donation-wall-table td,
.donation-wall-table th {
    padding: 0.6rem 0.9rem;
    border-color: #edf3f0;
}

.donation-thanks-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    background: rgba(10, 25, 22, 0.48);
    backdrop-filter: blur(1.5px);
}

.donation-thanks-overlay.is-visible {
    display: grid;
}

.donation-thanks-card {
    position: relative;
    z-index: 2;
    width: min(92vw, 440px);
    border-radius: 18px;
    padding: 1.35rem 1.4rem;
    text-align: center;
    background: linear-gradient(160deg, #fff7e9, #ffffff);
    border: 1px solid #f6d5a3;
    box-shadow: 0 20px 60px rgba(20, 35, 30, 0.28);
    animation: donationCardPop 280ms ease-out;
}

.donation-thanks-title {
    font-size: clamp(1.3rem, 3.8vw, 2rem);
    font-weight: 800;
    color: #21463e;
}

.donation-thanks-subtitle {
    margin-top: 0.35rem;
    color: #46635d;
    font-weight: 600;
}

.cracker-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cracker-burst {
    --hue: 120deg;
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: hsl(var(--hue) 90% 56%);
    box-shadow:
        0 0 0 2px hsl(var(--hue) 90% 56% / 0.15),
        0 0 22px hsl(var(--hue) 90% 56% / 0.8),
        -22px -5px 0 -2px hsl(calc(var(--hue) + 40deg) 90% 60%),
        20px 4px 0 -2px hsl(calc(var(--hue) + 90deg) 90% 58%),
        3px -22px 0 -2px hsl(calc(var(--hue) + 180deg) 90% 62%),
        -3px 24px 0 -2px hsl(calc(var(--hue) + 250deg) 90% 56%);
    opacity: 0;
    animation-name: crackerBurst;
    animation-timing-function: ease-out;
    animation-iteration-count: 3;
}

@keyframes crackerBurst {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }
    25% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes donationCardPop {
    0% {
        transform: translateY(12px) scale(0.92);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .section-pad {
        padding: 3rem 0;
    }
    .floating-donate {
        right: 12px;
        bottom: 12px;
        padding: 0.62rem 0.9rem;
        font-size: 0.9rem;
    }
    .donation-wall-table {
        min-width: 460px;
    }
    .donation-thanks-card {
        width: min(94vw, 360px);
        padding: 1.1rem 1rem;
    }
}
