.sidenav {
  height: 100%;
  transform: translatex(-100%);
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  /* padding: 8px 8px 8px 32px; */
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.sidenav-mobile-icon a {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  width: 100%;
}

.sidenav-mobile-icon a img {
  height: 22px;
  width: auto;
  padding: 0;
}

.menu-menu-1-container ul {
  margin: 0px 0px 1rem;
  padding: 0px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.tab-content ul {
  margin-left: 0;
}

.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown-hover-toggler {
  padding-left: 1rem;
  padding-right: 1rem;
}

.has-dropdown:hover .dropdown-hover-toggler {
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.4);
}

.has-dropdown .with-dropdown-icon {
  position: relative;
  padding: 0 1rem;
}

.has-dropdown .with-dropdown-icon::after {
  content: '';
  border-top: 8px solid #19eca1;
  border-bottom: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  position: absolute;
  right: 0;
  top: 9px;
  transition: all 0.3s ease-in-out;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}

.has-dropdown:hover .with-dropdown-icon::after {
  transform: rotate(180deg);
}

.has-dropdown .dropdown-container {
  position: absolute;
  height: 0;
  right: 0;
  bottom: 0;
  transform: translate(0, 100%);
  width: auto;
  background: rgb(24, 24, 41);
  border-radius: 2px;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
  z-index: 1;
}

.has-dropdown:hover .dropdown-container {
  height: 100px;
  box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.5);
}

.dropdown-content {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-content a.dropdown-item-link {
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid #9a9a9a;
}

.dropdown-content a.dropdown-item-link:last-child {
  border-bottom: 0px solid transparent;
}

.has-dropdown:hover .dropdown-container {
  height: 150px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}

.menu-icon>ul {
  flex: 1 0 auto;
}

.menu-icon>ul li {
  margin-right: 0;
}

.top-navbar {
  transition: box-shadow 0.3s ease;
}

.top-navbar.scrolled {
  border-bottom: 1px solid #19ECA1;
  background-color: rgba(0, 0, 0, 0.5);
}

.top-logo {
  display: none;
  /* ซ่อนโดยใช้ display: none */
  transition: opacity 0.3s ease;
  /* เพิ่มทรานซิชันให้แสดงผลอย่างนุ่มนวล */
}

.top-logo.show {
  display: block;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .sidenav {
    height: 100%;
    width: 100%;
    transform: translatex(-100%);
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
  }

}

@media screen and (max-width: 450px) {

  /* .sidenav {
    padding-top: 48px;
  } */
  .sidenav a {
    font-size: 13px;
  }

  .menu-mobile img {
    max-width: 25px;
  }

  .small-nav-mobile .nav-item .nav-link {
    padding: 8px 8px;
  }
}