:root {
    --bg: #F5F7F8;
    --accent: #F4CE14;
    --green: #495E57;
    --char: #45474B;
    /* Added deeper tones (still palette-family) */
    --charDeep: #2F3336; /* footer base */
    --charSoft: rgba(245,247,248,.82);
    --borderLight: rgba(255,255,255,.12);
    --text: #111;
    --muted: #5b6066;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(0,0,0,.10);
    --shadow2: 0 10px 30px rgba(0,0,0,.08);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   Header (DARK – UPDATED)
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Dark solid header (no glass) */
    background: var(--char);
    border-bottom: 1px solid var(--borderLight);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 18px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: #F5F7F8;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(245,247,248,.08);
    padding: 6px;
}

.brand-title {
    font-weight: 800;
    font-size: 14.5px;
    color: #F5F7F8;
}

.brand-sub {
    font-size: 12px;
    color: rgba(245,247,248,.70);
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 16px;
}

    .nav a {
        text-decoration: none;
        color: rgba(245,247,248,.85);
        font-weight: 600;
        font-size: 13px;
        padding: 8px 10px;
        border-radius: 10px;
    }

        .nav a:hover {
            background: rgba(244,206,20,.18);
            color: #F5F7F8;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 10px 22px rgba(244,206,20,.25);
}

    .btn-primary:hover {
        filter: brightness(.98);
    }

.btn-ghost {
    background: transparent;
    border-color: rgba(245,247,248,.26);
    color: #F5F7F8;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.08);
    }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(245,247,248,.26);
    background: rgba(245,247,248,.06);
}

    .nav-toggle span {
        display: block;
        height: 2px;
        width: 18px;
        margin: 4px auto;
        background: #F5F7F8;
        border-radius: 2px;
    }

/* Mobile nav on dark header */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--borderLight);
    padding: 10px 20px 16px;
    background: var(--char);
}

    .mobile-nav a {
        display: block;
        text-decoration: none;
        color: #F5F7F8;
        font-weight: 700;
        padding: 10px 8px;
        border-radius: 12px;
    }

        .mobile-nav a:hover {
            background: rgba(244,206,20,.18);
        }

.mobile-cta {
    display: flex;
    gap: 10px;
    padding-top: 10px;
}

/* =========================
   Hero (single image)
   ========================= */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-media {
    min-height: 78vh;
    background: linear-gradient(90deg, rgba(69,71,75,.78) 0%, rgba(69,71,75,.35) 45%, rgba(69,71,75,.10) 100%), url("/img/hero.jpg") center/cover no-repeat;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-card {
    width: min(640px, 100%);
    background: rgba(245,247,248,.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(69,71,75,.14);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.pill {
    display: inline-flex;
    background: rgba(244,206,20,.22);
    color: var(--char);
    border: 1px solid rgba(244,206,20,.35);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.hero-card h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.1;
}

.hero-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-metrics {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    border-top: 1px dashed rgba(69,71,75,.18);
    padding-top: 14px;
}

.metric {
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: var(--shadow2);
}

.metric-num {
    font-weight: 900;
    color: var(--green);
    font-size: 18px;
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

/* =========================
   Sections
   ========================= */
.section {
    padding: 64px 0;
}

    .section.alt {
        background: #fff;
        border-top: 1px solid rgba(69,71,75,.08);
        border-bottom: 1px solid rgba(69,71,75,.08);
    }

.section-head {
    margin-bottom: 18px;
}

h2 {
    font-size: 34px;
    margin: 0 0 8px;
}

.section p {
    color: var(--muted);
    font-weight: 500;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 22px;
}

.cards {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.card {
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow2);
}

    .card h3 {
        margin: 10px 0 6px;
    }

    .card p {
        margin: 0;
    }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(73,94,87,.10);
    border: 1px solid rgba(73,94,87,.18);
    color: var(--green);
    font-weight: 800;
    font-size: 12px;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.mini {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.link {
    color: var(--green);
    font-weight: 900;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline;
    }

.card.highlight {
    border-color: rgba(244,206,20,.55);
    background: linear-gradient(180deg, rgba(244,206,20,.18), #fff 55%);
}

.panel {
    background: linear-gradient(180deg, rgba(73,94,87,.08), rgba(245,247,248,.2));
    border: 1px solid rgba(73,94,87,.18);
    border-radius: 18px;
    padding: 16px;
}

.list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--char);
}

    .list li {
        margin: 8px 0;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.stat {
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow2);
}

.stat-num {
    font-weight: 900;
    font-size: 22px;
    color: var(--green);
}

.stat-label {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.contact-box {
    margin-top: 12px;
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 16px;
    padding: 12px;
}

/* =========================
   Footer (DARKER – UPDATED)
   ========================= */
.site-footer {
    background: var(--charDeep); /* deeper than header */
    color: rgba(245,247,248,.92);
    padding: 48px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr .9fr;
    gap: 22px;
}

.footer-title {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 8px;
    color: #F5F7F8;
}

.footer-head {
    font-weight: 900;
    margin-bottom: 8px;
    color: #F5F7F8;
}

.footer-text {
    color: rgba(245,247,248,.70);
    margin: 0 0 8px;
}

.footer-link {
    color: rgba(244,206,20,.95);
    text-decoration: none;
    display: block;
    margin: 6px 0;
    font-weight: 700;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge {
    border: 1px solid rgba(244,206,20,.35);
    color: rgba(245,247,248,.92);
    background: rgba(244,206,20,.12);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.footer-bottom {
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(245,247,248,.60);
    font-weight: 600;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.nav-open .mobile-nav {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .cards-3 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 76vh;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 18px;
    }
}
/* ===== Page Hero (for inner pages) ===== */
.page-hero {
    background: linear-gradient(180deg, rgba(244,206,20,.18), rgba(245,247,248,.0));
    padding: 44px 0 18px;
}

.page-hero-inner {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 18px;
    align-items: start;
}

.page-title {
    margin: 10px 0 6px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.1;
}

.page-sub {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
    max-width: 70ch;
}

.page-hero-card {
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow2);
}

.phc-title {
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--char);
}

.phc-line {
    color: var(--muted);
    margin: 6px 0;
    font-weight: 600;
}

.divider {
    height: 1px;
    background: rgba(69,71,75,.10);
    margin: 14px 0;
}

.muted {
    color: var(--muted);
}

@media (max-width: 980px) {
    .page-hero-inner {
        grid-template-columns: 1fr;
    }
}
/* ===== Achievements page extras ===== */
.ach-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 14px;
}

.ach-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(69,71,75,.10);
    background: rgba(245,247,248,.65);
    font-weight: 800;
    font-size: 12px;
    color: var(--char);
}

    .ach-chip .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        display: inline-block;
    }

.ach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ach-card {
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow2);
}

.ach-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: rgba(244,206,20,.22);
    border: 1px solid rgba(244,206,20,.35);
    color: var(--char);
    margin-bottom: 10px;
}

.cta-bar {
    margin-top: 18px;
    background: linear-gradient(90deg, rgba(73,94,87,.10), rgba(244,206,20,.18));
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-title {
    font-weight: 900;
    color: var(--char);
}

.cta-sub {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 980px) {
    .ach-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Support page extras ===== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.support-card {
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow2);
}

.support-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.support-amt {
    font-weight: 900;
    color: var(--green);
    font-size: 18px;
}

    .support-amt span {
        font-size: 12px;
        font-weight: 800;
        color: var(--muted);
        margin-left: 4px;
    }

.support-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--char);
}

    .support-list li {
        margin: 8px 0;
    }

.support-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.support-form label {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: var(--char);
    margin: 10px 0;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid rgba(69,71,75,.14);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    outline: none;
    background: rgba(245,247,248,.75);
}

    .support-form input:focus,
    .support-form select:focus,
    .support-form textarea:focus {
        border-color: rgba(244,206,20,.70);
        box-shadow: 0 0 0 4px rgba(244,206,20,.18);
        background: #fff;
    }

.form-note {
    margin-top: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

.w-100 {
    width: 100%;
}

.faq {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow2);
}

    .faq-item summary {
        cursor: pointer;
        font-weight: 900;
        color: var(--char);
    }

.faq-body {
    margin-top: 10px;
    color: var(--muted);
    font-weight: 600;
}

@media (max-width: 980px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Contact page extras ===== */
.contact-form label {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: var(--char);
    margin: 10px 0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid rgba(69,71,75,.14);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    outline: none;
    background: rgba(245,247,248,.75);
}

    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
        border-color: rgba(244,206,20,.70);
        box-shadow: 0 0 0 4px rgba(244,206,20,.18);
        background: #fff;
    }

.alert-success {
    background: rgba(73,94,87,.10);
    border: 1px solid rgba(73,94,87,.22);
    color: var(--green);
    font-weight: 800;
    border-radius: 14px;
    padding: 10px 12px;
    margin: 10px 0 12px;
}

.map-box {
    margin-top: 16px;
    border-radius: 18px;
    border: 1px solid rgba(69,71,75,.10);
    background: #fff;
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.map-inner {
    padding: 16px;
    min-height: 160px;
    background: linear-gradient(135deg, rgba(244,206,20,.14), rgba(73,94,87,.08));
}

.map-title {
    font-weight: 900;
    color: var(--char);
}

.map-sub {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}
/* ===== Legal pages typography ===== */
.legal h2 {
    font-size: 22px;
    margin: 22px 0 8px;
}

.legal p {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 600;
}

.legal .list {
    margin: 8px 0 16px;
}
/* ===== Powered by Foxcog ===== */
.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(245,247,248,.65);
}

    .powered-by span {
        font-size: 12px;
    }

    .powered-by img {
        height: 22px;
        width: auto;
        opacity: .92;
        transition: opacity .2s ease, transform .2s ease;
    }

    .powered-by a:hover img {
        opacity: 1;
        transform: translateY(-1px);
    }
/* ===== Donate page extras ===== */
.donate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 2px;
}

.donate-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(245,247,248,.08);
    color: rgba(245,247,248,.88);
    font-weight: 900;
    font-size: 12px;
}

    .donate-chip.highlight {
        border-color: rgba(244,206,20,.55);
        background: rgba(244,206,20,.14);
        color: #F5F7F8;
    }

.donate-impact {
    display: grid;
    gap: 14px;
}

.bank-card {
    margin-top: 12px;
}

.bank-grid {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.bank-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(69,71,75,.10);
    background: rgba(245,247,248,.70);
}

    .bank-row .k {
        font-weight: 900;
        color: var(--char);
        font-size: 12px;
    }

    .bank-row .v {
        font-weight: 700;
        color: var(--muted);
    }

.donate-form label {
    display: block;
    font-weight: 800;
    font-size: 12px;
    color: var(--char);
    margin: 10px 0;
}

.donate-form input,
.donate-form select,
.donate-form textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid rgba(69,71,75,.14);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    outline: none;
    background: rgba(245,247,248,.75);
}

    .donate-form input:focus,
    .donate-form select:focus,
    .donate-form textarea:focus {
        border-color: rgba(244,206,20,.70);
        box-shadow: 0 0 0 4px rgba(244,206,20,.18);
        background: #fff;
    }

@media (max-width: 980px) {
    .bank-row {
        grid-template-columns: 1fr;
    }
}
/* ===== Footer bottom spacing fix ===== */
.site-footer .footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 20px 0; /* ?? space from left & right */
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(245,247,248,.70);
    font-weight: 600;
}
/* ===== Institution featured image (square-friendly) ===== */
.institution-feature {
    padding-top: 32px;
}

.institution-feature-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 22px;
    background: #fff;
    border: 1px solid rgba(69,71,75,.10);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.institution-feature-media {
    background: #000;
}

    .institution-feature-media img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* perfect for square image */
        display: block;
    }

.institution-feature-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .institution-feature-content h2 {
        margin: 10px 0 6px;
    }

.institution-meta {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-weight: 700;
    color: var(--muted);
    font-size: 13px;
}

.institution-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 980px) {
    .institution-feature-card {
        grid-template-columns: 1fr;
    }

    .institution-feature-media img {
        height: auto;
    }
}
