.menu-wrapper {
  display: flex;
  list-style: none;
  padding: 0;
  justify-content: space-between;
  margin: 0;
}

.parent-menu {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
}

.parent-menu:hover {
  color: var(--color-white);
}

.child-menu {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 1s, transform 1s;
}

.menu-arrow-bg {
  width: 1.5vw;
  height: 1.5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8vw;
  background-color: #ece9f2;
  color: var(--color-white);
}

.nav-button {
  display: flex;
  background: var(--gradient);
  color: var(--color-white) !important;
  padding: 0.5vw 2vw;
  border-radius: 1.2vw;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-reverse);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  border-radius: 5px;
  z-index: -1;
}

.nav-button:hover::before {
  opacity: 1;
}

.header-logo-row-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hamburger-menu {
  font-size: 30px;
  cursor: pointer;
  display: none;
}

/* / Hide search bar and show hamburger menu on small screens / */
@media (max-width: 991px) {
  .search-container,
  .width-30 {
    display: none;
  }

  .child-menu {
    font-weight: normal;
    font-size: 14px !important;
  }

  .menu-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .hamburger-menu {
    display: block;
    color: #ffffff;
  }

  .header-menu-row-wrapper {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .header-menu-row-wrapper.active {
    display: flex;
    background: linear-gradient(
      90deg,
      rgba(109, 88, 155, 1) 0%,
      rgba(109, 163, 178, 1) 100%
    ) !important;
    flex-direction: column;
    /* height: 100vh; */
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
  }

  .overlay.active {
    display: block;
  }

  .header-menu-row-wrapper {
    padding: 4vw !important;
  }

  .menu-wrapper * {
    /* font-size: 2vw !important; */
    color: var(--color-white) !important;
  }

  .parent-menu {
    font-size: 3vw !important;
  }

  .submenu-wrapper {
    margin-top: 10px !important;
  }

  .submenu-title-wrapper {
    display: none !important;
  }

  .menu-arrow-bg {
    width: 16px !important;
    height: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px !important;
  }

  .submenu-link-wrapper {
    margin-bottom: 10px !important;
  }
  .submenu-button-wrapper {
    display: none;
  }

  .menu-wrapper li:nth-child(1) .submenu-button-wrapper,
  .menu-wrapper li:nth-child(2) .submenu-button-wrapper {
    display: block !important;
  }

  .submenu-button-wrapper a {
    background-color: #ffffff;
    color: var(--primary-color) !important;
    background: #fff !important;
    margin-top: 0.5vw !important;
    padding: 1.5vw 0.5vw !important;
    border-radius: 50px !important;
  }
  .submenu-button-wrapper .nav-button::before {
    display: none !important;
  }
  /* .dropdown:not(:first-child) {
    margin-top: 3vw !important;
  } */

  .menu-arrow-bg * {
    color: var(--secondary-color) !important;
  }

  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }
}

@media screen and (min-width: 992px) {
  .submenu-wrapper {
    position: absolute;
    min-width: 25vw;
    background-color: var(--color-white);
    padding: 1.5vw;
    border-radius: 0 2vw 2vw 2vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.6s, transform 0.6s, visibility 0.6s;
    display: flex;
    flex-direction: column;
    list-style: none;
    z-index: 1050;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  }

  .dropdown:hover .submenu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
  }

  .submenu-title-wrapper {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5vw;
    flex: 1;
  }

  .submenu-link-outer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
  }

  .submenu-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6vw;
  }

  .submenu-link-wrapper:hover .child-menu {
    color: var(--secondary-color);
    transform: translateX(0.5vw);
  }

  .submenu-link-wrapper:hover .menu-arrow-bg {
    background-color: var(--secondary-color);
    transform: translateX(0.5vw);
  }

  .submenu-button-wrapper {
    margin-top: 2.5vw;
  }
}

.menu-close-btn {
  position: absolute;
  top: 0.1rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: #000;
  cursor: pointer;
  z-index: 9999;
  color: #ffffff;
}

@media (min-width: 992px) {
  .menu-close-btn {
    display: none;
  }
}
