/* ============================================================
   PROGRAM CARDS SECTION — main page
   ============================================================ */

:root {
    --MAIN: #00B2C0;
}

.program-cards {
    padding-top: 10px;
    padding-bottom: 100px;
}

/* --- Section title --- */
.program-cards__title {
    text-align: center;
    font-family: Raleway, sans-serif;
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 0.05em;
    margin-bottom: 48px;
}

.program-cards__title span {
    color: var(--MAIN);
    font-weight: 700;
}

/* --- Grid --- */
.program-cards__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Single card --- */
.program-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 330px;
    min-height: 444px;
    background: #F3F7F8;
    padding: 10px;
}

/* --- Card image wrapper --- */
.program-card__img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    height: 248px;
    margin-bottom: 8px;
}

.program-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Badges on image --- */
.program-card__badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.program-card__badge {
    display: flex;
    padding: 5px 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: #FFF;
    color: #0A0A0A;
    text-align: center;
    font-family: Raleway, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
}

/* --- Card body --- */
.program-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-card__title {
    color: #000;
    font-family: Raleway, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 8px;
}

.program-card__date {
    color: var(--MAIN);
    text-align: left;
    font-family: Raleway, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 8px;
}

.program-card__desc {
    color: #000;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 8px;
    flex-grow: 1;
}

/* --- Card buttons — always pinned to bottom, always in a row --- */
.program-card__actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: auto;
}

.program-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.program-card__btn--outline {
    border: 1.5px solid var(--MAIN);
    color: var(--MAIN);
    background: transparent;
}

.program-card__btn--outline:hover {
    background: var(--MAIN);
    color: #fff;
}

.program-card__btn--fill {
    background: var(--MAIN);
    color: #fff;
    border: 1.5px solid var(--MAIN);
}

.program-card__btn--fill:hover {
    background: transparent;
    color: var(--MAIN);
}

/* ============================================================
   FORMATIONS INTERNATIONALES — dark bg section
   ============================================================ */

.program-cards--intl {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.program-cards--intl .program-cards__title {
    color: #fff;
}

.program-cards--intl .program-cards__title span {
    color: var(--MAIN);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .program-cards {
        padding-bottom: 40px;
    }

    .program-cards__title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .program-cards--intl {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}
