.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    top: -75px; /* push behind navbar */
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    font-family: "IBM Plex Serif", serif;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    font-family: "IBM Plex Serif", serif;
    opacity: 0.9;
}

/* ───────────────────────── Donation box ───────────────────────── */
.hero-overlay-box {
    width: 520px; /* wider box for desktop */
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    font-family: "IBM Plex Serif", serif;
}

/* four equal buttons across the full box */
.donation-options {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal cells                */
    gap: 12px; /* spacing between buttons     */
}

.donate-option {
    width: 100%; /* fills its grid cell                */
    padding: 12px 0;
    border: 2px solid var(--green-main);
    border-radius: 6px;
    background: #fff;
    color: var(--green-main);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}
.donate-option:hover {
    background: var(--green-main);
    color: #fff;
}

/* Single non-clickable box that replaces the 4 buttons */
.promo-box {
    width: 100%;
    padding: 12px 0;
    border: 2px solid var(--green-main);
    border-radius: 6px;
    background: #fff;
    color: var(--green-main);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    user-select: none;
    cursor: default; /* not clickable */
}

/* Optional: keep sizing consistent on small screens */
@media (max-width: 520px) {
    .promo-box {
        padding: 12px 0;
        border-radius: 8px;
        font-size: 17px;
    }
}

/* Dark background overlay */
.popup-overlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* White popup box */
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80vh;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
}
.popup-close:hover {
    color: #000;
}
.iban-box {
    margin: 20px 0;
    padding: 12px 15px;
    border: 2px solid var(--green-main);
    border-radius: 6px;
    background: #f9f9f9;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    color: var(--blue-main);
}

/* custom amount input (appears when “Other” clicked) */
.donate-input {
    width: 100%; /* same width as big button           */
    padding: 12px 14px;
    border: 2px solid var(--green-main);
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    outline: none;
    display: none; /* toggled via JS                     */
}

/* big DONATE button – spans full container */
.donate-main-btn {
    width: 100%;
    padding: 14px 0;
    background: var(--green-main);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.25s;
}
.donate-main-btn:hover {
    background: var(--green-dark);
}

/* inspirational sentence */
.donate-message {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    color: var(--blue-main);
    font-weight: 500;
}

@media screen and (max-width: 520px) {
    .hero-content {
        position: absolute;
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
        color: white;
        max-width: 90%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.1rem;
        font-weight: bold;
        font-family: "IBM Plex Serif", serif;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        font-family: "IBM Plex Serif", serif;
        opacity: 0.9;
    }

    .hero-overlay-box {
        width: 100%;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 28px 24px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        font-family: "IBM Plex Serif", serif;
        margin: 0 auto; /* center horizontally */
    }

    .donation-options {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .donate-option {
        padding: 12px 0;
        border: 2px solid var(--green-main);
        border-radius: 8px;
        background: white;
        color: var(--green-main);
        font-weight: 700;
        font-size: 17px;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .donate-option:hover,
    .donate-option.active {
        background: var(--green-main);
        color: white;
    }

    /* Input field shown after clicking 'Other' */
    .donate-input {
        width: 100%;
        padding: 12px 14px;
        border: 2px solid var(--green-main);
        border-radius: 8px;
        font-size: 17px;
        text-align: center;
        outline: none;
        display: none;
        transition: all 0.2s ease-in-out;
    }

    /* Big donate button */
    .donate-main-btn {
        width: 100%;
        padding: 14px;
        background: var(--green-main);
        color: white;
        font-size: 20px;
        font-weight: 700;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.25s;
    }

    .donate-main-btn:hover {
        background: var(--green-dark);
    }

    /* Message */
    .donate-message {
        font-size: 14.5px;
        line-height: 1.45;
        color: var(--blue-main);
        font-weight: 500;
        text-align: center;
        margin-top: 5px;
    }
}

/* ─────────────── Our Mission Section ─────────────── */
.mission-section {
    padding: 80px 5% 40px;
    background-color: #fff;
    position: relative;
}

.mission-title {
    font-size: 2rem;
    color: var(--blue-main);
    font-weight: 700;
    font-family: "IBM Plex Serif", serif;
    position: relative;
    z-index: 2;
    background-color: #fff;
    display: inline-block;
    padding-right: 15px;
    padding-left: 5px;
    margin: 0;
}

.mission-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    border-top: 1px solid var(--orange-main);
    padding-top: 40px;
}

.mission-text {
    flex: 1;
    max-width: 50%;
    font-family: "IBM Plex Serif", serif;
}

.mission-description {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.mission-cta {
    color: var(--orange-main);
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.2s;
}

.mission-cta:hover {
    text-decoration: underline;
    margin-left: 5px;
}

.mission-image {
    flex: 1;
    max-width: 50%;
}

.mission-image img {
    width: 100%;
    object-fit: cover;
}

/* Reverse layout: image left, text right */
.mission-container.reversed {
    flex-direction: row;
}

.mission-container.reversed .mission-image {
    order: 0;
    padding-right: 50px; /* Optional spacing between image and text */
}

.mission-container.reversed .mission-text {
    order: 1;
}

.align-right {
    width: 100%;
    text-align: right;
}

@media (max-width: 768px) {
    .mission-container {
        flex-direction: column;
        gap: 30px;
    }

    .mission-text,
    .mission-image {
        max-width: 100%;
        flex: none;
    }

    .mission-container.reversed {
        flex-direction: column;
    }

    .mission-container.reversed .mission-image,
    .mission-container.reversed .mission-text {
        order: unset; /* Reset any ordering */
        padding-right: 0;
    }
}

/* ─────────────── Our Work Section ─────────────── */
.our-work-section {
    margin-top: 15vh;
    padding: 80px 5% 60px;
    background-color: #faf6e9; /* Light warm background */
    position: relative;
}

/* Title styled like 'Our Mission' but scoped */
.our-work-title {
    font-size: 2rem;
    color: var(--blue-main);
    font-weight: 700;
    font-family: "IBM Plex Serif", serif;
    position: relative;
    z-index: 2;
    background-color: var(--cream-bg);
    display: inline-block;
    padding-right: 15px;
    padding-left: 5px;
    margin: 0;
    border-bottom: 1px solid var(--bronze-main);
    width: 100%;
}

/* Items Grid */
.work-items-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-top: 40px;
    flex-wrap: wrap;
}

.work-item {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    font-family: "IBM Plex Serif", serif;
}

.work-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.work-description {
    font-size: 1rem;
    font-style: italic;
    color: #777;
    line-height: 1.5;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .work-items-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .work-item {
        max-width: 100%;
    }
}

/* ─────────────── Our Projects Section ─────────────── */
.our-projects-section {
    padding: 80px 5% 60px;
    background-color: #fff;
    position: relative;
    margin-top: 15vh;
}

.our-projects-title {
    font-size: 2rem;
    color: var(--blue-main);
    font-weight: 700;
    font-family: "IBM Plex Serif", serif;
    margin: 0;
    padding: 0 10px;
    display: inline-block;
    background-color: #fff;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--bronze-main);
    width: 100%;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 40px;
}

.project-card {
    background: var(--ivory-bg);
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--blue-main);
    margin-bottom: 10px;
    font-family: "IBM Plex Serif", serif;
}

.project-description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: "IBM Plex Serif", serif;
}

.project-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #9dc8a2;
    color: #5f9c66;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.project-btn:hover {
    background: #9dc8a2;
    color: #fff;
}

/* Responsive layout */
@media (max-width: 992px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        max-width: 100%;
    }
}

/* ─────────────── Newsletter Section ─────────────── */
.newsletter-section {
    padding: 80px 5% 60px;
    background-color: var(--cream-bg);
    position: relative;
    margin-top: 15vh;
}

.newsletter-title {
    font-size: 2rem;
    color: var(--blue-main);
    font-weight: 700;
    font-family: "IBM Plex Serif", serif;
    margin: 0;
    padding: 0 10px;
    display: inline-block;
    background-color: var(--cream-bg);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--bronze-main);
    width: 100%;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.newsletter-form {
    flex: 1;
    display: flex;
    max-width: 700px;
    gap: 12px; /* Adds spacing between input and button */
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    min-width: 300px; /* makes it a bit longer */
}

.newsletter-btn {
    padding: 12px 25px;
    border: none;
    background-color: var(--green-main);
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background-color: var(--green-dark);
}

.newsletter-socials {
    display: flex;
    gap: 15px;
}

.newsletter-socials i {
    font-size: 28px;
    color: #333;
    transition: color 0.3s ease, transform 0.2s ease;
}

.newsletter-socials i:hover {
    color: var(--orange-main);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column; /* stack input and button */
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }

    .newsletter-btn {
        margin-top: 10px; /* spacing between input and button */
    }

    .newsletter-socials {
        justify-content: center;
        margin-top: 20px;
    }

    .newsletter-title {
        width: 100%;
    }
}

.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    color: #333;
    border: 2px solid #5f9c66;
    padding: 25px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: "IBM Plex Serif", serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.popup-close:hover {
    color: #444;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ─────────────── Founder Quote Section ─────────────── */
.founder-quote-section {
    padding: 80px 7% 60px;
    background-color: #fff;
    margin-top: 15vh;
}

.founder-quote-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.founder-quote {
    font-size: 3rem;
    font-weight: 900;
    font-family: "IBM Plex Serif", serif;
    color: var(--blue-main);
    max-width: 600px;
    margin: 0;
    line-height: 1.4;
}

.founder-quote::before,
.founder-quote::after {
    content: '"';
    color: var(--blue-main);
    font-size: 2.5rem;
    vertical-align: top;
}

.founder-image img {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    margin-right: 50px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .founder-quote-container {
        flex-direction: column; /* This puts image first, then quote */
        align-items: center;
        text-align: center;
    }

    .founder-image img {
        width: 90vw;
        max-width: 400px;
        height: auto;
        margin: 0 auto 30px;
    }

    .founder-quote {
        font-size: 2.4rem;
        max-width: 100%;
        margin: 0;
        line-height: 1.3;
    }
}
