/* ==========================================================
   IBIMA CBO — OUR IMPACT PAGE
   impact.css

   This stylesheet controls ONLY the Impact page.
========================================================== */


/* ==========================================================
   01. IMPACT HERO
========================================================== */

.impact-hero {

    position: relative;

    min-height: 380px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(3, 25, 77, 0.97) 0%,
            rgba(19, 42, 95, 0.9) 34%,
            rgba(172, 178, 192, 0.178) 60%,
            rgba(252, 252, 252, 0) 100%
        ),

        url("../images/impact-hero.jpg")
        center center /
        cover no-repeat;
}


/* ==========================================================
   HERO PATTERN
========================================================== */

.impact-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;
}


/* ==========================================================
   HERO CURVE
========================================================== */

.impact-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);

    z-index: 2;
}


/* ==========================================================
   HERO CONTAINER
========================================================== */

.impact-hero .container {

    position: relative;

    z-index: 3;
}


/* ==========================================================
   HERO CONTENT
========================================================== */

.impact-hero-content {

    width: 58%;

    padding:
        72px 0
        88px;
}


/* ==========================================================
   HERO TITLE
========================================================== */

.impact-hero-text h1 {

    margin: 0;

    color: #ffffff;

    font-size: 50px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.7px;
}


/* ==========================================================
   HERO LINE
========================================================== */

.impact-line {

    width: 78px;

    height: 4px;

    margin:
        14px 0
        19px;

    border-radius: 10px;

    background: var(--ibima-green);
}


/* ==========================================================
   HERO DESCRIPTION
========================================================== */

.impact-hero-text p {

    max-width: 650px;

    margin: 0;

    color:
        rgba(255,255,255,0.95);

    font-size: 17px;

    line-height: 1.75;
}



/* ==========================================================
   02. GENERAL IMPACT HEADING
========================================================== */

.impact-heading {

    max-width: 760px;

    margin:
        0 auto
        50px;

    text-align: center;
}


.impact-heading h2 {

    margin: 0;

    color: var(--ibima-navy);

    font-size: 36px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.4px;
}


.impact-heading .heading-line {

    width: 65px;

    height: 4px;

    margin:
        15px auto
        18px;

    border-radius: 10px;

    background: var(--ibima-green);
}


.impact-heading p {

    max-width: 680px;

    margin:
        0 auto;

    color: #667085;

    font-size: 16px;

    line-height: 1.75;
}



/* ==========================================================
   03. IMPACT STATISTICS
========================================================== */

.impact-stats-section {

    padding:
        78px 0
        88px;

    background: #ffffff;
}


.impact-stats-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}



/* ==========================================================
   STAT CARD
========================================================== */

.impact-stat-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 245px;

    padding:
        30px 28px;

    background: #ffffff;

    border:
        1px solid #e7edf3;

    border-radius: 16px;

    box-shadow:
        0 8px 28px rgba(3,25,77,0.055);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.impact-stat-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 4px;

    background:
        var(--ibima-green);

    transform:
        scaleX(0);

    transform-origin: left;

    transition:
        transform 0.3s ease;
}


.impact-stat-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(3,25,77,0.12);

    box-shadow:
        0 18px 40px rgba(3,25,77,0.10);
}


.impact-stat-card:hover::before {

    transform:
        scaleX(1);
}



/* ==========================================================
   STAT ICON
========================================================== */

.stat-icon {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    border-radius: 14px;

    font-size: 23px;
}


.stat-icon.green {

    color: var(--ibima-green);

    background:
        #e8f7f0;
}


.stat-icon.blue {

    color: var(--ibima-navy);

    background:
        #eaf0fb;
}



/* ==========================================================
   STAT NUMBER
========================================================== */

.impact-stat-card h3 {

    margin:
        0 0
        4px;

    color:
        var(--ibima-navy);

    font-size: 32px;

    line-height: 1.15;

    font-weight: 800;
}



/* ==========================================================
   STAT TITLE
========================================================== */

.impact-stat-card > span {

    display: block;

    margin-bottom: 9px;

    color:
        var(--ibima-green);

    font-size: 15px;

    font-weight: 800;
}



/* ==========================================================
   STAT DESCRIPTION
========================================================== */

.impact-stat-card p {

    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.65;
}



/* ==========================================================
   04. IMPACT FOCUS SECTION
========================================================== */

.impact-focus-section {

    padding:
        85px 0
        90px;

    background:
        #f5f8fb;
}


.focus-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}



/* ==========================================================
   FOCUS CARD
========================================================== */

.focus-card {

    padding:
        30px 25px;

    text-align: center;

    background:
        #ffffff;

    border:
        1px solid #e6ebf1;

    border-radius: 14px;

    box-shadow:
        0 7px 24px rgba(3,25,77,0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.focus-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        0 16px 35px rgba(3,25,77,0.09);
}


.focus-card > i {

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto
        18px;

    border-radius: 50%;

    color:
        var(--ibima-green);

    background:
        #e8f7f0;

    font-size: 23px;
}


.focus-card:nth-child(even) > i {

    color:
        var(--ibima-navy);

    background:
        #eaf0fb;
}


.focus-card h3 {

    margin:
        0 0
        8px;

    color:
        var(--ibima-navy);

    font-size: 19px;

    font-weight: 800;
}


.focus-card p {

    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.65;
}



/* ==========================================================
   05. COMMUNITY WORK
========================================================== */

.community-work-section {

    padding:
        90px 0;

    background:
        #ffffff;
}


.community-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}



/* ==========================================================
   COMMUNITY CARD
========================================================== */

.community-card {

    position: relative;

    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid #e6ebf1;

    border-radius: 16px;

    box-shadow:
        0 9px 30px rgba(3,25,77,0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.community-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        0 18px 40px rgba(3,25,77,0.11);
}



/* ==========================================================
   COMMUNITY IMAGE
========================================================== */

.community-card img {

    display: block;

    width: 100%;

    height: 260px;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.community-card:hover img {

    transform:
        scale(1.04);
}



/* ==========================================================
   COMMUNITY CONTENT
========================================================== */

.community-content {

    padding:
        25px 27px
        27px;
}


.community-content h3 {

    margin:
        0 0
        8px;

    color:
        var(--ibima-navy);

    font-size: 21px;

    font-weight: 800;
}


.community-content p {

    margin: 0;

    color: #667085;

    font-size: 15px;

    line-height: 1.7;
}



/* ==========================================================
   06. STORIES OF CHANGE
========================================================== */

.stories-section {

    padding:
        85px 0
        90px;

    background:
        #f5f8fb;
}


.stories-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}



/* ==========================================================
   STORY CARD
========================================================== */

.story-card {

    position: relative;

    padding:
        34px 30px
        30px;

    background:
        #ffffff;

    border:
        1px solid #e6ebf1;

    border-radius: 15px;

    box-shadow:
        0 8px 28px rgba(3,25,77,0.05);

    overflow: hidden;
}


.story-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 5px;

    height: 100%;

    background:
        var(--ibima-green);
}


.story-card > i {

    display: block;

    margin-bottom: 18px;

    color:
        var(--ibima-green);

    font-size: 27px;
}


.story-card p {

    margin:
        0 0
        20px;

    color:
        #4b5563;

    font-size: 15px;

    line-height: 1.75;

    font-style: italic;
}


.story-card h4 {

    margin: 0;

    color:
        var(--ibima-navy);

    font-size: 14px;

    font-weight: 800;
}



/* ==========================================================
   07. IMPACT BY PROGRAM
========================================================== */

.program-impact-section {

    padding:
        90px 0;

    background:
        #ffffff;
}


.program-impact-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 55px;

    align-items: center;
}



/* ==========================================================
   PROGRAM IMPACT LIST
========================================================== */

.program-impact-list {

    display: flex;

    flex-direction: column;

    gap: 22px;
}


.program-impact-list article {

    display: grid;

    grid-template-columns:
        auto 1fr;

    gap: 15px;

    padding:
        20px 21px;

    background:
        #f8fafc;

    border:
        1px solid #e7edf3;

    border-radius: 12px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.program-impact-list article:hover {

    transform:
        translateX(5px);

    box-shadow:
        0 10px 25px rgba(3,25,77,0.07);
}


.program-impact-list article > i {

    margin-top: 3px;

    color:
        var(--ibima-green);

    font-size: 20px;
}


.program-impact-list h3 {

    margin:
        0 0
        5px;

    color:
        var(--ibima-navy);

    font-size: 17px;

    line-height: 1.4;

    font-weight: 800;
}


.program-impact-list p {

    margin: 0;

    color:
        #667085;

    font-size: 14px;

    line-height: 1.6;
}



/* ==========================================================
   PROGRAM IMPACT IMAGE
========================================================== */

.program-impact-image {

    position: relative;

    overflow: hidden;

    min-height: 440px;

    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(3,25,77,0.12);
}


.program-impact-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(3,25,77,0.50) 100%
        );

    pointer-events: none;
}


.program-impact-image img {

    display: block;

    width: 100%;

    height: 100%;

    min-height: 440px;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.program-impact-image:hover img {

    transform:
        scale(1.04);
}



/* ==========================================================
   08. IMPACT CTA
========================================================== */

.impact-cta {

    position: relative;

    overflow: hidden;

    padding:
        60px 0;

        background:
        var(--ibima-blue);
}


.impact-cta::before {

    content: "";

    position: absolute;

    top: -150px;

    right: -90px;

    width: 350px;

    height: 350px;

    border:
        60px solid rgba(255,255,255,0.035);

    border-radius: 50%;
}


.impact-cta::after {

    content: "";

    position: absolute;

    bottom: -170px;

    left: -110px;

    width: 360px;

    height: 360px;

    border:
        45px solid rgba(255,255,255,0.03);

    border-radius: 50%;
}



/* ==========================================================
   CTA CONTENT
========================================================== */

.impact-cta-content {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 40px;

    align-items: center;
}


.cta-text span {

    display: block;

    margin-bottom: 7px;

    color:
        var(--ibima-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.8px;
}


.cta-text h2 {

    margin:
        0 0
        9px;

    color:
        #ffffff;

    font-size: 31px;

    line-height: 1.25;

    font-weight: 800;
}


.cta-text p {

    max-width: 680px;

    margin: 0;

    color:
        rgba(255,255,255,0.75);

    font-size: 15px;

    line-height: 1.7;
}



/* ==========================================================
   CTA ACTIONS
========================================================== */

.cta-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


.cta-actions a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 105px;

    padding:
        13px 18px;

    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;
}


.cta-actions a:hover {

    transform:
        translateY(-2px);
}


.cta-actions .btn-primary {

    color:
        #ffffff;

    background:
        var(--ibima-green);
}


.cta-actions .btn-primary:hover {

    color:
        var(--ibima-navy);

    background:
        #ffffff;
}


.cta-actions .btn-outline {

    color:
        #ffffff;

    background:
        transparent;

    border:
        1px solid rgba(255,255,255,0.45);
}


.cta-actions .btn-outline:hover {

    color:
        var(--ibima-navy);

    background:
        #ffffff;

    border-color:
        #ffffff;
}


.cta-actions .btn-secondary {

    color:
        var(--ibima-navy);

    background:
        #ffffff;
}


.cta-actions .btn-secondary:hover {

    color:
        #ffffff;

    background:
        var(--ibima-green);
}



/* ==========================================================
   09. TABLET
========================================================== */

@media (max-width: 992px) {

    /* HERO */

    .impact-hero-content {

        width: 72%;
    }


    /* STATS */

    .impact-stats-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 20px;
    }


    /* FOCUS */

    .focus-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    /* STORIES */

    .stories-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    /* PROGRAM IMPACT */

    .program-impact-grid {

        grid-template-columns:
            1fr;

        gap: 35px;
    }


    .program-impact-image {

        min-height: 400px;
    }


    .program-impact-image img {

        min-height: 400px;
    }


    /* CTA */

    .impact-cta-content {

        grid-template-columns:
            1fr;

        gap: 25px;
    }


    .cta-actions {

        justify-content: flex-start;
    }

}



/* ==========================================================
   10. MOBILE
========================================================== */

@media (max-width: 768px) {

    /* ======================================================
       HERO
    ====================================================== */

    .impact-hero {

        min-height: 335px;

        background:
            linear-gradient(
                90deg,
                rgba(3,25,77,0.96),
                rgba(3,25,77,0.76)
            ),

            url("../images/impact-hero.jpg")
            center center /
            cover no-repeat;
    }


    .impact-hero::after {

        bottom: -45px;

        height: 75px;

        border-top-width: 6px;
    }


    .impact-hero-content {

        width: 100%;

        padding:
            60px 0
            70px;
    }


    .impact-hero-text h1 {

        font-size: 37px;
    }


    .impact-hero-text p {

        max-width: 100%;

        font-size: 15px;

        line-height: 1.7;
    }



    /* ======================================================
       GENERAL HEADINGS
    ====================================================== */

    .impact-heading {

        margin-bottom: 35px;
    }


    .impact-heading h2 {

        font-size: 29px;
    }


    .impact-heading p {

        font-size: 15px;
    }



    /* ======================================================
       STATS
    ====================================================== */

    .impact-stats-section {

        padding:
            62px 0
            68px;
    }


    .impact-stats-grid {

        grid-template-columns:
            1fr;

        gap: 18px;
    }


    .impact-stat-card {

        min-height: auto;

        padding:
            27px 23px;
    }


    .impact-stat-card h3 {

        font-size: 30px;
    }



    /* ======================================================
       FOCUS
    ====================================================== */

    .impact-focus-section {

        padding:
            65px 0
            70px;
    }


    .focus-grid {

        grid-template-columns:
            1fr;

        gap: 17px;
    }


    .focus-card {

        padding:
            27px 22px;
    }



    /* ======================================================
       COMMUNITY WORK
    ====================================================== */

    .community-work-section {

        padding:
            68px 0
            72px;
    }


    .community-grid {

        grid-template-columns:
            1fr;

        gap: 20px;
    }


    .community-card img {

        height: 240px;
    }



    /* ======================================================
       STORIES
    ====================================================== */

    .stories-section {

        padding:
            65px 0
            70px;
    }


    .stories-grid {

        grid-template-columns:
            1fr;

        gap: 18px;
    }


    .story-card {

        padding:
            29px 25px;
    }



    /* ======================================================
       PROGRAM IMPACT
    ====================================================== */

    .program-impact-section {

        padding:
            70px 0;
    }


    .program-impact-list {

        gap: 16px;
    }


    .program-impact-list article {

        padding:
            18px;
    }


    .program-impact-image {

        min-height: 330px;

        border-radius: 15px;
    }


    .program-impact-image img {

        min-height: 330px;
    }



    /* ======================================================
       CTA
    ====================================================== */

    .impact-cta {

        padding:
            50px 0;
    }


    .cta-text h2 {

        font-size: 26px;
    }


    .cta-text p {

        font-size: 14px;
    }


    .cta-actions {

        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }


    .cta-actions a {

        width: 100%;
    }

}



/* ==========================================================
   11. SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    /* HERO */

    .impact-hero-text h1 {

        font-size: 32px;
    }


    .impact-hero-text p {

        font-size: 14px;
    }


    /* STAT */

    .impact-stat-card {

        padding:
            24px 20px;
    }


    .stat-icon {

        width: 54px;

        height: 54px;

        margin-bottom: 17px;

        font-size: 21px;
    }


    .impact-stat-card h3 {

        font-size: 28px;
    }


    /* COMMUNITY */

    .community-card img {

        height: 215px;
    }


    .community-content {

        padding:
            22px 21px
            24px;
    }


    .community-content h3 {

        font-size: 19px;
    }


    /* PROGRAM IMPACT */

    .program-impact-list article {

        grid-template-columns:
            auto 1fr;

        gap: 11px;
    }


    .program-impact-list h3 {

        font-size: 16px;
    }


    .program-impact-image {

        min-height: 280px;
    }


    .program-impact-image img {

        min-height: 280px;
    }


    /* CTA */

    .cta-text h2 {

        font-size: 24px;
    }

}