.nav {
  display: none;
  z-index:50;
}
.navbar {
  display: flex;
  flex-direction: column;
  background-color: #ebf7ff;
  width: 100%;
  position: fixed;
  top: 32px;
  height: 100px;
  z-index: 1000;
}
main, .main-content {
  padding-top: 135px; /* Adjust according to your navbar height (100px + 35px top) */
}

.nav-top-container {
  display: flex;
  height: 100%;
  padding: 0 2rem;
  justify-content: space-between;
  align-items: center;
    overflow-x:auto;
}
.top-nav-items-list {
  display: flex;
  margin-bottom: 0;
  align-items: center;
  gap: 20px;
}

.logo-container {
  width: 20%;
  img {
    width: 100%;
  }
}

.top-nav-item {
  margin-bottom: 0px;
  font-size: 1rem;
  font-weight: 500;
}

.top-nav-list{
  margin-left: 40px;
}
.consult-btn-container {
  width: 20%;
  display: flex;
  justify-content: flex-end;
}
.consult-btn {
  border: none;
  background-color: #4ebdff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-bg) !important;
  transition: background-color 0.3s ease;
}
.consult-anchor {
  font-size: 1rem !important;
  cursor: pointer;
}
.consult-btn:hover {
  background-color: #3ea5e1;
  cursor: pointer;
}
.nav-bottom-container {
  display: flex;
  align-self: center;
}
.bottom-nav-list {
  display: ruby;
  align-items: center;
  margin-bottom: 0 !important;
}
.bottom-nav-item {
  margin: 2px 10px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  position: relative;
}
.sub-menu {
  display: none;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  padding: 1rem;
  min-width: 250px;
  background: #ebf7ff;
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 2;
}
.bx-x {
  display: none;
}
.bottom-nav-item:hover .submenu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.more {
  position: relative;
}
.inner-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  padding: 0.5rem;
  min-width: 250px;
  background: #ebf7ff;
  border-radius: 0 0 4px 4px;
  z-index: 2;
}
.more:hover .inner-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* header {
  position: ;
  z-index: 50;
} */

.top-nav-item a {
  white-space: nowrap;
}

.bottom-nav-item a {
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .nav-top-container {
    padding: 0 1rem;
    overflow-x:auto;
  }
  .top-nav-item {
    font-size: 14px;
  }
}

@media (max-width: 1023px) {
  .navbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    align-items: flex-start;
    top: 0;
    left: 0;
    width: 90vw;
    height: 100vh;
    z-index: 50;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform ease-in-out 0.5s;
  }
  .bx-x {
    display: block;
  }
  .nav-top-container {
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    margin: 30px 10px;
  }
  .bottom-nav-list {
    display: ruby;
  }
  .logo-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    a {
      width: 150px;
    }
  }
  .icon-btn {
    font-size: 2.5rem;
  }
  .top-nav-items-list {
    flex-direction: column;
    align-items: flex-start;
  }
  .submenu {
    background-color: #4ebdff;
    a {
      color: var(--color-black) !important;
    }
    border-radius: 4px;
    width: 100%;
  }
  .inner-submenu {
    left: 0;
    top: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
      0 4px 6px -4px rgb(0 0 0 / 0.1);
  }
  .more:hover .inner-submenu {
    display: block;
    position: static;
  }
  .consult-btn-container-2 {
    width: fit-content;
    margin: 30px;
  }
  .nav {
    position: fixed;
    top: 35px;
    display: flex;
    width: 100vw;
    background-color: #ebf7ff;
    align-items: center;
    height: 70px;
    justify-content: space-between;
    .logo-container {
      justify-content: center;
    }
    padding: 0 2rem;
  }
  .active-menu {
    transform: translateX(0);
    gap: 20px;
}
@media (max-width: 1303px) {
  .nav-top-container {
    padding: 0 1rem;
  }
  .nav-bottom-container {
    padding: 0 1rem;
  }
  .top-nav-item {
    font-size: 14px;
  }
  .bottom-nav-item {
    font-size: 14px;
}
  }
}
@media (max-width: 1023px) {
  .navbar {
    transform: translateX(-100%);
    /* this hides it by default */
  }
  .navbar.active-menu {
    transform: translateX(0);
  }
}

@media (min-width: 1022px){
  header{
    margin-bottom: 2rem;
  }
}
