.pt-hero-slider-wrap {
  --pt-hero-h: clamp(16.5rem, 26vw, 31rem);
  --pt-hero-radius: 0px;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pt-hero-radius);
  background: #FAF6F4;
  direction: rtl;
}

.pt-hero-slider-wrap .pt-hero-swiper {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 5;
  position: relative;
}

.pt-hero-slider-wrap .pt-hero-swiper .pt-hero-slide {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box;
}

.pt-hero-slider-wrap .pt-hero-slide .pt-hero-bg-blur {
  display: block;
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: blur(22px) brightness(0.78);
  transform: scale(1.06);
  pointer-events: none;
  z-index: 0;
}

.pt-hero-slider-wrap .pt-hero-slide .pt-hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.pt-hero-slider-wrap .pt-hero-slide .pt-hero-picture .pt-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.pt-hero-slider-wrap .pt-hero-slide.pt-fit-cover .pt-hero-picture .pt-hero-img {
  object-fit: cover;
}

.pt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    var(--pt-slide-overlay, rgba(24, 24, 27, 0.4)) 0%,
    rgba(24, 24, 27, 0.14) 55%,
    rgba(24, 24, 27, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.pt-hero-slide.pt-pos-d-left .pt-hero-overlay {
  background: linear-gradient(
    to right,
    var(--pt-slide-overlay, rgba(24, 24, 27, 0.4)) 0%,
    rgba(24, 24, 27, 0.14) 55%,
    rgba(24, 24, 27, 0.05) 100%
  );
}

.pt-hero-slide.pt-pos-d-center .pt-hero-overlay {
  background: var(--pt-slide-overlay, rgba(24, 24, 27, 0.35));
}

.pt-hero-full-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pt-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: min(102.5rem, calc(100% - 2 * clamp(1rem, 3vw, 2rem)));
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(3.25rem, 5vw, 4.5rem);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.pt-hero-content {
  max-width: min(34rem, 100%);
  color: var(--pt-slide-color, #FFFFFF);
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1vw, 0.85rem);
  pointer-events: auto;
}

.pt-pos-d-right .pt-hero-inner { justify-content: flex-start; text-align: right; }
.pt-pos-d-center .pt-hero-inner { justify-content: center; text-align: center; }
.pt-pos-d-center .pt-hero-content { align-items: center; }
.pt-pos-d-left .pt-hero-inner { justify-content: flex-end; text-align: left; }
.pt-pos-d-left .pt-hero-content { align-items: flex-end; }

.pt-hero-title {
  margin: 0;
  font-family: var(--kalameh-font-family, 'kalameh', sans-serif);
  font-size: clamp(1.25rem, 0.95rem + 1.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--pt-slide-color, #FFFFFF);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.pt-hero-subtitle {
  margin: 0;
  font-size: clamp(0.8125rem, 0.75rem + 0.35vw, 1.05rem);
  line-height: 1.65;
  color: var(--pt-slide-color, #FFFFFF);
  opacity: 0.94;
}

.pt-hero-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: clamp(0.5rem, 0.8vw, 0.7rem) clamp(1rem, 1.8vw, 1.5rem);
  border-radius: 9999px;
  background: #9D174D;
  color: #FFFFFF !important;
  font-size: clamp(0.78rem, 0.72rem + 0.22vw, 0.9rem);
  font-weight: 700;
  text-decoration: none;
  min-height: 2.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 4;
}

.pt-pos-d-center .pt-hero-cta { align-self: center; }
.pt-pos-d-left .pt-hero-cta { align-self: flex-end; }

.pt-hero-cta:hover,
.pt-hero-cta:focus-visible {
  background: #831843;
  transform: translateY(-1px);
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* Digikala-inspired subtle arrows */
.pt-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.88);
  color: #18181B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pt-hero-slider-wrap:hover .pt-hero-nav,
.pt-hero-slider-wrap:focus-within .pt-hero-nav {
  opacity: 1;
}

.pt-hero-nav:hover,
.pt-hero-nav:focus-visible {
  background: #FFFFFF;
  color: #9D174D;
  outline: 2px solid #9D174D;
  outline-offset: 2px;
}

.pt-hero-prev { right: 18px; }
.pt-hero-next { left: 18px; }

/* Digikala-style clean capsule pagination */
.pt-hero-pagination.swiper-pagination {
  bottom: 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.pt-hero-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  margin: 0 !important;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.pt-hero-pagination .swiper-pagination-bullet-active {
  width: 20px;
  background: #FFFFFF;
}

@media (max-width: 1024px) {
  .pt-hero-inner { padding-inline: 20px; }
}

@media (max-width: 767px) {
  .pt-hero-slider-wrap .pt-hero-swiper,
  .pt-hero-slider-wrap .pt-hero-swiper .pt-hero-slide {
    aspect-ratio: 16 / 10;
  }
  .pt-hero-inner { padding-inline: 16px; }
  .pt-hero-nav { display: none; }
  .pt-hero-overlay {
    background: linear-gradient(
      to top,
      rgba(24, 24, 27, 0.72) 0%,
      rgba(24, 24, 27, 0.42) 55%,
      rgba(24, 24, 27, 0.22) 100%
    ) !important;
  }
  .pt-hero-content { max-width: 100%; gap: 8px; }
  .pt-hero-cta { padding: 10px 20px; font-size: 13px; min-height: 44px; }

  .pt-pos-m-right .pt-hero-inner { justify-content: flex-start; text-align: right; }
  .pt-pos-m-right .pt-hero-content { align-items: flex-start; }
  .pt-pos-m-right .pt-hero-cta { align-self: flex-start; }

  .pt-pos-m-center .pt-hero-inner { justify-content: center; text-align: center; }
  .pt-pos-m-center .pt-hero-content { align-items: center; }
  .pt-pos-m-center .pt-hero-cta { align-self: center; }

  .pt-pos-m-left .pt-hero-inner { justify-content: flex-end; text-align: left; }
  .pt-pos-m-left .pt-hero-content { align-items: flex-end; }
  .pt-pos-m-left .pt-hero-cta { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-hero-cta,
  .pt-hero-nav,
  .pt-hero-pagination .swiper-pagination-bullet {
    transition: none !important;
  }
}
