/* ===================== 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 SECTION ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 65vh; /* tinggi disesuaikan agar tidak crop berlebihan */
  max-height: 700px; /* biar tetap proporsional di layar besar */
  overflow: hidden;
  background-color: #000;
}

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

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* tetap full, tapi tidak gepeng */
  object-position: center center; /* fokus tengah gambar */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: #000;
}

.slider img.active {
  opacity: 1;
}

/* ===================== HERO TEXT ===================== */
.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 ===================== */

/* Laptop dan tablet landscape */
@media (max-width: 1024px) {
  .hero {
    height: 55vh; /* agak lebih kecil agar tidak potong */
  }

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

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

/* Tablet & HP */
@media (max-width: 768px) {
  .hero {
    height: 50vh; /* sesuaikan tinggi untuk layar HP */
  }

  .slider img {
    object-fit: contain; /* ubah ke contain supaya tidak crop di HP */
    background-color: #000; /* sisi belakang hitam biar rapi */
  }

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

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

/* HP kecil */
@media (max-width: 480px) {
  .hero {
    height: 38vh; /* sedikit lebih kecil agar pas di layar kecil */
    position: relative;
    overflow: hidden;
  }

  .slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* gambar penuh, tanpa ruang sisa */
    object-position: center; /* fokus di tengah */
    display: block;
  }

  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    padding: 0 10px;
  }

  .hero-content h1 {
    font-size: 20px; /* lebih kecil biar proporsional */
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-content p {
    font-size: 12px;
    line-height: 1.4;
  }
}
