/* Basic CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
/*   background-image: url("img/bg2.png");
  background-size: contain;
  background-position: center; */
  color: #308131;
}

/* Navigation Bar */
nav {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
  background: #308131;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

nav img {
  height: 40px;
  margin-left: 20px;
}

nav .hamburger-menu {
  display: none;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

nav ul li a:hover {
  color: #9edf9c;
  font-weight: bold;
}

section:target {
  scroll-margin-top: 60px;
}

.paket-rekreasi {
  text-align: left;
}

h1,
h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  display: inline-block; /* Membuat lebar h1 hanya sepanjang teks */
  position: relative;
  margin-bottom: 10px;
}

h1::after,
h2::after {
  content: "";
  display: block;
  width: 70%; /* Border hanya 70% dari panjang teks */
  height: 2px;
  background-color: #308131;
  margin: auto;
  position: absolute;
  left: 15%; /* Agar tetap berada di tengah */
  bottom: -5px;
}

#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#home p {
  width: 70%;
  font-size: large;
  margin: 20px 0;
}

#profil {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#profil img {
  width: 250px;
  height: auto;
  margin: 20px 0;
}

#profil p {
  text-align: center;
  width: 85%;
}

#katalog,
#edukasi {
  text-align: center;
}

#katalog h3,
p {
  margin: 10px 30px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}
.card-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  width: 200px;
}
.card-item img {
  max-width: 100%;
  border-radius: 8px;
}
.card-item p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
}

/* Container utama untuk slider */
.grid-container {
  position: relative;
  width: 100%;
  overflow: hidden; /* Agar tidak melewati batas */
}

/* Wrapper untuk grid */
.grid {
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto; /* Scroll horizontal */
  scroll-behavior: smooth;
  white-space: nowrap;
}

/* Hide default scrollbar */
.grid::-webkit-scrollbar {
  display: none;
}

/* Styling tiap card */
.card {
  flex: 0 0 auto; /* Agar tidak mengecil */
  width: 250px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 300px; /* Seragamkan gambar */
  object-fit: cover;
}

.card h4 {
  margin: 10px 0;
  font-size: 16px;
}

.card a {
  text-decoration: none;
  color: #007bff;
  font-size: 14px;
}

/* Tombol Navigasi */
.btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  padding: 10px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.btn-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Posisi tombol */
.btn-prev {
  left: 5px;
}

.btn-next {
  right: 5px;
}

.grid-img {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom */
  gap: 10px; /* Jarak antar gambar */
  padding: 10px;
  margin: 10px;
}

.card-img {
  width: 100%;
  height: 250px; /* Atur tinggi yang sama untuk semua gambar */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pastikan gambar memenuhi kotak */
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.card-img img:hover {
  transform: scale(1.05); /* Efek zoom saat hover */
}

.ecommerce-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.ecommerce-icons a {
  color: #308131;
  font-size: 24px;
  transition: color 0.3s;
  text-decoration: none;
}

.ecommerce-icons a:hover {
  color: #9edf9c;
}

#edukasi .grid img {
  width: auto;
  height: 100px;
  object-fit: cover;
}

#edukasi .daftar,
#katalog .alur {
  padding: 30px;
  text-align: left;
}

#edukasi .alur h3,
.daftar h3 {
  color: #308131;
}

#katalog .alur p {
  margin-bottom: 10px;
  line-height: 1.5;
}

span {
  font-weight: bold;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.map-link:hover {
  background-color: #0056b3;
}

.dropdown-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.dropdown-item span {
  display: block;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  /* background-color: #9edf9c; */
  width: 750px;
  border-bottom: 2px solid #308131;
  /* color: white; */
  border-radius: 5px;
}

.dropdown-item span:hover {
  background-color: #f1f1f1;
  color: #308131;
}

.dropdown-content {
  display: none;
  padding: 10px;
  border-top: 1px solid #ccc;
}

h1,
h2 {
  margin-top: 20px;
  text-align: center;
}

/* Footer */
footer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  padding: 30px;
  background-color: #308131;
  justify-content: center;
  margin-top: 40px;
  color: #fff;
}

footer div {
  padding: 10px;
}

footer h3 {
  margin-top: 0;
}

.maps iframe {
  width: 100%;
  height: 50px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #9edf9c;
}

.social-media a {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s;
  text-decoration: none;
}

.social-media a:hover {
  color: #9edf9c;
}

.view {
  text-align: right;
}

.view p {
  font-size: 18px;
  color: #9edf9c;
}

.view span {
  font-weight: bold;
  color: #308131;
}

.paket {
  padding: 10px;
  margin: 0px 50px;
  cursor: pointer;
  text-align: justify;
}

.paket strong {
  /* background-color: #9edf9c;
  color: #fff; */
  padding: 7px 12px;
  border-bottom: 2px solid #308131;
  border-radius: 5px;
}

.deskripsi {
  display: none;
  padding: 10px;
}

.review-container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.review-item {
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.review-name {
  font-weight: bold;
}

.review-rating {
  color: gold;
}

form {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-top: 10px;
}

form input,
form textarea,
form select,
form button {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px;
}

body.modal-open {
  overflow: hidden; /* Mencegah scroll ketika modal terbuka */
}

#imageModal {
  display: none; /* Modal tersembunyi saat awal */
  position: fixed;
  z-index: 1000; /* Pastikan modal muncul di atas */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Latar belakang transparan */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-in-out; /* Efek transisi */
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh; /* Mencegah modal terlalu tinggi */
  text-align: center;
  position: relative;
  overflow-y: auto; /* Tambahkan scroll jika konten terlalu tinggi */
}

/* Tombol close agar lebih mudah diklik */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.modal img {
  max-width: 70%;
  height: auto;
  border-radius: 8px;
}

h4 a {
  text-decoration: none;
  color: #308131;
  border-bottom: solid 1px #308131;
}

.slider-container {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

/* Tombol navigasi */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  border-radius: 50%;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* Indikator titik */
.dots-container {
  position: absolute;
  bottom: 20px; /* Posisikan di atas gambar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10; /* Pastikan lebih tinggi dari gambar */
  display: flex;
  gap: 5px;
}

.dot {
  height: 12px;
  width: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background-color: #333;
}

.slider img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: center;
}

.partner {
  text-align: center;
  display: flex-column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.row {
  margin-top: 20px;
}

.partner img {
  width: 120px; /* Sesuaikan ukuran */
  height: 120px; /* Pastikan tinggi sama dengan lebar */
  object-fit: cover; /* Memastikan gambar tetap proporsional */
  border-radius: 50%; /* Membuat gambar bulat */
  margin: 10px;
  transition: transform 0.3s ease-in-out;
}

.text {
  text-align: center;
  padding: 0px 20px;
}

.button a {
  background-color: #308131;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
}

.partner img:hover {
  transform: scale(1.1); /* Efek zoom saat hover */
}

.row-img {
  display: flex; /* Membuat gambar berbaris ke samping */
  flex-wrap: wrap; /* Agar tetap rapi di layar kecil */
  justify-content: center; /* Posisi di tengah */
  gap: 30px; /* Jarak antar gambar */
  padding: 10px;
}

.row-img img {
  width: 100px; /* Sesuaikan ukuran sesuai kebutuhan */
  height: 100px; /* Pastikan tinggi sama agar seragam */
  object-fit: contain; /* Memastikan gambar tetap proporsional */
  transition: transform 0.3s ease-in-out;
}

.row-img img:hover {
  transform: scale(1.05); /* Efek zoom saat hover */
}

/* Responsive */
@media (max-width: 768px) {
  /* Navigation Bar */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #9edf9c;
    padding: 10px 0;
    text-align: center;
  }

  nav ul.active {
    display: flex;
  }

  nav .hamburger-menu {
    display: block;
  }

  /* Home Section */
  #home {
    padding: 0;
    margin: 0;
  }
  #home h1 {
    font-size: 1.5rem;
  }

  #home p {
    width: 90%;
    font-size: 1rem;
  }

  /* Profil Section */
  #profil img {
    width: 200px;
  }

  #profil p {
    width: 90%;
  }

  /* Gallery and Card */
  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .card-item {
    width: 80%;
  }

  .grid-img {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk tampilan kecil */
  }

  .card-img {
    height: 200px; /* Sesuaikan tinggi gambar */
  }

  /* Footer */
  footer {
    grid-template-columns: 1fr; /* Satu kolom untuk tampilan kecil */
    text-align: center;
  }

  .maps iframe {
    height: 200px; /* Sesuaikan tinggi peta */
  }

  /* Slider */
  .slider-container {
    width: 100%;
    margin: 0 auto;
  }

  .slider img {
    height: 500px; /* Sesuaikan tinggi gambar slider */
  }

  /* Partner Section */
  .partner img {
    width: 80px;
    height: 80px;
  }

  /* Review Section */
  .reviews-grid {
    grid-template-columns: 1fr; /* Satu kolom untuk tampilan kecil */
  }

  /* Modal */
  .modal-content {
    width: 90%;
    max-width: 90%;
  }

  .modal img {
    max-width: 90%;
  }

  .review-container {
    max-width: 500px;
  }

  .row-img {
    flex-wrap: wrap; /* Agar gambar turun ke bawah jika tidak cukup */
  }

  .row-img img {
    width: 100px; /* Ukuran lebih kecil untuk mobile */
    height: 100px;
  }

  .modal {
    width: 50%;
    height: auto;
  }
}

@media (max-width: 468px) {
  /* Navigation Bar */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #9edf9c;
    padding: 10px 0;
    text-align: center;
  }

  nav ul.active {
    display: flex;
  }

  nav .hamburger-menu {
    display: block;
  }

  /* Home Section */
  #home {
    padding: 0;
    margin: 0;
  }
  #home h1 {
    font-size: 1rem;
  }

  #home p {
    width: 90%;
    font-size: 0.7rem;
  }

  h1,
  h2 {
    font-size: 1.5rem;
  }

  /* Profil Section */
  #profil img {
    width: 200px;
  }

  #profil p {
    width: 90%;
  }

  /* Gallery and Card */
  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .card-item {
    width: 80%;
  }

  .grid-img {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk tampilan kecil */
  }

  .card-img {
    height: 200px; /* Sesuaikan tinggi gambar */
  }

  /* Footer */
  footer {
    grid-template-columns: 1fr; /* Satu kolom untuk tampilan kecil */
    text-align: center;
  }

  .maps iframe {
    height: 150px; /* Sesuaikan tinggi peta */
  }

  /* Slider */
  .slider-container {
    width: 100%;
    margin: 0 auto;
  }

  .slider img {
    height: 300px; /* Sesuaikan tinggi gambar slider */
  }

  /* Partner Section */
  .partner img {
    width: 60px;
    height: 60px;
  }

  /* Review Section */
  .reviews-grid {
    grid-template-columns: 1fr; /* Satu kolom untuk tampilan kecil */
  }

  /* Modal */
  .modal-content {
    max-width: 100%;
  }

  .modal img {
    max-width: 100%;
  }

  .review-container {
    max-width: 350px;
  }

  .row-img {
    flex-wrap: wrap; /* Agar gambar turun ke bawah jika tidak cukup */
  }

  .row-img img {
    width: 60px; /* Ukuran lebih kecil untuk mobile */
    height: 60px;
  }

  .modal {
    width: 100%;
    height: auto;
  }

  .paket {
    max-width: 300px;
  }

  #modalDescription {
    font-size: 1rem;
  }

  .paket-rekreasi h3 {
    text-align: center;
  }
}
