/* ===================== HEADER ===================== */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.header-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
}

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* layar penuh */
  overflow: hidden;
}

/* ===================== SLIDER ===================== */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* biar full tapi gak gepeng */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: #000; /* jaga-jaga kalau load lambat */
}

.slider img.active {
  opacity: 1;
}

/* ===================== HERO TEXT (opsional) ===================== */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row; /* tetap row */
    justify-content: space-between; /* logo kiri, hamburger kanan */
    align-items: center;
    padding: 12px 16px;
    gap: 0; /* optional, hapus jarak ekstra */
  }

  .header-title {
    font-size: 20px;
  }

  .hero {
    height: 85vh; /* masih besar tapi pas di HP */
  }

  .slider img {
    object-fit: cover; /* tetap cover supaya tidak hilang */
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 80vh;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-content p {
    font-size: 13px;
  }
}
