/* untuk keseluruhan web*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fafafa;
  color: #333;
}

/* isinya nama web */
.header {
  background: #06183c;
  color: #fff;
  padding: 15px 30px;
  font-size: 24px;
  font-weight: bold;
}
.header span {
  color: #b7c5e0;
}

/* home isinya semacem slogan */
.home {
  position: relative;
  text-align: center;
  padding: 90px 20px;
  background-image: url('img/batik-biru.webp');
  color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.home::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* transparan hitam */
}
.home h1, 
.home p {
  position: relative; /* supaya teks di atas overlay */
}
.home-content h1 {
  font-size: 38px;
  margin-bottom: 10px;
}
.home-content p {
  font-size: 20px;
}

/* buat nav sm search */
.search {
  padding: 20px;
  text-align: center;
}
.filter-nav {
  margin-bottom: 15px;
}
.filter-btn {
  margin: 5px;
  padding: 8px 15px;
  border: none;
  background: #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: #0e3c96;
  color: #fff;
}
.search-container input {
  padding: 10px;
  width: 60%;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* grid cards */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 30px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 15px;
}
.card-body h3 {
  margin: 0 0 5px;
  font-size: 18px;
  color: #0e3c96;
}
.card-body p {
  font-size: 14px;
  color: #555;
}

/* pop up pas dipencet cardny */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}
.modal-content {
  background: #fff;
  margin: auto;
  border-radius: 12px;
  max-width: 700px;
  text-align: center;
  width: 90%;
  padding: 15px;
}
.modal-content img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  margin-bottom: 15px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  font-weight: bold;
}
.close:hover {
  color: #000;
}

/* footer */
footer {
  text-align: center;
  padding: 15px;
  background: #f1f1f1;
  margin-top: 20px;
  font-size: 14px;
}

/* vid pop up */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* buat button fav */
.favorite-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 5px 8px;
  transition: transform 0.2s ease, background 0.3s;
}

.favorite-icon:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.6);
}

.card {
  position: relative;
}

/* review & contact */
.review-contact {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  background: linear-gradient(to right, #eaf0ff, #ffffff);
}

.review-box, .contact-box {
  flex: 1 1 45%;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-box h2, .contact-box h2 {
  margin-bottom: 15px;
  color: #0e3c96;
  font-size: 22px;
  text-align: center;
}

.review-box form, .contact-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-box input,
.contact-box input,
.contact-box textarea,
.review-box textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.review-box button,
.contact-box button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #0e3c96;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.review-box button:hover,
.contact-box button:hover {
  background: #092b70;
}

/* daftar review */
.review-list {
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.review-item p {
  margin: 0;
  flex: 1;
  color: #333;
}

/* tombol hapus */
.delete-btn {
  background: #0e3c96;
  border: none;
  color: red;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.3s;
}

.delete-btn:hover {
  transform: scale(1.1);
  background: #092b70;
}

/* responsive */
@media (max-width: 768px) {

  /* ini header */
  .header {
    font-size: 20px;
    padding: 12px;
    text-align: center;
  }

  /* home */
  .home {
    padding: 60px 15px;
    text-align: center;
  }

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

  .home-content p {
    font-size: 15px;
  }

  /* search n filteringny */
  .search {
    padding: 15px;
  }

  .filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    font-size: 13px;
    margin: 4px;
    padding: 6px 10px;
  }

  .search-container input {
    width: 85%;
    font-size: 14px;
  }

  /* contact sm review */
  .review-contact {
    flex-direction: column;
    gap: 20px;
    padding: 25px 15px;
  }

  .review-box, .contact-box {
    flex: 1 1 100%;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  }

  .review-box h2, .contact-box h2 {
    font-size: 18px;
  }

  /* footer */
  footer {
    font-size: 13px;
    padding: 10px;
  }
}