/* =====================================
   NAVBAR ORIGINAL (dipertahankan)
===================================== */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-size: 16px;
  font-weight: 500;
  padding: 0 40px;
}

.nav a,
.dropdown-toggle {
  color: #666;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
  font-size: 16px;
  font-weight: 500;
}

/* cursor & style dropdown-toggle disamakan */
.dropdown-toggle {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  line-height: 1;
}

/* hover sama dengan link */
.nav a:hover,
.dropdown-toggle:hover,
.nav a.active {
  color: #2e7d32;
}

.hamburger-menu {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* RESPONSIVE NAVIGATION */
@media (max-width: 992px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
  }

  .nav a,
  .dropdown-toggle {
    padding: 10px 20px;
    width: 100%;
  }

  .nav.links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    z-index: 100;
  }

  .nav.links.active {
    display: flex;
  }

  .hamburger-menu {
    display: block;
  }
}

/* =====================================
   HEADER
===================================== */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.header-title {
  font-size: 24px;
  font-weight: bold;
  color: #1e3a8a;
}

/* =====================================
   DROPDOWN
===================================== */

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 30px;
  left: 0;
  background: white;
  padding: 10px 0;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #555;
  text-transform: uppercase;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
  color: #2e7d32;
}

/* dropdown aktif */
.dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* MOBILE dropdown penuh */
@media (max-width: 992px) {
  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    border-radius: 0;
    transform: translateY(0);
    padding-left: 25px;
    width: 100%;
  }
}
