:root {
    --blue: #002868;       /* Flag blue */
    --red: #BF0A30;        /* Flag red */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--light-gray);
    color: var(--blue);
}

.header,
.footer {
    padding: 1rem 0;
    width: 100%;
    color: var(--white);
    z-index: 1000;
    background-color: var(--blue);
}

.footer {
    padding: 2rem 1rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    /* We'll override flex-direction in mobile */
}

.header-logo {
    flex: 0 0 20%;
}

.header-logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* nav-wrapper wraps only the nav menu */
.nav-wrapper {
    flex: 1;
    width: 100%;
}

/* Hide the checkbox */
.menu-checkbox {
    display: none;
}

/* Hamburger styles */
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    user-select: none;
}

/* Nav default styles */
.header-nav {
    text-align: right;
}

.header-nav a {
    margin-left: 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.header-nav a:hover {
    color: var(--red);
    text-decoration: underline;
}

/* Content container styling */
.content-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--blue);
    min-height: 60vh; /* example minimum height */
    box-sizing: border-box;
}

/* --- MOBILE STYLES --- */
@media (max-width: 767px) {
    .header-container {
        flex-direction: row;                /* Logo and hamburger side by side */
        justify-content: space-between;    /* Push logo left, hamburger right */
        align-items: center;                /* Vertically center */
        flex-wrap: wrap;                   /* Allow nav to drop below */
    }

    .header-logo {
        flex: 0 0 auto;                   /* Keep natural width */
    }

    .hamburger {
        display: block;
        order: 2;                         /* Put hamburger to right */
        cursor: pointer;
        user-select: none;
    }

    /* Make nav-wrapper full width below */
    .nav-wrapper {
        flex: 1 0 100%;
        order: 3;                        /* Place nav below */
        width: 100%;
    }

    /* Hide nav menu by default */
    .header-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        text-align: left;
    }

    /* Show nav when checkbox checked */
    .menu-checkbox:checked + .hamburger + .nav-wrapper .header-nav {
        display: flex;
    }

    /* Space nav links vertically */
    .header-nav a {
        margin: 0.5rem 0;
        margin-left: 0; /* Reset margin-left for vertical layout */
    }
}

/* Fixed header on desktop only */
@media (min-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Add body padding so content doesn't get hidden under fixed header */
    body {
        padding-top: 60px; /* adjust based on actual header height */
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-section {
        flex: 1;
        padding: 0 1rem;
    }
}

/* Footer container */
.footer-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Footer sections */
.footer-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.footer-section p {
    margin-bottom: 1rem;
}

.donate-button {
    background-color: var(--red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.donate-button:hover {
    background-color: #a50e28; /* Slightly darker red */
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    flex: 1;
}

.newsletter-button {
    background-color: var(--red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-button:hover {
    background-color: #a50e28;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.contact-info a {
    color: var(--white);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--red);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: var(--white);
}
