/* css/programs-page.css */

/* --- Programs Page (programs.html) Specific Styles --- */

.page-hero-section { /* Common style for subpage hero sections */
    background-color: var(--background-medium);
    padding-top: calc(var(--header-height) + 40px); /* Adjusted based on user feedback */
    padding-bottom: 60px; /* Adjusted based on user feedback */
    text-align: center;
}

.page-hero-section .section-title { /* Uses global .section-title, specific overrides if needed */
    margin-bottom: 20px;
}

.hero-page-subtitle { /* Common for subpage hero sections */
    font-size: 1.1rem;
    color: var(--text-color-dark);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

#program-details-section .container { /* Container for program details */
    max-width: 1000px;
}

.program-detail-item { /* Individual program block */
    display: flex;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    overflow: hidden;
    transition: box-shadow var(--transition-speed);
}

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

.program-detail-item:nth-child(odd) {
    flex-direction: row;
}

.program-detail-item:nth-child(even) {
    flex-direction: row-reverse;
}

.program-detail-image {
    flex: 0 0 40%;
    min-height: 300px;
}

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

.program-detail-content {
    flex: 1 1 60%;
    padding: 30px 40px;
}

.program-detail-content h2 {
    font-family: var(--font-family-headings);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.program-detail-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #444;
}

.program-detail-content h3 { /* For "Key Learning Areas" */
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.program-detail-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.program-detail-content ul li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.program-detail-content strong {
    font-weight: 600;
    color: var(--text-color-dark);
}

.program-detail-content .btn { /* Button within program content */
    margin-top: 20px;
}

.program-divider { /* Separator between programs */
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 60px auto;
    max-width: 80%;
}

/* --- Responsive adjustments for Program Details (programs-page.css) --- */
@media (max-width: 992px) {
    .program-detail-item,
    .program-detail-item:nth-child(even) {
        flex-direction: column;
    }

    .program-detail-image {
        flex-basis: 250px;
        width:100%;
    }

    .program-detail-content {
        padding: 25px 30px;
    }
    .program-detail-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* .page-hero-section specific to programs page, if needed to override global */
    .page-hero-section { /* This is also in global.css for general subpages, ensure consistency or specific overrides here if programs page hero is different */
        padding-top: calc(var(--header-height) + 30px); /* Example: specific padding for programs page hero on mobile */
    }
    .hero-page-subtitle { /* Also in global.css */
        font-size: 1rem;
    }
    .program-detail-content {
        padding: 20px;
    }
    .program-detail-content h2 {
        font-size: 1.6rem;
    }
    .program-detail-content h3 {
        font-size: 1.1rem;
    }
    .program-divider {
        margin: 40px auto;
    }
}