/* Programs Page Specific Styles */

/* BFP Video in Service Learning Section */
.bfp-video-container {
    margin-top: 60px;
    text-align: center;
}

.bfp-video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
}

.program-video-embed {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Programs Video Section */
.programs-video-section {
    padding: 80px 0;
    background: var(--background-light);
}

.programs-video-header {
    text-align: center;
    margin-bottom: 60px;
}

.programs-video-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.programs-video-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.programs-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.programs-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Programs Hero Section */
.programs-hero {
    background: var(--background-white);
    padding: 100px 0 80px 0;
    text-align: center;
}

.programs-hero-title {
    font-size: 64px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.programs-hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .programs-hero-title {
        font-size: 42px;
    }
    
    .programs-hero-subtitle {
        font-size: 20px;
    }
}

/* Program Sections */
.program-section {
    padding: 80px 0;
}

.program-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.program-image {
    flex-shrink: 0;
    width: 500px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-content {
    flex: 1;
    max-width: 600px;
}

/* Program Categories */
.program-category {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.program-category-health {
    background: rgba(107, 174, 60, 0.125);
    color: var(--primary-green);
}

.program-category-tutor,
.program-category-language {
    background: rgba(244, 164, 96, 0.125);
    color: var(--accent-orange);
}

.program-category-scholar {
    background: rgba(90, 150, 50, 0.125);
    color: var(--primary-green-dark);
}

.program-category-workshop {
    background: rgba(255, 217, 61, 0.125);
    color: var(--accent-yellow);
}

.program-category-service {
    background: rgba(200, 240, 216, 0.125);
    color: var(--primary-green-dark);
}

/* Program Titles and Descriptions */
.program-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.1;
}

.program-content .program-description {
    font-size: 20px;
    color: var(--text-secondary) !important;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Program Stats */
.program-stats {
    display: flex;
    gap: 40px;
}

.program-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
}

.stat-health {
    color: var(--primary-green);
}

.stat-tutor {
    color: var(--accent-orange);
}

.stat-scholar {
    color: var(--primary-green-dark);
}

.stat-language {
    color: var(--primary-green);
    font-size: 36px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Section Background Colors */
.program-health-section,
.program-scholar-section,
.program-service-section {
    background: var(--background-light);
}

.program-tutor-section,
.program-workshop-section,
.program-language-section {
    background: var(--background-white);
}

/* Mid-page CTA Section */
.programs-mid-cta {
    background: var(--primary-green);
    padding: 80px 0;
    text-align: center;
}

.programs-cta-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 32px;
}

.programs-cta-text {
    font-size: 18px;
    color: rgba(232, 245, 233, 1);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.programs-cta-btn {
    background: white !important;
    color: var(--primary-green) !important;
    border: none !important;
    padding: 14px 28px;
    font-size: 16px;
    margin: 0 10px;
    display: inline-block;
}

.programs-cta-donate-btn {
    background: white !important;
    color: var(--primary-green) !important;
    border: none !important;
    padding: 4px 4px;
    font-size: 16px;
    margin: 0 10px;
    display: inline-block;
}

.programs-cta-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
}

/* Mobile responsiveness for CTA buttons */
@media (max-width: 768px) {
    .programs-cta-btn {
        display: block;
        width: 90%;
        max-width: 280px;
        margin: 10px auto;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .program-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .program-tutor-section .container,
    .program-workshop-section .container,
    .program-language-section .container {
        flex-direction: column-reverse;
    }
    
    .program-title {
        font-size: 36px;
    }
    
    .program-image {
        width: 100%;
        max-width: 500px;
        height: 400px;
    }
    
    .program-content {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .program-section {
        padding: 60px 0;
    }
    
    .program-title {
        font-size: 28px;
    }
    
    .program-description {
        font-size: 18px;
    }
    
    .program-image {
        height: 300px;
    }
    
    .program-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-language {
        font-size: 32px;
    }
    
    .programs-cta-title {
        font-size: 36px;
    }
    
    .programs-cta-text {
        font-size: 16px;
    }
}

/* Additional Program Section Spacing */
@media (max-width: 768px) {
    .program-category {
        margin-bottom: 16px;
    }
    
    .program-title {
        margin-bottom: 16px;
    }
    
    .program-description {
        margin-bottom: 20px;
    }
}

/* Ensure proper alignment for alternating layouts */
.program-tutor-section .program-content,
.program-workshop-section .program-content,
.program-language-section .program-content {
    order: 1;
}

.program-tutor-section .program-image,
.program-workshop-section .program-image,
.program-language-section .program-image {
    order: 2;
}

@media (max-width: 1024px) {
    .program-tutor-section .program-content,
    .program-workshop-section .program-content,
    .program-language-section .program-content {
        order: 2;
    }
    
    .program-tutor-section .program-image,
    .program-workshop-section .program-image,
    .program-language-section .program-image {
        order: 1;
    }
}

/* Program stats for informational sections */
.stat-value {
    margin-top: 4px;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 16px;
    }
}