/* 
   PROGRAMS PAGE - GREEN THEME (Inherited from Home)
*/

/* ============================================
   PAGE HEADER - Green Gradient
   ============================================ */
.page-header {
    padding: 60px 0 50px;
    background: linear-gradient(
        135deg,
        rgba(27, 67, 50, 0.95) 0%,
        rgba(45, 106, 79, 0.85) 50%,
        rgba(27, 67, 50, 0.95) 100%
    ),
    url('../images/about/treehouse-photo-016.jpg') center/cover no-repeat;
    border-bottom: none;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--treehouse-orange);
    margin: 16px auto 0;
    border-radius: 4px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   SECTION BADGE - Green Theme
   ============================================ */
.section-badge {
    display: inline-block;
    background: var(--treehouse-green-pale);
    color: var(--treehouse-green);
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--treehouse-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title .highlight {
    color: var(--treehouse-green);
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs-section {
    padding: 80px 0;
    background: #ffffff;
}

/* FLEXBOX GRID - Full Width Images */
.programs-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

/* Card with full-width image - Green Theme */
.program-card {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 280px;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9edf2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(45, 106, 79, 0.12);
    border-color: var(--treehouse-green-light);
}

/* Program Image - Full width */
.program-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--treehouse-green);
    flex-shrink: 0;
}

.program-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.program-card:hover .program-card-image {
    transform: scale(1.05);
}

/* Icon Overlay - Green Theme */
.program-icon-overlay {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--treehouse-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
    border: 3px solid white;
    transition: all 0.3s ease;
    z-index: 2;
}

.program-card:hover .program-icon-overlay {
    transform: translateX(-50%) scale(1.1);
    background: var(--treehouse-green-dark);
}

/* Program Content */
.program-content {
    padding: 28px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-content h4 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--treehouse-dark);
    margin-bottom: 10px;
    margin-top: 0;
}

.program-content p {
    color: var(--treehouse-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}

/* Program Tag - Green Theme */
.program-tag {
    display: inline-block;
    background: var(--treehouse-green-pale);
    color: var(--treehouse-green);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.program-card:hover .program-tag {
    background: var(--treehouse-green);
    color: #ffffff;
}

/* ============================================
   CONSTRUCTION NOTE
   ============================================ */
.construction-note {
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.construction-note i {
    color: #FFC107;
    font-size: 1.2rem;
}

.construction-note strong {
    color: var(--treehouse-dark);
}

/* ============================================
   CTA SECTION - Green Theme
   ============================================ */
.cta-section {
    background: var(--treehouse-green);
    padding: 60px 0;
    color: white;
    margin-top: 0;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-donate {
    background: var(--treehouse-orange);
    color: #fff !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 30px rgba(244, 162, 97, 0.35);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-donate:hover {
    background: var(--treehouse-terracotta);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(244, 162, 97, 0.45);
}

.btn-donate i {
    margin-right: 10px;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.btn-outline-light i {
    margin-right: 10px;
}

/* ============================================
   RESPONSIVE - PAGE HEADER
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        padding: 50px 0 40px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE - PROGRAMS
   ============================================ */
/* Large screens - 3 columns */
@media (min-width: 1025px) {
    .program-card {
        flex: 1 1 calc(33.333% - 30px);
        max-width: 400px;
        min-width: 280px;
    }
    
    .program-image-wrapper {
        height: 220px;
    }
}

/* Tablets - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .programs-flex {
        gap: 24px;
    }
    
    .program-card {
        flex: 1 1 calc(50% - 24px);
        max-width: 450px;
        min-width: 280px;
    }
    
    .program-image-wrapper {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile - 2 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .programs-flex {
        gap: 16px;
    }
    
    .program-card {
        flex: 1 1 calc(50% - 16px);
        max-width: 350px;
        min-width: 150px;
    }
    
    .program-image-wrapper {
        height: 160px;
    }
    
    .program-icon-overlay {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        bottom: -16px;
    }
    
    .program-content {
        padding: 18px 14px 14px;
    }
    
    .program-content h4 {
        font-size: 1rem;
    }
    
    .program-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .program-tag {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Small Mobile - 2 columns */
@media (max-width: 480px) {
    .programs-flex {
        gap: 12px;
    }
    
    .program-card {
        flex: 1 1 calc(50% - 12px);
        max-width: 300px;
        min-width: 130px;
    }
    
    .program-image-wrapper {
        height: 120px;
    }
    
    .program-icon-overlay {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
        bottom: -14px;
        border-width: 2px;
    }
    
    .program-content {
        padding: 12px 10px 10px;
    }
    
    .program-content h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .program-content p {
        font-size: 0.7rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .program-tag {
        font-size: 0.55rem;
        padding: 2px 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-badge {
        font-size: 0.65rem;
        padding: 3px 12px;
    }
}

/* Extra Small Mobile - Single Column */
@media (max-width: 380px) {
    .program-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .program-image-wrapper {
        height: 180px;
    }
    
    .program-icon-overlay {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        bottom: -16px;
    }
    
    .program-content {
        padding: 20px 16px 16px;
    }
    
    .program-content h4 {
        font-size: 1rem;
    }
    
    .program-content p {
        font-size: 0.85rem;
    }
}

/* ============================================
   RESPONSIVE - CTA & CONSTRUCTION
   ============================================ */
@media (max-width: 768px) {
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }
    
    .cta-buttons .btn-donate,
    .cta-buttons .btn-outline-light {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 1.3rem;
    }
    
    .cta-description {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .construction-note {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
    }
}
