html, body {
  overflow-x: hidden;
  max-width: 100%;
}


body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #005131;
}

.hero-slider {
  position: static;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Mode mobile untuk layar ≤ 430px */
@media (max-width: 430px) {
  .hero-slider {
    height: 300px; /* tinggi di mobile dibuat lebih kecil */
  }
  
  .slide {
    background-position: center center;
  }
}


.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  bottom: 180px;
  left: 50px;
  color: rgb(36, 36, 36);
  z-index: 2;
}

.overlay h4,
.overlay h2 {
  opacity: 0;
  transform: translateX(60px);
  filter: blur(4px);
}

.slide.animate .overlay h4 {
  animation: slideFadeBlur 0.6s ease forwards;
  animation-delay: 0.1s;
}

.slide.animate .overlay h2 {
  animation: slideFadeBlur 0.6s ease forwards;
  animation-delay: 0.3s;
}

@keyframes slideFadeBlur {
  0% {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.overlay h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.overlay h2 {
  font-size: 32px;
  font-weight: 800;
  max-width: 700px;
  line-height: 1.4;
}

.underline {
  margin-top: 10px;
  width: 80px;
  height: 3px;
  background-color: white;
}

.dots {
  position: absolute;
  bottom: 85px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
}

/* === MODE MOBILE === */
@media (max-width: 430px) {
  .hero-slider {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .slide {
    height: 100%;
  }

  .overlay {
    bottom: 200px;
    left: 20px;
    right: 20px;
  }

  .overlay h2 {
    font-size: 24px;
    line-height: 1.4;
    max-width: 100%;
  }

  .overlay h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .underline {
    width: 60px;
    height: 3px;
  }

  .dots {
    bottom: 60px;
    right: 10px;
  }
}

/* Tambahkan animasi masuk */
.overlay h4,
.overlay h2 {
  opacity: 0;
  transform: translateX(40px);
  filter: blur(4px);
  transition: all 2s ease;
}

.slide.active .overlay h4,
.slide.active .overlay h2 {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}
