/* =========================================================
   PROGRAM TYPES
========================================================= */

.program-types-section {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 40px;
    background: #eaf4f9;
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.program-types-container {
    width: calc(100% - 96px);
    max-width: 1580px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.program-types-section-title {
    margin: 0 0 40px;
    text-align: center;
    font-family: inherit;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #080808;
}


/* =========================================================
   GRID
========================================================= */

.program-types-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}


/* =========================================================
   CARD
========================================================= */

.program-type-card {
    position: relative;
    display: block;
    width: 100%;
    height: 415px;
    overflow: hidden;
    border-radius: 11px;
    text-decoration: none;
    background: #dddddd;
    box-sizing: border-box;
}


/* =========================================================
   IMAGE
========================================================= */

.program-type-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}


/* =========================================================
   DARK OVERLAY / TINT
========================================================= */

.program-type-overlay {
    position: absolute;
    inset: 0;
    background: #00000066;
    transition: background 0.3s ease;
}


/* =========================================================
   CONTENT
========================================================= */

.program-type-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* =========================================================
   TITLE
========================================================= */

.program-type-title {
    margin: 0;
    max-width: 250px;
    font-family: inherit;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    font-size: 20px;
}


/* =========================================================
   HOVER
========================================================= */

.program-type-card:hover {
    text-decoration: none;
}

.program-type-card:hover .program-type-image {
    transform: scale(1.05);
}

.program-type-card:hover .program-type-overlay {
    background: rgba(0, 0, 0, 0.48);
}

.program-type-card:hover .program-type-title {
    color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .program-types-container {
        width: calc(100% - 60px);
    }

    .program-types-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .program-type-card {
        height: 360px;
    }

    .program-types-section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 750px) {

    .program-types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-type-card {
        height: 340px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {

    .program-types-section {
        padding: 45px 0 55px;
    }

    .program-types-container {
        width: calc(100% - 40px);
    }

    .program-types-section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .program-types-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .program-type-card {
        height: 300px;
    }

    .program-type-title {
        font-size: 18px;
    }
}