/* === home.css === */

/* Styles untuk Carousel / Home Section */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh; /* Sangat penting untuk tinggi section */
  overflow: hidden;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute; /* Sangat penting agar slide menumpuk */
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* Awalnya tidak terlihat */
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Ubah 0.4 sesuai gelap yang diinginkan */
  z-index: 1;
  pointer-events: none;
}

.slide.active {
  opacity: 1; /* Slide aktif akan terlihat */
  z-index: 0;
}

/* Style untuk Caption di dalam Slide */
.slide .caption {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 20px; /* Padding dari .slide .caption */
  text-align: left; /* Perataan teks dari .slide .caption */
  /* color dan border-radius akan diambil dari rule .caption di bawah */
}

/* Style Umum untuk .caption */
.caption {
  text-align: center;
  color: rgb(36, 35, 35);
  padding: 30px;
  border-radius: 10px;
}

/* Style untuk h2 di dalam .caption */
.caption h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

/* Style untuk p di dalam .caption */
.caption p {
  font-size: 1.2rem;
  color: white;
}

/* === Tambahkan Style untuk Slide Indicators di bawah ini === */
.slide-indicators {
  position: absolute;
  bottom: 20px; /* Sesuaikan jarak dari bawah */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px; /* Jarak antar titik */
  z-index: 10; /* Pastikan di atas gambar slide */
}

.slide-indicators .dot {
  width: 12px; /* Lebar titik */
  height: 12px; /* Tinggi titik */
  background-color: rgba(
    255,
    255,
    255,
    0.5
  ); /* Warna titik non-aktif, semi-transparan */
  border-radius: 50%; /* Membuatnya bulat */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slide-indicators .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.slide-indicators .dot.active {
  background-color: white; /* Warna titik aktif */
}
