/* =========================================================
   EPO WEBSITE - MAIN STYLESHEET
   Empowerment and Progress Organization (EPO)
   ========================================================= */


/* =========================================================
   1. EPO COLOR VARIABLES
   ========================================================= */

:root {

    /* Main EPO Brand Colors */
    --blue: #1F4E79;
    --green: #2E8B57;
    --orange: #F39C12;
    --red: #B91C1C;
    --brown: #92400E;

    /* Background Colors */
    --cream: #FEF3C7;
    --light: #3490ce;
    --white: #ffffff;

    /* Text Colors */
    --ink: #17202a;
    --muted: #5b6875;

    /* Effects */
    --shadow: 0 14px 40px rgba(31, 78, 121, 0.12);
    --radius: 18px;
}


/* =========================================================
   2. GLOBAL / RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        Arial,
        sans-serif;

    color: var(--ink);
    background: #ffffff;

    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================================
   3. GENERAL CONTAINER
   ========================================================= */

.container {
    width: min(1160px, 92%);
    margin: auto;
}


/* =========================================================
   4. ACCESSIBILITY - SKIP LINK
   ========================================================= */

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 10px;
    top: 10px;

    background: #ffffff;
    padding: 10px;

    z-index: 1000;
}


/* =========================================================
   5. TOP BAR
   ========================================================= */

.topbar {
    background: var(--blue);
    color: #ffffff;

    font-size: 0.9rem;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 7px 0;
}


/* =========================================================
   6. SITE HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 100;

    background: #ffffff;

    border-bottom: 1px solid #e7edf2;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 78px;

    gap: 20px;
}


/* =========================================================
   7. REAL EPO LOGO
   ========================================================= */

/*
   IMPORTANT:

   Put your real EPO logo here:

   asset/images/epo-logo.png

   HTML:

   <a class="brand" href="index.php" aria-label="EPO Home">
       <img src="asset/images/epo-logo.png"
            alt="Empowerment and Progress Organization (EPO) Logo">
   </a>
*/

.brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: var(--blue);

    font-weight: 800;

    font-size: 1.2rem;

    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 75px;

    height: auto;

    display: block;

    object-fit: contain;
}


/* =========================================================
   8. OLD CSS LOGO MARK
   ========================================================= */

/*
   This is only needed if some old page
   still uses <span class="logo-mark"></span>.

   If all pages use the real EPO logo,
   you can eventually remove this section.
*/

.logo-mark {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--green),
            var(--blue)
        );

    position: relative;
}

.logo-mark::after {
    content: 'EPO';

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    color: #ffffff;

    font-size: 12px;

    font-weight: 900;
}


/* =========================================================
   9. NAVIGATION
   ========================================================= */

.nav {
    display: flex;

    align-items: center;

    gap: 17px;
}

.nav a {
    font-weight: 700;

    font-size: 0.93rem;
}


/* Donate Button */

.nav .donate {
    background: var(--orange);

    color: #111111;

    padding: 10px 17px;

    border-radius: 999px;
}

.nav .donate:hover {
    text-decoration: none;

    opacity: 0.9;
}


/* Mobile Menu Button */

.menu-btn {
    display: none;

    border: 0;

    background: none;

    font-size: 28px;

    cursor: pointer;
}


/* =========================================================
   10. HERO SECTION
   ========================================================= */

.hero {
    background:
        linear-gradient(
            90deg,
            rgba(16, 43, 68, 0.90),
            rgba(31, 78, 121, 0.55)
        ),
        url('asset/images/climate.png')
        center / cover;

    color: #ffffff;
}

.hero-inner {
    min-height: 610px;

    display: flex;

    align-items: center;
}

.hero-copy {
    max-width: 760px;

    padding: 80px 0;
}


/* Hero Eyebrow */

.eyebrow {
    text-transform: uppercase;

    letter-spacing: 2px;

    font-weight: 800;

    color: var(--orange);
}


/* =========================================================
   11. HEADINGS
   ========================================================= */

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);

    margin: 12px 0 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    margin: 0 0 15px;

    color: var(--blue);
}

h3 {
    color: var(--blue);
}


/* =========================================================
   12. TEXT
   ========================================================= */

.lead {
    font-size: 1.2rem;

    max-width: 720px;
}

.small {
    font-size: 0.9rem;

    color: var(--muted);
}


/* =========================================================
   13. BUTTONS
   ========================================================= */

.btn {
    display: inline-block;

    padding: 13px 21px;

    border-radius: 999px;

    font-weight: 800;

    border: 2px solid transparent;

    margin: 8px 8px 0 0;

    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}


/* Primary Button */

.btn-primary {
    background: var(--orange);

    color: #111111;
}


/* Light Button */

.btn-light {
    border-color: #ffffff;

    color: #ffffff;
}


/* Outline Button */

.btn-outline {
    border-color: var(--blue);

    color: var(--blue);
}


/* =========================================================
   14. SECTIONS
   ========================================================= */

section {
    padding: 80px 0;
}

.section-head {
    max-width: 760px;

    margin-bottom: 35px;
}

.center {
    text-align: center;

    margin-left: auto;

    margin-right: auto;
}


/* =========================================================
   15. STATISTICS
   ========================================================= */

.stats {
    display: grid;

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

    gap: 18px;

    margin-top: -50px;

    position: relative;
}

.stat {
    background: #eef0ef;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    padding: 28px;
}

.stat strong {
    display: block;

    font-size: 2.4rem;

    color: var(--green);
}

.stat span {
    color: var(--muted);
}


/* =========================================================
   16. CARDS
   ========================================================= */

.card {
    background: #eef0ef;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    padding: 28px;
}

.card p {
    color: var(--muted);
}


/* =========================================================
   17. GRID SYSTEM
   ========================================================= */

.grid {
    display: grid;

    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}


/* =========================================================
   18. SPLIT SECTION
   ========================================================= */

.split {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 55px;

    align-items: center;
}


/* =========================================================
   19. IMAGE CARDS
   ========================================================= */

.image-card {
    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;

    height: 430px;

    object-fit: cover;
}


/* =========================================================
   20. ICON
   ========================================================= */

.icon {
    width: 54px;
    height: 54px;

    border-radius: 14px;

    background: var(--cream);

    display: grid;

    place-items: center;

    font-size: 25px;
}


/* =========================================================
   21. TAG / LABEL
   ========================================================= */

.tag {
    display: inline-block;

    background: #eaf5ef;

    color: var(--green);

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 0.8rem;

    font-weight: 800;
}


/* =========================================================
   22. DARK SECTION
   ========================================================= */

.dark {
    background: var(--blue);

    color: #ffffff;
}

.dark h2,
.dark h3 {
    color: #ffffff;
}

.dark p {
    color: #ffffff;
}


/* =========================================================
   23. CREAM SECTION
   ========================================================= */

.cream {
    background: var(--cream);
}


/* =========================================================
   24. PROGRAM CARDS
   ========================================================= */

.program-card {
    border-top: 5px solid var(--green);
}

.program-card:nth-child(2) {
    border-top-color: var(--orange);
}

.program-card:nth-child(3) {
    border-top-color: var(--red);
}

.program-card:nth-child(4) {
    border-top-color: var(--green);
}

.program-card:nth-child(5) {
    border-top-color: var(--blue);
}


/* =========================================================
   25. PAGE HERO
   ========================================================= */

.page-hero {
    background:
        linear-gradient(
            110deg,
            var(--blue),
            #2f6d9f
        );

    color: #ffffff;

    padding: 75px 0;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}


/* =========================================================
   26. BREADCRUMBS
   ========================================================= */

.breadcrumbs {
    font-size: 0.9rem;

    opacity: 0.85;
}


/* =========================================================
   27. TIMELINE
   ========================================================= */

.timeline {
    border-left: 3px solid var(--green);

    padding-left: 28px;
}

.timeline-item {
    margin-bottom: 30px;
}

.timeline-item strong {
    color: var(--green);
}


/* =========================================================
   28. IMPACT METRICS
   ========================================================= */

.metric {
    padding: 20px;

    border-left: 5px solid var(--orange);

    background: var(--light);
}


/* =========================================================
   29. PROJECT STATUS
   ========================================================= */

.project-status {
    font-weight: 800;

    color: var(--green);
}


/* =========================================================
   30. STORY QUOTE
   ========================================================= */

.story-quote {
    font-size: 1.35rem;

    font-style: italic;

    border-left: 5px solid var(--orange);

    padding-left: 20px;
}


/* =========================================================
   31. MEDIA / IMAGE OVERLAY
   ========================================================= */

.media {
    position: relative;

    border-radius: var(--radius);

    overflow: hidden;

    background: #0e2c45;
}

.media img {
    opacity: 0.7;

    height: 420px;

    width: 100%;

    object-fit: cover;
}

.media-content {
    position: absolute;

    inset: auto 30px 30px;

    color: #ffffff;
}


/* Play Button */

.play {
    display: inline-grid;

    place-items: center;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    background: var(--orange);

    color: #111111;

    font-size: 25px;
}


/* =========================================================
   32. FORMS
   ========================================================= */

.form {
    background: var(--light);

    padding: 30px;

    border-radius: var(--radius);
}

label {
    font-weight: 700;

    display: block;

    margin: 12px 0 6px;
}

input,
select,
textarea {
    width: 100%;

    padding: 13px;

    border: 1px solid #cbd5df;

    border-radius: 10px;

    font: inherit;

    background: #ffffff;
}

textarea {
    min-height: 150px;

    resize: vertical;
}


/* =========================================================
   33. NOTICE / ALERT
   ========================================================= */

.notice {
    padding: 16px 18px;

    border-left: 5px solid var(--orange);

    background: #fff8e8;

    margin: 20px 0;
}


/* =========================================================
   34. VIDEO
   ========================================================= */

.video-box {
    background: #102b44;

    border-radius: var(--radius);

    overflow: hidden;
}

.video-box video {
    width: 100%;

    display: block;

    min-height: 350px;

    object-fit: cover;
}


/* =========================================================
   35. CLEAN LIST
   ========================================================= */

.list-clean {
    padding-left: 18px;
}

.list-clean li {
    margin: 7px 0;
}


/* =========================================================
   36. FOOTER
   ========================================================= */

.footer {
    background: #102b44;

    color: #dfeaf2;

    padding: 60px 0 25px;
}

.footer h3 {
    color: #ffffff;
}

.footer-grid {
    display: grid;

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

    gap: 35px;
}

.footer a {
    color: #dfeaf2;
}


/* Footer Logo */

.footer-logo img {
    width: 85px;

    height: auto;

    margin-bottom: 20px;
}


/* Footer Bottom */

.footer-bottom {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.15);

    margin-top: 35px;

    padding-top: 20px;

    font-size: 0.9rem;

    display: flex;

    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   37. RESPONSIVE DESIGN - TABLETS
   ========================================================= */

@media (max-width: 950px) {

    /* Mobile Navigation */

    .nav {
        display: none;

        position: absolute;

        left: 0;
        right: 0;

        top: 78px;

        background: #ffffff;

        flex-direction: column;

        align-items: stretch;

        padding: 20px;

        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }


    /* Statistics */

    .stats,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Three-column grid */

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }


    /* Split sections */

    .split,
    .grid-2 {
        grid-template-columns: 1fr;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   38. RESPONSIVE DESIGN - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* Sections */

    section {
        padding: 55px 0;
    }


    /* Top Bar */

    .topbar .container {
        flex-direction: column;

        align-items: flex-start;

        gap: 2px;
    }


    /* Header */

    .nav-wrap {
        min-height: 70px;
    }

    .brand img {
        width: 65px;
    }


    /* Mobile Navigation Position */

    .nav {
        top: 70px;
    }


    /* Hero */

    .hero-inner {
        min-height: 520px;
    }

    .hero-copy {
        padding: 55px 0;
    }


    /* Grids */

    .stats,
    .grid-3,
    .grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }


    /* Images */

    .image-card img {
        height: 300px;
    }


    /* Footer */

    .footer-bottom {
        flex-direction: column;
    }
}

/* =========================================================
   EPO HERO FIVE-IMAGE SLIDESHOW
========================================================= */

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
}


/* Individual background slides */

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    opacity: 0;

    transition: opacity 1.5s ease-in-out;

    z-index: -3;
}


/* Active slide */

.hero-slide.active {
    opacity: 1;
}


/* Dark overlay for readable text */

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.48);

    z-index: -2;
}


/* Hero content stays above images */

.hero-inner {
    position: relative;
    z-index: 2;

    min-height: 650px;

    display: flex;
    align-items: center;
}


/* Hero text width */

.hero-copy {
    max-width: 760px;
}


/* Hero heading */

.hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    margin-bottom: 25px;
}


/* Hero paragraph */

.hero-copy .lead {
    max-width: 720px;
    font-size: 1.2rem;
    line-height: 1.8;
}


/* Hero buttons */

.hero-buttons {
    margin-top: 30px;
}


/* Slideshow dots */

.hero-dots {
    position: absolute;

    left: 50%;
    bottom: 30px;

    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    z-index: 5;
}


.hero-dot {
    width: 12px;
    height: 12px;

    padding: 0;

    border: 2px solid rgb(226, 231, 227);
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition: all 0.3s ease;
}


.hero-dot.active {
    background: white;

    transform: scale(1.25);
}


/* =========================================================
   PROGRAM CARDS
========================================================= */

.program-card,
.project-card {
    overflow: hidden;

    padding: 0;

    display: flex;
    flex-direction: column;
}


/* Program/project image */

.program-card > img,
.project-card > img {
    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}


/* Image hover effect */

.program-card:hover > img,
.project-card:hover > img {
    transform: scale(1.05);
}


/* Content underneath image */

.program-card .card-content,
.project-card .card-content {
    padding: 25px;

    flex: 1;
}


/* Keep icons inside content */

.program-card .icon {
    font-size: 2rem;

    margin-bottom: 10px;
}


/* =========================================================
   WHO WE ARE IMAGE
========================================================= */

.image-card {
    overflow: hidden;
    border-radius: 18px;
}


.image-card img {
    width: 100%;
    height: 100%;

    min-height: 350px;

    object-fit: cover;

    display: block;
}


/* =========================================================
   VIDEO
========================================================= */

.media video {
    width: 100%;

    display: block;

    border-radius: 18px;
}


/* =========================================================
   MOBILE HERO
========================================================= */

@media (max-width: 768px) {

    .hero {
        min-height: 580px;
    }

    .hero-inner {
        min-height: 580px;

        padding-top: 60px;
        padding-bottom: 70px;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .hero-copy .lead {
        font-size: 1rem;
    }

    .program-card > img,
    .project-card > img {
        height: 200px;
    }

}


/* =========================================================
   SMALL MOBILE DEVICES
========================================================= */

@media (max-width: 480px) {

    .hero {
        min-height: 540px;
    }

    .hero-inner {
        min-height: 540px;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }

    .hero-buttons .btn {
        display: block;

        width: 100%;

        margin-bottom: 10px;
    }

    /* =========================================================
   NEWSLETTER
========================================================= */

.newsletter-section {
    padding: 70px 0;
    background: #FEF3C7;
}

.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.newsletter-content h2 {
    margin-top: 10px;
    margin-bottom: 15px;
}

.newsletter-content p {
    max-width: 600px;
    line-height: 1.7;
}


/* Newsletter form */

.newsletter-form {
    width: 100%;
}

.newsletter-fields {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #e8e6e9;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}


/* Consent */

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.newsletter-consent input {
    margin-top: 4px;
}


/* Message */

.newsletter-form .form-message {
    margin-top: 15px;
    font-weight: 600;
}

.newsletter-form .form-message.success {
    color: #059669;
}

.newsletter-form .form-message.error {
    color: #b91c1c;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .newsletter-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-fields .btn {
        width: 100%;
    }

}

}

.social-link.instagram {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e80554;
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-link.instagram:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}
.social-link.facebook {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2d1dbe;
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-link.facebook:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.social-link.linkedin {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2a09d0;
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-link.linkedin:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.social-link.tiktok {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0e080a;
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-link.tiktok:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.social-link.youtube {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #cf1212;
    color: #ffffff;
    font-size: 22px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-link.youtube:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

/* =========================================================
   EPO IMPACT PAGE
========================================================= */


/* ---------------------------------------------------------
   REAL EPO LOGO
--------------------------------------------------------- */

.site-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.footer-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
}


/* ---------------------------------------------------------
   IMPACT HERO BACKGROUND
--------------------------------------------------------- */

.impact-hero {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.50)
        ),
        url("../images/impact-header.jpg");

    background-size: cover;

    background-position: center;

    color: #ffffff;
}


/* Make hero text readable */

.impact-hero h1 {
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    max-width: 800px;
}

.impact-hero p {
    color: #ffffff;
    max-width: 750px;
    font-size: 1.15rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   IMPACT OVERVIEW
--------------------------------------------------------- */

.impact-overview {
    padding: 80px 0;
    background: #ffffff;
}

.impact-stat {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.impact-stat .stat-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

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

    border-radius: 50%;

    background: rgba(46, 139, 87, 0.12);

    font-size: 1.4rem;
}

.impact-stat strong {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.impact-stat span {
    display: block;
}


/* ---------------------------------------------------------
   METRICS SECTION
--------------------------------------------------------- */

.impact-metrics {
    padding: 90px 0;
}


/* ---------------------------------------------------------
   CHART CARD
--------------------------------------------------------- */

.impact-chart-card {

    background: #ffffff;

    border-radius: var(--radius);

    padding: 30px;

    margin-bottom: 35px;

    box-shadow: var(--shadow);

    border: 1px solid rgba(31, 78, 121, 0.08);
}


/* Chart heading */

.chart-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 30px;

    margin-bottom: 25px;
}


.chart-label {

    display: inline-block;

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 8px;

    text-transform: uppercase;
}


.chart-header h3 {

    margin: 0 0 8px;

    font-size: 1.45rem;
}


.chart-header p {

    margin: 0;

    color: var(--muted);

    max-width: 700px;

    line-height: 1.7;
}


.chart-unit {

    white-space: nowrap;

    padding: 8px 14px;

    border-radius: 50px;

    background: rgba(31, 78, 121, 0.08);

    font-size: 0.85rem;

    font-weight: 600;
}


/* ---------------------------------------------------------
   CHART AREA
--------------------------------------------------------- */

.chart-container {

    position: relative;

    width: 100%;

    height: 350px;

    margin-top: 25px;
}


/* ---------------------------------------------------------
   EVIDENCE BOX
--------------------------------------------------------- */

.evidence-box {

    margin-top: 25px;

    padding: 18px 20px;

    border-left: 4px solid var(--green);

    background: rgba(46, 139, 87, 0.06);

    line-height: 1.7;

    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   IMPACT STORIES HERO
--------------------------------------------------------- */

.impact-stories-hero {

    position: relative;

    min-height: 390px;

    display: flex;

    align-items: center;

    padding: 80px 0;

    color: #ffffff;

    background-image:

        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),

        url("../images/impact-stories.jpg");

    background-size: cover;

    background-position: center;
}


.impact-stories-hero h2 {

    color: #ffffff;

    font-size: clamp(2.2rem, 5vw, 3.5rem);

    margin: 12px 0;
}


.impact-stories-hero p {

    color: #ffffff;

    max-width: 760px;

    font-size: 1.1rem;

    line-height: 1.8;
}


/* ---------------------------------------------------------
   IMPACT STORIES
--------------------------------------------------------- */

.impact-stories {

    padding: 90px 0;

    background: #ffffff;
}


/* Story card */

.impact-story-card {

    padding: 0;

    overflow: hidden;

    height: 100%;
}


/* Story image */

.story-image {

    width: 100%;

    height: 250px;

    overflow: hidden;
}


.story-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}


.impact-story-card:hover .story-image img {

    transform: scale(1.05);
}


/* Story text */

.story-content {

    padding: 28px;
}


.story-category {

    display: inline-block;

    margin-bottom: 10px;

    font-size: 0.75rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.story-content h3 {

    margin-top: 0;

    margin-bottom: 15px;
}


.story-content p {

    line-height: 1.7;
}


.story-quote {

    padding: 18px;

    margin: 20px 0;

    border-left: 4px solid var(--orange);

    background: rgba(243, 156, 18, 0.08);

    font-style: italic;
}


/* ---------------------------------------------------------
   HOW WE MEASURE IMPACT
--------------------------------------------------------- */

.metric-process {

    text-align: center;

    padding: 25px;
}


.process-icon {

    width: 65px;

    height: 65px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: rgba(46, 139, 87, 0.12);

    font-size: 1.5rem;
}


.metric-process h3 {

    margin-bottom: 10px;
}


.metric-process p {

    color: var(--muted);

    line-height: 1.7;
}


/* ---------------------------------------------------------
   SOCIAL MEDIA
--------------------------------------------------------- */

.social-links {

    display: flex;

    gap: 10px;

    margin-top: 20px;
}


.social-links a {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    text-decoration: none;

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

    transition: all 0.3s ease;
}


.social-links a:hover {

    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.2);
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 800px) {

    .chart-header {

        flex-direction: column;

        gap: 15px;
    }


    .chart-unit {

        white-space: normal;

        display: inline-block;
    }


    .chart-container {

        height: 280px;
    }


    .impact-hero {

        min-height: 360px;
    }


    .impact-stories-hero {

        min-height: 350px;
    }

}


@media (max-width: 600px) {

    .impact-chart-card {

        padding: 20px;
    }


    .chart-container {

        height: 250px;
    }


    .story-image {

        height: 220px;
    }

}
/* =====================================================
   EPO ACTION AREAS MAP
===================================================== */

.action-intro {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}

.action-intro .tag {
    display: inline-block;
    margin-bottom: 12px;
}

.action-intro h2 {
    margin: 0 0 15px;
    color: var(--blue);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.action-intro p {
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
}


/* =====================================================
   MAP TOOLBAR
===================================================== */

.map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.program-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.program-filter {
    border: none;
    background: #f2f5f7;
    color: #34495e;
    padding: 9px 14px;
    border-radius: 25px;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 600;
    transition: .2s ease;
}

.program-filter:hover {
    background: #e3ebef;
}

.program-filter.active {
    background: var(--blue);
    color: #fff;
}


/* =====================================================
   MAP TYPE
===================================================== */

.map-type {
    display: flex;
    gap: 5px;
    padding: 4px;
    background: #fff;
    border: 1px solid #dce3e7;
    border-radius: 30px;
}

.map-type button {
    border: none;
    background: transparent;
    padding: 8px 13px;
    border-radius: 22px;
    color: #52616d;
    cursor: pointer;
    font-weight: 600;
}

.map-type button.active {
    background: var(--blue);
    color: #fff;
}


/* =====================================================
   MAP
===================================================== */

#epoMap {
    width: 100%;
    height: 620px;
    border: 1px solid #d7e0e5;
    border-radius: 6px;
    overflow: hidden;
    background: #e7ecef;
    box-shadow: 0 15px 45px rgba(31,78,121,.13);
}

.leaflet-container {
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
}

.leaflet-container img {
    max-width: none !important;
}


/* =====================================================
   EPO MAP MARKER
===================================================== */

.epo-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.35);
}


/* =====================================================
   MAP POPUP
===================================================== */

.epo-popup {
    min-width: 230px;
}

.epo-popup h3 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 1.15rem;
}

.epo-popup p {
    margin: 7px 0;
    line-height: 1.5;
    color: #53616c;
}

.epo-popup strong {
    color: #17202a;
}


/* =====================================================
   BELOW MAP
===================================================== */

.map-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid #e3e8eb;
}

.map-bottom h3 {
    margin: 0 0 15px;
    color: var(--blue);
    font-size: 1.3rem;
}

.map-bottom p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}


/* =====================================================
   LEGEND
===================================================== */

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #53616c;
    font-size: .9rem;
}

.legend-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}

.education {
    background: #1F4E79;
}

.economic {
    background: #F39C12;
}

.gender {
    background: #B91C1C;
}

.environment {
    background: #2E8B57;
}

.social {
    background: #92400E;
}


/* =====================================================
   LOCATION NOTE
===================================================== */

.location-note {
    margin-top: 25px;
    padding: 16px 0;
    color: #687681;
    font-size: .86rem;
    line-height: 1.6;
    border-top: 1px solid #e6eaed;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    .map-toolbar {
        align-items: stretch;
    }

    .program-filters {
        width: 100%;
    }

    .program-filter {
        font-size: .78rem;
        padding: 8px 11px;
    }

    .map-type {
        width: 100%;
        justify-content: center;
    }

    .map-type button {
        flex: 1;
    }

    #epoMap {
        height: 500px;
    }

    .map-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


@media (max-width: 500px) {

    .program-filter {
        flex: 1 1 auto;
    }

    #epoMap {
        height: 430px;
    }
}

/* =====================================================
   PROJECT IMAGES
====================================================== */

.project-card {
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    background: #f1f1f1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    margin-top: 12px;
}

.project-card p {
    line-height: 1.7;
}


/* =====================================================
   PROJECT BUTTONS
====================================================== */

.btn {
    display: inline-block;
    padding: 12px 20px;
    margin: 6px 6px 6px 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}


/* =====================================================
   SOCIAL MEDIA
====================================================== */

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}


/* =====================================================
   EPO LOGO
====================================================== */

.site-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}


/* =========================================================
   COMMUNITY STORIES SECTION
   ========================================================= */

.community-stories {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

/* Image */
.community-stories-image {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.community-stories-image img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.community-stories-image:hover img {
    transform: scale(1.03);
}

/* Content */
.community-stories-content {
    max-width: 560px;
}

.community-stories-content .section-label {
    display: inline-block;
    margin-bottom: 12px;

    color: #2E8B57;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.community-stories-content h2 {
    margin: 0 0 20px;

    color: #1F4E79;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.community-stories-content p {
    margin: 0 0 16px;

    color: #4b5563;
    font-size: 1rem;
    line-height: 1.8;
}

/* Button */
.community-stories-content .btn {
    display: inline-block;
    margin-top: 12px;
    padding: 13px 24px;

    background: #1F4E79;
    color: #ffffff;

    border-radius: 6px;
    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.community-stories-content .btn:hover {
    background: #2E8B57;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .community-stories {
        grid-template-columns: 1fr;
        gap: 35px;
        margin: 55px auto;
    }

    .community-stories-content {
        max-width: 100%;
    }

    .community-stories-image img {
        height: 380px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .community-stories {
        margin: 45px auto;
        padding: 0 18px;
        gap: 28px;
    }

    .community-stories-image {
        border-radius: 10px;
    }

    .community-stories-image img {
        height: 280px;
    }

    .community-stories-content h2 {
        font-size: 2rem;
    }

    .community-stories-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .community-stories-content .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
