/* ====== Layout Umum ====== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Register pengguna baru */
.register-container {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.register-form .form-group {
  margin-bottom: 15px;
}

.register-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.register-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c0bebe;
  border-radius: 8px;
}

.btn-auth.full {
  width: 100%;
  padding: 12px;
  background-color: #1e71ca;
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-auth.full:hover {
  background-color: #0056b3;
}

.login-link {
  text-align: center;
  margin-top: 15px;
}

/* ====== Header Sticky & Responsive ====== */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: #003366;
  z-index: 999;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px; /* misalnya */
}

.sticky-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px !important;
  width: auto !important;
}

.auth-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-wrapper .btn-auth {
  padding: 6px 18px;
  border-radius: 18px;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn-auth {
  padding: 6px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-auth:hover {
  background-color: #ffd700;
  color: #000;
}

/* Tombol Masuk - border putih tanpa fill */
.btn-auth.login {
  border: 2px solid rgb(255, 255, 255);
  background-color: #003366;
  color: rgb(166, 172, 206);
}

.btn-auth.login:hover {
  background-color: #003366;
  color: white;
}

.auth-wrapper .separator {
  color: white;
  font-weight: 500;
}

.auth-wrapper .btn-auth {
  padding: 6px 16px;
  border-radius: 18px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

.auth-wrapper.login {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}


.auth-wrapper.separator {
  color: white;
  font-size: 0.9rem;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.btn-auth.daftar {
  background-color: #cfcfcf;
  color: #000000;
  border: #cfcfcf;
}

.btn-auth.daftar:hover {
  background-color: #787879;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: rgb(255, 255, 255);
  margin-left: 20px;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff; /* Warna kuning emas */
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  cursor: pointer;
}

.header-top {
  background-color: #003366;
  padding: 25px 0;
}

.header-top .logo img {
  height: 40px;
  margin-right: 10px;
}

.header-top .logo span {
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
}

.header-bottom {
  background-color: #004080;
  padding: 6px 0; /* sebelumnya mungkin 20px, kita kecilkan */  
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.slides {
  position: relative;
  height: 500px;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: rgb(255, 255, 255);
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1;
  border-radius: 4px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ====== Filter Bar ====== */
.filter-bar {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-bar input[type="text"],
.filter-bar select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  min-width: 200px;
}

.filter-bar button {
  padding: 8px 16px;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.filter-bar button:hover {
  background-color: #002244;
}


/* ====== Responsive Navigation ====== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px; /* asumsi tinggi header */
    right: 0;
    left: auto;
    width: 100vw;
    height: calc(100vh - 80px);
    background-color: #ececec;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    box-shadow: -2px 0 6px rgba(0,0,0,0.2);
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  .nav-menu.open {
    transform: translateX(0%);
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.menu-open) {
    overflow-y: auto;
  }

  body.menu-open {
    overflow: hidden;     /* Hilangkan scroll bar utama */
    padding-right: 0 !important; /* Cegah pergeseran layout */
    overflow: hidden; /* ini sudah kamu pakai untuk sidebar */
  }
   
  /* ===== Tombol Close (×) khusus mobile sidebar ===== */
  .nav-menu .close-btn {
    display: block;
    align-self: flex-end;
    font-size: 32px;
    background: none;
    border: none;
    color: #ffffff; /* atau #003366 sesuai background */
    cursor: pointer;
    margin-bottom: 20px;
  }

   .modal .close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #003366;
    background: none;
    border: none;
    margin-bottom: 10px;
  }

  .nav-menu a {
    margin: 12px 0;
    font-size: 1.1rem;
    color: #222; 
    text-decoration: none;
    font-weight: 500;
  }

  .nav-menu a.btn-auth-sidebar::after {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 20px;
    width: 100%;
  }

  .auth-wrapper.mobile-only.top-auth {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }
  
  .auth-wrapper.mobile-only .btn-auth {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  .auth-wrapper .btn-auth {
    width: 100%;
    text-align: center;
  }

  .header-bottom {
    padding: 2px 0;
  }

  .menu-section i[data-lucide] {
    width: 50px;
    height: 50px;
    stroke-width: 6;
    margin-right: 8px;
    vertical-align: middle;
  }

}

/* ====== Judul Halaman ====== */
.title {
  text-align: center;
  font-size: 1.8rem;
  margin: 30px 0 10px;
  color: #003366;
}

.tentang-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.tentang-container h2 {
  color: #003366;
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}

.tentang-container p {
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}


/* ====== Galeri Grid ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-color: #f8f9fa; /* abu-abu terang */
}

.card img {
  width: 100%;
  height: 180px;
  display: block;
}

.card-info {
  padding: 10px 14px;
}

.card .info-overlay {
  padding: 10px 12px;
  color: #222;
}

.card-link {
  text-decoration: none;
  cursor: pointer;
}

.card-link .info-overlay h3,
.card-link .info-overlay p {
  color: #000;              /* Teks hitam */
  text-decoration: none;    /* Hilangkan underline */
}

/* ====== Modal Detail Aset ====== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 15px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
}

.modal-info {
  margin-top: 10px;
  text-align: left;
}

.modal-info h3 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .modal-content img {
    max-height: 200px;
  }
}
