/* assets/css/programs.css */

/* ==============================================
   PROGRAMS PAGE STYLES
   ============================================== */

/* --- Programs Hero Section (UPDATED for no side-cropping) --- */
.programs-hero-section {
    width: 100%;
    height:auto;
    background-color: #e8f5e9; /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.programs-hero-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Ensures the full image is visible without cropping */
    object-position: center;
}

/* --- Grid Section --- */
.programs-grid-section {
    padding: 50px 0 80px 0;
    background-color: #ffffff;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Program Card --- */
.program-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.program-card-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.program-card-content {
    padding: 25px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-card-content h3 {
    font-size: 1.4rem;
    color: #1a3a5c;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.program-subtitle {
    font-size: 1.05rem;
    color: #2e8b57;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

.program-card-content p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Learn More Button */
.program-card-content .btn-sm {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2e8b57;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.program-card-content .btn-sm:hover {
    background-color: #236b43;
    transform: translateY(-2px);
}

.program-card-content .btn-sm i {
    margin-left: 8px;
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .programs-hero-section {
        background-color: #e8f5e9;
    }
    .program-card-image {
        height: 180px;
    }
    .program-card-content {
        padding: 20px;
    }
    .program-card-content h3 {
        font-size: 1.2rem;
    }
    .program-subtitle {
        font-size: 0.95rem;
    }
}