/* GLOBAL STYLES ================================================== */


/* CUSTOMIZE THE CAROUSEL ========================================= */

/* Carousel container top space (supaya tidak ketutup navbar) */
#myCarousel {
  margin-top: 70px; 
}

/* Carousel item: gambar full */
.carousel-item {
  height: 75vh;
  background-color: #000;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  display: block;
}

/* Overlay */
.overlay-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.overlay-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption */
.carousel-caption {
  bottom: 3rem;
}

.carousel-caption h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.carousel-caption h2 {
  font-size: 1.7rem;
  font-weight: 600;
}


/* ========== FIX MOBILE (<=600px) - Naikkan banner, perbaiki carousel ========== */
@media only screen and (max-width: 600px) {

  /* Hapus jarak yang mendorong carousel/bagian atas */
  #myCarousel {
    margin-top: 0 !important;
  }

  /* Pastikan header punya tinggi yang konsisten di mobile.
     Sesuaikan angka kalau navbar-mu lebih tinggi/lebih rendah. */
  header.header {
    height: 72px !important;
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    z-index: 9999;
  }

  /* Pastikan konten (body) punya padding-top sama agar tidak tertutup header */
  body {
    padding-top: 72px !important;
  }

  /* Naikkan banner/hero tanpa menimpa navbar.
     margin-top negatif mengangkat hero; padding-top mencegah teks nempel. */
  .hero {
    margin-top: -70px !important;
    padding-top: 56px !important;
    text-align: center;
  }

  /* Carousel (jika kamu pakai carousel di hero) */
  .carousel-item {
    height: 38vh !important;   /* sesuaikan tinggi agar tidak terlalu besar */
  }

  .carousel-item img {
    height: 38vh !important;
    object-fit: cover;         /* agar gambar tetap proporsional */
    width: 100%;
  }

  /* Caption kecil supaya muat */
  .carousel-caption h1 {
    font-size: 1.25rem !important;
    line-height: 1.05;
  }

  .carousel-caption h2 {
    font-size: 1rem !important;
  }

  .carousel-caption p {
    font-size: 0.75rem !important;
  }

  /* Jika ada elemen hero-img, pastikan tidak mendorong turun */
  .hero .hero-img {
    margin-top: 16px !important;
  }

  /* Jika masih ada jarak kosong, turunkan nilai negatif ini (buat lebih negatif)
     contoh: margin-top: -90px !important; — atau kurangi jika terlalu naik. */
}


/* FULL CENTER TEXT */
.carousel-caption {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

/* TITLE */
.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

/* SUBTITLE */
.carousel-caption h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 10px;
  color: #f1f1f1;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* PARAGRAPH */
.carousel-caption p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 20px auto 0;
  color: #eaeaea;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption h2 {
    font-size: 1.3rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
    max-width: 95%;
  }
}
