* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  /* background: #f4f4f4 no-repeat center center fixed; */
  
    /* Ukuran font responsif untuk seluruh body */
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.5; /* agar nyaman dibaca */
  
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-image: url("../../../images/backgroundLatar.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  /* color: white; agar teks tetap terbaca di atas background gelap */
}

/* Header */
header {
  background: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: auto;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  height: 70px;
  object-fit: cover;
}

/* Menu */
.menu-items {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0;
  padding-top: 20px;
  list-style: none;
  justify-content: flex-end;
}

.menu-items li {
  min-width: 50px;
}

.menu-items a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  transition: background 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-items a:hover,
.menu-items a:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

/* Judul utama */
.main-title {
  max-width: 3000px;
  margin: auto;
  display: grid;
  background: #fff;
  height: 150px;
  overflow: hidden;
}

.main-title .content-item {
  position: relative;
  display: inline-block;
}

.main-title img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
}

.main-title p {
  font-size: 3.5rem !important;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff !important;
  font-weight: 800;
  padding: 12px 28px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  z-index: 2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6), -2px -2px 6px rgba(0, 0, 0, 0.6);
}

/* Judul utama kedua */
.main-title1 {
  width: 100%;
  padding: 0;
  background: #000;
  text-align: center;
}

.main-title1 .content-item {
  max-width: 3000px;
  margin: auto;
  display: grid;
  background: #fff;
  height: 20px;
  overflow: hidden;
}

.main-title1 p {
  margin: 0;
  font-weight: bold;
  color: #000 !important;
  font-size: clamp(1rem, 3vw, 2rem);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tombol navigasi */
.nav-buttons {

  
  display: flex;
  justify-content: center;  /* agar horizontal center */
  align-items: center;      /* agar vertical center dalam div (jika tinggi ada) */
  width: 100%;              /* lebar penuh agar bisa di-center-kan */
  padding: 10px 3;          /* ruang atas dan bawah */
  background-color: rgba(0, 0, 0, 0.6);  /* latar belakang transparan */
  gap: 20px; /* jarak antar tombol */


}

.nav-buttons button {
  padding: 6px 200px;
  font-size: 1.5vw;
  /* cursor: pointer; */
  /* border: none; */
  font-weight: bold;
  /* border-radius: 5px; */
  background: #fff;
  color: #000;
  transition: background-color 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.nav-buttons button:hover {
  background: #b8b7b7;
}

.Tittle {
  display: flex;
  justify-content: center;  /* agar horizontal center */
  align-items: center;      /* agar vertical center dalam div (jika tinggi ada) */
  width: 100%;              /* lebar penuh agar bisa di-center-kan */
  padding: 10px 0;          /* ruang atas dan bawah */
  background-color: rgba(0, 0, 0, 0.6);  /* latar belakang transparan */
}

.Tittle p {
  font-size: clamp(14px, 2vw, 20px); /* minimum 18px, ideal 3vw, maksimum 32px */
  font-weight: bold;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
}


/* Tombol download AR */
.nav-buttons1 {
  text-align: center;
  
  font-size: 2vw;
  color: #fff;
  margin: 20px 0;
}

.nav-buttons1 img {
  max-width: 20%;
  height: auto;
}

.nav-buttons1 p {
  margin-top: 5px;
  font-weight: bold;
  font-size: 1.3rem !important;
}

/* Konten utama */
main {
  padding: 0 20px;
  max-width: 1200px;
  margin: auto;
}

.content-grid {

    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 20px));
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  
}

.content-item {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.content-item:hover {
  transform: scale(1.05);
}

.content-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.content-item p {
  margin: 0;
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
  text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    justify-content: center;
  }

  .menu-items {
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-buttons button {
    font-size: 0.9rem;
    padding: 5px 20px;
  }
}

/* Popup */
#popup-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

#popup-box {
  background: #fff;
  padding: 30px 25px;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-in-out;
}

#popup-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

#popup-box p {
  font-size: 1rem;
  margin: 10px 0 20px;
  color: #555;
}

#popup-box ul {
  text-align: left;
  margin: 10px 0 0;
  padding-left: 20px;
  color: #444;
  font-size: 0.95rem;
}

#popup-box ul li {
  margin-bottom: 6px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e74c3c;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
  background-color: #c0392b;
  outline: none;
}

/* Animasi */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
