
body#departemen .animation,
body#divisi .animation,
body.department-page .animation {
  display: none !important;
  opacity: 0 !important;
}
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  height: 60px;
  z-index: 1000;
  font-size: 16px !important;
  position: relative; /* Add this to ensure it's positioned properly */
  display: block !important; /* Force display */
  background-color: white; /* Add a background color */
}
.navbar-nav .nav-link {
  font-size: 16px !important;
  font-family: Poppins;
  font-weight: 500;
}
.navbar {
  transition: all 0.3s ease;
  height: 60px;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  display: flex;
  align-items: center;
}

.navbar * {
  opacity: 1 !important;
}
.navbar .container-fluid {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .container-fluid .left {
  display: flex;
  align-items: center;
}
.navbar .container-fluid .left a {
  color: black;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar .container-fluid .left img {
  width: 69px;
  margin-right: 10px;
}

.navbar .container-fluid .left span {
  color: #4a5fd3;
}
.navbar .container-fluid .center {
  font-size: 14px;
  font-weight: 400;
}

.navbar .container-fluid .right {
  background-color: black;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.navbar-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item {
  position: relative;
  list-style: none;
}

.navbar-nav .nav-link {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  text-decoration: none;
  color: #000;
  padding: 10px 15px;
}

/* Animation element */
.animation {
  position: absolute;
  height: 3px;
  bottom: -5px;
  background: #4a5fd3;
  border-radius: 8px;
  transition: all 0.5s ease 0s;
  z-index: 1;
  opacity: 1;
}
.navbar-nav .nav-item .nav-link.active {
  color: #4a5fd3 !important;
}

.start-home {
  width: 80px;
  left: 15px;
}

.navbar-nav .nav-item:nth-child(1):hover ~ .animation,
.navbar-nav .nav-item:nth-child(1) .nav-link.active ~ .animation {
  width: 80px;
  left: 15px;
}

.navbar-nav .nav-item:nth-child(2):hover ~ .animation,
.navbar-nav .nav-item:nth-child(2) .nav-link.active ~ .animation {
  width: 80px;
  left: 115px;
}

.navbar-nav .nav-item:nth-child(3):hover ~ .animation,
.navbar-nav .nav-item:nth-child(3) .nav-link.active ~ .animation {
  width: 120px;
  left: 215px;
}

.navbar-nav .nav-item:nth-child(4):hover ~ .animation,
.navbar-nav .nav-item:nth-child(4) .nav-link.active ~ .animation {
  width: 90px;
  left: 355px;
}

.navbar-nav .nav-item:nth-child(5):hover ~ .animation,
.navbar-nav .nav-item:nth-child(5) .nav-link.active ~ .animation {
  width: 100px;
  left: 465px;
}

.navbar-nav .nav-item:nth-child(6):hover ~ .animation,
.navbar-nav .nav-item:nth-child(6) .nav-link.active ~ .animation {
  width: 80px;
  left: 585px;
}

.navbar-nav .nav-item:nth-child(7):hover ~ .animation,
.navbar-nav .nav-item:nth-child(7) .nav-link.active ~ .animation {
  width: 80px;
  left: 685px;
}

.navbar-nav:hover .animation {
  opacity: 1;
}
.preload * {
  transition: none !important;
}

/* .navbar.scrolled {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .container-fluid .left img {
  width: 50px; /* Mengecilkan logo */
  transition: all 0.3s ease;
}

.navbar.scrolled .container-fluid .left a {
  font-size: 14px; /* Mengecilkan teks logo */
  transition: all 0.3s ease;
}

.navbar.scrolled .navbar-nav .nav-link {
  font-size: 14px; /* Mengecilkan teks navigasi */
  padding: 5px 10px; /* Mengurangi padding */
  transition: all 0.3s ease;
}

.navbar.scrolled .container-fluid .right {
  width: 30px; /* Mengecilkan tombol keranjang */
  height: 30px;
  transition: all 0.3s ease;
}

.navbar .toggle-icon {
  color: black;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

.dropdown_menu {
  display: none;
  position: absolute;
  left: 0;
  top: 60px;
  width: 100%;
  background: white;
  overflow: hidden;
  transition: height 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 99;
  border-radius: 10px; /* Tambahkan border-radius */
}

.dropdown_menu.open {
  display: block;
  height: auto;
}

.dropdown_menu li {
  padding: 10px;
  transition: background 0.3s ease;
  border-radius: 10px; /* Opsional: Membulatkan tiap item */
}

.dropdown_menu li a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: block;
  width: 100%;
}

.dropdown_menu li:first-child {
  background-color: #1d2f5f;
}

.dropdown_menu li:first-child a {
  color: white;
}

.nav-item2 {
  transition: background-color 0.3s ease;
}

.nav-item2:hover {
  background-color: #f5f5f5;
}
@media (max-width: 992px) {
  /* Structure for mobile dropdown menu */
  .navbar .container-fluid .left .navbar-brand {
    margin-top: -10px;
  }
  .dropdown_menu {
    background-color: white;
    top: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Style for menu items */
  .dropdown_menu li {
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
  }

  .dropdown_menu li a {
    padding: 12px 15px;
    display: block;
    color: #333;
    font-weight: 500;
    text-decoration: none;
  }

  /* Style for active menu item - blue background */
  .dropdown_menu li:first-child {
    background-color: #1d2f5f;
  }

  .dropdown_menu li:first-child a {
    color: white;
  }

  /* Add bullet points */
  .dropdown_menu li {
    position: relative;
    list-style: none;
  }

  .dropdown_menu li::before {
    content: "•";
    position: absolute;
    left: 5px;
    top: 12px;
    color: #333;
  }

  .dropdown_menu li:first-child::before {
    color: white;
  }

  /* Adjust the padding to accommodate the bullet */
  .dropdown_menu li a {
    padding-left: 20px;
  }

  /* Close button styling */
  .navbar .toggle-icon {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Center the logo text */
  .navbar .container-fluid .left {
    width: 100%;
    justify-content: center;
  }

  /* Hide standard shopping cart icon */
  .navbar .container-fluid .right {
    display: none;
  }
}
