.bee1-slider,
.bee1-slider * {
    box-sizing: border-box;
}

.bee1-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    /* prevent browser's default swipe-back navigation from interfering */
    touch-action: pan-y;
}

.bee1-slider:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 3px;
}

.bee1-slider__viewport {
    width: 100%;
    overflow: hidden;
}

.bee1-slider__track {
    display: flex;
    /* Always lay slides out left-to-right regardless of page direction.
       This keeps the JS translate3d logic identical for both LTR and RTL pages.
       Slide content direction is restored separately via [dir="rtl"] rule below. */
    direction: ltr;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition-property: transform;
    transition-timing-function: ease;
    will-change: transform;
}

.bee1-slider__slide {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 100%;
    position: relative;
}

.bee1-slider__slide-inner {
    width: 100%;
}

.bee1-slider__slide-inner > .elementor,
.bee1-slider__slide-inner > .elementor > .elementor-section-wrap,
.bee1-slider__slide-inner > .elementor > .e-con,
.bee1-slider__slide-inner > .elementor > .e-con-full {
    width: 100%;
}

.bee1-slider__arrow {
    appearance: none;
    border: 0;
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.bee1-slider__arrow:hover,
.bee1-slider__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.04);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.bee1-slider__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bee1-slider__arrow--prev {
    left: 18px;
}

.bee1-slider__arrow--next {
    right: 18px;
}

.bee1-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(-50%);
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.bee1-slider__dot {
    appearance: none;
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.bee1-slider__dot.is-active,
.bee1-slider__dot:hover,
.bee1-slider__dot:focus-visible {
    background: #fff;
    transform: scale(1.28);
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.bee1-slider-empty {
    border: 1px dashed #c7c7c7;
    padding: 16px;
    border-radius: 8px;
    background: #fafafa;
    color: #444;
    font-size: 14px;
}

@media (max-width: 767px) {
    .bee1-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .bee1-slider__arrow--prev {
        left: 10px;
    }

    .bee1-slider__arrow--next {
        right: 10px;
    }

    .bee1-slider__dots {
        bottom: 10px;
        gap: 7px;
    }

    [dir="rtl"] .bee1-slider__arrow--prev {
        left: auto;
        right: 10px;
    }

    [dir="rtl"] .bee1-slider__arrow--next {
        right: auto;
        left: 10px;
    }
}

/* -----------------------------------------------------------------------
   RTL support
   The track is forced to direction:ltr above so the translate3d logic
   stays identical.  We only need to:
     1. Restore RTL direction for slide content
     2. Swap the physical positions of the prev/next arrows
     3. Flip the arrow glyphs so they point in the correct direction
----------------------------------------------------------------------- */

/* Restore RTL text direction inside each slide so Hebrew content
   (Elementor widgets, text, etc.) renders correctly. */
[dir="rtl"] .bee1-slider__slide {
    direction: rtl;
}

/* Swap prev/next arrow positions and flip glyphs (‹ ↔ ›) */
[dir="rtl"] .bee1-slider__arrow--prev {
    left: auto;
    right: 18px;
}

[dir="rtl"] .bee1-slider__arrow--next {
    right: auto;
    left: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .bee1-slider__track,
    .bee1-slider__arrow,
    .bee1-slider__dot {
        transition-duration: 0.01ms !important;
    }
}
