/* =========================================================
   IBIMA CBO — DONATE PAGE
   donate.css

   Dedicated styling for the Donate page.
========================================================= */


/* =========================================================
   01. DONATE HERO
========================================================= */

.donate-hero {

    position: relative;
    min-height: 520px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(3,25,77,0.97) 0%,
            rgba(3,25,77,0.88) 38%,
            rgba(3,25,77,0.55) 68%,
            rgba(3,25,77,0.18) 100%
        ),
        url("../images/support-hero.jpg")
        center center /
        cover no-repeat;
}


.donate-hero-pattern {

    position: absolute;
    inset: 0;

    opacity: 0.10;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,0.35) 1px,
            transparent 1px
        );

    background-size: 20px 20px;

    pointer-events: none;
}


.donate-hero::after {

    content: "";

    position: absolute;

    left: -5%;
    bottom: -58px;

    width: 110%;
    height: 100px;

    background: #ffffff;

    border-radius:
        50% 50% 0 0 /
        70% 70% 0 0;

    border-top:
        8px solid var(--ibima-green);
}


.donate-hero .container {

    position: relative;
    z-index: 2;
}


.donate-hero-content {

    width: 60%;
    padding: 90px 0 110px;
}


.donate-hero-text {

    max-width: 700px;
}


.donate-hero-label {

    display: inline-block;

    margin-bottom: 12px;

    color: var(--ibima-green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.donate-hero-text h1 {

    margin: 0;

    color: #ffffff;

    font-size: 54px;
    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -1px;
}


.donate-hero-text h1 span {

    display: block;
}


.donate-hero-line {

    width: 78px;
    height: 4px;

    margin: 18px 0 20px;

    border-radius: 10px;

    background: var(--ibima-green);
}


.donate-hero-text p {

    max-width: 620px;

    margin: 0;

    color: rgba(255,255,255,0.92);

    font-size: 17px;
    line-height: 1.75;
}


.donate-hero-buttons {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 30px;
}


.donate-hero-primary,
.donate-hero-secondary {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 23px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


.donate-hero-primary {

    gap: 8px;

    color: #ffffff;

    background: var(--ibima-green);

    border: 2px solid var(--ibima-green);
}


.donate-hero-primary:hover {

    color: var(--ibima-navy);

    background: #ffffff;

    border-color: #ffffff;

    transform: translateY(-2px);
}


.donate-hero-secondary {

    color: #ffffff;

    background: transparent;

    border: 2px solid rgba(255,255,255,0.70);
}


.donate-hero-secondary:hover {

    color: var(--ibima-navy);

    background: #ffffff;

    border-color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   02. GENERAL SECTION HEADING
========================================================= */

.donate-section-heading {

    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;
}


.donate-section-heading > span,
.donate-small-label {

    display: inline-block;

    margin-bottom: 9px;

    color: var(--ibima-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.donate-section-heading h2 {

    margin: 0;

    color: var(--ibima-navy);

    font-size: 37px;

    line-height: 1.2;

    font-weight: 800;
}


.donate-section-heading p {

    max-width: 690px;

    margin: 0 auto;

    color: #667085;

    font-size: 16px;

    line-height: 1.75;
}


.donate-section-heading .heading-line {

    margin-top: 15px;
    margin-bottom: 18px;
}


.heading-line.left {

    margin-left: 0;
    margin-right: 0;
}


/* =========================================================
   03. WHY SUPPORT
========================================================= */

.donate-impact-section {

    padding: 85px 0 90px;

    background: #ffffff;
}


.donate-impact-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}


.donate-impact-card {

    min-width: 0;

    padding: 28px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e3e9ef;

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(3,25,77,0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.donate-impact-card:hover {

    transform: translateY(-6px);

    border-color:
        rgba(8,116,67,0.25);

    box-shadow:
        0 18px 35px rgba(3,25,77,0.09);
}


.donate-impact-icon {

    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    color: var(--ibima-green);

    background: var(--ibima-green-light);

    font-size: 24px;
}


.donate-impact-card h3 {

    margin: 0 0 10px;

    color: var(--ibima-navy);

    font-size: 17px;

    line-height: 1.35;

    font-weight: 800;
}


.donate-impact-card p {

    margin: 0;

    color: #667085;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   04. WHERE CONTRIBUTION GOES
========================================================= */

.donate-contribution-section {

    padding: 90px 0;

    background: #f1f8f4;
}


.donate-contribution-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 70px;

    align-items: center;
}


.donate-contribution-content {

    max-width: 600px;
}


.donate-contribution-content h2 {

    margin: 0;

    color: var(--ibima-navy);

    font-size: 38px;

    line-height: 1.18;

    font-weight: 800;
}


.donate-contribution-content h2 span {

    display: block;
}


.donate-contribution-content > p {

    margin: 0 0 25px;

    color: #667085;

    font-size: 16px;

    line-height: 1.75;
}


.donate-contribution-points {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px 25px;
}


.donate-contribution-points > div {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--ibima-navy);

    font-size: 14px;

    font-weight: 700;
}


.donate-contribution-points i {

    flex-shrink: 0;

    color: var(--ibima-green);

    font-size: 15px;
}


.donate-contribution-image {

    position: relative;

    overflow: hidden;

    min-height: 400px;

    border-radius: 18px;

    box-shadow:
        0 20px 45px rgba(3,25,77,0.10);
}


.donate-contribution-image::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 7px;

    background: var(--ibima-green);
}


.donate-contribution-image img {

    display: block;

    width: 100%;
    height: 100%;

    min-height: 400px;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.donate-contribution-image:hover img {

    transform: scale(1.035);
}


/* =========================================================
   05. WAYS TO SUPPORT
========================================================= */

.donate-ways-section {

    padding: 90px 0;

    background: #ffffff;
}


.donate-ways-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


.donate-way-card {

    padding: 30px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e3e9ef;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(3,25,77,0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.donate-way-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 18px 38px rgba(3,25,77,0.09);
}


.donate-way-icon {

    width: 66px;
    height: 66px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    color: var(--ibima-green);

    background: #eaf7f0;

    font-size: 25px;
}


.donate-way-card h3 {

    margin: 0 0 10px;

    color: var(--ibima-navy);

    font-size: 17px;

    line-height: 1.4;

    font-weight: 800;
}


.donate-way-card p {

    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.65;
}


.donate-way-card a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 17px;

    color: var(--ibima-green);

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    transition:
        gap 0.25s ease;
}


.donate-way-card a:hover {

    gap: 11px;
}


/* =========================================================
   06. DONATION METHODS
========================================================= */

.donate-methods-section {

    position: relative;

    overflow: hidden;

    padding: 85px 0;

    background: var(--ibima-navy);
}


.donate-methods-pattern {

    position: absolute;

    inset: 0;

    opacity: 0.06;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,0.4) 1px,
            transparent 1px
        );

    background-size: 22px 22px;

    pointer-events: none;
}


.donate-methods-grid {

    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1.05fr
        1fr
        1fr
        1fr;

    gap: 18px;

    align-items: stretch;
}


.donate-methods-intro {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 15px 20px 15px 0;
}


.donate-methods-intro > span {

    color: var(--ibima-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.donate-methods-intro h2 {

    margin: 10px 0 0;

    color: #000000;

    font-size: 34px;

    line-height: 1.2;

    font-weight: 800;
}


.donate-methods-intro h2 span {

    display: block;
}


.donate-methods-intro p {

    max-width: 350px;

    margin: 0;

    color: rgba(0, 0, 0, 0.75);

    font-size: 15px;

    line-height: 1.7;
}


.donate-method-card {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    min-height: 310px;

    padding: 28px 22px 24px;

    text-align: center;

    background: #ffffff;

    border-radius: 13px;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.12);
}


.donate-method-icon {

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 13px;

    border-radius: 50%;

    font-size: 21px;
}


.mpesa-icon {

    color: var(--ibima-green);

    background: #eaf7f0;
}


.bank-icon {

    color: var(--ibima-navy);

    background: #eef3ff;
}


.other-icon {

    color: var(--ibima-green);

    background: #eaf7f0;
}


.donate-method-label {

    color: var(--ibima-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.donate-method-card h3 {

    margin: 16px 0 6px;

    color: var(--ibima-navy);

    font-size: 14px;

    font-weight: 700;
}


.donate-payment-number {

    color: var(--ibima-green);

    font-size: 25px;

    font-weight: 900;
}


.donate-payment-divider {

    width: 55px;
    height: 1px;

    margin: 15px auto;

    background: #dce3ea;
}


.donate-method-card h4 {

    margin: 5px 0;

    color: #667085;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}


.donate-method-card p {

    margin: 0;

    color: var(--ibima-navy);

    font-size: 13px;

    font-weight: 700;
}


.donate-method-card small {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: auto;

    padding-top: 16px;

    color: var(--ibima-green);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


.donate-other-text {

    max-width: 220px;

    margin-top: 14px !important;

    color: #667085 !important;

    font-size: 13px !important;

    line-height: 1.6;

    font-weight: 500 !important;
}


.donate-method-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: auto;

    padding: 11px 17px;

    color: #ffffff;

    background: var(--ibima-green);

    border-radius: 6px;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.donate-method-btn:hover {

    color: #ffffff;

    background: var(--ibima-green-dark);

    transform: translateY(-2px);
}


/* =========================================================
   07. DONATION AMOUNTS
========================================================= */

.donate-amounts-section {

    padding: 85px 0 80px;

    background: #f7faf8;
}


.donate-amount-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}


.donate-amount-card {

    padding: 25px 15px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e3e9ef;

    border-radius: 8px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.donate-amount-card:hover,
.donate-amount-card.featured {

    transform: translateY(-4px);

    border-color: var(--ibima-green);

    box-shadow:
        0 10px 25px rgba(8,116,67,0.10);
}


.donate-amount-card strong {

    display: block;

    margin-bottom: 7px;

    color: var(--ibima-navy);

    font-size: 19px;

    font-weight: 900;
}


.donate-amount-card.featured strong {

    color: var(--ibima-green);
}


.donate-amount-card span {

    display: block;

    color: #667085;

    font-size: 12px;

    line-height: 1.4;
}


.donate-security-note {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 24px;

    color: #7b8794;

    font-size: 12px;
}


.donate-security-note i {

    color: var(--ibima-green);
}


/* =========================================================
   08. FINAL CTA
========================================================= */

.donate-final-cta {

    position: relative;

    overflow: hidden;

    padding: 55px 0;

    background:
        linear-gradient(
            90deg,
            rgba(4,90,52,0.96),
            rgba(8,116,67,0.88)
        ),
        url("../images/support-impact.jpg")
        center center /
        cover no-repeat;
}


.donate-final-overlay {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(255,255,255,0.10),
            transparent 35%
        );
}


.donate-final-content {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 28px;
}


.donate-final-icon {

    width: 78px;
    height: 78px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;

    background: rgba(255,255,255,0.12);

    border: 1px solid rgba(255,255,255,0.20);

    border-radius: 50%;

    font-size: 30px;
}


.donate-final-text span {

    display: block;

    margin-bottom: 5px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.7px;
}


.donate-final-text h2 {

    margin: 0 0 7px;

    color: #ffffff;

    font-size: 28px;

    line-height: 1.25;

    font-weight: 800;
}


.donate-final-text p {

    max-width: 650px;

    margin: 0;

    color: rgba(255,255,255,0.80);

    font-size: 14px;

    line-height: 1.65;
}


.donate-final-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-width: 145px;

    padding: 14px 20px;

    color: var(--ibima-navy);

    background: #ffffff;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 900;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.donate-final-button:hover {

    color: #ffffff;

    background: var(--ibima-navy);

    transform: translateY(-2px);
}


/* =========================================================
   09. LARGE DESKTOP
========================================================= */

@media (min-width: 1400px) {

    .donate-impact-grid {

        gap: 18px;
    }

    .donate-impact-card {

        padding: 30px 22px;
    }

    .donate-ways-grid {

        gap: 24px;
    }

}


/* =========================================================
   10. SMALL DESKTOP / TABLET
========================================================= */

@media (max-width: 1200px) {

    .donate-hero-content {

        width: 68%;
    }

    .donate-impact-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .donate-methods-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .donate-methods-intro {

        padding-right: 0;
    }

    .donate-amount-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   11. TABLET
========================================================= */

@media (max-width: 992px) {

    .donate-hero-content {

        width: 78%;
    }

    .donate-contribution-grid {

        grid-template-columns: 1fr;

        gap: 40px;
    }

    .donate-contribution-content {

        max-width: 100%;
    }

    .donate-contribution-image {

        min-height: 420px;
    }

    .donate-contribution-image img {

        min-height: 420px;
    }

    .donate-ways-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .donate-final-content {

        grid-template-columns:
            auto 1fr;
    }

    .donate-final-button {

        grid-column: 2;

        justify-self: start;
    }

}


/* =========================================================
   12. MOBILE
========================================================= */

@media (max-width: 768px) {

    .donate-hero {

        min-height: 470px;

        background:
            linear-gradient(
                90deg,
                rgba(3,25,77,0.95),
                rgba(3,25,77,0.78)
            ),
            url("../images/support-hero.jpg")
            center center /
            cover no-repeat;
    }


    .donate-hero::after {

        bottom: -42px;

        height: 72px;

        border-top-width: 6px;
    }


    .donate-hero-content {

        width: 100%;

        padding:
            65px 0
            80px;
    }


    .donate-hero-text h1 {

        font-size: 39px;
    }


    .donate-hero-text p {

        font-size: 15px;
    }


    .donate-hero-buttons {

        flex-wrap: wrap;
    }


    .donate-section-heading {

        margin-bottom: 38px;
    }


    .donate-section-heading h2 {

        font-size: 30px;
    }


    .donate-section-heading p {

        font-size: 15px;
    }


    .donate-impact-section,
    .donate-contribution-section,
    .donate-ways-section,
    .donate-amounts-section {

        padding:
            65px 0
            70px;
    }


    .donate-impact-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .donate-contribution-content h2 {

        font-size: 31px;
    }


    .donate-contribution-points {

        grid-template-columns: 1fr;
    }


    .donate-contribution-image {

        min-height: 330px;
    }


    .donate-contribution-image img {

        min-height: 330px;
    }


    .donate-ways-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .donate-methods-section {

        padding: 65px 0;
    }


    .donate-methods-grid {

        grid-template-columns: 1fr;
    }


    .donate-methods-intro {

        padding: 0 0 15px;
    }


    .donate-methods-intro h2 {

        font-size: 31px;
    }


    .donate-method-card {

        min-height: 300px;
    }


    .donate-amount-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .donate-final-content {

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    .donate-final-button {

        width: 100%;
    }

}


/* =========================================================
   13. SMALL MOBILE
========================================================= */

@media (max-width: 540px) {

    .donate-hero-text h1 {

        font-size: 34px;
    }


    .donate-hero-buttons {

        flex-direction: column;

        align-items: stretch;

        width: 100%;
    }


    .donate-hero-primary,
    .donate-hero-secondary {

        width: 100%;
    }


    .donate-impact-grid {

        grid-template-columns: 1fr;
    }


    .donate-impact-card {

        padding: 27px 22px;
    }


    .donate-ways-grid {

        grid-template-columns: 1fr;
    }


    .donate-amount-grid {

        grid-template-columns: 1fr;
    }


    .donate-final-icon {

        width: 68px;
        height: 68px;

        font-size: 26px;
    }


    .donate-final-text h2 {

        font-size: 24px;
    }

}


/* =========================================================
   14. VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .donate-hero-text h1 {

        font-size: 31px;
    }


    .donate-section-heading h2 {

        font-size: 27px;
    }


    .donate-contribution-content h2 {

        font-size: 28px;
    }


    .donate-methods-intro h2 {

        font-size: 28px;
    }

}