header {
  position: sticky;
  top: 0px;
  height: 60px;
  background: var(--background);
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  gap: 90px;
  justify-content: center;
}

.header-container {
  padding: 0px 24px;
  position: relative;
  display: flex;
  align-items: center;
  width: 86vw;
  max-width: 1280px;
}

header .logoTitle {
  gap: 46px;
  display: flex;
  align-items: center;
}

.logoTitle img {
  width: 130px;
  height: 34px;
}

.logoTitle a {
  text-decoration: none;
}

.logoTitle a h2 {
  margin: 0px;
  color: var(--green-800);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

header .header {
  flex-grow: 1;
}

.header ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style-type: none;
}

.header li {
  padding: 4px 0px;
  border-bottom: 1px solid transparent;
}

.header a {
  color: var(--green-800);
  font-size: 18px;
  text-decoration: none;
}

.header a:hover {
  color: var(--green-500);
}

.subheader-container {
  display: none;
  min-width: 180px;
  border: 1px solid var(--green-200);
  border-radius: 15px;
  background: var(--background);
  box-shadow: 0px 0px 4px 0px rgba(0, 15, 15, 0.24);
  z-index: 10;
}

.menu-item.has-submenu:hover .subheader-container,
.menu-item.has-submenu:focus-within .subheader-container {
  display: flex;
}

.subheader {
  width: 100%;
  padding: 8px 0;
  overflow-y: auto;
  align-items: center;
  place-items: center;
}

.subheader ul {
  width: max-content;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  gap: 8px;
}

.subheader li {
  border-bottom: 1px solid transparent;
  color: var(--green-900);
  font-weight: 400;
}

.subheader li a:hover {
  color: var(--green-500);
}

.subheader a {
  color: var(--green-900);
  text-decoration: none;
}


.logoTitle-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logoTitle-left a {
  text-decoration: none;
  display: flex;
}

.logoTitle-left img {
  width: 160px;
  height: 50px;
}

.header .menu-item {
  position: relative;
  padding: 4px 0px;
}

.subheader-container-wrapper {
  position: absolute;
  top: 25px;
  padding-top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.menu-item.active {
  font-weight: 700;
  border-bottom: 1px solid var(--secondary);
}

.menu-item:has(.subheader-link.active) {
  font-weight: 700;
  border-bottom: 1px solid var(--secondary);
}

.subheader-link.active {
  font-weight: 700;
  border-bottom: 1px solid var(--secondary);
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-button span {
  width: 100%;
  height: 2px;
  background-color: var(--green-800);
  transition: all 0.3s ease;
}

.menu-item-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media screen and (max-width: 800px) {
  .header-container {
    padding: 0 16px;
    justify-content: start;
    width: 100%;
    gap: 9px;
  }

  .mobile-menu-button {
    display: flex;
  }


  .header {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px 0;
    overflow-y: auto;
  }

  .header.active {
    display: block;
  }

  .header ul {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 24px;
    margin: 0;
  }

  .header .menu-item {
    width: auto;
    text-align: center;
  }

  .header .menu-item-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--green-800);
  }

  .subheader-container-wrapper {
    position: static;
    transform: none;
    padding-top: 16px;
    display: none;
  }

  .subheader-container {
    display: block !important;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .menu-item.submenu-active>.subheader-container-wrapper {
    display: block !important;
  }

  .menu-item.has-submenu:hover .subheader-container,
  .menu-item.has-submenu:focus-within .subheader-container {
    display: none;
  }

  .subheader ul {
    gap: 16px;
    padding: 0;
  }

  .subheader-link {
    font-size: 16px !important;
    color: var(--green-600) !important;
  }

  .mobile-menu-button.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .logoTitle {
    gap: 16px;
  }

  .logoTitle img {
    width: 130px;
    height: 34px;
  }

  .logoTitle-left img {
    width: 126px;
    height: 38px;
  }

  .menu-item-wrapper {
    justify-content: center;
    gap: 16px;
  }

  header .logoTitle {
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
  }
}