:root {
    --background: #f5f8fc;
    --card: #ffffff;
    --text: #0a1a3a;
    --muted: #4a5a72;
    --primary: #0072B5;
    --primary-dark: #005a91;
    --primary-light: #418FDE;
    --green: #76B82A;
    --green-dark: #5e9422;
    --accent-red: #E31E24;
    --accent: #e8f2fb;
    --border: #d4e3f0;
    --shadow: 0 20px 45px rgba(0, 82, 148, 0.12);
    --footer-bg: #001A4D;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.site-header img.brand-logo {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    min-width: 32px;
    border-radius: 50%;
    object-fit: contain;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 12px rgba(0, 26, 77, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.4rem 0;
    gap: 1.5rem;
    min-height: 48px;
}

.brand {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    line-height: 0;
    margin-right: auto;
}

.brand-logo {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
}

.primary-nav {
    position: relative;
}

.primary-nav ul {
    display: flex;
    gap: 0.1rem;
    align-items: center;
}

.primary-nav li a {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.85rem;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.primary-nav li.active a {
    color: var(--primary);
    font-weight: 600;
    background: rgba(0, 114, 181, 0.08);
}

.primary-nav li a:hover {
    color: var(--primary);
    background: rgba(0, 114, 181, 0.05);
}

.primary-nav li.nav-donate a {
    background: var(--green);
    color: #fff;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-left: 0.35rem;
    box-shadow: 0 2px 8px rgba(118, 184, 42, 0.3);
}

.primary-nav li.nav-donate a:hover,
.primary-nav li.nav-donate.active a {
    background: var(--green-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    border: none;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    display: block;
    border-radius: 2px;
}

.pill-button {
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pill-button.donate,
.pill-button.primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 25px rgba(118, 184, 42, 0.35);
}

.pill-button.secondary {
    background: var(--primary-light);
    color: #fff;
}

.pill-button.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.pill-button:hover {
    transform: translateY(-2px);
}

main {
    padding-bottom: 4rem;
}

section {
    padding: 4rem 0;
}

.hero {
    padding-top: 3rem;
}

.hero-grid {
    display: grid;
    gap: 2rem;
}

.hero-card {
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.88), rgba(0, 114, 181, 0.75)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    border-radius: 26px;
    min-height: 420px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-card h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    margin-bottom: 1rem;
}

.hero-card p {
    max-width: 560px;
    font-size: 1.05rem;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.mission-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 26px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    border-top: 4px solid var(--green);
}

.mission-card img {
    width: 100%;
    border-radius: 20px;
}

.stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    background: var(--background);
    border-radius: 18px;
    padding: 1rem 1.5rem;
    text-align: center;
}

.stat h3 {
    color: var(--primary);
    margin: 0 0 0.25rem;
}

.featured-projects,
.impact,
.cta-band,
.contact-grid,
.story-grid,
.share-grid {
    background: var(--card);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    color: var(--primary);
}

.section-title p {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--card);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 114, 181, 0.1);
}

.card img {
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--primary);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.impact-stats .stat {
    background: rgba(0, 114, 181, 0.06);
    border: 1px solid rgba(0, 114, 181, 0.2);
}

.impact-stats .stat h3 {
    color: var(--green);
}

.cta-band {
    margin-top: 3rem;
    background: linear-gradient(120deg, rgba(0, 26, 77, 0.92), rgba(0, 114, 181, 0.88)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #fff;
    text-align: center;
}

.cta-band .pill-button.primary {
    background: var(--green);
}

.cta-band .pill-button.secondary {
    background: var(--primary-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 999px;
    margin: 0 auto 1rem;
}

.timeline {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

.timeline li {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline li::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--green);
    position: absolute;
    left: -2.25rem;
    top: 0.25rem;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 auto 2rem;
    justify-content: center;
}

.filter-buttons button {
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
}

.filter-buttons button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

form {
    display: grid;
    gap: 1rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.35rem;
}

input,
textarea,
select {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
    background: #fff;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-weight: 600;
    background: rgba(118, 184, 42, 0.12);
    border: 1px solid rgba(118, 184, 42, 0.35);
    color: var(--green-dark);
}

.alert.error {
    background: rgba(227, 30, 36, 0.1);
    border-color: rgba(227, 30, 36, 0.4);
    color: var(--accent-red);
}

.map-wrapper iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-info-item strong {
    color: var(--primary);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.donation-form {
    display: grid;
    gap: 1rem;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.amount-buttons button {
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
}

.amount-buttons button.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.payment-card .payment-methods {
    display: grid;
    gap: 1.5rem;
}

.bank-details {
    background: var(--background);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--border);
}

.upload-field {
    padding: 2rem;
    border: 2px dashed var(--border);
    border-radius: 20px;
    text-align: center;
    background: var(--background);
}

.project-region {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.hospital-project {
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.hospital-project-header {
    margin-bottom: 1.5rem;
}

.hospital-project-header h3 {
    color: var(--primary);
    margin: 0.25rem 0 0.75rem;
    font-size: 1.35rem;
}

.hospital-project-header p {
    color: var(--muted);
    margin: 0;
    max-width: 720px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    max-width: none;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.report-card {
    display: flex;
    flex-direction: column;
}

.report-badge {
    display: inline-block;
    background: rgba(0, 114, 181, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.report-region-tag {
    display: inline-block;
    background: rgba(118, 184, 42, 0.12);
    color: var(--green-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.report-period {
    font-size: 0.85rem;
    margin: 0 0 0.35rem;
}

.reports-hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.92), rgba(0, 114, 181, 0.85));
}

.analytics-region {
    background: var(--card);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.region-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.region-header h3 {
    color: var(--primary);
    margin: 0.35rem 0 0.25rem;
    font-size: 1.4rem;
}

.risk-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.risk-critical {
    background: rgba(227, 30, 36, 0.12);
    color: var(--accent-red);
}

.risk-high {
    background: rgba(255, 152, 0, 0.15);
    color: #c67600;
}

.region-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.metric-pill {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    text-align: center;
    min-width: 120px;
}

.metric-pill strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

.metric-pill span {
    font-size: 0.72rem;
    color: var(--muted);
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.analytics-text h4 {
    color: var(--primary);
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
}

.analytics-text h4:first-child {
    margin-top: 0;
}

.needs-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    color: var(--muted);
}

.needs-list li {
    margin-bottom: 0.35rem;
}

.shef-analysis {
    background: var(--accent);
    border-left: 3px solid var(--green);
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 0;
    font-size: 0.95rem;
}

.charts-panel {
    display: grid;
    gap: 1.25rem;
}

.chart-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
}

.chart-card h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.chart-source {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0.5rem 0 0;
    font-style: italic;
}

.report-list {
    display: grid;
    gap: 1.25rem;
}

.report-eval-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.report-eval-card h3 {
    color: var(--primary);
    margin: 0.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.report-eval-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.report-eval-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.report-eval-columns h4 {
    font-size: 0.85rem;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.report-eval-columns ul {
    list-style: disc;
    padding-left: 1.15rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.report-eval-columns li {
    margin-bottom: 0.3rem;
}

.report-list-compact .report-eval-card-compact {
    padding: 1.25rem;
}

.sources-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.sources-list a {
    color: var(--primary);
    font-weight: 600;
}

.sources-list a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .analytics-grid,
    .report-eval-columns {
        grid-template-columns: 1fr;
    }
}

.home-identity-card {
    border-top: 4px solid var(--green);
}

.identity-stack {
    display: grid;
    gap: 1.25rem;
}

.identity-item h3 {
    color: var(--primary);
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.identity-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.focus-card {
    border-top: 3px solid var(--primary);
}

.summary-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.summary-report-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
}

.summary-report-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.summary-report-top h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.15rem;
}

.summary-report-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.summary-stat strong {
    display: block;
    color: var(--accent-red);
    font-size: 1.35rem;
}

.summary-stat span {
    font-size: 0.78rem;
    color: var(--muted);
}

.recent-projects-grid .card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.values-grid .card {
    border-top: 3px solid var(--green);
}

.why-us .card {
    border-left: 4px solid var(--primary);
}

.site-footer {
    background: var(--footer-bg);
    color: #f4f7f1;
    padding: 3rem 0 2rem;
    border-top: 4px solid var(--green);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.footer-grid h4 {
    margin-bottom: 0.75rem;
    color: var(--green);
}

.footer-grid a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.social-links a:hover {
    background: var(--green);
    border-color: var(--green);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-tagline {
    font-style: italic;
    opacity: 0.85;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .header-content {
        gap: 0.5rem;
        padding: 0.35rem 0;
    }

    .primary-nav {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .primary-nav ul {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .primary-nav li a {
        font-size: 0.72rem;
        padding: 0.3rem 0.45rem;
    }

    .primary-nav li.nav-donate a {
        padding: 0.3rem 0.55rem;
        margin-left: 0.15rem;
    }

    section {
        padding: 3rem 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .featured-projects,
    .impact,
    .cta-band,
    .contact-grid,
    .story-grid,
    .share-grid {
        padding: 2rem;
    }
}
