/*===========================*/
/*=====----- PANEL -----=====*/
/*===========================*/

.marquee-tabs-container {
    margin-bottom: 90px;
    color: var(--navy-dark);
}

.marquee-tabs-container .tabs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    margin-bottom: 6px;
}

.marquee-tabs-container .tabs-header::after {
    display: block;
    height: 5px;
    flex-grow: 1;
    background: var(--navy-dark);
    content: '';
}

.marquee-tabs-container .panel-title {
    font-family: var(--knockout);
    font-weight: normal;
    font-size: 45px;
    line-height: calc(10/9);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.marquee-tabs-container .marquees {
    position: relative;
    z-index: 1;
    transition: height var(--transition);
}

.marquee-tabs-container .tabs {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template: auto / repeat(2, minmax(0, 1fr));
    gap: 5px 1rem;
    padding: 0 20px;
    margin-bottom: 15px;
}

.marquee-tabs-container .tab-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: none;
    border: none;
    font-family: var(--knockout-heavy);
    font-weight: normal;
    font-size: 12px;
    line-height: 1;
    color: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.marquee-tabs-container .tab-button::before {
    display: block;
    width: 25px;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: url('/includes/public/assets/shared/circle.svg') no-repeat center center / contain;
    content: '';
}

/*----- active tab button -----*/

.marquee-tabs-container .tab-button.active::before {
    background-image: url('/includes/public/assets/shared/check-circle.svg');
}

.marquee-tabs-container .tab-button.active .btn-text {
    text-decoration: underline;
}

/*==============================*/
/*=====----- TEMPLATE -----=====*/
/*==============================*/

.tabbed-marquee {
    position: relative;
    z-index: 2;
    opacity: 0 !important; /* js-loaded override */
    pointer-events: none;
    transition: opacity var(--transition);
}

.marquee-tabs-container .marquees > * + * .tabbed-marquee {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 1;
}

.tabbed-marquee.active {
    opacity: 1 !important;
    pointer-events: all;
}

.tabbed-marquee .slides {
    display: grid;
    grid-template: auto / repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/*============================*/
/*=====----- SLIDES -----=====*/
/*============================*/

.tabbed-marquee .slide,
.tabbed-marquee .img-cont,
.tabbed-marquee .slide-img {
    position: relative;
    z-index: 1;
}

.tabbed-marquee .img-cont {
    overflow: hidden;
}

.tabbed-marquee .slide-img {
    transform: none;
    width: 100%;
    transition: transform var(--transition);
}

.tabbed-marquee .slide-title {
    word-wrap: break-word;
    transition: color var(--transition);
}

.tabbed-marquee .slide .arrow {
    position: relative;
    display: inline-block;
    aspect-ratio: 8 / 5;
    margin-left: 10px;
    content: '';
    vertical-align: middle;
}

.tabbed-marquee .slide .arrow::before,
.tabbed-marquee .slide .arrow::after {
    position: absolute;
    inset: 0;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    content: '';
    transition: opacity var(--transition);
}

.tabbed-marquee .slide .arrow::before {
    opacity: 1;
    background-image: url('/includes/public/assets/shared/arrow-medium-right-green.svg');
}

.tabbed-marquee .slide .arrow::after {
    opacity: 0;
    background-image: url('/includes/public/assets/shared/arrow-medium-right.svg');
}

.tabbed-marquee .shared-play-button {
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
}

/*----- primary and secondary slides -----*/

.tabbed-marquee .slide.primary,
.tabbed-marquee .slide.secondary {
    grid-column: span 2;
    color: var(--white);
}

.tabbed-marquee .slide.primary .img-cont::before,
.tabbed-marquee .slide.secondary .img-cont::before {
    position: absolute;
    inset: 50% 0 0 0;
    z-index: 2;
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    content: '';
    pointer-events: none;
}

.tabbed-marquee .slide.primary .content-section,
.tabbed-marquee .slide.secondary .content-section {
    position: absolute;
    inset: auto auto 0 0;
    z-index: 2;
    max-width: 74%;
    padding: 12px 20px;
    pointer-events: none;
}

.tabbed-marquee .slide.secondary .content-section {
    max-width: 62%;
}

.tabbed-marquee .slide.primary .content-section::before,
.tabbed-marquee .slide.secondary .content-section::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left center;
    display: block;
    background: var(--green);
    content: '';
    pointer-events: none;
    transition: transform var(--transition);
}

.tabbed-marquee .slide.primary .content-section a,
.tabbed-marquee .slide.secondary .content-section a {
    pointer-events: all;
}

.tabbed-marquee .slide.primary .slide-title,
.tabbed-marquee .slide.secondary .slide-title {
    position: relative;
    z-index: 2;
    font-family: var(--knockout);
    font-weight: normal;
    font-size: 35px;
    line-height: calc(8/7);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: inherit;
}

.tabbed-marquee .slide.primary .slide-title a,
.tabbed-marquee .slide.secondary .slide-title a {
    transition: none;
}

.tabbed-marquee .slide.primary .arrow,
.tabbed-marquee .slide.secondary .arrow {
    width: 32px;
}

/*----- tertiary slides -----*/

.tabbed-marquee .slide.tertiary .img-cont {
    margin-bottom: 10px;
}

.tabbed-marquee .slide.tertiary .slide-title {
    font-family: var(--knockout-mid);
    font-weight: normal;
    font-size: 18px;
    line-height: calc(11/9);
    color: inherit;
}

.tabbed-marquee .slide.tertiary .arrow {
    width: 24px;
}

.tabbed-marquee .slide.tertiary .arrow img {
    z-index: 2;
    transition: opacity var(--transition);
}

.tabbed-marquee .slide.tertiary .arrow .static {
    position: relative;
    opacity: 1;
}

.tabbed-marquee .slide.tertiary .arrow .hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.tabbed-marquee .slide.tertiary .arrow::before {
    position: absolute;
    inset: -5px;
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left center;
    display: block;
    background: var(--green);
    content: '';
    pointer-events: none;
    transition: transform var(--transition);
}

.tabbed-marquee .slide.tertiary .arrow::after {
    display: none;
}

.tabbed-marquee .slide.tertiary:nth-child(3) {
    margin-left: 20px;
}

.tabbed-marquee .slide.tertiary:last-child {
    margin-right: 20px;
}

/*===================================*/
/*=====----- MEDIA QUERIES -----=====*/
/*===================================*/

@media (hover: hover) {
    .marquee-tabs-container .tab-button:hover .btn-text {
        text-decoration: underline;
    }

    .tabbed-marquee .slide.primary:hover,
    .tabbed-marquee .slide.secondary:hover {
        color: var(--navy-dark);
    }

    .tabbed-marquee .slide:hover .slide-img {
        transform: scale(1.05);
    }

    .tabbed-marquee .slide.primary:hover .content-section::before,
    .tabbed-marquee .slide.secondary:hover .content-section::before {
        transform: none;
    }

    .tabbed-marquee .slide.primary:hover .arrow::before,
    .tabbed-marquee .slide.secondary:hover .arrow::before {
        opacity: 0;
    }
    
    .tabbed-marquee .slide:hover .arrow::after {
        opacity: 1;
    }

    .tabbed-marquee .slide.tertiary:hover .arrow::before {
        transform: none;
    }

    .tabbed-marquee .slide.tertiary:hover .arrow .static {
        opacity: 0;
    }
    
    .tabbed-marquee .slide.tertiary:hover .arrow .hover {
        opacity: 1;
    }
}

@media (min-width: 40em) {
    .tabbed-marquee .slide.primary,
    .tabbed-marquee .slide.secondary {
        grid-column: span 1;
    }   
}

@media (min-width: 64em) {
    .marquee-tabs-container {
        margin-bottom: 186px;
    }

    .marquee-tabs-container .tabs {
        grid-template: auto / repeat(2, max-content);
        justify-content: start;
        width: 50%;
        margin: 0 0 0 auto;
        padding-bottom: 42px;
    }

    .tabbed-marquee .slides {
        grid-template:
            'slide1 slide2 slide2' auto
            'slide1 slide3 slide4' auto / calc(50% - 20px) minmax(0, 1fr) minmax(0, 1fr);
    }

    .tabbed-marquee .img-cont {
        width: 100%;
    }

    .tabbed-marquee .slide.primary .inner,
    .tabbed-marquee .slide.primary .img-cont,
    .tabbed-marquee .slide.primary .slide-img,
    .tabbed-marquee .slide.secondary .inner,
    .tabbed-marquee .slide.secondary .img-cont,
    .tabbed-marquee .slide.secondary .slide-img {
        height: 100%;
    }

    .tabbed-marquee .slide-img {
        object-fit: cover;
    }

    /*----- primary slide -----*/

    .tabbed-marquee .slide.primary {
        grid-area: slide1;
    }

    /*----- secondary slide -----*/

    .tabbed-marquee .slide.secondary {
        grid-area: slide2;
    }

    /*----- tertiary slides -----*/

    .tabbed-marquee .slide.tertiary:nth-child(3),
    .tabbed-marquee .slide.tertiary:last-child {
        margin: 0;
    }

    .tabbed-marquee .slide.tertiary:nth-child(3) {
        grid-area: slide3;
    }

    .tabbed-marquee .slide.tertiary:last-child {
        grid-area: slide4;
    }

    .tabbed-marquee .slide.tertiary .img-cont {
        margin: 0;
    }

    .tabbed-marquee .slide.tertiary .content-section {
        position: absolute;
        inset: auto 0 0 0;
        transform: translateY(100%);
        padding-top: 10px;
    }
}

@media (min-width: 90em) {
    .marquee-tabs-container .tabs-header {
        padding-left: 80px;
        gap: 30px;
        margin-bottom: -5px;
    }

    .marquee-tabs-container .panel-title {
        font-size: 100px;
    }

    .marquee-tabs-container .tabs {
        gap: 11px 32px;
        padding: 0 46px 42px;
    }

    .marquee-tabs-container .tab-button {
        font-size: 20px;
        gap: 10px;
    }

    .marquee-tabs-container .tab-button::before {
        width: 30px;
    }

    .tabbed-marquee .slides {
        gap: 40px;
    }

    .tabbed-marquee .slide-title {
        line-height: calc(19/15);
    }

    .tabbed-marquee .slide.primary .arrow,
    .tabbed-marquee .slide.secondary .arrow {
        width: 50px;
        aspect-ratio: 5 / 3;
    }
    
    .tabbed-marquee .slide.primary .arrow::before,
    .tabbed-marquee .slide.secondary .arrow::before {
        background-image: url('/includes/public/assets/shared/arrow-large-right-green.svg');
    }
    
    .tabbed-marquee .slide.primary .arrow::after,
    .tabbed-marquee .slide.secondary .arrow::after {
        background-image: url('/includes/public/assets/shared/arrow-large-right-black.svg');
    }

    /*----- primary slide -----*/

    .tabbed-marquee .slide.primary .content-section {
        padding: 20px 32px;
    }
    
    .tabbed-marquee .slide.primary .slide-title {
        font-size: 60px;
    }

    /*----- secondary slide -----*/

    .tabbed-marquee .slide.secondary .content-section {
        padding: 14px 25px;
    }

    .tabbed-marquee .slide.secondary .slide-title {
        font-size: 50px;
    }
    
    /*----- tertiary slides -----*/

    .tabbed-marquee .slide.tertiary .slide-title {
        font-size: 30px;
    }

    .tabbed-marquee .slide.tertiary .arrow {
        width: 32px;
    }
}