﻿:root {
    --green: #009B3A;
    --gold: #FED100;
    --black: #000;
    --bg: #F9FAFB;
    --text: #1F2937;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Open Sans', system-ui, Arial;
}

/* ---------------- NAV ---------------- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

/* Wrap flag + brand as a single centered group */
.nav-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav .flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .nav .flag svg {
        width: 60px;
        height: auto;
        vertical-align: middle;
    }

.nav .brand {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav nav a {
    margin-left: 12px;
    text-decoration: none;
    color: #374151;
}

    .nav nav a:hover {
        color: var(--green);
    }


/* ---------------- BUTTONS ---------------- */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

    .btn-primary:hover {
        filter: brightness(0.95);
    }

.btn-accent {
    background: var(--gold);
    color: #111;
}

    .btn-accent:hover {
        filter: brightness(0.95);
    }

/* ---------------- HERO ---------------- */
.hero {
    background: linear-gradient(120deg, rgba(0,155,58,.85), rgba(254,209,0,.85)), url('/Content/hero.jpg') center/cover no-repeat;
    color: #fff;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-family: Poppins, sans-serif;
    font-size: 3rem;
    margin: 0 0 8px;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 0 16px;
}

.hero-cta a {
    margin: 0 6px;
}

/* ---------------- SECTIONS ---------------- */
.section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

    .section.narrow {
        max-width: 800px;
    }

/* ---------------- CARDS ---------------- */
.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin: 12px;
    background: #fff;
    width: 100%;
    max-width: 340px;
}

    .card img {
        width: 100%;
        height: 160px;
        border-radius: 8px;
        object-fit: cover;
    }

.card-actions {
    margin-top: 8px;
}

/* --- Active Campaigns horizontal layout --- */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 20px;
}

    /* Override global .card rules only inside this grid */
    .campaign-grid .card {
        width: auto; /* override width:100% */
        max-width: unset; /* allow grid to size columns */
        margin: 0; /* grid gap handles spacing */
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,.1);
    }

        .campaign-grid .card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }

/* ---------------- HELP GRID ---------------- */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 16px;
}

.help-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

    .help-card h3 {
        margin-top: 0;
    }

/* ---------------- STORIES ---------------- */
.story {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 12px 0;
}

    .story img {
        width: 120px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

/* ---------------- FORMS ---------------- */
label {
    display: block;
    margin: 12px 0 6px;
}

input, textarea, select {
    width: 100%;
    max-width: 520px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

    .form-grid > div {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
    }

.checkbox {
    margin: 12px 0;
}

.val {
    color: #b91c1c;
}

.ok {
    color: #065f46;
}

.map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

    .map iframe, .map img {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

/* ---------------- FOOTER ---------------- */
.footer {
    background: #0b1223;
    color: #d1d5db;
    margin-top: 40px;
}

/* Main footer layout: flags equally spaced on sides */
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; /* equal distance between each block */
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    flex-wrap: wrap;
    text-align: center;
    position: relative;
}

    /* Flags: fixed size, centered vertically */
    .footer-grid .flag {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 80px; /* reserve equal width for both flags */
    }

        .footer-grid .flag svg {
            width: 80px;
            height: auto;
            vertical-align: middle;
        }

    /* Center the middle content neatly */
    .footer-grid .brand,
    .footer-grid h4,
    .footer-grid p,
    .footer-grid ul {
        margin: 0;
        padding: 0;
    }

    .footer-grid > div:not(.flag) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
    }

/* Typography and link colors */
.footer .brand {
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer a {
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    text-align: center;
    padding: 12px 20px;
    font-size: .9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }

        .footer-grid .flag {
            flex: none;
        }
}

/* --- Force Active Campaigns horizontal layout --- */
.campaign-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* or space-around */
    gap: 20px;
    width: 100%;
}

    .campaign-grid .card {
        flex: 0 1 30%; /* three cards per row on wide screens */
        min-width: 280px;
        max-width: 400px;
        margin: 0;
        width: auto !important; /* override old width:100% */
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,.1);
        display: flex;
        flex-direction: column;
    }

        .campaign-grid .card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

@media (max-width: 900px) {
    .campaign-grid .card {
        flex: 0 1 45%;
    }
}

@media (max-width: 600px) {
    .campaign-grid .card {
        flex: 0 1 100%;
    }
}


