html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    
}

main{
    padding-top: var(--header-height);
}

* {
    box-sizing: border-box;
}

.programs {
    margin-bottom: 3%;
    padding: 0 20px;
}

.programs h1,
.programs h3 {
    text-align: center;
}

.programs h1 {
    font-size: 36px;
    font-weight: 900;
    margin: 7% 0 10px 0;
    color: #464646;
}

.programs h3 {
    font-size: 18px;
    font-weight: 100;
    margin-bottom: 30px;
    color: #464646;
}

.imgUndergraduatePrograms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    justify-items: center;
}

.imgUndergraduatePrograms a {
    display: flex;
    justify-content: center;
    width: 100%;
}

.imgUndergraduatePrograms img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 5%;
    transition: transform 0.3s ease;
}

.imgUndergraduatePrograms img:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {

    html, body {
        padding-top: 6%;
    }

    .programs {
        padding: 0 15px;
    }

    .programs h1 {
        font-size: 30px;
        margin-top: 10%;
    }

    .programs h3 {
        font-size: 16px;
    }

    .imgUndergraduatePrograms {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .imgUndergraduatePrograms img {
        max-width: 100%;
    }
}

/* =============== RESPONSIVE =============== */

@media (max-width: 720px) {

    html, body {
        padding-top: 14%;
    }

    .programs {
        padding: 0 10px;
    }

    .programs h1 {
        font-size: 26px;
        margin-top: 18%;
        line-height: 1.2;
    }

    .programs h3 {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .imgUndergraduatePrograms {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .imgUndergraduatePrograms a {
        width: 100%;
    }

    .imgUndergraduatePrograms img {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }
}