.tabs-slider__wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 35px;
}

.tabs-top__content{
    margin-bottom: 50px;
}

.tabs-slider-nav {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    z-index: 1;
    scroll-padding-left: 23px;
}

.tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tabs-slider__wrapper:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1.5px;
    width: 100%;
    height: 2px;
    background-color: var(--medium);
}

.tabs-slider-nav::-webkit-scrollbar {
    display: none;
}

/* Individual Tab (Variable Width) */
.tab {
    display: flex;
    align-items: center;
    flex: 0 0 100%;
    padding: 0 6px 15px;
    background: transparent;
    cursor: pointer;
    white-space: pre-wrap;
    transition: 0.3s;
    position: relative;
    font-family: var(--font-secondary);
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.222em;
    color: var(--dark);
    position: relative;
    cursor: pointer;
    padding: 15px;
    z-index: 1;
}

.tab:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 0;
    width: 0;
    height: 5px;
    background-color: var(--secondary-color);
    opacity: 0;
    transition: all ease 0.3s;
    z-index: 999;
}

.tab.active {
    font-weight: 700;
}

.tab.active:after,
.tab:hover:after {
    opacity: 1;
    width: 100%;
}

/* Content Container */

.tabs-slider__content-wrapper {
    margin: 16px 0 0;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

/* Arrows for Mobile */
.tab-arrow {
    position: absolute;
    top: 0px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 4;
    padding: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.bg-light .tab-arrow {
    background: var(--light);
}

.tab-arrow:after {
    content: "";
    position: relative;
    font-family: 'rmfx-icon' !important;
    font-size: 23px;
}

.tab-arrow.prev:after {
    content: "\e905";
    font-family: 'rmfx-icon' !important;
}


.tab-arrow.next:after {
    content: "\e90d";
    font-family: 'rmfx-icon' !important;
}

.prev {
    left: 0px;
}

.next {
    right: 0px;
}

.tabs-content-flex__text h2 {
    font-size: 26px;
    line-height: 1.076em;
}

.tabs-content-flex__image {
    height: auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 32px 0 0;
}

.tabs-content-flex__image img ,
.fx-accordion__panel__content img{
    border-radius: var(--border-radius);
}
.tabs-content-flex__text {
    padding-right: 5px;
}

.tab-arrow.disabled {
    opacity: 1;
    pointer-events: none;
}

.bg-dark .tab {
    color: var(--body-bg);
}

.bg-dark .tab:after {
    background-color: var(--secondary-color);
}

.bg-dark .tab-arrow {
    background: var(--dark);
    color: var(--body-bg);
}

.bg-dark .tabs-slider__wrapper:after,
.bg-medium .tabs-slider__wrapper:after {
    background-color: var(--white);
}

.content.no-image .tabs-content-flex {
    justify-content: center;
}


@media (min-width: 768px) {
    .tab-arrow.disabled {
        opacity: 0;
        pointer-events: none;
    }

    .tabs-slider__wrapper {
        padding: 0 44px 0 44px;
    }

    .tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .tab.active {
        padding: 15px;
        margin: 0 -32px;
    }

    .tabs-slider-nav {
        gap: 64px;
    }

    .tab:first-child.active {
        margin-left: 0;
    }

    .tabs-content-flex__text h2 {
        font-size: 30px;
        margin: 0 0 20px;
    }

    .tabs-slider__content-wrapper {
        margin: 36px 0 0;
    }

   
}


@media (min-width: 1200px) {
    .tab-arrow {
        display: none;
    }

    .tab {
        font-size: 20px;
    }

    .tab.active {
        padding: 15px;
        margin: 0 -32px;
    }

    .tabs-slider-nav {
        gap: 96px;
        justify-content: center;
    }

    .tabs-slider-nav.tabs-slider-nav-overflow {
        gap: 32px;
        justify-content: space-evenly;
    }

    .tabs-content-flex__text h2 {
        font-size: 42px;
        margin: 0 0 30px;
        line-height: 1.380em;
    }

    .tabs-content-flex {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .tabs-content-flex__image {
        margin: 0;
        width: calc(35% - 13px);
        aspect-ratio: 2 / 1.685;
    }

    .tabs-content-flex__text {
        width: calc(60% - 16px);
        max-width: 732px;
    }

    .content.no-image .tabs-content-flex .tabs-content-flex__text{
        width :100%;
        max-width: 1080px;
    }

    .tab:first-child.active {
        margin: 0 -32px;
    }

    .tabs-slider-nav.tabs-slider-nav-overflow .tab:first-child.active {
        margin-left: 0;
    }
}

.search-result {
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 20px;
}
.search-result__title{
    padding-top: 10px;
}