/*---   Update Cards on header slider   ---*/

.cards-grid {
    max-width: 980px !important;
    width: 980px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 480px));
    gap: 20px;
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translate(-50%, 0);
}

.cards-grid--elem {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 10px 20px 0 rgba(80, 70, 60, 0.15);
    background-color: #fff;
    text-align: center;
}

.cards-grid--image {
    display: block;
    width: 240px;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px 0 0 20px;
}

.cards-grid--image-mobil {
    display: none;
}

.cards-grid--content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 350px;
    min-width: 0;
    height: 100%;
    margin-left: 0;
    margin-bottom: -10px;
}

.cards-grid--content h2 {
    font-family: "GuthenBloots", arial, sans-serif;
    line-height: 0.8;
    color: #000;
    font-size: var(--campaign-title-size, 59px);
    margin: 0;
    text-align: center;
}

.cards-grid--content p {
    font-family: "Roboto Condensed", sans-serif;
    margin: 14px 0 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
}

.cards-grid--content p strong {
    font-weight: 500;
}

.cards-grid.has-many {
    width: min(1480px, calc(100vw - 40px));
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.has-many .cards-grid--image {
    width: calc(45% - 10px);
}

.cards-grid.has-many .cards-grid--content {
    flex: 1 1 auto;
    width: auto;
}

.cards-grid.is-fallback {
    grid-template-columns: minmax(480px, 480px);
    justify-content: center;
}

.course-card-term {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    vertical-align: top;
}

.course-card-separator {
    margin: 0 4px;
}

.course-card-copy {
    display: block;
    margin-top: 3px;
}

.course-card-lesson-calendar {
    display: grid;
    gap: 2px;
    max-height: 92px;
    overflow-y: auto;
}

.course-card-lesson-calendar .is-inactive {
    color: #c8372d;
}

.course-card-term.is-full strong,
.course-card-term.is-full {
    color: #c8372d;
}

.cards-grid--content .button {
    width: 220px;
    height: 40px;
}

/* @media only screen and (max-width: 989.98px) {
    .cards-grid {
        width: 820px;
        grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
        top: -40px;
    }

    .cards-grid--image {
        width: 180px;
        height: 180px;
    }

    .cards-grid--content {
        width: 270px;
        margin-left: 0px;
        margin-bottom: -5px;
    }

    .cards-grid--content h2 {
        font-size: 36px;
    }

    .cards-grid--content p {
        margin: 10px 0 -14px 0;
        font-size: 14px;
    }

    .cards-grid--content .button {
        width: 80%;
        height: 35px;
    }

} */

@media only screen and (max-width: 989.98px) {
    .cards-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        position: relative;
        left: auto;
        top: auto;
        transform: translate(0);
    }

    .cards-grid.has-many {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .cards-grid.has-many .cards-grid--content {
        width: 100%;
    }

    .cards-grid--elem {
        flex-direction: column;
        border-radius: 25px;
    }

    .cards-grid--content {
        padding: 35px 0;
        width: 100%;
        
    margin-left: 0px;
    margin-bottom: 0px;
    }

    .cards-grid--image {
        display: none;
    }

    .cards-grid--image-mobil {
        display: block;
        max-height: 190px;
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center;
        border-radius: 25px 25px 0 0;
    }

    .cards-grid--content h2 {
        font-size: 40px;
    }

    .cards-grid--content p {
        font-size: 18px;
        margin: 14px 0 0 0;
    }

    .cards-grid--content .button {
        width: 100%;
        max-width: 250px;
    }
}

@media only screen and (max-width: 699.98px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }


    .cards-grid.has-many,
    .cards-grid.is-fallback {
        grid-template-columns: 1fr;
    }
}
