/* Sepahan full-width slider — Parsan model adapted for Sepahan */
.elementor-widget-sepahan_fullwidth_slider,
.elementor-widget-sepahan_fullwidth_slider > .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.sepahan-wide-slider-one {
  position: relative;
  width: 100vw;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin-inline: calc(50% - 50vw);
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  background: #eef3f8;
  direction: ltr;
  touch-action: pan-y;
  user-select: none;
  isolation: isolate;
  box-sizing: border-box;
}

.sepahan-wide-slider-one *,
.sepahan-wide-slider-one *::before,
.sepahan-wide-slider-one *::after { box-sizing: border-box; }

.sepahan-wide-slider-one-track {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  cursor: grab;
}

.sepahan-wide-slider-one.is-dragging .sepahan-wide-slider-one-track { cursor: grabbing; }

.sepahan-wide-slider-one-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}

/* The active slide stays in normal flow so the slider height is calculated
   from the real image ratio. No fixed height, cover crop, or stretching. */
.sepahan-wide-slider-one-slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.sepahan-wide-slider-one-slide > a,
.sepahan-wide-slider-one-slide picture {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.sepahan-wide-slider-one-slide img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  -webkit-user-drag: none;
  user-select: none;
  border-radius: 0 !important;
}

.sepahan-wide-slider-one-arrows {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 6;
}

.sepahan-wide-slider-one-arrows button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(17,24,39,.62);
  color: #fff;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: none;
  transition: background .18s ease, transform .18s ease;
}

.sepahan-wide-slider-one-arrows button svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sepahan-wide-slider-one-arrows button:hover { background: rgba(17,24,39,.82); transform: translateY(-1px); }
.sepahan-wide-slider-one-arrows button:focus-visible,
.sepahan-wide-slider-one-dots button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.sepahan-wide-slider-one-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  min-height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 7;
  padding: 0 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
}

.sepahan-wide-slider-one-dots::before,
.sepahan-wide-slider-one-dots::after { display: none !important; }

.sepahan-wide-slider-one-dots button {
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  border: 0;
  border-radius: 999px;
  background: #d1d7df;
  padding: 0;
  cursor: pointer;
  transition: width .22s ease, background .22s ease;
}

.sepahan-wide-slider-one-dots button.is-active { width: 22px; background: #22c77a; }
.sepahan-wide-slider-single .sepahan-wide-slider-one-arrows,
.sepahan-wide-slider-single .sepahan-wide-slider-one-dots { display: none !important; }

@media (max-width: 768px) {
  .sepahan-wide-slider-one {
    width: 100vw;
    max-width: 100vw !important;
    height: auto !important;
    aspect-ratio: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
  .sepahan-wide-slider-hide-mobile { display: none !important; }
  .sepahan-wide-slider-one-arrows { left: 14px; bottom: 12px; gap: 7px; }
  .sepahan-wide-slider-one-arrows button { width: 34px; height: 34px; border-radius: 9px; }
  .sepahan-wide-slider-one-arrows button svg { width: 16px; height: 16px; }
  .sepahan-wide-slider-hide-arrows-mobile .sepahan-wide-slider-one-arrows { display: none !important; }
  .sepahan-wide-slider-one-dots { bottom: 12px; min-height: 22px; padding: 0 11px; }
  .sepahan-wide-slider-one-dots button.is-active { width: 20px; }
  .sepahan-wide-slider-hide-dots-mobile .sepahan-wide-slider-one-dots { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sepahan-wide-slider-one-slide { transition: none !important; }
  .sepahan-wide-slider-one-arrows button,
  .sepahan-wide-slider-one-dots button { transition: none !important; }
}

/* Elementor editor canvas: avoid forcing the editor itself wider than its panel. */
body.elementor-editor-active .sepahan-wide-slider-one,
.elementor-editor-preview .sepahan-wide-slider-one {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Visual Layout: neutralize parent/first-widget utility spacing and make the
   widget's own responsive controls the sole source of gap and radius. */
.elementor-widget-sepahan_layout_builder,
.elementor-widget-sepahan_layout_builder > .elementor-widget-container,
.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-section,
.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-full {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-section {
  padding-block: 0 !important;
  overflow: visible !important;
}

.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-grid {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: var(--sepahan-layout-row-gap, 8px) var(--sepahan-layout-column-gap, 8px) !important;
  box-sizing: border-box !important;
}

.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-item {
  min-width: 0 !important;
  margin: 0 !important;
  border-radius: var(--sepahan-layout-radius, 18px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-item > img,
.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-item::after {
  border-radius: inherit !important;
}

/* Visual Category: remove accidental double-container indentation, including
   when it is the first widget below the header/slider. */
.elementor-widget-sepahan_image_categories,
.elementor-widget-sepahan_image_categories > .elementor-widget-container,
.elementor-widget-sepahan_image_categories .sepahan-image-cats-section,
.elementor-widget-sepahan_image_categories .sepahan-image-cats-width,
.elementor-widget-sepahan_image_categories .sepahan-image-cats-inner,
.elementor-widget-sepahan_image_categories .sepahan-image-cats-scroll {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.elementor-widget-sepahan_image_categories .sepahan-image-cats-section {
  padding-block: 20px !important;
  overflow: visible !important;
}

.elementor-widget-sepahan_image_categories .sepahan-image-cats-width {
  padding-inline: 0 !important;
}

.elementor-widget-sepahan_image_categories .sepahan-image-cats-width-container {
  max-width: 1280px !important;
  margin-inline: auto !important;
}

@media (min-width: 1536px) {
  .elementor-widget-sepahan_image_categories .sepahan-image-cats-width-container {
    max-width: 1440px !important;
  }
}

.elementor-widget-sepahan_image_categories .sepahan-image-cats-list {
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.elementor-widget-sepahan_image_categories .sepahan-image-cat-item {
  margin: 0 !important;
}



/* Visual Layout: when “preserve complete image” is enabled, absolutely no
   cover crop, stretching, inherited min-height, or hover zoom is allowed. */
.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-section.sepahan-image-mode-standard.sepahan-preserve-image .sepahan-layout-builder-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-section.sepahan-image-mode-standard.sepahan-preserve-image .sepahan-layout-builder-item > img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
.elementor-widget-sepahan_layout_builder .sepahan-layout-builder-section.sepahan-image-mode-standard.sepahan-preserve-image.hover-zoom .sepahan-layout-builder-item:hover > img {
  transform: none !important;
}
