.site-header {
  background-color: var(--primary-4);
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: var(--height-header);
  position: relative;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 12px;
  margin: 0;
  height: 100%;
}
.site-branding {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-logo-link img {
  height: calc(var(--height-header) - 18px);
  width: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  background-color: var(--primary-4);
}
.main-navigation div {
  width: 100%;
  height: 100%;
}
.list-menu-header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 24px;
}
.list-menu-header .menu-item {
  display: flex;
  align-items: center;
  min-width: max-content;
  height: 100%;
  position: relative;
}
.list-menu-header .menu-item a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-color);
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: unset;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.list-menu-header .menu-item a:hover {
  color: var(--primary-2);
}

.list-menu-header > .menu-item.current-menu-item > a {
  color: var(--primary-2);
}

.list-menu-header .sub-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20%;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--primary-4);
}
.list-menu-header .sub-menu {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-4);
  border-radius: 0 0 12px 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
}

.list-menu-header .menu-item:hover > .sub-menu {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
  background: var(--primary-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.list-menu-header .sub-menu .menu-item a:hover {
  color: var(--primary-1);
}
.list-menu-header .sub-menu .menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 12px;
}
.list-menu-header .sub-menu .menu-item a {
  display: flex;
  width: 100%;
  height: 100%;
  color: var(--text-color);
  text-align: left;
  border-radius: 0;
  align-items: center;
  justify-content: flex-start;
}

.list-menu-header .sub-menu .menu-item a:hover {
  color: var(--primary-1);
}
.list-menu-header .sub-menu .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 12px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: var(--primary-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  pointer-events: none;
}
.list-menu-header .sub-menu .menu-item:hover > .sub-menu {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}
.list-menu-header .sub-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -12px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--primary-4);
  transform: rotate(-90deg);
}
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100%;
  background-color: var(--primary-4);
  transition: left 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px;
}
.mobile-sidebar.open {
  left: 0;
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 150;
}
.modal-overlay.active {
  display: block;
}
.mobile-list-menu-header {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.mobile-list-menu-header .menu-item {
  width: 100%;
  position: relative;
}
.mobile-list-menu-header .menu-item a {
  padding: 12px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
}
.mobile-list-menu-header .sub-menu {
  margin-left: 24px;
}
.mobile-list-menu-header .sub-menu .menu-item a {
  position: relative;
  justify-content: flex-start;
  padding: 6px 0;
}
.mobile-list-menu-header .sub-menu .menu-item a::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-color);
  margin-right: 12px;
}
.mobile-list-menu-header .submenu-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
  margin-left: 10px;
}
.mobile-list-menu-header .submenu-arrow::before {
  content: "▶";
  display: inline-block;
  color: var(--text-color);
  padding: 6px;
}
.mobile-list-menu-header .submenu-arrow.open::before {
  content: "▼";
  color: var(--text-color);
  padding: 6px;
}
.mobile-list-menu-header .sub-menu {
  display: none;
  flex-direction: column;
}
.mobile-list-menu-header .sub-menu.open {
  display: flex;
}

.list-menu-header .sub-menu .menu-item.menu-item-has-children > a::after {
  content: "▶";
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: var(--text-color);
}

.box-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn {
  padding: 10px 15px;
  background-color: var(--primary-2);
  color: white;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 60px;
  transition: 0.5s;
  outline: none;
}

.btn-register {
  background-color: var(--primary-2);
  color: var(--text-color);
  border: none;
}

.btn-register:hover {
  background-color: var(--primary-3);
}

.btn-login {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn-login:hover {
  background-color: var(--primary-3);
}

@keyframes jello-vertical {
  0% {
    transform: scale3d(1, 1, 1);
  }
  30% {
    transform: scale3d(0.75, 1.25, 1);
  }
  40% {
    transform: scale3d(1.25, 0.75, 1);
  }
  50% {
    transform: scale3d(0.85, 1.15, 1);
  }
  65% {
    transform: scale3d(1.05, 0.95, 1);
  }
  75% {
    transform: scale3d(0.95, 1.05, 1);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}
@media screen and (max-width: 900px) {
  .main-navigation {
    display: none;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }
  .site-header .container {
    justify-content: flex-start;
  }

  .btn {
    padding: 6px 12px;
    font-size: 12px;
    gap: 8px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    margin-right: 60px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  .menu-header-menu-container {
    overflow-x: auto;
  }
}
