.courses-page .padding {
    padding-left: var(--padding-left);
    padding-right: var(--padding-left);
}

.courses--section_d {
    display: none;
}

.courses--section_m {
    margin-top: 4rem;
    border-top: 1px solid var(--color-blue);
}

.courses--section-type {
    margin-bottom: 1rem;
}

.courses--section-type > .course-title {
    margin-top: .5rem;
}

.courses--section-type_headline {
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: var(--color-blue);
    position: sticky;
    top: 75px;
    z-index: 2;
}

.courses--section-type > .gallery {
    margin: 1rem 0;
}



/* DESKTOP */
@media only screen and (min-width: 1024px) {
    .courses-page h3 {
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .courses--section_m {
        display: none;
    }

    .courses--section_d {
        display: block;
        margin-top: 4rem;
    }

    .courses--section-header {
        display: flex;
        position: sticky;
        top: 75px;
        padding-top: .5rem;
        padding-bottom: .5rem;
        background-color: var(--color-white);
        border-bottom: 1px solid var(--color-gray);
        z-index: 2;
    }

    .courses--section-header a {
        margin-right: 1em;
        transition: 300ms;
    }

    .courses--type {
        padding-top: .75rem;
        padding-bottom: 10rem;
        scroll-margin-top: 132px;
    }
    .courses--type:not(:last-of-type) {
        border-bottom: 1px solid var(--color-blue);
    }

    .courses--type > div {
        display: flex;
        flex-wrap: wrap;
    }
    
    .courses--type#pg {
        display: flex;
        flex-wrap: wrap;
    }

    .courses--type#pg > li {
        width: 50%;
        padding-right: 1rem;
    }

    .courses--type .course-block{
        margin-right: 1rem;
        margin-bottom: 2rem;
    }
    .courses--type .course-block:nth-child(3n) {
        margin-right: 0 !important;
    }

    .courses--type > li {
        margin-top: -1rem;
    }
}

/* DESKTOP LARGE */
@media only screen and (min-width: 1760px) {
    .courses--type .course-block:nth-child(3n) {
        margin-right: 1rem !important;
    }

    .courses--type .course-block:nth-child(4n) {
        margin-right: 0 !important;
    }
}

@media (hover: hover) {
    .courses--section-header a:hover {
        color: var(--color-blue) !important;
    }
}