.commencement-profile-list {
    padding: 1rem 1.2rem;
}

.commencement-profile-list h2,
.commencement-profile-list h3,
.commencement-profile-list h4,
.commencement-profile-list h5 {
    color: #0a53a2;
    text-transform: uppercase;
}

.commencement-profile-list h2 {
    font-size: 2rem;
    text-align: center;
}

.commencement-profile-list h4 {
    line-height: 1;
    font-size: 1.4rem;
}

.commencement-profiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 3rem;
}

.commencement-profile-list.has-background {
    margin-top: 0 !important;
}

.commencement-profiles h4,
.commencement-profiles p {
    margin: 1rem 0 0;
}

.commencement-profiles p {
    color: #141414;
    font-size: 0.9rem;
    font-weight: 700;
}

:where(.wp-block-columns.is-layout-flex) {
    gap: 0;
}

.commencement-profile-list-modal-content-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.commencement-profile-list-modal-content-button {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: #00427d;
    color: white;
}

@media screen and (min-width: 768px) {
    .commencement-profiles {
        padding: 0;
        grid-template-columns: repeat(3, 1fr);
    }

    .commencement-profile-list h2 {
        font-size: 4rem;
        text-align: left;
    }

    .commencement-profiles p {
        color: #141414;
        font-size: 1.1rem;
        font-weight: 700;
    }
}

@media screen and (min-width: 992px) {
    .commencement-profiles {
        grid-template-columns: repeat(5, 1fr);
    }

    .commencement-profiles.four-columns {
        grid-template-columns: repeat(4, 1fr);
    }

    .commencement-profile-list-modal-content {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

@media screen and (min-width: 1200px) {
    .commencement-profiles p {
        font-size: 0.9rem;
    }

    :where(.wp-block-columns.is-layout-flex) {
        gap: 2rem;
    }
}
