/* ----------------------------------------------------
GLOBAL
---------------------------------------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    background: #F9F5EA;
    margin: 0;
    padding: 0;
}

/* ----------------------------------------------------
NAVBAR
---------------------------------------------------- */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #F9F5EA;
    border-bottom: 2px solid #FFD8D1;
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;          /* keep one line on desktop */
}

.nav-right {
    display: flex;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: #3A3F3B;
}

.nav-link {
    color: #3A3F3B;
    font-weight: 500;
}

.nav-link:hover {
    text-decoration: underline;
    color: #CE325B;
}

.nav-login {
    background: #F9AFB1;
    padding: 8px 18px;
    border-radius: 8px;
    color: #3A3F3B;
    font-weight: 600;
}

.nav-login:hover {
    background: #F4B092;
}

/* ----------------------------------------------------
NAVBAR – MOBILE / SMALL SCREENS
---------------------------------------------------- */
@media (max-width: 950px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 14px 16px;
        gap: 10px;
    }

    /* Brand gets its own line */
    .nav-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 16px;
    }

    .nav-brand {
        flex-basis: 100%;
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 4px;
    }

    /* Links wrap nicely under the brand */
    .nav-link {
        font-size: 0.9rem;
    }

    /* Login button on its own row, centered */
    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .nav-login {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}

/* super tiny screens: shrink gap & font a bit more */
@media (max-width: 600px) {
    .nav-left {
        gap: 8px 12px;
    }
    .nav-link {
        font-size: 0.85rem;
    }
}


/* ----------------------------------------------------
PAGE HEADER
---------------------------------------------------- */
header {
    text-align: center;
    padding: 60px 20px 40px 20px;
}

.site-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: #3A3F3B;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.25rem;
    color: #CE325B;
    margin-bottom: 24px;
}

/* -------- Header – Mobile -------- */
@media (max-width: 700px) {
    .site-title {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.05rem;
    }
}

/* ----------------------------------------------------
HERO
---------------------------------------------------- */
.hero {
    background: #FFD8D1;
    padding: 40px 20px;
    border-radius: 0 0 30px 30px;
    text-align: center;
}

.hero p {
    font-size: 1.1rem;
    color: #3A3F3B;
    max-width: 800px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}

.btn-main {
    background: #F9AFB1;
    color: #3A3F3B;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    background: #F4B092;
}

/* -------- Hero – Mobile -------- */
@media (max-width: 700px) {
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .btn-main {
        width: 90%;
        padding: 14px;
        font-size: 1rem;
    }
}

/* ----------------------------------------------------
GENERAL SECTIONS
---------------------------------------------------- */
.section {
    padding: 60px 20px;
}

.section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #3A3F3B;
    margin-bottom: 16px;
    text-align: center;
}

@media (max-width: 700px) {
    .section {
        padding: 40px 16px;
    }

    .section h2 {
        font-size: 1.6rem;
    }
}

/* ----------------------------------------------------
PROGRAM CARDS — NEW, CLEAN, PROFESSIONAL
---------------------------------------------------- */
.programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
    padding: 0 20px;
}

.prog-card {
    background: #FFFFFF;
    border: 1.5px solid #AFC8B5; /* softer pastel green */
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* IMAGE */
.prog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* CONTENT */
.prog-content {
    padding: 18px 20px 8px 20px;
    flex-grow: 1;
}

.prog-card h3 {
    font-family: 'DM Serif Display', serif;
    color: #3A3F3B;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.prog-card p {
    color: #3A3F3B;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 auto 20px auto;
    max-width: 240px;
}

/* BUTTON */
.btn-small {
    background: #F9AFB1;
    color: #3A3F3B;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin: 18px auto 22px auto;
    display: inline-block;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-small:hover {
    background: #F4B092;
    transform: translateY(-2px);
}



/* ----------------------------------------------------
DONATION PROMO
---------------------------------------------------- */
.donate-bg {
    background: url('/images/logos/donate.png') center/cover no-repeat;
    background-color: #FFD8D1;
    padding: 90px 20px;
}

.donate-card {
    background: #FFFFFF;
    padding: 50px 40px;
    max-width: 800px;
    margin: auto;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border: 2px solid #F9F5EA;
}

.donate-buttons {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.btn-donateD,
.btn-impactD {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-block;
}

/* -------- Donate – Mobile -------- */
@media (max-width: 700px) {
    .donate-card {
        padding: 30px 20px;
    }

    .btn-donateD,
    .btn-impactD {
        width: 100%;
        max-width: 300px;
        padding: 14px;
        font-size: 1rem;
    }
}

/* ----------------------------------------------------
PROGRAM STRIPES
---------------------------------------------------- */
.program-stripes {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.stripe {
    display: flex;
    align-items: center;
    gap: 50px;
}

.stripe.reverse {
    flex-direction: row-reverse;
}

.stripe-img {
    width: 48%;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.stripe-text {
    width: 48%;
}

/* -------- Stripe – Mobile -------- */
@media (max-width: 850px) {
    .stripe,
    .stripe.reverse {
        flex-direction: column;
        text-align: center;
    }

    .stripe-img,
    .stripe-text {
        width: 100%;
    }

    .stripe-img {
        height: 240px;
    }

    .stripe-buttons {
        justify-content: center;
    }
}

/* ----------------------------------------------------
FOOTER
---------------------------------------------------- */
footer {
    background: #3A3F3B;
    color: #F9F5EA;
    text-align: center;
    padding: 24px 10px;
    font-size: 0.9rem;
}

footer a {
    color: #F9AFB1;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------
BUTTONS — RESTORED + REFINED
---------------------------------------------------- */

/* Main pink hero buttons */
.btn-main {
    background: #F9AFB1;
    color: #3A3F3B;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.15s ease;
}

.btn-main:hover {
    background: #F4B092;
    transform: translateY(-2px);
}

/* Small “Learn More” buttons */
.btn-small {
    background: #F9AFB1;
    color: #3A3F3B;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s ease;
}

.btn-small:hover {
    background: #F4B092;
    transform: translateY(-2px);
}

/* Donation buttons */
.btn-donateD {
    background: #F9AFB1;
    color: #3A3F3B;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.15s ease;
}

.btn-donateD:hover {
    background: #F4B092;
    transform: translateY(-2px);
}

.btn-impactD {
    background: #F9F5EA;
    color: #3A3F3B;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid #9AB59D;
    transition: background 0.2s, transform 0.15s ease;
}

.btn-impactD:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

/* Program stripe buttons */
.stripe-buttons {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-donate,
.btn-enroll {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.15s ease;
}

.btn-donate {
    background: #F9AFB1;
    color: #3A3F3B;
    border: 2px solid #F4B092;
}

.btn-donate:hover {
    background: #F4B092;
    transform: translateY(-2px);
}

.btn-enroll {
    background: #F9F5EA;
    color: #3A3F3B;
    border: 2px solid #9AB59D;
}

.btn-enroll:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

/* Mobile: buttons become full width */
@media (max-width: 700px) {
    .btn-main,
    .btn-donateD,
    .btn-impactD,
    .btn-donate,
    .btn-enroll {
        width: 100%;
        max-width: 300px;
        padding: 14px;
        font-size: 1rem;
        margin: 6px auto;
        display: block;
    }
}


/* --- NAVBAR BASE --- */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #F9F5EA;
    border-bottom: 2px solid #FFD8D1;
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-left {
    flex: 1 1 auto; /* allows it to shrink on smaller screens */
}

.nav-right {
    flex-shrink: 0;
}

.nav-link, .nav-brand {
    white-space: nowrap;
}

/* --- FORCE CLEAN STACKED LAYOUT WHEN SCREEN < 1400px --- */
@media (max-width: 1400px) {

    .navbar {
        padding: 16px 20px;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    /* Brand on its own line */
    .nav-brand {
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
    }

    /* All nav links centered as a wrapped row */
    .nav-left {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        width: 100%;
        order: 2;
    }

    /* Login/Logout always placed cleanly on its own line */
    .nav-right {
        width: 100%;
        display: flex;
        justify-content: center;
        order: 3;
        margin-top: 6px;
    }
}
