/* 
   IMPACT PAGE SPECIFIC STYLES - FLEXBOX VERSION
*/

/* ============================================
   PAGE BACKGROUND — subtle photo behind everything
   ============================================ */
body {
    background: 
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url('../images/programs/food004.jpg') center/cover fixed;
}

.page-header {
    padding: 60px 0 50px;
    background: linear-gradient(
        135deg,
        rgba(27, 67, 50, 0.92) 0%,
        rgba(45, 106, 79, 0.85) 50%,
        rgba(27, 67, 50, 0.92) 100%
    ),
    url('../images/about/treehouse-photo-003.jpg') center/cover no-repeat;
    border-bottom: none;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;          /* white on dark green header */
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.section-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand i {
    font-size: 1.8rem;
    color: #2D6A4F;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1B4332;
    letter-spacing: -0.5px;
}

.brand-family {
    font-size: 1.2rem;
    font-weight: 300;
    color: #6C757D;
    letter-spacing: -0.3px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: #1A1A1A;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
    background: #2D6A4F;
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
    background: #2D6A4F;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.4s ease;
}

.nav-links li { margin: 0; padding: 0; }

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #1A1A1A;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links li a:hover { color: #2D6A4F; background: #D8F3DC; }

.nav-links li a.active {
    color: #2D6A4F;
    background: #D8F3DC;
    font-weight: 600;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #2D6A4F;
    border-radius: 10px;
}

.btn-donate-nav {
    background: #2D6A4F !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.25);
}

.btn-donate-nav:hover {
    background: #1B4332 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.35);
}

.btn-donate-nav i { margin-right: 8px; }

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
}

/* ============================================
   STATS SECTION — photo strip background
   ============================================ */
.stats-section {
    margin-top: 40px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius:20px ;
    padding: 70px 0;
    position: relative;
    background: linear-gradient(
        rgba(27, 67, 50, 0.88),
        rgba(27, 67, 50, 0.88)
    ),
    url('../images/about/treehouse-photo-015.jpg') center/cover fixed;
}

/* Section heading inside stats */
.stats-section .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.stats-section .section-heading h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.stats-section .section-heading p {
    color: rgba(255,255,255,0.75);
}

.stat-card-big {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card-big:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.stat-number-big {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.stat-label-big {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 8px;
}

/* ============================================
   SUCCESS STORIES — light frosted cards
   ============================================ */
.stories-section {
    padding: 70px 0;
    background: transparent;   /* lets page bg photo show through */
}

.story-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    padding: 30px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.story-card .story-icon {
    font-size: 2rem;
    color: #2D6A4F;
    margin-bottom: 12px;
}

.story-card h4 {
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.story-card p {
    color: #6C757D;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
}

.story-status {
    display: inline-block;
    background: #D8F3DC;
    color: #2D6A4F;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 12px;
}

/* ============================================
   RESPONSIVE - MOBILE & TABLET
   ============================================ */
@media (max-width: 768px) {
    .nav-container { height: 64px; padding: 0 16px; }
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 16px 20px 24px;
        gap: 4px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li { width: 100%; }

    .nav-links li a {
        display: flex;
        justify-content: center;
        padding: 12px 16px;
        width: 100%;
        font-size: 1rem;
        border-radius: 8px;
        text-align: center;
    }

    .nav-links li a:hover { background: #D8F3DC; color: #2D6A4F; }
    .nav-links li a.active::after { display: none; }

    .btn-donate-nav {
        justify-content: center !important;
        padding: 14px 20px !important;
        margin-top: 4px;
        width: 100% !important;
        text-align: center !important;
    }

    .brand-name { font-size: 1.2rem; }
    .brand-family { font-size: 1rem; }
    .nav-brand i { font-size: 1.5rem; }

    .page-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .stat-number-big { font-size: 2.4rem; }

    /* fix background-attachment on mobile */
    body {
        background: 
            linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
            url('../images/about/treehouse-photo-015.jpg') center/cover no-repeat;
        background-attachment: scroll;
    }

    .stats-section {
        background: linear-gradient(rgba(27,67,50,0.88), rgba(27,67,50,0.88)),
        url('../images/about/treehouse-photo-015.jpg') center/cover no-repeat;
        background-attachment: scroll;
    }

    .stat-card-big {
        flex: 1 1 calc(50% - 24px) !important;
        min-width: 150px !important;
        max-width: none !important;
    }

    .story-card {
        flex: 1 1 calc(50% - 24px) !important;
        min-width: 200px !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .nav-container { height: 56px; padding: 0 12px; }
    .nav-links { top: 56px; padding: 12px 16px 20px; max-height: calc(100vh - 56px); }
    .brand-name { font-size: 1rem; }
    .brand-family { font-size: 0.85rem; }
    .nav-brand i { font-size: 1.3rem; }
    .nav-links li a { padding: 10px 14px; font-size: 0.9rem; }
    .btn-donate-nav { padding: 12px 16px !important; font-size: 0.85rem !important; }

    .page-header { padding: 40px 0 30px; }
    .page-title { font-size: 1.5rem; }
    .section-title { font-size: 1.4rem; }
    .stat-number-big { font-size: 2rem; }

    .stat-card-big {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .story-card {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .stat-label-big { font-size: 0.9rem; }
    .story-card p { font-size: 0.9rem; }
}

@media (max-width: 360px) {
    .stat-card-big { padding: 20px 16px; }
    .stat-number-big { font-size: 1.8rem; }
    .stat-label-big { font-size: 0.8rem; }
    .story-card { padding: 20px 16px; }
    .story-card h4 { font-size: 1rem; }
    .story-card p { font-size: 0.85rem; }
}