/* Mehrad responsive image-only slider. */
.elementor-widget-mehrad_image_slider .elementor-widget-container {
  overflow: visible;
}

.mehrad-image-slider {
  --mehrad-slider-height: 320px;
  --mehrad-slider-gap: 16px;
  --mehrad-slider-per-view: 1;
  --mehrad-slider-arrow-bg: #ffffff;
  --mehrad-slider-arrow-color: #0f172a;
  --mehrad-slider-dot: #ffffff;
  --mehrad-slider-dot-active: #22c978;
  --mehrad-slider-frame-bg: #e9eef3;
  --mehrad-slider-radius: 24px;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  direction: rtl;
  isolation: isolate;
}

.mehrad-image-slider__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--mehrad-slider-radius);
  scroll-behavior: smooth;
  transition: height .24s ease;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-x pan-y pinch-zoom;
}

.mehrad-image-slider__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mehrad-image-slider__viewport:focus-visible {
  outline: 2px solid var(--mehrad-slider-dot-active);
  outline-offset: 4px;
}

.mehrad-image-slider.is-dragging .mehrad-image-slider__viewport {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.mehrad-image-slider--drag-disabled .mehrad-image-slider__viewport {
  cursor: default;
}

.mehrad-image-slider__track {
  display: flex;
  align-items: stretch;
  gap: var(--mehrad-slider-gap);
  min-width: 100%;
  direction: rtl;
}

.mehrad-image-slider__slide {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - (var(--mehrad-slider-gap) * (var(--mehrad-slider-per-view) - 1))) / var(--mehrad-slider-per-view));
  min-width: 0;
  height: var(--mehrad-slider-height);
  overflow: hidden;
  border-radius: var(--mehrad-slider-radius);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--mehrad-slider-frame-bg);
}

.mehrad-image-slider__slide picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--mehrad-slider-radius);
}

.mehrad-image-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--mehrad-slider-radius);
  user-select: none;
  -webkit-user-drag: none;
}



/* Natural mode preserves each source image ratio and never crops it. */
.mehrad-image-slider--sizing-natural .mehrad-image-slider__track {
  align-items: flex-start;
}

.mehrad-image-slider--sizing-natural .mehrad-image-slider__slide {
  height: auto;
  aspect-ratio: var(--mehrad-slide-ratio-desktop, auto);
  background: transparent;
}

.mehrad-image-slider--sizing-natural .mehrad-image-slider__slide picture {
  height: 100%;
}

.mehrad-image-slider--sizing-natural .mehrad-image-slider__image {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

/* Fixed mode uses one stable frame, so mismatched images crop consistently. */
.mehrad-image-slider--sizing-fixed .mehrad-image-slider__slide,
.mehrad-image-slider--sizing-fixed .mehrad-image-slider__slide picture,
.mehrad-image-slider--sizing-fixed .mehrad-image-slider__image {
  height: var(--mehrad-slider-height);
}

.mehrad-image-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--mehrad-slider-arrow-color);
  background: var(--mehrad-slider-arrow-bg);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
  cursor: pointer;
  opacity: .94;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.mehrad-image-slider__arrow:hover,
.mehrad-image-slider__arrow:focus-visible {
  transform: translateY(-50%) scale(1.05);
  opacity: 1;
  box-shadow: 0 13px 34px rgba(15, 23, 42, .21);
  outline: 0;
}

.mehrad-image-slider__arrow:disabled {
  opacity: .35;
  cursor: default;
}

.mehrad-image-slider__arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mehrad-image-slider__arrow--prev { left: 16px; }
.mehrad-image-slider__arrow--next { right: 16px; }

.mehrad-image-slider__dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.mehrad-image-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--mehrad-slider-dot);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .24);
  opacity: .9;
  pointer-events: auto;
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease, transform .2s ease;
}

.mehrad-image-slider__dot.is-active {
  width: 20px;
  background: var(--mehrad-slider-dot-active);
}

.mehrad-image-slider--no-arrows .mehrad-image-slider__arrow,
.mehrad-image-slider--hide-arrows-desktop .mehrad-image-slider__arrow,
.mehrad-image-slider--no-dots .mehrad-image-slider__dots,
.mehrad-image-slider--hide-dots-desktop .mehrad-image-slider__dots {
  display: none;
}

.mehrad-image-slider__editor-placeholder {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #475569;
  background: #f8fafc;
  text-align: center;
  direction: rtl;
}

html.dark .mehrad-image-slider__slide {
  background: #111827;
}

@media (max-width: 767px) {
  .mehrad-image-slider--sizing-natural .mehrad-image-slider__slide {
    aspect-ratio: var(--mehrad-slide-ratio-mobile, var(--mehrad-slide-ratio-desktop, auto));
  }

  .mehrad-image-slider {
    --mehrad-slider-height: 340px;
    --mehrad-slider-gap: 10px;
  }

  .mehrad-image-slider__arrow {
    width: 30px;
    height: 30px;
  }

  .mehrad-image-slider__arrow--prev { left: 10px; }
  .mehrad-image-slider__arrow--next { right: 10px; }

  .mehrad-image-slider__dots {
    bottom: 12px;
  }

  .mehrad-image-slider--hide-arrows-desktop:not(.mehrad-image-slider--hide-arrows-mobile) .mehrad-image-slider__arrow {
    display: grid;
  }

  .mehrad-image-slider--hide-dots-desktop:not(.mehrad-image-slider--hide-dots-mobile) .mehrad-image-slider__dots {
    display: flex;
  }

  .mehrad-image-slider--hide-arrows-mobile .mehrad-image-slider__arrow,
  .mehrad-image-slider--hide-dots-mobile .mehrad-image-slider__dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mehrad-image-slider__viewport {
    scroll-behavior: auto;
  }

  .mehrad-image-slider *,
  .mehrad-image-slider *::before,
  .mehrad-image-slider *::after {
    transition-duration: .01ms !important;
  }
}

@media (max-width: 767px) {
  .mehrad-image-slider--no-arrows .mehrad-image-slider__arrow,
  .mehrad-image-slider--no-dots .mehrad-image-slider__dots {
    display: none !important;
  }
}


/* Mehrad v1.0.122 hard radius enforcement for all Image Slider layers. */
.elementor-widget-mehrad_image_slider .mehrad-image-slider,
.elementor-widget-mehrad_image_slider .mehrad-image-slider__viewport,
.elementor-widget-mehrad_image_slider .mehrad-image-slider__slide,
.elementor-widget-mehrad_image_slider .mehrad-image-slider__slide picture,
.elementor-widget-mehrad_image_slider .mehrad-image-slider__image{
	border-radius:var(--mehrad-slider-radius)!important;
}
.elementor-widget-mehrad_image_slider .mehrad-image-slider__viewport,
.elementor-widget-mehrad_image_slider .mehrad-image-slider__slide,
.elementor-widget-mehrad_image_slider .mehrad-image-slider__slide picture{
	overflow:hidden!important;
	clip-path:inset(0 round var(--mehrad-slider-radius));
}
