.elementor-widget-cw_focus_image_slider,
.elementor-widget-cw_focus_image_slider .elementor-widget-container {
    width: 100%;
}

.cw-fis {
    --cw-fis-stage-height: 360px;
    --cw-fis-active-image-width: 230px;
    --cw-fis-side-image-width: 190px;
    --cw-fis-side-offset: 500px;
    --cw-fis-side-blur: 12px;
    --cw-fis-side-opacity: 38%;
    --cw-fis-arrow-size: 46px;
    --cw-fis-arrow-offset: 14px;
    --cw-fis-content-width: 760px;
    --cw-fis-animation-duration: 700ms;
    --cw-fis-animation-ease: cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.cw-fis *,
.cw-fis *::before,
.cw-fis *::after {
    box-sizing: border-box;
}

.cw-fis__viewport {
    position: relative;
    width: 100%;
    max-width: 1400px;
    min-height: var(--cw-fis-stage-height);
    margin: 0 auto;
    overflow: hidden;
}

.cw-fis__track {
    position: relative;
    width: 100%;
    min-height: var(--cw-fis-stage-height);
}

.cw-fis__slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(var(--cw-fis-content-width), calc(100% - 32px));
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition-property: opacity, filter, visibility;
    transition-duration: var(--cw-fis-animation-duration);
    transition-timing-function: var(--cw-fis-animation-ease);
    will-change: opacity, filter;
}

.cw-fis__slide.is-active,
.cw-fis__slide.is-prev,
.cw-fis__slide.is-next {
    visibility: visible;
}

.cw-fis__slide.is-active {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    filter: none;
    transform: translate(-50%, -50%);
}

.cw-fis__slide.is-prev,
.cw-fis__slide.is-next {
    z-index: 1;
    opacity: 1;
    filter: blur(var(--cw-fis-side-blur)) opacity(var(--cw-fis-side-opacity));
}

.cw-fis__slide.is-prev {
    transform: translate(calc(-50% - var(--cw-fis-side-offset)), -50%);
}

.cw-fis__slide.is-next {
    transform: translate(calc(-50% + var(--cw-fis-side-offset)), -50%);
}

.cw-fis__slide.is-hidden {
    display: none;
}

.cw-fis__image-wrap,
.cw-fis__image-wrap img {
    display: block;
}

.cw-fis__image-wrap {
    width: min(100%, var(--cw-fis-active-image-width));
    margin-inline: auto;
    transition-property: width, opacity, filter, transform;
    transition-duration: var(--cw-fis-animation-duration);
    transition-timing-function: var(--cw-fis-animation-ease);
}

.cw-fis__slide.is-prev .cw-fis__image-wrap,
.cw-fis__slide.is-next .cw-fis__image-wrap {
    width: min(100%, var(--cw-fis-side-image-width));
}

.cw-fis__image-wrap img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.cw-fis__content {
    margin-top: 20px;
    text-align: center;
}

.cw-fis__slide:not(.is-active) .cw-fis__content {
    display: none;
}

.cw-fis__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

.cw-fis__description {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.9;
}

.cw-fis__slide.is-active .cw-fis__image-wrap,
.cw-fis__slide.is-active .cw-fis__content {
    animation-duration: var(--cw-fis-animation-duration);
    animation-timing-function: var(--cw-fis-animation-ease);
    animation-fill-mode: both;
}

.cw-fis--anim-simple .cw-fis__slide.is-active .cw-fis__image-wrap,
.cw-fis--anim-simple .cw-fis__slide.is-active .cw-fis__content {
    animation-name: cw-fis-simple-in;
}

.cw-fis--anim-fade .cw-fis__slide.is-active .cw-fis__image-wrap,
.cw-fis--anim-fade .cw-fis__slide.is-active .cw-fis__content {
    animation-name: cw-fis-fade-in;
}

.cw-fis--anim-zoom .cw-fis__slide.is-active .cw-fis__image-wrap,
.cw-fis--anim-zoom .cw-fis__slide.is-active .cw-fis__content {
    animation-name: cw-fis-zoom-in;
}

.cw-fis--anim-rise .cw-fis__slide.is-active .cw-fis__image-wrap,
.cw-fis--anim-rise .cw-fis__slide.is-active .cw-fis__content {
    animation-name: cw-fis-rise-in;
}

.cw-fis--anim-blur .cw-fis__slide.is-active .cw-fis__image-wrap,
.cw-fis--anim-blur .cw-fis__slide.is-active .cw-fis__content {
    animation-name: cw-fis-blur-in;
}

/*
 * حرکت پیوسته کاروسلی:
 * سه اسلاید قابل مشاهده هم‌زمان یک جایگاه جابه‌جا می‌شوند.
 * اسلایدی که از کنار به مرکز می‌رسد، حین حرکت از حالت بلور خارج و شفاف می‌شود.
 */
.cw-fis--anim-carousel .cw-fis__slide {
    transition-property: transform, opacity, filter, visibility;
    transition-duration: var(--cw-fis-animation-duration);
    transition-timing-function: var(--cw-fis-animation-ease);
    will-change: transform, opacity, filter;
}

.cw-fis--anim-carousel .cw-fis__image-wrap {
    transition-property: width, opacity, filter, transform;
    transition-duration: var(--cw-fis-animation-duration);
    transition-timing-function: var(--cw-fis-animation-ease);
}

.cw-fis--anim-carousel .cw-fis__slide.is-far-prev,
.cw-fis--anim-carousel .cw-fis__slide.is-far-next {
    z-index: 0;
    display: block;
    visibility: visible;
    opacity: 0;
    pointer-events: none;
    filter: blur(var(--cw-fis-side-blur)) opacity(var(--cw-fis-side-opacity));
}

.cw-fis--anim-carousel .cw-fis__slide.is-far-prev {
    transform: translate(calc(-50% - var(--cw-fis-side-offset) - 35vw), -50%);
}

.cw-fis--anim-carousel .cw-fis__slide.is-far-next {
    transform: translate(calc(-50% + var(--cw-fis-side-offset) + 35vw), -50%);
}

.cw-fis--anim-carousel .cw-fis__slide.is-far-prev .cw-fis__image-wrap,
.cw-fis--anim-carousel .cw-fis__slide.is-far-next .cw-fis__image-wrap {
    width: min(100%, var(--cw-fis-side-image-width));
}

.cw-fis--anim-carousel .cw-fis__slide .cw-fis__content {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition-property: opacity, transform, visibility;
    transition-duration: var(--cw-fis-animation-duration);
    transition-timing-function: var(--cw-fis-animation-ease);
}

.cw-fis--anim-carousel .cw-fis__slide.is-active .cw-fis__content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cw-fis--anim-carousel .cw-fis__slide.is-active .cw-fis__image-wrap,
.cw-fis--anim-carousel .cw-fis__slide.is-active .cw-fis__content {
    animation: none;
}

.cw-fis--anim-carousel.is-carousel-settling .cw-fis__slide,
.cw-fis--anim-carousel.is-carousel-settling .cw-fis__image-wrap,
.cw-fis--anim-carousel.is-carousel-settling .cw-fis__content {
    transition: none !important;
}

@keyframes cw-fis-simple-in {
    from { opacity: 0.42; }
    to { opacity: 1; }
}

@keyframes cw-fis-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cw-fis-zoom-in {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes cw-fis-rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cw-fis-blur-in {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .cw-fis__slide,
    .cw-fis__image-wrap,
    .cw-fis__slide.is-active .cw-fis__image-wrap,
    .cw-fis__slide.is-active .cw-fis__content {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

.cw-fis__nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: inline-flex;
    width: var(--cw-fis-arrow-size);
    height: var(--cw-fis-arrow-size);
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #2f7bff !important;
    border-radius: 10px;
    background-color: transparent !important;
    background-image: none !important;
    color: #2f7bff !important;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.cw-fis__nav:hover,
.cw-fis__nav:focus-visible {
    border-color: #2f7bff !important;
    background-color: #2f7bff !important;
    background-image: none !important;
    color: #fff !important;
    outline: none;
}

.cw-fis__nav svg {
    display: block;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.cw-fis__nav--prev {
    left: var(--cw-fis-arrow-offset);
}

.cw-fis__nav--next {
    right: var(--cw-fis-arrow-offset);
}

.cw-fis.has-single-slide .cw-fis__nav,
.cw-fis[data-slides="1"] .cw-fis__nav {
    display: none;
}

@media (max-width: 1024px) {
    .cw-fis {
        --cw-fis-stage-height: 320px;
        --cw-fis-side-offset: 300px;
        --cw-fis-content-width: 620px;
    }
}

@media (max-width: 767px) {
    .cw-fis {
        --cw-fis-stage-height: 240px;
        --cw-fis-active-image-width: 86px;
        --cw-fis-side-image-width: 96px;
        --cw-fis-side-offset: 110px;
        --cw-fis-side-blur: 10px;
        --cw-fis-side-opacity: 24%;
        --cw-fis-arrow-size: 40px;
        --cw-fis-arrow-offset: 8px;
        --cw-fis-content-width: calc(100% - 96px);
    }

    .cw-fis__viewport,
    .cw-fis__track {
        min-height: var(--cw-fis-stage-height);
    }

    .cw-fis__slide {
        width: min(var(--cw-fis-content-width), calc(100% - 24px));
    }

    .cw-fis__slide.is-prev,
    .cw-fis__slide.is-next {
        display: none !important;
    }

    .cw-fis--anim-carousel .cw-fis__slide {
        transition-property: opacity, filter, visibility;
    }

    .cw-fis--anim-carousel .cw-fis__slide.is-active .cw-fis__image-wrap {
        animation: cw-fis-fade-in var(--cw-fis-animation-duration) var(--cw-fis-animation-ease) both;
    }

    .cw-fis__image-wrap {
        margin-bottom: 8px;
    }

    .cw-fis__content {
        margin-top: 10px;
        padding-inline: 4px;
    }

    .cw-fis__title {
        font-size: 18px;
        line-height: 1.45;
    }

    .cw-fis__description {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.8;
    }

    .cw-fis__nav svg {
        width: 20px;
        height: 20px;
    }
}
