/* ================================
   Base Slider Style
================================ */

.slider-section {
  width: 100%;
  max-width: 1180px;
  margin: 36px auto 28px;
  padding: 0 16px;
  box-sizing: border-box;
}

.slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 28px;
  background: #f1f5f9;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  isolation: isolate;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease,
    transform 1.2s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  user-select: none;
}

/* ================================
   Large Desktop
================================ */

@media (min-width: 1400px) {
  .slider-section {
    max-width: 1280px;
  }

  .slider {
    height: 500px;
  }
}

/* ================================
   Normal Desktop
================================ */

@media (min-width: 992px) and (max-width: 1399px) {
  .slider-section {
    max-width: 1120px;
  }

  .slider {
    height: 420px;
  }
}

/* ================================
   Tablet
================================ */

@media (min-width: 768px) and (max-width: 991px) {
  .slider-section {
    max-width: 92%;
    margin-top: 30px;
  }

  .slider {
    height: 340px;
    border-radius: 22px;
  }
}

/* ================================
   Mobile
   موبایل دست‌نخورده و نرم‌تر
================================ */

@media (max-width: 767px) {
  .slider-section {
    margin: 28px auto 22px;
    padding: 0 12px;
  }

  .slider {
    height: 220px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  }

  .slide img {
    object-fit: cover;
    object-position: center center;
  }

  .nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
    display: -webkit-box;
  }

  .nav.prev {
    right: 10px;
  }

  .nav.next {
    left: 10px;
  }

  .dots {
    bottom: 11px;
  }

  .dots span {
    width: 7px;
    height: 7px;
  }

  .dots span.active {
    width: 22px;
  }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 420px) {
  .slider {
    height: 190px;
    border-radius: 18px;
  }
}
