header {
  position: fixed;
  z-index: 1001;
  width: 100%;
  top: 39px;
  background: #fff;
  transition: box-shadow 0.3s ease-in-out;
}
header.fixed-header {
  background: #fff;
  border-bottom: 1px solid #f0faf9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 15px;
  border-bottom: 1px solid #f0faf9;
}

.sidebar-header {
    background: #f0faf9;
}

header.fixed-header .navbar {
  border-bottom: none;
}
.navbar-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-mobLogo {
  height: 45px;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 22px;
}
.nav-list .menu-list a {
  font-size: 14px;
  font-weight: 400;
  line-height: 135%;
  color: #0e145f;
  display: block;
}
.dropdown-list ul li a {
  font-size: 14px !important;
  font-weight: 400;
  line-height: 18.9px !important;
  color: #0e145f;
}
.dropdown-list .last-ul{
    min-width: 248px;
    grid-template-columns: 1fr;
}
.nav-list .menu-list a:hover {
  color: #52bab0;
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-btn {
  max-width: max-content;
  width: 100%;
  border: 1px solid #52bab0;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  line-height: 17px;
  text-align: center;
  padding: 10px 16px;
  color: #52bab0;
}
.nav-btn:hover {
  background: #52bab0;
  color: white;
  text-decoration: none;
}
.dropdown-item {
  position: relative;
  padding-right: 19px;
  font-weight: 400;
  font-size: 14px;
  line-height: 135%;
  letter-spacing: 0%;

  color: #0e145f;
  cursor: pointer;
  display: flex;
  gap: 10px;
}
.dropdown-item:hover {
  color: #52bab0;
  text-decoration: none;
}
.dropdown-item::after {
  content: '';
  position: absolute;
  background-image: url('../images/down-arrow-nav.svg');
  width: 11px;
  height: 6px;
  right: 0;
  top: 6px;
  transition: all 0.2s ease-in-out;
  filter: brightness(0) saturate(100%) invert(7%) sepia(52%) saturate(7449%) hue-rotate(240deg) brightness(75%) contrast(102%);
}
.dropdown-item:hover::after {
  filter: brightness(0) saturate(100%)
        invert(63%)
        sepia(29%)
        saturate(610%)
        hue-rotate(128deg)
        brightness(92%)
        contrast(90%);
}
.menu-btn {
  display: none;
}
.sidebar-header,
.navMob-icons {
  display: none;
}
.no-scroll {
  overflow: hidden;
}
.dropdown-list,
.dashboard-list {
  display: none;
}
.dropdown-menu {
  position: relative;
}
.nav-list .dropdown-menu:last-child .dropdown-list ul{
  grid-template-columns: 1fr;
}
.dropdown-menu:hover .dropdown-list {
  display: block;
}
.dropdown-menu:hover .dropdown-item::after {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  padding: 10px 0;
  top: 20px;
  left: 0px;
}
.dropdown-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 30px;
  column-gap: 35px;
  justify-content: space-between;
  min-width: max-content;
  width: 100%;
  padding: 20px;
  background: #dff3f1;
  border: 1px solid #52bab0;
  border-radius: 5px;
}
.dashboard-menu {
  position: relative;
}
.dashboardBtn img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(64%) saturate(2278%)
    hue-rotate(342deg) brightness(101%) contrast(101%);
}
.dashboard-menu:hover .dashboard-list {
  display: block;
}
.dashboard-list {
  position: absolute;
  padding: 10px 0;
  top: 35px;
  left: -103px;
}
.dashboard-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 18px;
  justify-content: space-between;
  min-width: max-content;
  width: 100%;
  padding: 18px;
  background: #dff3f1;
  border: 1px solid #52bab0;
  border-radius: 5px;
}
.dashboard-list ul li a {
  font-size: 14px !important;
  font-weight: 400;
  line-height: 18.9px !important;
  color: #0e145f;
}
.dashboard-list ul li a:hover {
  color: #52bab0;
}
.loginBtn,
.dashboardBtn {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #dff3f1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 9px 10px 10px 9px;
}
.loginBtn:hover img {
  filter: brightness(0) saturate(100%)
        invert(63%)
        sepia(30%)
        saturate(600%)
        hue-rotate(128deg)
        brightness(92%)
        contrast(90%);
}

.nav-right-mob {
  display: none;
}
@media screen and (max-width: 1169px) {
  .nav-list li a {
    font-size: 14px;
    font-weight: 500;
  }
}
@media screen and (max-width: 991px) {
  .nav-list .menu-list a {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .nav-right {
    display: none;
  }
  .nav-right-mob {
    max-width: 227px;
    width: 100%;
    margin: 20px auto 0;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    border-top: 1px solid transparent;
    margin-top: 20px;
    border-image-source: linear-gradient(90deg, #52bab0 0%, #c5e8e4 100%);
    border-image-slice: 1;
    padding-top: 20px;
    gap: 48px;
  }
  .nav-right-mob .nav-btn {
    background: #52bab0;
    margin: 0 auto;
    border-bottom: 5px solid #45a49b;
    color: white;
    box-shadow: 0px 6px 7.3px 2px #52bab040;
    padding: 11px 30px 11px 31px;
    font-weight: 700;
    line-height: 135%;
  }
  .nav-right-mob .nav-btn:hover {
    box-shadow: 0px 3px 4px 1px #52bab040;
    transform: translateY(3px);
  }
  .nav-right-mob .loginBtn {
    width: calc(100% - 60px);

    display: flex;
    gap: 10px;
    padding: 10px 0;
    background: unset;
    border-radius: 5px;
    justify-content: flex-start;
    align-items: center;
  }
  .nav-right-mob .loginBtn.list-active {
    background: linear-gradient(
      102.02deg,
      rgba(82, 186, 176, 0.18) 3.15%,
      rgba(82, 186, 176, 0.15) 36.33%,
      rgba(82, 186, 176, 0.12) 69.52%,
      rgba(197, 232, 228, 0.18) 100%
    );
    width: calc(100% + 30px);
    margin-left: -15px; /* Counter parent padding */
    margin-right: -15px;
    padding: 10px 30px 10px 15px;
  }
  .nav-right-mob .nav-list {
    padding: 0;
  }
  .nav-right-mob .nav-list .menu-list.dropdown-menu {
    width: calc(100% + 30px);
    margin-left: -15px; /* Counter parent padding */
    margin-right: -15px;
  }
  .menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1005;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .bar1,
  .bar2,
  .bar3 {
    display: block;
    width: 21px;
    height: 3px;
    background: #0e145f;
    margin-bottom: 3px;
    position: relative;
    border-radius: 6px;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.55s ease;
  }
  .menu-btn.active .bar1 {
    transform: rotate(43deg) translate(5px, 5px);
  }

  .menu-btn.active .bar2 {
    opacity: 0;
  }

  .menu-btn.active .bar3 {
    transform: rotate(-46deg) translate(4px, -3px);
  }

  .close-btn {
    cursor: pointer;
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .show-overlay {
    visibility: visible;
    opacity: 1;
  }
  .navbar-logos {
    width: 100%;
  }
  .nav-list-wrapper {
    background: linear-gradient(
      102.73deg,
      #e6f7f5 0%,
      #dff3f1 39.49%,
      #d4f0ed 68.53%,
      #c5e8e4 100%
    );
    display: block;
    position: fixed;
    top: 0;
    right: -297px;
    max-width: 297px;
    width: 100%;
    height: 100vh;
    transition: right 0.3s ease-in-out;
    z-index: 1003;
    overflow-y: auto;
  }
  .sidebar-header,
  .navMob-icons {
    display: block;
  }
  .nav-list-wrapper.show {
    right: 0;
  }
  .sidebar-header {
    padding: 20px 20px 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-list {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }
  .menu-list {
    padding: 10px 15px;
    border-radius: 5px;
    position: relative;
  }
  /* .menu-list.list-active {
    background: #387e77;
  } */
  .menu-list.list-active {
    background: #53b7ad;
    color:#fff;
   
  }

    .menu-list.list-active a {
   
    color:#fff;
   
  }
  .nav-list .menu-list a span {
    display: inline-block;
    height: 15px;
  }
  .dropdown-item::after {
    content: '';
    position: absolute;
    background-image: url(../images/dropdown-mob-icon.svg);
    width: 12px;
    height: 12px;
    top: 15px;
    right: 15px;
  }
  .dropdown-item:hover::after {
    background-image: url(../images/dropdown-mob-icon.svg);
  }
  .nav-list .menu-list a:hover {
    color: #0e145f;
    text-decoration: none;
  }

  .dropdown-list {
    position: unset;
    padding: 0px 0px;
    top: 0px;
    left: 0px;
  }

  .dropdown-list ul {
    padding: 0 0 0 38px;
    margin-top: 9px;
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: unset;
    column-gap: unset;
    min-width: unset;
    background: unset;
    border: unset;
    border-radius: unset;
  }
  .dropdown-list ul::before {
    content: '';
    position: absolute;
    width: 1px;
    height: calc(100% - 38px);
    background: #52bab0;
    left: 23px;
    top: 21px;
  }
  .dropdown-list ul li {
    font-size: 13px;
    font-weight: 400;
    line-height: 17.55px;
    color: #0e145f;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #c5e8e4;
    margin-bottom: 10px;
    position: relative;
  }
  .dropdown-list ul li:last-child {
    margin-bottom: 0px;
  }
  .dropdown-list ul li::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: #52bab0;
    border-radius: 50%;
    left: -19px;
    top: 14px;
  }
  .menu-list.dropdown-menu {
    padding: 0;
  }
  .menu-list .dropdown-item {
    padding: 10px 15px;
  }
  .dropdown-list ul li.list-active {
    background: linear-gradient(
      102.02deg,
      rgba(82, 186, 176, 0.15) 3.15%,
      rgba(82, 186, 176, 0.12) 36.33%,
      rgba(82, 186, 176, 0.1) 69.52%,
      rgba(197, 232, 228, 0.15) 100%
    );
  }
  .dropdown-list ul li.list-active a {
    color: #52bab0;
  }
  .dropdown-list ul li.list-active::before {
    background: #52bab0;
  }
  .dropdown-menu:hover .dropdown-list {
    display: none;
  }
  .dropdown-menu:hover .dropdown-item::after {
    transform: unset;
  }
  .dropdown-item.rotate::after {
    background-image: url(../images/dropdown-mob-icon-up.svg);
  }
}

/* Dashboard Menu Styles */
.dashboard-menu {
  position: relative;
  display: inline-block;
}

.dashboardBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #0e145f;
  font-size: 14px;
  font-weight: 400;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.dashboardBtn:hover {
  background-color: #f5f5f5;
}

.dashboard-list {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  border: 1px solid #e1e5e9;
  display: none;
  z-index: 1000;
  margin-top: 8px;
}

.dashboard-menu:hover .dashboard-list {
  display: block;
}

.dashboard-list ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.dashboard-list ul li {
  margin: 0;
  padding: 0;
}

.dashboard-list ul li a {
  display: block;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.dashboard-list ul li a:hover {
  background-color: #f9fafb;
  color: #52bab0;
}

.dashboard-list ul li:last-child a {
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
}

/* Mobile dashboard menu adjustments */
@media (max-width: 768px) {
  header {
    top: 40px; /* Marquee is 40px on mobile */
  }

  .nav-right-mob .dashboard-menu .dashboard-list {
    right: auto;
    left: 0;
    min-width: 160px;
  }

  .nav-right-mob .dashboardBtn span {
    font-size: 13px;
  }
}
