/* Carousel Intensif */
.intensif-top-space,
#intensif .section {
  padding-top: 120px;
}
#intensif { background: radial-gradient(1200px circle at 0% -10%, rgba(79,70,229,0.06), transparent 50%), radial-gradient(1200px circle at 100% 110%, rgba(46,143,182,0.06), transparent 50%); }
#intensif .section h2 { text-align: center; margin: 0 0 12px; }
#intensif .section p { text-align: center; margin: 0 auto 18px; max-width: clamp(680px, 72vw, 820px); color: var(--muted); }
#intensif .container { width: 100%; max-width: 100%; padding-inline: clamp(12px, 4vw, 24px); }
.gallery { margin: 12px auto 20px; width: 100%; max-width: 1000px; }
.gallery-list { display: flex; flex-direction: column; gap: 16px; }
.gallery-item { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 28px rgba(16,24,40,0.12); }
.gallery-item img { width: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 9; }
.gallery-caption { padding: 10px 12px; color: var(--muted); font-size: clamp(13px, 2.6vw, 15px); line-height: 1.6; }
.soe-section { padding-top: 8px; }
.soe-list { margin-top: 8px; }
.carousel { margin: 12px auto 20px; max-width: 1140px; }
.carousel-viewport { position: relative; overflow: hidden; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 28px rgba(16,24,40,0.12); aspect-ratio: 16 / 9; }
.carousel-track { position: relative; height: 100%; }
.carousel-slide { position: absolute; top: 0; height: 100%; transition: left 360ms ease, right 360ms ease, width 360ms ease, transform 360ms ease, opacity 360ms ease; }
.carousel-slide.active { left: 50%; width: 100%; transform: translateX(-50%) scale(1); z-index: 3; opacity: 1; }
.carousel-slide.left { left: 5%; width: 52%; transform: translateX(0) scale(0.9); z-index: 2; opacity: 0.84; }
.carousel-slide.right { right: 5%; width: 52%; transform: translateX(0) scale(0.9); z-index: 2; opacity: 0.84; }
.carousel-slide img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 16px; }
.slide-caption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,0.55); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--outline); border: none; cursor: pointer; }
.carousel-dots .dot.active { background: var(--primary); }
.carousel-caption { margin-top: 6px; font-size: 12px; }

/* Tombol panah bulat di bawah */
.carousel-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--outline); background: #fff; box-shadow: 0 4px 12px rgba(16,24,40,0.12); display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--text); cursor: pointer; }
.carousel-btn:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .slide-caption { font-size: 12px; padding: 5px 8px; }
  .carousel { max-width: 100%; }
  .carousel-btn { width: 32px; height: 32px; font-size: 18px; }
  /* Kurangi lebar slide sisi agar tidak bertumpuk di layar sempit */
  .carousel-slide.left { left: 4%; width: 44%; transform: scale(0.92); }
  .carousel-slide.right { right: 4%; width: 44%; transform: scale(0.92); }
  .gallery { max-width: 100%; }
  .gallery-caption { font-size: 13px; }
}

/* Tombol CTA */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--outline); border-radius: 10px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,0.25); }
.btn-primary:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.cta-row { display: flex; justify-content: center; margin-top: 12px; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,24,40,0.45); }
.modal-dialog { position: relative; width: min(920px, 92vw); margin: 6vh auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(16,24,40,0.24); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--outline); }
.modal-close { border: none; background: transparent; font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal-close:hover { background: rgba(0,0,0,0.06); }
.modal-body { padding: 0; }
.modal-iframe { display: block; width: 100%; height: 70vh; border: none; }

@media (max-width: 640px) {
  .modal-dialog { width: 94vw; margin: 8vh auto; border-radius: 14px; }
  .modal-iframe { height: 72vh; }
}
