/* RS Puspa Husada - Post Image Carousel */
.rsp-post-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem auto;
  --rsp-carousel-accent: #02abbc;
}
.rsp-post-carousel .rsp-carousel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  touch-action: pan-y;
}
.rsp-post-carousel .rsp-carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  transition: transform 0.28s ease;
  will-change: transform;
}
.rsp-post-carousel .rsp-carousel-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  list-style: none !important;
}
.rsp-post-carousel .rsp-carousel-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.rsp-post-carousel .rsp-carousel-slide figcaption {
  padding: 0.65rem 0.85rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  background: #f8fafc;
}
.rsp-post-carousel .rsp-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.rsp-post-carousel .rsp-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d7e2e8;
  border-radius: 50%;
  background: #fff;
  color: #24354b;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.rsp-post-carousel .rsp-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.rsp-post-carousel .rsp-carousel-status {
  min-width: 48px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}
.rsp-post-carousel .rsp-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 10px auto 0;
  padding: 0;
  list-style: none;
}
.rsp-post-carousel .rsp-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
}
.rsp-post-carousel .rsp-carousel-dot[aria-current="true"] {
  background: var(--rsp-carousel-accent);
  transform: scale(1.2);
}
.rsp-post-carousel .rsp-carousel-arrow:focus-visible,
.rsp-post-carousel .rsp-carousel-dot:focus-visible {
  outline: 2px solid var(--rsp-carousel-accent);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .rsp-post-carousel {
    margin: 1.1rem auto;
  }
  .rsp-post-carousel .rsp-carousel-viewport {
    border-radius: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rsp-post-carousel .rsp-carousel-track {
    transition: none;
  }
}

/* Tombol navigasi di kiri dan kanan gambar */
.rsp-post-carousel {
  position: relative;
}

.rsp-post-carousel .rsp-carousel-viewport {
  position: relative;
}

.rsp-post-carousel .rsp-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 5;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: 0;
  padding: 0 12px;
  transform: translateY(-50%);

  pointer-events: none;
}

/* Tombol panah */
.rsp-post-carousel .rsp-carousel-arrow {
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(20, 35, 50, 0.6);
  color: #fff;

  font-size: 28px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  pointer-events: auto;
  cursor: pointer;
}

.rsp-post-carousel .rsp-carousel-arrow:hover {
  background: #02abbc;
  color: #fff;
}

.rsp-post-carousel .rsp-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Sembunyikan nomor slide di area tombol */
.rsp-post-carousel .rsp-carousel-status {
  display: none;
}

/* Indikator titik tetap di bawah gambar */
.rsp-post-carousel .rsp-carousel-dots {
  position: relative;
  margin-top: 12px;
}

/* Penyesuaian HP */
@media (max-width: 600px) {
  .rsp-post-carousel .rsp-carousel-controls {
    padding: 0 8px;
  }

  .rsp-post-carousel .rsp-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
