/* Hamburger Toggle Button */
.menu-toggle-button {
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.menu-toggle-button:hover {
  background-color: var(--clr-gray-100);
}

.menu-toggle-button span {
  display: block;
  height: 2px;
  width: 22px;
  border-radius: 4px;
  background-color: currentColor;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

/* Animate to X when menu is open */
.mobile-menu-section.show ~ * .menu-toggle-button span:first-child,
body:has(.mobile-menu-section.show) .menu-toggle-button span:first-child {
  transform: translateY(7px) rotate(45deg);
}

body:has(.mobile-menu-section.show) .menu-toggle-button span:nth-child(2) {
  opacity: 0;
  width: 0;
}

body:has(.mobile-menu-section.show) .menu-toggle-button span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
  .mobile-menu-section {
    display: none !important;
  }
}

.mobile-menu-section {
  position: fixed;
  z-index: 60;
  top: 0;
  left: -400px;
  height: 100vh;
  width: 320px;
  max-width: 100%;
  transition: all 0.5s linear;
  overflow-y: auto;
  background-color: var(--clr-white);
  box-shadow: var(--shadow-dropdown);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu-section::-webkit-scrollbar {
  display: none;
}

.mobile-menu-section.show {
  left: 0;
}

.mobile-menu-section .close-icon-section {
  text-align: right;
  padding-right: 1rem;
}

.mobile-menu-section .close-icon-section .icon {
  cursor: pointer;
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  -ms-transition: all 0.5s linear;
  transition: all 0.5s linear;
}

.mobile-menu-section .close-icon-section .icon:hover {
  color: var(--clr-primary);
}

.mobile-menu-section .menu>li.active {
  border: 1px solid var(--clr-gray-100);
  border-radius: 4px;
  padding-bottom: 2px;
  margin-bottom: 2px;
}

.mobile-menu-section .menu>li.active>a {
  border-radius: 4px 4px 0 0;
}
.mobile-menu li {
    display: block;
}
.mobile-menu-section .menu a {
  font-weight: 500;
  text-transform: capitalize;
  position: relative;
  transition: all 0.5s ease-in-out;
  width: 100%;
  padding: 0.5rem 0rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 4px;
}

.mobile-menu-section .menu a.active {
  background-color: var(--clr-gray-100);
}

.mobile-menu-section .menu a.active .arrow {
  transform: rotate(135deg);
}

.mobile-menu-section .menu a:hover {
  background-color: var(--clr-gray-100);
}

.mobile-menu-section .menu .sub-menu {
  display: none;
  padding: 0 4px;
  margin-top: 2px;
}

.mobile-menu-section .menu .sub-menu a:not(.show-sub-menu) {
  font-weight: 300;
}
