/*==============================*/
/*=====----- TEMPLATE -----=====*/
/*==============================*/

.side-by-side-with-cards {
    position: relative;
    padding-top: 40px;
    margin-bottom: 77px;
    color: var(--gray);
    overflow: hidden;
}

.side-by-side-with-cards::before,
.side-by-side-with-cards::after {
    position: absolute;
    display: block;
    content: '';
    pointer-events: none;
}

.side-by-side-with-cards::before {
    inset: 0;
    z-index: 1;
    max-height: 305px;
    background: var(--violet);
}

.side-by-side-with-cards::after {
    inset: 0 0 auto 0;
    z-index: 2;
    transform: rotate(-3.3deg) translateX(-20px);
    transform-origin: left top;
    width: calc(100% + 40px);
    height: 106px;
    background: url('/includes/public/assets/shared/dot-texture-upside-down-purple.svg') repeat-x right bottom / 1503px auto;
}

.side-by-side-with-cards .template-inner {
    position: relative;
    z-index: 3;
    padding: 0 30px;
}

.side-by-side-with-cards .template-inner::before,
.side-by-side-with-cards .template-inner::after {
    position: absolute;
    display: block;
    content: '';
    pointer-events: none;
}

.side-by-side-with-cards .template-inner::before {
    inset: auto 0 100px 0;
    z-index: 1;
    height: 47%;
    background: url('https://assets.simpleviewinc.com/simpleview/image/upload/v1/clients/kalamazoo/filter_bg_46a87186-a5f0-4178-b0bc-2d16bf88f58c.jpg');
}

.side-by-side-with-cards .template-inner::after {
    inset: auto 0 99px 0;
    z-index: 2;
    transform: rotate(-3.3deg) translateX(-20px);
    transform-origin: right bottom;
    width: calc(100% + 40px);
    height: 111px;
    background: url('/includes/public/assets/shared/dot-texture-white.svg') repeat-x right top / 1630px auto;
}

.side-by-side-with-cards .template-header,
.side-by-side-with-cards .slides {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1172px;
    margin: 0 auto;
}

.side-by-side-with-cards .template-header {
    margin-bottom: 16px;
}

.side-by-side-with-cards .header-inner {
    max-width: 620px;
}

.side-by-side-with-cards .template-title {
    font-family: var(--font-montserrat);
    font-weight: var(--font-weight-black);
    font-size: 3.25rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--white);
    text-transform: uppercase;
    max-width: 645px;
}

.side-by-side-with-cards .view-all {
    display: none;
    white-space: nowrap;
}

.side-by-side-with-cards .slides {
    display: grid;
    gap: 30px;
}

.side-by-side-with-cards .view-all-mobile {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    padding: 0 30px;
    margin-top: 26px;
}

/*============================*/
/*=====----- SLIDES -----=====*/
/*============================*/

.side-by-side-with-cards .slide,
.side-by-side-with-cards .img-cont,
.side-by-side-with-cards .slide-img {
    position: relative;
    z-index: 1;
}

.side-by-side-with-cards .img-cont {
    overflow: hidden;
}

.side-by-side-with-cards .slide-img {
    width: 100%;
}

.side-by-side-with-cards .slide-title {
    font-family: var(--font-montserrat);
    color: inherit;
}

.side-by-side-with-cards .slide-desc {
    position: relative;
    font-family: var(--font-body);
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.5;
    color: inherit;
}

.side-by-side-with-cards .read-more {
    position: absolute;
    bottom: -4px;
    margin-left: 8px;
    color: var(--green);
    font-size: 1.35rem;
    text-decoration: none;
}

/*----- major (promoted) slide -----*/

.side-by-side-with-cards .slide.major {
    margin-bottom: 12px;
}

.side-by-side-with-cards .slide.major .img-cont {
    margin-bottom: 23px;
    border-radius: 25px 25px 0 25px;
}

.side-by-side-with-cards .slide.major .slide-title {
    margin-bottom: 9px;
    font-weight: var(--font-weight-black);
    font-size: 1.765rem;
    line-height: 1.147;
}

/*----- minor slide -----*/

.side-by-side-with-cards .slide.minor .img-cont {
    margin-bottom: 12px;
    border-radius: 20px 20px 0 20px;
}

.side-by-side-with-cards .slide.minor .slide-title {
    font-weight: var(--font-weight-bold);
    font-size: 1.038125rem;
    line-height: 1.25;
}


/*===================================*/
/*=====----- MEDIA QUERIES -----=====*/
/*===================================*/

@media (min-width: 40em) {    
    .side-by-side-with-cards::before {
        /* right: 37%; */
        max-width: 658px;
        max-height: 430px;
    }

    /* .side-by-side-with-cards::after {
        right: 37%;
        width: auto;
    } */

    .side-by-side-with-cards::after {
        max-width: 672px;
    }

    .side-by-side-with-cards .template-inner {
        padding-bottom: 68px;
    }

    .side-by-side-with-cards .template-inner::before {
        bottom: 0;
        height: 18%;
    }

    .side-by-side-with-cards .template-inner::after {
        bottom: 0;
    }

    .side-by-side-with-cards .template-header {
        margin-bottom: 28px;
    }
    
    .side-by-side-with-cards .header-inner{
        display: flex;
        align-items: center;
        gap: 20px;    
    }

    .side-by-side-with-cards .view-all {
        display: inline-block;
    }

    .side-by-side-with-cards .view-all-mobile {
        display: none;
    }

    .side-by-side-with-cards .slides {
        grid-template: auto / repeat(3, minmax(0, 1fr));
        gap: 30px 8px;
    }

    .side-by-side-with-cards .slide.major {
        grid-column: span 3;
    }

    .side-by-side-with-cards .slide.minor .slide-title {
        font-size: 0.95rem;
    }
}

@media (min-width: 64em) {
    .side-by-side-with-cards {
        padding-top: 50px;
        margin-bottom: 98px;
    }

    .side-by-side-with-cards .template-inner::before {
        height: 30.81%;
    }

    .side-by-side-with-cards .template-title {
        font-size: 4.125rem;
    }

    .side-by-side-with-cards .slide.major,
    .side-by-side-with-cards .slide.major .img-cont {
        margin: 0;
    }

    .side-by-side-with-cards .slide.major .inner {
        display: grid;
        grid-template: auto / 652px minmax(0, 1fr);
        align-items: center;
        gap: 30px;
    }
    
    .side-by-side-with-cards .slide.major .slide-title {
        margin-bottom: 18px;
        font-size: 2.125rem;
        line-height: calc(39/34);
    }

    .side-by-side-with-cards .slide-desc {
        font-size: 1.25rem;
        line-height: calc(31/20);
    }

    .side-by-side-with-cards .read-more {
        bottom: -3px;
        font-size: 1.5rem;
    }

    .side-by-side-with-cards .slide.minor .img-cont {
        margin-bottom: 14px;
    }

    .side-by-side-with-cards .slide.minor .slide-title {
        font-size: 1.25rem;
        line-height: 1.25;
    }
}

@media (min-width: 90em) {
    .side-by-side-with-cards::before,
    .side-by-side-with-cards::after {
        right: 54.31%;
        width: auto;
        max-width: none;
    }

    .side-by-side-with-cards::before {
        max-height: 539px;
    }

    .side-by-side-with-cards::after {
        height: 138px;
        background-size: 1900px auto;
    }

    .side-by-side-with-cards .template-inner::after {
        height: 150px;
        background-size: 2050px auto;
    }

    .side-by-side-with-cards .slides {
        gap: 30px 40px;
    }
}