/* Hero wrapper */
.hero {
  position: relative;
  height: 90vh;
  margin-top: calc(var(--header-height, 0px));
}

/* Carousel container */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Slide dasar */
.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
}

/* Slide aktif */
.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* elemen gambar + animasi zoom */
.slide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: zoom-img 10s ease-in-out infinite alternate;
  z-index: 1;
}

/* keyframes hanya untuk gambar */
@keyframes zoom-img {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

/* overlay gelap + teks */
.carousel-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.348);
  z-index: 3;
  pointer-events: none;
}

/* Judul di kiri atas */
.carousel-title {
  position: absolute;
  top: 3rem;
  left: 5rem;
  width: 900px;
  margin: 0;
  color: var(--background-color);
  font-size: 2rem;
  font-weight: bold;
  z-index: 4;
}

/* Deskripsi di kiri bawah */
.carousel-desc {
  position: absolute;
  bottom: 9rem;
  left: 5rem;
  width: 800px;
  margin: 0;
  color: var(--background-color);
  font-size: 1.5rem;
  z-index: 4;
}

/* Tombol "Selengkapnya" jika ada */
.carousel-btn {
  position: absolute;
  bottom: 9rem;
  right: 5rem;
  z-index: 4;
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

/* Indicator Bullets */
.carousel-indicators {
  position: absolute;
  top: 2rem;
  right: 3rem;
  display: flex;
  gap: 0.5rem;
  z-index: 30;
}

.carousel-indicators .indicator {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--background-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-indicators .indicator.active {
  background: var(--primary-color);
}

.carousel-indicators .indicator:hover {
  background: var(--hover-color);
}

/* Navigation buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.3s, opacity 0.3s;
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--hover-color);
  opacity: 1;
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .carousel-title {
    top: 6rem;
    width: 350px;
    left: 1rem;
    font-size: 1.5rem;
  }
  .carousel-desc {
    bottom: 4rem;
    left: 1rem;
    font-size: 0.875rem;
  }
  .carousel-btn {
    bottom: 4rem;
    right: 1rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}
/* ================================
   Responsiveness untuk Judul & Deskripsi Carousel
   ================================ */
@media (max-width: 992px) {
  /* Tablet landscape */
  .carousel-title {
    left: 2rem;
    width: 600px;
    font-size: 1.75rem;
  }
  .carousel-desc {
    bottom: 8rem;
    left: 2rem;
    width: 600px;
    font-size: 1.25rem;
  }
  .carousel-btn {
    bottom: 8rem;
    right: 2rem;
  }
}

@media (max-width: 768px) {
  /* Tablet portrait / ponsel besar */
  .carousel-title {
    top: 4rem;
    left: 1rem;
    width: calc(100% - 2rem);
    font-size: 1.5rem;
  }
  .carousel-desc {
    bottom: 6rem;
    left: 1rem;
    width: calc(100% - 2rem);
    font-size: 1rem;
  }
  .carousel-btn {
    bottom: 6rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
  }
}