.flex_layout.highlight_switcher{
    --border-color: rgba(0,0,0,0.15);
    --space-between: 4rem;
}

.flex_layout.highlight_switcher .subtitel{
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.flex_layout.highlight_switcher .tab_container{
    position: relative;
    display: flex;
    border-block: 1px solid var(--border-color);
    margin-top: 3rem;
}

.flex_layout.highlight_switcher .tab_container .indicator{
    position: absolute;
    bottom: 0; left: 0;
    width: 100px; height: 2px;
    /* background-image: linear-gradient(var(--circuit-blue), transparent); */
    background-color: var(--circuit-blue);
}

.flex_layout.highlight_switcher .tab{
    cursor: pointer;
    flex-basis: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    isolation: isolate;
    padding-block: 1rem 1rem;
    padding-inline: 1rem 1rem;

    transition: font-weight 300ms ease-in-out;
    text-align: center;
    line-height: 1.3em;
}

#pk_flex_content .flex_layout.highlight_switcher .succes-stories-block .content{

    padding: 3.5rem 4rem;

}

.flex_layout.highlight_switcher .tab:not(:last-child)::after{
/* .flex_layout.highlight_switcher .tab::after{ */
    content: '';
    height: calc(100% + var(--space-between)); width: 1px;
    position: absolute;
    top: 0; right: 0;
    background-image: linear-gradient(var(--border-color) calc(100% - var(--space-between)), transparent 100%);
}

.flex_layout.highlight_switcher .tab.active{
    font-weight: var(--weight-bold);
}

.flex_layout.highlight_switcher .tab::before{
    content: '';
    background-image: linear-gradient(transparent, rgba(0, 58, 81, 0.05));
    inset: 0;
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.flex_layout.highlight_switcher .tab.active::before{
    opacity: 1;
}

.flex_layout.highlight_switcher .tab .icon{
    width: 3rem;
    height: 3rem;
    background-color: currentColor;

    mask-size: contain; mask-repeat: no-repeat; mask-position: center;
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
    margin-bottom: -1rem;
}

.flex_layout.highlight_switcher .tab .title{
    font-size: var(--body-l);
}


.flex_layout.highlight_switcher .swiper{
    margin-top: calc(var(--space-between) + 1rem);
}
.flex_layout.highlight_switcher .swiper-slide{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 1rem;
    overflow: clip;

}

.flex_layout.highlight_switcher .swiper-slide > .content{
    background-color: var(--pure-white);
    padding: 3.5rem 4rem;
}

#pk_flex_content .flex_layout.highlight_switcher .swiper-slide .succes-stories-block{
    aspect-ratio: unset;
    border-radius: 0;
    overflow: clip;
    display: inline-block;
    height: 100%;
    width: 100%;
}


#pk_flex_content .flex_layout.highlight_switcher .swiper-slide .succes-stories-block img{
    position: absolute;
}


@media only screen and (max-width: 1020px){
    .flex_layout.highlight_switcher .swiper-slide{
        grid-template-columns: minmax(0, 1fr);
    }

    #pk_flex_content .flex_layout.highlight_switcher .swiper-slide .succes-stories-block{
        display: block;
        border-radius: 1rem;
        aspect-ratio: 1;
    }
    #pk_flex_content .flex_layout.highlight_switcher .succes-stories-block .content{
        padding: 1.5rem;
    }

    .flex_layout.highlight_switcher .swiper-slide > .content{
        padding: 1.25rem 1.5rem;
    }
    .flex_layout.highlight_switcher .swiper-slide > .highlight{
        background-color: var(--pure-white);
        padding: 1rem;
    }
}

@media only screen and (max-width: 767px){
    .flex_layout.highlight_switcher{
        --space-between: 1rem;
    }

    .flex_layout.highlight_switcher .tab_container{
        overflow-x: auto;
        overflow-y: hidden;
        margin-left: -20px;
        margin-right: -20px;
    }

    .flex_layout.highlight_switcher .tab{
        padding-block: 1rem;
        flex-shrink: 0;
        gap: .5rem;
        padding-inline: 1rem;
    }

    .flex_layout.highlight_switcher .tab .icon{
        width: 2rem; height: 2rem;
        margin-bottom: -0.5rem;
    }
    .flex_layout.highlight_switcher .tab .title{
        font-size: var(--body-s);
        white-space: nowrap;
        /* min-width: max-content; */
    }
    
    .flex_layout.highlight_switcher .tab_wrapper{
        height: 100%;
        width: calc(100vw - 20px);
        position: relative;
    }
    
    .flex_layout.highlight_switcher .tab_wrapper::after{
        content: '';
        height: 100%;
        width: 80px;
        position: absolute;
        top: 0px;
        right: 0px;
        background: linear-gradient(280deg,rgba(237, 237, 237, 1) 30%, rgba(237, 237, 237, 0) 100%);
    }
    
    .flex_layout.highlight_switcher .tab_container{
        padding-right: 80px;
    }
    
    #pk_flex_content .flex_layout.highlight_switcher h2.heading{
        margin-bottom: 0px;
    }
}