.navbar {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.navbar-sub {
  background-color: #42723d;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.navbar-dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  margin: auto;
  z-index: 999;
}

/* CSS untuk mengubah background navbar menjadi hijau */
.navbar.bg-green {
  background-color: #42723d; /* Warna hijau */
  border-bottom: 2px solid #ffffff;
}

/* Pembatas yang muncul saat menu terbuka */
.navbar-sub.show-divider {
  border-bottom: 2px solid #ffffff; /* Ubah warna dan ketebalan sesuai kebutuhan */
  margin-bottom: 10px; /* Tambahkan jarak antara pembatas dan menu */
}

/* Tampilkan menu saat hamburger diklik */
.navbar-nav.show {
  display: flex;
  flex-direction: column;
  background-color: #42723d;
  position: absolute;
  top: 100%;
  width: 100%;
  left: 0;
  z-index: 998;
  margin: 0;
}

/* Styling default untuk navbar saat dropdown terbuka */
.navbar-nav.show .nav-link {
  padding: 10px 20px;
  color: #ffffff;
}

.nav-link {
  text-transform: uppercase;
  font-size: 18px;
}

.navbar-nav .nav-link {
  color: #ffffff;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active {
  color: #ffff00 !important; /* Yellow color */
}

/* Styling for Contact Us button */
.navbar-nav .nav-item:last-child .nav-link {
  color: #ffffff;
  transition: color 0.3s ease;
}

.navbar-nav .nav-item:last-child .nav-link:hover,
.navbar-nav .nav-item:last-child.active .nav-link,
.navbar-nav .nav-item:last-child .nav-link.active {
  color: #008000 !important; /* Green color on hover */
}

/* Ensure contrast for dropdown menu */
.navbar-nav.show .nav-link:hover {
  color: #ffff00 !important; /* Yellow color */
}

/* Navbar menjadi berwarna saat discroll */
.navbar.scrolled {
  background-color: #42723d; /* Warna biru dengan sedikit transparansi */
}

.navbar-brand img {
  height: auto;
  max-width: 120px;
}

.navbar-nav {
  font-size: 17px;
  color: #ffffff;
  font-family: sans-serif;
}

.btn-custom {
  background-color: #f9d541;
  color: #ffffff;
  border: none; /* Hapus border */
  border-radius: 20px;
  width: 150px;
  text-align: center;
}

.btn-custom:hover {
  background-color: #ffdd55;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.close-menu {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  right: 20px;
}

@media (max-width: 1450px) {
  .nav-link {
    font-size: 16px;
  }
}

@media (max-width: 1280px) {
  .navbar-dropdown {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }

  .mr-5,
  .ml-2 {
    margin: 0 !important;
  }
  .navbar-nav {
    gap: 20px;
    align-items: center;
  }

  .navbar-nav.show {
    align-items: flex-start;
  }

  .nav-link {
    font-size: 16px;
  }

  .pl-2,
  .pr-5 {
    padding: 0 !important;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 10px;
  }

  .navbar-sub {
    padding: 10px;
  }

  .navbar-dropdown {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-brand img {
    max-width: 100px;
    height: auto;
  }

  .navbar-toggle {
    font-size: 24px;
    border: none;
    right: 15px;
  }

  .nav-item {
    margin: 0 20px;
  }

  .navbar-nav {
    text-align: start;
  }

  .nav-link {
    font-size: 14px;
  }

  .btn-custom {
    padding: 7px 12px;
    font-size: 13px;
  }

  .close-menu {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-toggle {
    display: block;
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    z-index: 1000;
  }

  .close-menu {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 8x;
    right: 20px;
    color: white;
    z-index: 1000;
  }

  .navbar-dropdown {
    width: 100%;
  }

  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
    background-color: #42723d;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
  }

  .navbar-nav.show {
    display: flex;
    padding-bottom: 20px;
  }

  .nav-item {
    margin: 10px 0;
  }

  .btn-custom {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 5px;
  }

  .navbar-sub {
    padding: 5px;
  }

  .navbar-brand img {
    max-width: 80px;
    height: auto;
  }

  .navbar-dropdown {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-toggle {
    font-size: 24px;
    border: none;
    right: 15px;
  }

  .nav-item {
    margin: 0 20px;
  }

  .navbar-nav {
    text-align: start;
  }

  .nav-link {
    font-size: 13px;
  }

  .btn-custom {
    padding: 7px 12px;
    font-size: 13px;
  }

  .close-menu {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-toggle {
    display: block;
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    z-index: 1000;
  }

  .close-menu {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 8x;
    right: 20px;
    color: white;
    z-index: 1000;
  }

  .navbar-dropdown {
    width: 100%;
  }

  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
    background-color: #42723d;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
  }

  .navbar-nav.show {
    display: flex;
    padding-bottom: 20px;
  }

  .nav-item {
    margin: 10px 0;
  }

  .btn-custom {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 5px;
  }

  .navbar-sub {
    padding: 5px;
  }

  .navbar-brand img {
    max-width: 75px;
    height: auto;
  }

  .navbar-dropdown {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-toggle {
    display: block;
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 1000;
  }

  .nav-item {
    margin: 0 20px;
  }

  .navbar-nav {
    text-align: start;
  }

  .navbar-nav.show .nav-link {
    font-size: 16px;
  }

  .btn-custom {
    padding: 7px 12px;
    font-size: 13px;
  }

  .close-menu {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .close-menu {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 20px;
    color: white;
    z-index: 1000;
  }

  .navbar-dropdown {
    width: 100%;
  }

  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 20px;
    background-color: #42723d;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
  }

  .navbar-nav.show {
    display: flex;
    padding-bottom: 20px;
  }

  .nav-item {
    margin: 10px 0;
  }

  .btn-custom {
    margin-top: 10px;
  }
}

@media (min-width: 1451px) {
  .navbar-container {
    width: 100%;
  }

  .nav-item {
    margin: 0 20px;
  }

  .btn-custom {
    padding: 12px 25px;
    font-size: 17px;
  }
}

@media (max-width: 1450px) {
  .nav-link {
    font-size: 16px;
  }
}
