/* NAVBAR MODERN - PRIORITAS TERTINGGI */
.clean-navbar {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 7%;
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(32, 97, 23, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Logo */
.clean-navbar .brand {
  font-size: 2.8rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.clean-navbar .brand span {
  color: #206117;
  font-weight: 800;
}

/* Menu desktop normal */
.clean-navbar .nav-list {
  display: flex;
  list-style: none !important;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.clean-navbar .nav-item {
  margin: 0;
  padding: 0;
}

.clean-navbar .nav-link {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Hover effect */
.clean-navbar .nav-link:hover {
  color: #206117;
  background-color: rgba(32, 97, 23, 0.08);
}

/* Active state */
.clean-navbar .nav-link.active {
  color: #206117;
  background-color: rgba(32, 97, 23, 0.15);
  font-weight: 600;
}

/* Hamburger Button - SELALU TAMPIL DI MOBILE */
.clean-navbar .mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

/* Hamburger bars */
.clean-navbar .mobile-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.clean-navbar .mobile-toggle span:nth-child(1) {
  top: 0;
}

.clean-navbar .mobile-toggle span:nth-child(2) {
  top: 10px; 
  width: 75%;
  right: 0;
}

.clean-navbar .mobile-toggle span:nth-child(3) {
  top: 20px;
}

/* Mobile toggle animation */
.clean-navbar .mobile-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.clean-navbar .mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.clean-navbar .mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Responsive Mobile */
@media (max-width: 991px) {
  /* Pastikan tombol hamburger selalu terlihat */
  .clean-navbar .mobile-toggle {
    display: block !important;
    z-index: 1002;
    position: relative;
  }
  
  /* Menu container - PERBAIKAN UTAMA */
  .clean-navbar .nav-list {
    position: fixed;
    top: 0;
    right: -100%; /* Mulai di luar layar */
    width: 280px; /* Lebar tetap */
    height: 100vh;
    background-color: #ffffff !important; /* Warna solid */
    flex-direction: column;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Active state - PENTING! */
  .clean-navbar .nav-list.active {
    right: 0 !important; /* Override any other styles */
    display: flex !important;
  }
  
  /* Menu items visibility */
  .clean-navbar .nav-item {
    width: 100%;
    margin: 5px 0;
  }
  
  /* Styling for links */
  .clean-navbar .nav-link {
    font-size: 1.8rem;
    padding: 15px;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    display: block;
  }
}

/* Mobile overlay improved */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.mobile-nav-overlay.active {
  display: block;
}

/* Hamburger button animation */
.clean-navbar .mobile-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.clean-navbar .mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.clean-navbar .mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}