/* ============ slider.css — بنر اسلایدی Swiper ============ */

.hero-slider {
  margin: 0 -28px 12px;
  position: relative;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.banner-swiper {
  width: 100%;
  height: auto;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.banner-swiper .swiper-slide {
  overflow: hidden;
  position: relative;
}

.banner-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

/* زوم آرام روی اسلاید فعال */
.banner-swiper .swiper-slide-active img {
  transform: scale(1.08);
}

/* گرادیانت پایین (ادغام با پس‌زمینه) */
.banner-swiper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
      transparent 40%,
      rgba(28, 25, 23, 0.5) 70%,
      var(--background, #1c1917) 100%);
}

/* دکمه‌های ناوبری */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg, rgba(41, 37, 36, 0.45));
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border, rgba(245, 245, 244, 0.12));
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.banner-swiper .swiper-button-next::after,
.banner-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground, #f5f5f4);
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
  background: rgba(185, 28, 28, 0.6);
  box-shadow: var(--neon-glow);
}

/* پاجینیشن */
.banner-swiper .swiper-pagination {
  z-index: 4;
  bottom: 18px !important;
}

.banner-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(245, 245, 244, 0.4);
  opacity: 1;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
  background: var(--neon-red, #ff2d2d);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.7);
}

@media (max-width: 1024px) {
  .banner-swiper {
    height: 260px;
  }
}

@media (max-width: 680px) {
  .hero-slider {
    margin: 0 -16px 10px;
    border-radius: 0 0 18px 18px;
  }

  .banner-swiper {
    height: 200px;
    border-radius: 0 0 18px 18px;
  }
}