/* =========================================================
   AD CAROUSEL — slider iklan/promosi di atas Statistik
   Gaya full-bleed foto dengan gradient fade di sisi kiri,
   teks & CTA di atas foto. Prefix class ksm-ad-*.
   ========================================================= */

.ksm-ad-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
  height: 280px;
}

.ksm-ad-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.ksm-ad-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 0 60px;
}

.ksm-ad-slide-text {
  max-width: 540px;
  color: #fff;
}

.ksm-ad-slide-text h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.ksm-ad-slide-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 460px;
}

.ksm-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #2c3e50;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ksm-ad-cta:hover {
  background: #eef1f4;
  transform: translateY(-2px);
}

/* ----- Panah navigasi ----- */
.ksm-ad-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}

.ksm-ad-arrow:hover {
  background: rgba(255, 255, 255, 0.38);
}

.ksm-ad-arrow svg {
  width: 18px;
  height: 18px;
}

.ksm-ad-arrow-prev {
  left: 14px;
}

.ksm-ad-arrow-next {
  right: 14px;
}

/* ----- Dots (dot pertama jadi pill lebih lebar saat aktif) ----- */
.ksm-ad-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.ksm-ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.ksm-ad-dot.active {
  width: 22px;
  background: #fff;
}

@media (max-width: 720px) {
  .ksm-ad-carousel {
    height: 320px;
  }
  .ksm-ad-slide {
    padding: 0 26px;
  }
  .ksm-ad-slide-text h3 {
    font-size: 20px;
  }
  .ksm-ad-slide-text p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ksm-ad-carousel {
    height: 360px;
  }
}