.swiper-wrapper.row {
    flex-wrap: nowrap;
}

.th-slider {
    &.has-shadow {
        padding-left: 12px;
        padding-right: 12px;
        margin: -25px -12px;

        .swiper-wrapper {
            padding: 25px 0;
        }
    }
}

.swiper-fade {
    .swiper-slide {
        transition: 0.6s ease-in-out;
    }

    .swiper-slide-prev {
        opacity: 0;
    }
}

.swiper-pagination-progressbar {
    --swiper-pagination-progressbar-size: 1px;
    background: #D9D9D9;
    position: relative;
    margin-top: 30px;
    margin-bottom: 24px;

    @include lg {
        margin-top: 20px;
    }

    .swiper-pagination-progressbar-fill {
        background: $title-color;
        border-radius: 18px;
    }
}

.swiper-pagination-progressbar {
    --swiper-pagination-progressbar-size: 1px;
    background: $white-color;
    position: relative;
    margin-top: 30px;
    margin-bottom: 24px;
}

.swiper-horizontal>.swiper-pagination-progressbar,
.swiper-pagination-progressbar.swiper-pagination-horizontal,
.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,
.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
    width: 100%;
    height: var(--swiper-pagination-progressbar-size, 1px);
    left: 0;
}

.swiper-pagination-fraction {
    text-align: center;
    font-family: $body-font;
    font-size: 18px;
    font-weight: 400;
    color: $theme-color;

    .swiper-pagination-current {
        color: $title-color;
        display: inline-block;
        width: 31px;

    }

    .swiper-pagination-total {
        margin-left: 10px;
    }
}

.white-color {
    .swiper-pagination-current {
        color: $white-color;
    }
}

.slider-controller {
    margin-top: 60px;
    display: inline-flex;
    align-items: center;
    gap: 24px;

    .button {
        width: calc(100% - 204px);

    }

    .slider-arrow {
        min-width: 56px;

        @include md {
            min-width: 48px;
            height: 48px;
        }
    }

    .swiper-pagination-progressbar {
        background-color: #F2F3FC;
    }

    @include lg {
        margin-top: 45px;
    }
}

.swiper-pagination-bullets {
    position: relative;
    z-index: 3;
    text-align: center;
    margin: 45px 0 10px 0;
    padding-bottom: 20px;
    line-height: 12px;
    height: 12px;

    .swiper-pagination-bullet {
        display: inline-block;
        --swiper-pagination-bullet-size: 12px;
        --swiper-pagination-bullet-horizontal-gap: 12px;
        margin: 5px 4px;
        opacity: 1;
        background-color: transparent;
        border: 1px solid $body-color;
        color: $white-color;
        border-radius: 50%;
        position: relative;
        cursor: pointer;
        transition: all 0.4s ease-in-out;

        &.swiper-pagination-bullet-active {
            background-color: $theme-color;
            border-color: $theme-color;
        }

    }
}

.slider-area {
    position: relative;
}

.slider-arrow {
    display: inline-block;
    padding: 0;
    background-color: $title-color;
    border-radius: 30px;
    color: $white-color;
    border: 1px solid $title-color;
    position: absolute;
    top: 50%;
    left: var(--pos-x, -120px);
    width: var(--icon-size, 56px);
    height: var(--icon-size, 56px);
    line-height: var(--icon-size, 56px);
    font-size: var(--icon-font-size, 20px);
    margin-top: calc(var(--icon-size, 0px) / -2);
    z-index: 3;
    border-radius: 50%;

    @include sm {
        display: none;
    }

    &.style2 {
        left: var(--pos-x, 70px); 
        width: 80px;
        height: 48px;
        line-height: 25px; 
        border: 1px solid #02000F;
        background-color: transparent;
        border-radius: 48px;

        &.slider-next {
            right: var(--pos-x, 70px);
        }
        img {
          transition: all 0.4s ease-in-out;
        }

        &:hover {
            background-color: $theme-color;
            border-color: $theme-color;
            img {
                filter: brightness(0) invert(1);
            }
        }
    }

    &.style3 {
        background-color: transparent;
        border: 1px solid rgba(92, 95, 113, 0.2);
        color: $title-color;
        &:hover {
            img {
                filter: brightness(0) invert(1); 
            }
        }
    }
     &.style4 {
        left: var(--pos-x, 70px); 
        width: 88px;
        height: 56px;
        line-height: 25px; 
        background-color: transparent;
        border: 1px solid rgba(92, 95, 113, 0.2);
        border-radius: 48px;

        &.slider-next {
            right: var(--pos-x, 70px);
        }
        img {
            
        }


        &:hover {
            background-color: $theme-color;
            border-color: $theme-color;
            img {
              filter: brightness(0) invert(1);
            }
        }
    }

    &.default {
        position: relative;
        --pos-x: 0;
        margin-top: 0;
    }

    &.slider-next {
        right: var(--pos-x, -120px);
        left: auto;
    }

    &:hover {
        background-color: $theme-color;
        color: $white-color;
        border-color: $theme-color;
    }
}

.arrow-margin {
    .slider-arrow {
        top: calc(50% - 30px);
    }
}

.arrow-wrap {
    position: relative;

    .slider-arrow {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.4);

        @include xl {
            display: none;
        }
    }

    &:hover {
        .slider-arrow {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }
    }
}

@include xxl {
    .slider-arrow {
        --arrow-horizontal: -20px;
        --pos-x: -70px;
    }
}

@include ml {
    .slider-arrow {
        --arrow-horizontal: 40px;
        --pos-x: -17px;
    }
}

.icon-box {
    .slider-arrow {
        transform: scale(1);
        opacity: 1;
        visibility: visible;

        &:not(:last-child) {
            margin-right: 8px;
        }

        @include xxl {
            display: block !important;
        }
    }
}

@include md {
    .slider-arrow {
        --icon-size: 40px;
        line-height: 38px;
        margin-right: 40px;
        font-size: 14px;

        &.slider-next {
            margin-right: 0;
        }
    }

    .icon-box {
        .slider-arrow {
            margin-right: 0;
        }
    }
}