/*
Theme Name: Peda Africa V2
Theme URI: https://pedaafrica.org
Author: Peda Africa
Description: Clean, professional NGO WordPress theme for education-focused nonprofits.
Version: 1.0
Text Domain: peda-africa-v2
*/

/* =========================
   Brand Variables
========================= */
:root {
    --primary: #050a4e;
    --secondary: #f1a021;
    --text: #333333;
    --light-bg: #f9f9f9;
}

/* =========================
   Base Styles
========================= */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

/* =========================
   Layout
========================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================
   Header
========================= */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header img {
    max-height: 60px;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-menu a {
    font-weight: 600;
}

/* =========================
   Footer
========================= */
.site-footer {
    background: var(--primary);
    color: #ffffff;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

/* =====================================================
   SINGLE PROGRAM PAGE (STATIC)
===================================================== */
.single-program img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.single-program .container {
    max-width: 900px;
}

/* =====================================================
   HOMEPAGE — PROGRAM CARDS
===================================================== */

.home .home-program-card {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 22px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home .home-program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 60px rgba(5, 10, 78, 0.25);
}

/* Homepage images ONLY */
.home .home-program-card img.wp-post-image {
    width: 100%;
    height: auto;
    display: block;

    border-top-right-radius: 55px;
    border-bottom-left-radius: 55px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;

    transition: transform 0.45s ease;
}

.home .home-program-card:hover img.wp-post-image {
    transform: scale(1.12);
}

.home .home-program-card h3 {
    margin-top: 20px;
    color: var(--primary);
}

.home .home-program-card a {
    display: inline-block;
    margin-top: 12px;
    color: var(--secondary);
    font-weight: 600;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.home .home-program-card:hover a {
    font-size: 1.08em;
    transform: translateY(-3px);
}

/* Mobile uniform image size */
@media (max-width: 767px) {
    .home .home-program-card img.wp-post-image {
        height: 220px;
        object-fit: cover;
    }
}

/* =====================================================
   HOMEPAGE — Vision & Mission
===================================================== */

.home-vision-mission {
    margin-top: 0;
    padding-bottom: 70px;
}

.vision-mission-bar {
    height: 6px;
    background: linear-gradient(
        to right,
        var(--primary) 65%,
        var(--secondary) 35%
    );
    margin-bottom: 50px;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 50px;
}

.vm-card {
    background: #ffffff;
    padding: 40px 35px;
    text-align: center;
    border-radius: 14px;
    box-shadow:
        0 12px 32px rgba(5, 10, 78, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

.vm-badge {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    margin-bottom: 18px;
}

.vision-badge { background: var(--primary); }
.mission-badge { background: var(--secondary); }

.vm-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.vm-card p {
    font-size: 16.5px;
    line-height: 1.85;
    margin: 0 auto;
}

/* Scroll animation */
.vm-animate,
.impact-animate {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.7s ease;
}

.vm-animate.visible,
.impact-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   HOMEPAGE — Impact Stats (Flat, Clean)
===================================================== */

.home-impact-stats {
    padding: 80px 0;
    background: var(--light-bg);
    text-align: center;
}

/* Section heading */
.impact-heading {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 50px;
}

/* Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
}

/* Individual stat */
.impact-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Number */
.impact-number {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Label */
.impact-item p {
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

/* Scroll animation */
.impact-animate {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.impact-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .impact-heading {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .impact-grid {
        gap: 35px;
    }
}
/* =====================================================
   HOMEPAGE — OUR APPROACH (ENHANCED)
===================================================== */

.home-approach {
    padding: 90px 0;
    background: #ffffff;
    overflow: hidden;
}

/* Grid */
.approach-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
}

/* =========================
   TEXT SIDE
========================= */

.approach-text {
    padding: 60px 60px 60px 0;
    position: relative;

    /* subtle pattern */
    background:
        radial-gradient(circle at 20% 20%, rgba(5,10,78,0.04) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(5,10,78,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}

.approach-label {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 3px;
}

.approach-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* =========================
   NUMBERED PILLARS
========================= */

.approach-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-size: 17px;
    line-height: 1.75;
}

/* Number icon */
.approach-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;

    background: var(--primary);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 18px;
}

/* =========================
   IMAGE SIDE — FULL BLEED
========================= */

.approach-image {
    position: relative;
}

.approach-image img {
    width: calc(100% + 50vw);
    height: 75%;
    object-fit: cover;
    display: block;

    /* Signature curve */
    border-top-left-radius: 130px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-text {
        padding: 50px 20px;
    }

    .approach-image img {
        width: 100%;
        border-top-left-radius: 90px;
    }
}

/* =====================================================
   DID YOU KNOW — FIXED & STABLE
===================================================== */

.home-facts {
    margin: 0 !important;
    padding: 0 120px 90px;
}

/* FORCE SIDE-BY-SIDE */
.home-facts .container {
    display: flex;
    align-items: center;
    gap: 14px; /* VERY CLOSE */
}

/* LEFT TEXT */
.facts-left {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 82px;
    line-height: 0.95;
    letter-spacing: -1.5px;
    min-width: 260px;
}

.facts-left span {
    display: block;
}

.facts-left .primary {
    color: var(--primary);
}

.facts-left .secondary {
    color: var(--secondary);
}

.facts-box {
    min-height: 180px;
}


/* FACT BOX */
.facts-box {
    background: #ffffff;
    padding: 38px 42px;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.10);
    max-width: 520px;
}

/* SLIDER */
.facts-slider {
    position: relative;
    min-height: 90px;
}

.fact-slide {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fact-slide.active {
    opacity: 1;
    transform: translateY(0);
}
/* =====================================================
   CLOSE GAP FROM APPROACH
===================================================== */

.home-approach {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .home-facts {
        padding: 0 28px 70px;
    }

    .home-facts .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .facts-left {
        font-size: 52px;
    }

    .facts-box {
        width: 100%;
    }
}

/* =====================================
   DID YOU KNOW — SLIDER POLISH
===================================== */

/* Facts box enhancement */
.facts-box {
    position: relative;
    overflow: hidden;
}

/* Subtle accent divider */
.facts-box::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 40px;
    width: 48px;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--primary),
        var(--secondary)
    );
    border-radius: 2px;
}

/* Slider container auto-height */
.facts-slider {
    position: relative;
    transition: height 0.45s ease;
}

/* Individual slides */
.fact-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    pointer-events: none;
}

/* Active slide */
.fact-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Smooth exit */
.fact-slide.exit {
    opacity: 0;
    transform: translateY(-14px);
}

/* ===============================
   DID YOU KNOW — SLIDER ENHANCEMENTS
=============================== */

.facts-slider {
    position: relative;
    transition: height 0.45s ease;
}

.fact-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fact-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Dots */
.facts-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.facts-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
}

.facts-dot.active {
    background: var(--secondary);
}
/* =====================================
   MOBILE NAVIGATION SYSTEM
===================================== */

/* -------------------------
   HAMBURGER TOGGLE
------------------------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}

.menu-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* -------------------------
   DESKTOP (DEFAULT)
------------------------- */
.main-menu {
    display: block;
}

.main-menu ul {
    display: flex;
    gap: 25px;
}

/* -------------------------
   MOBILE
------------------------- */
@media (max-width: 900px) {

    /* Show hamburger */
    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    /* Header positioning */
    .site-header {
        position: relative;
        z-index: 1000;
    }

    /* Hide menu initially */
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: #ffffff;
        display: none;
        flex-direction: column;

        border-top: 1px solid #eee;
        box-shadow: 0 14px 40px rgba(0,0,0,0.10);
    }

    /* Open state */
    .main-menu.is-open {
        display: block;
    }

    /* Menu list */
    .main-menu ul {
        flex-direction: column;
        margin: 0;
        padding: 10px 0;
        gap: 0;
    }

    /* Menu items */
    .main-menu li {
        border-bottom: 1px solid #f2f2f2;
    }

    .main-menu li:last-child {
        border-bottom: none;
    }

    /* Links */
    .main-menu a {
        display: block;
        padding: 16px 22px;
        font-size: 16px;
        font-weight: 600;
        color: var(--primary);
    }

    .main-menu a:hover {
        background: #f7f7f7;
        color: var(--secondary);
    }

    /* -------------------------
       OPTIONAL: HAMBURGER → X
    ------------------------- */
    .main-menu.is-open ~ .menu-toggle .menu-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .main-menu.is-open ~ .menu-toggle .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .main-menu.is-open ~ .menu-toggle .menu-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* =====================================
   HAMBURGER → X ANIMATION
===================================== */

.menu-toggle.is-active .menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================================
   HARD FIX: APPROACH → DID YOU KNOW GAP
===================================== */

/* Kill extra space at the end of Approach */
.home-approach {
    padding-bottom: 5 !important;
    margin-bottom: 5 !important;
}

/* Pull Did You Know upward */
.home-facts {
    padding-top: 0 !important;
    margin-top: -40px !important;
}

/* =====================================
   FIX MOBILE PAGE SHAKE (HORIZONTAL OVERFLOW)
===================================== */

/* Stop horizontal scrolling globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix Did You Know section overflow */
@media (max-width: 900px) {
    .home-facts {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .facts-box {
        max-width: 100% !important;
    }
}

/* Fix approach image overflow on mobile */
@media (max-width: 900px) {
    .approach-image img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =====================================
   DID YOU KNOW — BACKGROUND ACCENT
===================================== */

.home-facts {
    position: relative;
    overflow: hidden;
}

/* Accent shape */
.home-facts::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(241,160,33,0.18),
        rgba(241,160,33,0.05),
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
}

/* Ensure content stays above accent */
.home-facts .container {
    position: relative;
    z-index: 1;
}

/* Mobile refinement */
@media (max-width: 900px) {
    .home-facts::before {
        top: -120px;
        right: -180px;
        width: 360px;
        height: 360px;
    }
}


/* =====================================
   TYPOGRAPHY HIERARCHY — DID YOU KNOW
===================================== */

/* Left headline */
.facts-left {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 300;
    letter-spacing: -1.2px;
}

/* Fact text */
.fact-slide {
    font-family: "Inter", "Arial", sans-serif;
    font-size: 17.5px;
    line-height: 1.75;
    color: #222;
}

/* Desktop polish */
@media (min-width: 901px) {
    .fact-slide {
        font-size: 18px;
    }
}

/* =====================================
   SECTION DIVIDER: APPROACH → FACTS
===================================== */

.section-divider {
    width: 100%;
    height: 60px;
    position: relative;
    margin: 0;
    overflow: hidden;
}

/* Curved gradient line */
.section-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 3px;
    transform: translate(-50%, -50%);
    background: linear-gradient(
        to right,
        rgba(5,10,78,0),
        var(--primary),
        var(--secondary),
        rgba(241,160,33,0)
    );
    border-radius: 10px;
}

/* Optional soft glow */
.section-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 12px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(5,10,78,0.08),
        transparent 70%
    );
}

/* Mobile refinement */
@media (max-width: 900px) {
    .section-divider {
        height: 44px;
    }

    .section-divider::before {
        width: 90%;
    }
}

/* =====================================
   SECTION TITLE — OUR PROGRAMS
===================================== */

.section-title {
    text-align: center;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.programs-title {
    font-size: 42px;
    line-height: 1.15;
}

.programs-title .primary {
    color: var(--primary);
}

.programs-title .secondary {
    color: var(--secondary);
}

/* Mobile */
@media (max-width: 768px) {
    .programs-title {
        font-size: 32px;
    }
}


/* =====================================
   MEET OUR TEAM
===================================== */

.home-team {
    padding: 100px 0;
    background: #000;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.team-heading {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 70px;
}

.team-heading .primary {
    color: #fff;
}

.team-heading .secondary {
    color: var(--secondary);
}

/* SLIDER WRAPPER */
.team-slider-wrapper {
    position: relative;
    max-width: 1100px;
    margin: auto;
}

/* SLIDER */
.team-slider {
    display: flex;
    gap: 40px;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* SLIDE */
.team-slide {
    flex: 0 0 320px;
    opacity: 0.4;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.team-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* CARD */
.team-card {
    background: #f0f0f0;
    padding: 28px 20px 30px;
    border-radius: 26px;
    color: #000;
}

/* IMAGE */
.team-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 24px;
}

/* NAME */
.team-name {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

/* ROLE */
.team-role {
    font-size: 14px;
    margin-top: 4px;
    font-weight: 600;
}

/* NAV BUTTONS */
.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #fff;
    border: none;
    font-size: 42px;
    cursor: pointer;
    z-index: 10;
}

.team-nav.prev { left: -50px; }
.team-nav.next { right: -50px; }

/* CTA */
.team-cta {
    margin-top: 60px;
}

.team-cta a {
    background: var(--secondary);
    color: #000;
    padding: 16px 44px;
    font-weight: 700;
    display: inline-block;
}

/* MOBILE */
@media (max-width: 768px) {

    .team-heading {
        font-size: 40px;
    }

    .team-slide {
        flex: 0 0 260px;
    }

    .team-nav {
        display: none;
    }
}

/* ===============================
   TEAM MODAL STYLES
=============================== */
.team-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.team-modal.open {
    display: flex;
}

.team-modal-content {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.team-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

.team-modal-image img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.team-modal-name {
    margin: 0;
    font-size: 26px;
}

.team-modal-role {
    color: #666;
    margin-bottom: 20px;
}

.team-modal-socials a {
    display: inline-block;
    margin-right: 15px;
    font-weight: 600;
    color: #050a4e;
}

/* MOBILE */
@media (max-width: 600px) {
    .team-modal-content {
        padding: 20px;
    }

    .team-modal-name {
        font-size: 22px;
    }
}
