/* ─── Shared ─────────────────────────────────────────────────── */

.navSearch {
  width: 100%;
  min-width: 0;
  height: 50px;
  flex: 1;
  padding: 15px 44px 15px 20px;
  border: 1px solid #2d87ff;
  border-radius: 100px;
  background: white;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
}

.navSearch::placeholder {
  color: #818181;
}

.navSearchWrap {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 400px;
  flex-shrink: 1;
  align-items: center;
}

.navSearchWrap--full {
  width: 100%;
  max-width: none;
}

.navSearchIcon {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.navSearchDropdown {
  position: absolute;
  z-index: 200;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #e0e8f5;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.navSearchResult {
  display: block;
  padding: 10px 16px;
  color: #323232;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.15s ease;
}

.navSearchResult:not(:last-child) {
  border-bottom: 1px solid #f0f4fb;
}

.navSearchResult:hover {
  background: #f0f6ff;
  color: #2d87ff;
}

.navArrow {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.navArrow--sm {
  width: 20px;
  height: 20px;
}

.navMobileItemHead .navArrow {
  display: flex;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background-color: #2d87ff;
}

.navArrow--rotated {
  transform: rotate(180deg);
}

.navCenterBtn {
  display: flex;
  height: 50px;
  flex-shrink: 0;
  align-items: center;
  padding: 15px 30px;
  border-radius: 100px;
  background: #2d87ff;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.navCenterBtn img {
  width: 20px;
  height: 20px;
}

.navCenterBtn:hover {
  color: white;
  opacity: 0.9;
}

/* ─── Desktop ────────────────────────────────────────────────── */

.navDesktop {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  display: block;
  width: 1200px;
  max-width: calc(100% - 40px);
  padding-top: 60px;
  margin-bottom: 110px !important;
  font-family: 'Montserrat', sans-serif;
  transform: translateX(-50%);
  transition: padding-top 0.2s ease;
}

@media (max-width: 1280px) {
  .navDesktop {
    max-width: 1000px;
  }
}

.navDesktop--scrolled {
  padding-top: 30px;
}

.navDesktopSpacer {
  display: none;
}

.navMobile {
  display: none;
}

.navMobileSpacer {
  display: none;
}

.navDesktopBar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 20px;
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px #2d87ff;
  gap: 46px;
  transition: border-radius 0.15s, box-shadow 0.15s;
}

.navDesktopLogo {
  display: block;
  width: 116px;
  height: 40px;
  flex-shrink: 0;
}

.navDesktopControls {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navDiseasesBtn {
  display: flex;
  height: 50px;
  flex-shrink: 0;
  align-items: center;
  padding: 15px 30px;
  border: 2px solid #2d87ff;
  border-radius: 100px;
  background: white;
  color: #2d87ff;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  line-height: 1;
  white-space: nowrap;
}

.navDiseasesBtn:hover {
  background: #e8f1ff;
}

.navDesktopDropdown {
  position: relative;
  z-index: 0;
  top: -60px;
  display: flex;
  padding: 80px 40px 20px;
  border-radius: 0 0 20px 20px;
  background: white;
  box-shadow: inset 2px 0 0 0 #2d87ff, inset -2px 0 0 0 #2d87ff, inset 0 -2px 0 0 #2d87ff;
  gap: 20px;
}

.navDropdownCol {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.navDropdownTitle {
  color: black;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: pre-line;
}

.navDropdownTitle:hover {
  color: #2d87ff;
}

.navDropdownSub {
  color: black;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.navDropdownSub:hover {
  color: #2d87ff;
}

/* ─── Mobile (≤ 1024px) ─────────────────────────────────────── */

@media (max-width: 1024px) {
  .navDesktop {
    display: none;
  }

  .navDesktopSpacer {
    display: none;
  }

  .navMobile {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
  }

  .navMobileSpacer {
    display: block;
    height: 68px;
  }

  .navMobileBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 12px;
    border-bottom: 2px solid #2d87ff;
    background: #eff6ff;
  }

  .navMobileLogo {
    display: block;
    width: auto;
    height: 36px;
  }

  .navMobileBurger {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }

  .navMobileBurgerLine {
    position: absolute;
    left: 7px;
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #2d87ff;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .navMobileBurgerLine:nth-child(1) {
    top: 11px;
  }

  .navMobileBurgerLine:nth-child(2) {
    top: 19px;
  }

  .navMobileBurgerLine:nth-child(3) {
    top: 27px;
  }

  .navMobileBurger--active .navMobileBurgerLine:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navMobileBurger--active .navMobileBurgerLine:nth-child(2) {
    opacity: 0;
  }

  .navMobileBurger--active .navMobileBurgerLine:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navMobileMenu {
    display: flex;
    max-height: calc(100vh - 68px);
    flex-direction: column;
    padding: 15px;
    border-radius: 0 0 20px 20px;
    border-right: 2px solid #2d87ff;
    border-bottom: 2px solid #2d87ff;
    border-left: 2px solid #2d87ff;
    background: white;
    gap: 20px;
    overflow-y: auto;
  }

  .navMobileList {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .navMobileItem {
    display: flex;
    flex-direction: column;
  }

  .navMobileItemHead {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .navMobileItemTitle {
    color: black;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .navMobileItemTitle:hover {
    color: #2d87ff;
  }

  .navMobileSubList {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    gap: 8px;
  }

  .navMobileSubItem {
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
  }

  .navMobileSubItem:hover {
    color: #2d87ff;
  }

  .navCenterBtnMobile {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 100px;
    background: #2d87ff;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    gap: 10px;
    text-decoration: none;
  }

  .navCenterBtnMobile img {
    width: 18px;
    height: 18px;
  }

  .navCenterBtnMobile:hover {
    color: white;
    opacity: 0.9;
  }
}
