.cards {
    position: relative;
}

.panel-intro .intro-bottom .cards {
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
}

@media (min-width: 69em) {
    .panel-intro .intro-bottom .cards {
        margin-top: -7%;
        border: none;
    }
}

.panel-intro .intro-bottom .cards .kids-container {
    position: absolute;
    z-index: 11;
    left: 75%;
    top: 0;
    width: 30%;
    transform: translate(-50%, calc(-100% - 8px));
}

@media (min-width: 64em) {
    .panel-intro .intro-bottom .cards .kids-container {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: auto;
        width: 25%;
        transform: none;
    }
    
    .panel-intro .intro-bottom .cards .kids-look-up {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -150px);
    }
}

.cards .cols {
    display: flex;
    flex-wrap: wrap;
}

.cards .cols > * {
    flex: 1 1 320px;
    height: 245px;
}

@media (min-width: 40em) {    
    .cards .cols > * {
        flex: 1 1 50%;
        height: 245px;
    }
}

@media (min-width: 64em) {    
    .cards .cols > * {
        flex: 1 1 25%;
        height: 550px;
    }
}

@supports (display: grid) {
    .cards .cols {
        display: grid;
        gap: 4px;
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(285px, max-content);
    }

    .cards .cols > * { height: auto !important; }

    @media (min-width: 40em) {
        .cards .cols {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 64em) {
        .cards .cols {
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: minmax(550px, max-content);
        }
    }
}

@media (min-width: 69em) {
    .panel-intro .intro-bottom .cards .cols {
        position: relative;
        -webkit-mask-image: url(/includes/public/assets/shared/wave-mask.png);
                mask-image: url(/includes/public/assets/shared/wave-mask.png);
        -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
        -webkit-mask-size: 100% auto;
                mask-size: 100% auto;
        -webkit-mask-position: top center;
                mask-position: top center;
    }
}

.cards .slide .inner {
    position: relative;
    height: 100%;
}

.cards .inner .img-cont,
.cards .inner .img-cont a {
    position: relative;
    height: 100%;
}

.cards .inner .background-img {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cards .inner .background-img::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 50%)
}

.panel-intro .intro-bottom .cards .slide:nth-child(4) .inner .background-img.navy {
    background-image: url('/includes/public/assets/shared/navy-brush.png') !important;
    background-repeat: repeat;
}

.panel-intro .intro-bottom .cards .slide:nth-child(4) .inner .background-img::before {
    background-image: none;
}

.cards .inner .content-section {
    position: relative;
    z-index: 2;
    padding: 35px 20px;
}

.cards .slide .content-section h4,
.cards .slide .content-section h4 a {
    font-size: 24px;
    font-family: 'Mundo Sans W01 Medium';
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.cards .slide .content-section .description {
    margin-bottom: 15px;
    font-family: 'Mundo Sans W01 Regular', sans-serif;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
}

.cards .slide .content-section .content-button {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 100px;
    background-color: #1d4357;
    color: #fff;
    padding: 5px 20px;
    font-family: 'Mundo Sans W01 Medium';
    font-size: 14px;
    transition: margin .35s ease, color .2s ease, background-color .35s ease, padding .35s ease;
}

.cards .slide .inner > img {
    display: none;
    position: absolute;
    left: 50%;
    top: -125px;
    transform: translateX(-50%);
}

@media(min-width: 1025px) {
    .cards .inner .background-img {
        height: 100%;
        padding-bottom: 0;
    }

    .cards .slide:last-child .content-section h4,
    .cards .slide:last-child .content-section h4 a {
        font-size: 32px;
        line-height: 36px;
    }

    .cards .slide:last-child .content-section .content-button {
        font-size: 18px;
    }

    .cards .slide .content-section .content-button:hover {
        margin-top: 10px;
        padding-right: 39px;
        padding-left: 39px;
        background-color: #32bbab;
        color: #1d4357;
    }

    .cards .slide .inner > img {
        display: block;
    }
}
