/* ==========================================================================
   HOME SLIDER STYLES (FIXED & CLEAN)
   ========================================================================== */

/* ================= WRAPPER ================= */
.slider-wrapper {
  position: relative;
  z-index: 5;
}

/* ================= CONTAINER ================= */
.home-slider .container {
  overflow: visible !important;
  padding-bottom: 0 !important; /* 🔥 FIX GAP */
}

/* ================= IMAGE FIX (PENTING) ================= */
.img-slider-responsive {
  width: 100%;
  display: block; /* 🔥 HILANGKAN GAP BAWAH GAMBAR */
}

/* ================= NAVIGATION ================= */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: #ffffff !important;
  color: #333 !important;
  border: none;
  border-radius: 50%;
  z-index: 99 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-nav.prev {
  left: -22px;
}
.slider-nav.next {
  right: -22px;
}

.slider-nav:hover {
  background-color: #e31e24 !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.1);
}

/* ================= DOTS DESKTOP ================= */
.slider-dots {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px; /* 🔥 DIRAPIIN */
  padding: 0 0 6px 5px; /* 🔥 FIX JARAK */
}

.slider-dots span {
  width: 10px;
  height: 10px;
  background-color: #d1d1d1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.slider-dots span.active {
  background-color: #e31e24;
  width: 22px;
  border-radius: 10px;
}

.slider-dots span:hover {
  background-color: #b5b5b5;
}

/* ================= GLOBAL SPACING FIX ================= */
.home-slider {
  margin-bottom: 8px !important; /* 🔥 JARAK KE INFO BAR */
  line-height: 0; /* 🔥 HILANGKAN GAP INLINE */
}

/* ==========================================================================
   MOBILE FIX
   ========================================================================== */

@media (max-width: 768px) {
  /* Kembalikan padding container */
  .slider-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Slider tetap di dalam container, gambar tidak terpotong */
  .slider-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .slider-main {
    border-radius: 10px !important;
    overflow: hidden;
  }

  /* Gambar mengisi lebar penuh, tinggi mengikuti proporsi asli */
  .img-slider-responsive {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block !important;
  }

  /* Dots */
  .slider-wrapper .slider-dots {
    position: relative !important;
    margin-top: 8px !important;
    padding: 0 0 6px 14px !important;
  }

  .slider-dots span {
    width: 8px !important;
    height: 8px !important;
  }

  .slider-dots span.active {
    width: 18px !important;
  }

  .slider-nav {
    display: none !important;
  }

  .home-slider {
    margin-bottom: 6px !important;
  }
}
