/* ========================================
   Latest Programs
   ======================================== */

/* Desktop: 2 columns */
.latest-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 38px;
    align-items: stretch;
    width: 100%;
    font-family: "Jost", sans-serif;
}

/* Program card */
.program-card {
    display: flex;
    align-items: stretch;
    min-width: 0;
    height: 322px;
    min-height: 322px;
    overflow: hidden;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    font-family: "Jost", sans-serif;
}

/* Image: fixed 230px × 322px */
.program-card-image {
    flex: 0 0 230px;
    width: 230px;
    min-width: 230px;
    height: 322px;
    overflow: hidden;
}

.program-card-image img {
    display: block;
    width: 230px;
    min-width: 230px;
    height: 322px;
    min-height: 322px;
    object-fit: cover;
    object-position: center;
}

/* Content */
.program-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 28px 26px 32px;
    font-family: "Jost", sans-serif;
}

/* Title and colored dot */
.program-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    margin: 0 0 15px;
}

.program-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border-radius: 50%;
}

.program-card-heading h3 {
    margin: 0;
    color: #333333;
    font-family: "Jost", sans-serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
}

/* Description */
.program-card-description {
    margin: 0;
    color: #6A6A6A;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
}

.program-card-description p {
    margin: 0 0 10px;
    color: #6A6A6A;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
}

.program-card-description p:last-child {
    margin-bottom: 0;
}

/* Button: normal state */
.program-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px 23px;
    border: none;
    border-radius: 30px;
    background: #C7664A;
    color: #F7EFE6 !important;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
}

/* Button: hover state */
.program-card-button:hover,
.program-card-button:focus-visible {
    background: #333333 !important;
    color: #FFFFFF !important;
}

/* Empty state */
.programs-empty {
    color: #6A6A6A;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 300;
}

/* ========================================
   Tablet: 1 column
   Keep images at 230px × 322px
   ======================================== */
@media (max-width: 1150px) {
    .latest-programs-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

/* ========================================
   Small mobile screens
   Images scale proportionally to fit
   ======================================== */

/* ========================================
   Small mobile screens
   Images stretch to match card height
   ======================================== */
@media (max-width: 480px) {
    .program-card {
        height: auto;
        min-height: 260px;
        align-items: stretch;
        border-radius: 15px;
    }

    .program-card-image {
        flex: 0 0 40%;
        width: 40%;
        min-width: 0;
        height: auto;
        align-self: stretch;
    }

    .program-card-image img {
        display: block;
        width: 100%;
        min-width: 0;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .program-card-content {
        height: auto;
        padding: 20px 16px 25px;
    }

    .program-card-heading {
        gap: 8px;
        margin-bottom: 10px;
    }

    .program-dot {
        flex-basis: 10px;
        width: 10px;
        height: 10px;
        margin-top: 7px;
    }

    .program-card-heading h3 {
        font-size: 18px;
    }

    .program-card-description,
    .program-card-description p {
        font-size: 14px;
        line-height: 1.6;
    }

    .program-card-button {
        margin-top: 10px;
        padding: 10px 17px;
        font-size: 15px;
        flex-shrink: 0;
    }
}