/* ================================================================
   DDO SOMALIA PROGRAMS PAGE - STYLES
   ================================================================ */

/* =========================
   TOP HEADER - PROGRAMS PAGE
========================= */

.top-header-programs {
    background: #12961C;
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    font-size: 0.9rem;
}

.top-header-programs .top-header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.top-header-programs .header-contact {
    display: flex;
    gap: 2rem;
}

.top-header-programs .header-contact a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.top-header-programs .header-contact a:hover {
    color: #24B15E;
}

.top-header-programs .header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-header-programs .language-switch select {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* =========================
   NAVBAR - PROGRAMS PAGE
========================= */

.navbar-programs {
    position: fixed;
    top: 3rem;
    width: 100%;
    z-index: 1000;
    background: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container-programs {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    gap: 2rem;
}

.nav-menu-programs {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu-programs a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu-programs a:hover,
.nav-menu-programs a.active {
    color: #24B15E;
}

.donate-btn-programs {
    background: #12961C;
    color: white;
    padding: 0.85rem 2.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.donate-btn-programs:hover {
    background: #24B15E;
}

.mobile-menu-toggle-programs {
    display: none;
    background: #12961C;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* =========================
   PROGRAMS PAGE SECTIONS
========================= */

.programs-page {
    width: 100%;
}

.programs-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.programs-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 70%, transparent 100%), 
                url('../images/ddo-bg-003.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    margin-top: -8rem;
    padding-top: 8rem;
}

.programs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 150, 28, 0.1);
    z-index: 0;
}

.programs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    color: white;
    text-align: left;
    padding: 3rem 2rem;
}

.programs-hero-label {
    font-size: 0.9rem;
    color: #24B15E;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.programs-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.programs-hero p {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Programs Overview */
.programs-overview {
    padding: 5rem 2rem;
    background: white;
}

.programs-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.overview-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: #f8f8f8;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overview-card:hover {
    background: linear-gradient(135deg, #f0f8f5 0%, #e8f5f0 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.overview-icon {
    font-size: 2.5rem;
    color: #12961C;
    margin-bottom: 1.5rem;
}

.overview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #000;
}

.overview-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Detailed Programs */
.programs-detailed {
    padding: 5rem 2rem;
    background: #f8f8f8;
}

.program-detail {
    background: white;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.program-detail:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.program-header {
    background: linear-gradient(135deg, #f0f8f5 0%, #e8f5f0 100%);
    padding: 2rem;
    border-bottom: 3px solid #12961C;
    position: relative;
}

.program-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #000;
}

.program-badge {
    display: inline-block;
    background: #12961C;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.program-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem;
    align-items: start;
}

.program-image {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 1rem;
    border-radius: 8px;
    overflow: visible;
    min-height: auto;
    padding-right: 2rem;
    justify-self: center;
}

.program-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 4px;
    display: block;
}

.program-image:hover img {
    transform: scale(1.05);
}

.program-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.program-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.program-text h4 {
    color: #12961C;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.program-activities {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.program-activities li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.program-activities li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #12961C;
    font-weight: bold;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f8f5;
    border-radius: 8px;
}

.metric {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #12961C;
    margin-bottom: 0.5rem;
}

.metric-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-program-cta {
    display: inline-block;
    background: #12961C;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-program-cta:hover {
    background: #24B15E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 150, 28, 0.3);
}

/* Program Implementation */
.programs-implementation {
    padding: 5rem 2rem;
    background: white;
}

.programs-implementation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.implementation-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.implementation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #12961C 0%, #24B15E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h4 {
    color: #000;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}

/* Success Stories */
.programs-stories {
    padding: 5rem 2rem;
    background: #f8f8f8;
}

.programs-stories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.stories-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #12961C;
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.story-card h4 {
    color: #12961C;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.story-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.story-attribution {
    color: #999;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
}

/* CTA Section */
.programs-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #12961C 0%, #24B15E 100%);
    color: white;
    text-align: center;
}

.programs-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.programs-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-primary {
    background: white;
    color: #12961C;
}

.btn-cta-primary:hover {
    background: #f0f8f5;
    transform: translateY(-3px);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #12961C;
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .top-header-programs {
        padding: 0.75rem 1rem;
    }

    .top-header-programs .top-header-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-container-programs {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        height: auto;
    }

    .nav-container-programs .logo {
        width: 50px;
        height: 50px;
    }

    .mobile-menu-toggle-programs {
        display: block;
    }

    .donate-btn-programs {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-menu-programs {
        display: none;
    }

    .nav-menu-programs.active {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .programs-hero {
        min-height: 50vh;
        background-attachment: scroll;
    }

    .programs-hero h1 {
        font-size: 2rem;
    }

    .program-content {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 1.5rem;
    }

    .program-image {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding-right: 0;
        width: 100%;
        min-height: auto;
        overflow: hidden;
        order: 1;
    }
    
    .program-image img {
        height: 150px;
        object-fit: cover;
        width: 100%;
    }

    .program-text {
        order: 2;
        width: 100%;
    }

    .impact-metrics {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .implementation-steps,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        padding: 1.75rem 1.5rem;
    }

    .programs-overview,
    .programs-detailed,
    .programs-implementation,
    .programs-stories,
    .programs-cta {
        padding: 3rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .programs-hero h1 {
        font-size: 1.5rem;
    }

    .program-header h2 {
        font-size: 1.3rem;
    }

    .program-text h3 {
        font-size: 1.3rem;
    }

    .program-image {
        grid-template-columns: 1fr;
    }

    .program-image img {
        height: 120px;
    }

    .programs-cta h2 {
        font-size: 1.8rem;
    }

    .btn-program-cta,
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}}
