/* ==================================================
   Sina Yaran - Homepage Banner Slider
================================================== */


/* ویجت Elementor بعد از جایگزینی */
.hbs-replaced-widget,
.hbs-replaced-widget .elementor-widget-container {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    overflow: visible !important;
}


/* ==================================================
   Slider
================================================== */

.hbs-slider {
    position: relative !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;

    isolation: isolate;
}


/* ==================================================
   Track
================================================== */

.hbs-track {
    position: relative !important;

    width: 100% !important;

    /*
     * اندازه پایه بنر اصلی سایت
     * 1180 × 608
     */
    aspect-ratio: 1180 / 608 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border-radius: 12px !important;

    background: transparent !important;
}


/* ==================================================
   Slides
================================================== */

.hbs-slide {
    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .45s ease,
        visibility .45s ease;
}


.hbs-slide.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    z-index: 2;
}


/* ==================================================
   Images
================================================== */

.hbs-link,
.hbs-slide picture,
.hbs-slide img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
}


.hbs-slide img {
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* ==================================================
   Arrows
   کوچک و کم‌مزاحمت
================================================== */

.hbs-slider .hbs-arrow {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: absolute !important;

    top: 50% !important;

    z-index: 20 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    height: 30px !important;

    min-width: 30px !important;
    min-height: 30px !important;

    max-width: 30px !important;
    max-height: 30px !important;

    margin: 0 !important;

    padding:
        0
        0
        2px !important;

    transform:
        translateY(-50%) !important;

    border: 0 !important;
    border-radius: 50% !important;

    background:
        rgba(
            255,
            255,
            255,
            .84
        ) !important;

    background-image:
        none !important;

    color:
        #1e5f9f !important;

    box-shadow:
        0
        2px
        8px
        rgba(
            0,
            0,
            0,
            .10
        ) !important;

    outline: 0 !important;

    font-size: 20px !important;

    font-weight: 400 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    /*
     * وقتی موس روی بنر نیست
     * خیلی کم دیده شود.
     */
    opacity: .36;

    transition:
        opacity .2s ease,
        transform .2s ease,
        background .2s ease !important;
}


/* RTL */
.hbs-slider .hbs-prev {
    right: -14px !important;
    left: auto !important;
}


.hbs-slider .hbs-next {
    left: -14px !important;
    right: auto !important;
}


/* با Hover واضح شود */
.hbs-slider:hover .hbs-arrow,
.hbs-slider .hbs-arrow:focus-visible {
    opacity: .95;

    background:
        #fff !important;
}


.hbs-slider .hbs-arrow:hover {
    transform:
        translateY(-50%)
        scale(1.06) !important;
}


/* ==================================================
   Dots
   سه نقطه ساده و بدون کپسول
================================================== */

.hbs-slider .hbs-dots {
    position: absolute !important;

    left: 50% !important;
    bottom: 7px !important;

    z-index: 30 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;
    min-height: 0 !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform:
        translateX(-50%) !important;

    border: 0 !important;
    border-radius: 0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

    backdrop-filter:
        none !important;
}


/* ریست کامل استایل button قالب */
.hbs-slider .hbs-dot {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: block !important;

    flex:
        0 0 7px !important;

    width: 7px !important;
    height: 7px !important;

    min-width: 7px !important;
    min-height: 7px !important;

    max-width: 7px !important;
    max-height: 7px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background:
        rgba(
            255,
            255,
            255,
            .82
        ) !important;

    background-image:
        none !important;

    box-shadow:
        0
        1px
        4px
        rgba(
            0,
            0,
            0,
            .22
        ) !important;

    outline: 0 !important;

    font-size: 0 !important;
    line-height: 0 !important;

    opacity: 1 !important;

    transform: none !important;

    cursor: pointer !important;
}


/* نقطه فعال */
.hbs-slider .hbs-dot.is-active {
    flex-basis: 8px !important;

    width: 8px !important;
    height: 8px !important;

    min-width: 8px !important;
    min-height: 8px !important;

    max-width: 8px !important;
    max-height: 8px !important;

    background:
        #168fd2 !important;
}


/* جلوگیری از pseudo element قالب */
.hbs-slider .hbs-dot::before,
.hbs-slider .hbs-dot::after,
.hbs-slider .hbs-arrow::before,
.hbs-slider .hbs-arrow::after {
    content: none !important;

    display: none !important;
}


/* ==================================================
   Mobile
================================================== */

@media (max-width: 767px) {

    .hbs-track {
        border-radius:
            10px !important;
    }


    .hbs-slider .hbs-arrow {
        width: 27px !important;
        height: 27px !important;

        min-width: 27px !important;
        min-height: 27px !important;

        max-width: 27px !important;
        max-height: 27px !important;

        font-size:
            18px !important;

        opacity: .72;
    }


    /*
     * روی موبایل فلش از صفحه بیرون نزند.
     */
    .hbs-slider .hbs-prev {
        right: 5px !important;
    }


    .hbs-slider .hbs-next {
        left: 5px !important;
    }


    .hbs-slider .hbs-dots {
        bottom:
            6px !important;
    }
}


/* ==================================================
   Accessibility
================================================== */

@media (prefers-reduced-motion: reduce) {

    .hbs-slide,
    .hbs-slider .hbs-arrow {
        transition:
            none !important;
    }
}