:root {
  --nlhd-purple: #7b3f9e;
  --nlhd-topbar-h: 44px;
  --nlhd-header-h: 96px;
  --nlhd-logo-size: 80px;
}

.nlhd-topbar {
  background: #fff;
}
.nlhd-topbar.nlhd--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--nlhd-topbar-h);
  display: flex;
  align-items: center;
  z-index: 10000;
}
.nlhd-topbar__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}
.nlhd-topbar__content {
  display: flex;
  justify-content: flex-end;
}
.nlhd-topbar__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  /* Removed overflow-x: auto to prevent clipping dropdowns */
}

.nlhd-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 0;
  color: #2e3e4e;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nlhd-search-btn:hover {
  background: rgba(123, 63, 158, 0.12);
  color: var(--nlhd-purple);
}

.nlhd-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 0;
  color: #2e3e4e;
  font-weight: 500;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nlhd-lang__btn:hover {
  background: rgba(123, 63, 158, 0.12);
  color: var(--nlhd-purple);
}
.nlhd-lang__flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}
.nlhd-lang__menu {
  border: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px 0;
  margin-top: 10px;
  z-index: 1001; /* Above fixed header if needed */
}
.nlhd-lang__item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nlhd-lang__item:hover {
  background: rgba(123, 63, 158, 0.12);
  color: var(--nlhd-purple);
}

.nlhd-search {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 22200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.nlhd-search.nlhd-search--active {
  opacity: 1;
  visibility: visible;
}
.nlhd-search__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.nlhd-search__form {
  width: 92%;
  max-width: 620px;
  display: flex;
  gap: 10px;
}
.nlhd-search__form input[type="search"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--nlhd-purple);
  outline: none;
  font-size: 16px;
}
.nlhd-search__submit {
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--nlhd-purple);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.nlhd-search-btn:focus,
.nlhd-lang__btn:focus,
.nlhd-mtoggle:focus,
.nlhd-search__close:focus,
.nlhd-search__submit:focus,
.nlhd-mnav__close:focus {
  outline: 2px solid var(--nlhd-purple);
  outline-offset: 2px;
}

.nlhd-header {
  position: relative;
  height: var(--nlhd-header-h);
  z-index: 1100;
  background: transparent;
}
.nlhd-header.nlhd--fixed {
  position: fixed;
  top: var(--nlhd-topbar-h);
  left: 0;
  right: 0;
  width: 100%;
}
.nlhd-header__bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.nlhd-header__wave {
  width: 100%;
  height: 100%;
  display: block;
}
.nlhd-header__container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nlhd-header__left,
.nlhd-header__right {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin-bottom: 12px;
}
.nlhd-header__left {
  justify-content: flex-end;
  padding-right: calc(var(--nlhd-logo-size) / 2 + 50px);
}
.nlhd-header__right {
  justify-content: flex-start;
  padding-left: calc(var(--nlhd-logo-size) / 2 + 50px);
}

.nlhd-header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -66%);
  z-index: 2;
}
.nlhd-header__logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--nlhd-logo-size) + 50px);
  height: calc(var(--nlhd-logo-size) + 40px);
  border-radius: 50%;
  background: #fff;
  z-index: -1;
}
.nlhd-logo {
  width: var(--nlhd-logo-size);
  height: var(--nlhd-logo-size);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nlhd-logo__img {
  max-width: 100%;
  max-height: 100%;
  margin-top: 8px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nlhd-nav__list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  min-width: 0;
}
.nlhd-nav__item {
  position: relative;
}
.nlhd-nav__link {
  color: #fff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nlhd-nav__link:hover,
.nlhd-nav__link.active {
  background: rgba(255, 255, 255, 0.18);
}
.nlhd-nav__chev {
  font-size: 12px;
}

.nlhd-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 20;
}
.nlhd-nav__item:hover > .nlhd-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nlhd-nav__ditem {
  position: relative;
}
.nlhd-nav__dlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  color: #2e3e4e;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nlhd-nav__dlink:hover {
  background: rgba(123, 63, 158, 0.1);
  color: var(--nlhd-purple);
}

.nlhd-nav__subdropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}
.nlhd-nav__ditem:hover > .nlhd-nav__subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.nlhd-mtoggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--nlhd-purple);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  z-index: 3;
}
.nlhd-mtoggle i {
  font-size: 22px;
}

.nlhd-mnav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 2100;
  transition: right 0.25s ease;
  overflow-y: auto;
}
.nlhd-mnav.nlhd-mnav--active {
  right: 0;
}
.nlhd-mnav__header {
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  border-bottom: 1px solid #eee;
}
.nlhd-mnav__close {
  background: transparent;
  border: 0;
  color: #2e3e4e;
  font-size: 22px;
}
.nlhd-mnav__body {
  padding: 10px 0;
}

.nlhd-mmenu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nlhd-mmenu__item {
  border-bottom: 1px solid #f1f1f1;
}
.nlhd-mmenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  color: #2e3e4e;
  text-decoration: none;
  font-weight: 500;
}
.nlhd-mmenu__link:hover,
.nlhd-mmenu__link.active {
  background: rgba(123, 63, 158, 0.1);
  color: var(--nlhd-purple);
}
.nlhd-mmenu__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(123, 63, 158, 0.08);
}
.nlhd-mmenu__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fafafa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nlhd-mmenu__item.nlhd-mmenu__item--open > .nlhd-mmenu__sublist {
  max-height: 1200px;
}
.nlhd-mmenu__sublist .nlhd-mmenu__link {
  padding-left: 34px;
  font-size: 14px;
}

.nlhd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2050;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.nlhd-overlay.nlhd-overlay--active {
  opacity: 1;
  visibility: visible;
}

.fixed-top-margin {
  margin-top: 5px !important;
}

@media (max-width: 1320px) {
  .nlhd-nav__list {
    gap: 12px;
  }
  .nlhd-nav__link {
    font-size: 14px;
    padding: 8px 10px;
  }
  .nlhd-header__left {
    padding-right: calc(var(--nlhd-logo-size) / 2 + 40px);
  }
  .nlhd-header__right {
    padding-left: calc(var(--nlhd-logo-size) / 2 + 40px);
  }
  html[dir="rtl"] .nlhd-header__left {
    padding-right: 0;
    padding-left: calc(var(--nlhd-logo-size) / 2 + 40px);
  }
  html[dir="rtl"] .nlhd-header__right {
    padding-left: 0;
    padding-right: calc(var(--nlhd-logo-size) / 2 + 40px);
  }
}

@media (max-width: 991px) {
  :root {
    --nlhd-header-h: 72px;
    --nlhd-logo-size: 72px;
  }
  .nlhd-header__left,
  .nlhd-header__right {
    display: none;
  }
  .nlhd-mtoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%) scale(0.9);
  }
  .nlhd-header__logo {
    transform: translate(-50%, -55%);
  }
  .nlhd-header__logo::before {
    width: calc(var(--nlhd-logo-size) + 30px);
    height: calc(var(--nlhd-logo-size) + 20px);
  }
  .nlhd-search-text,
  .nlhd-lang__text {
    display: none;
  }
  .nlhd-search__form {
    flex-direction: column;
  }
  .nlhd-search__submit {
    width: 100%;
  }
  .nlhd-topbar__controls {
    gap: 6px;
  }
  .nlhd-search-btn,
  .nlhd-lang__btn {
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  :root {
    --nlhd-header-h: 64px;
    --nlhd-logo-size: 60px;
  }
  .nlhd-header__logo {
    transform: translate(-50%, -50%);
  }
  .nlhd-mnav {
    width: 280px;
  }
  .nlhd-logo__img {
    max-width: 85%;
  }
}
@media (max-width: 360px) {
  :root {
    --nlhd-logo-size: 55px;
  }
  .nlhd-topbar__controls {
    gap: 4px;
  }
  .nlhd-mnav {
    width: 100%;
  }
}

html[dir="rtl"] .nlhd-topbar__content {
  justify-content: flex-start;
}
html[dir="rtl"] .nlhd-header__left {
  justify-content: flex-end;
  padding-right: 0;
  padding-left: calc(var(--nlhd-logo-size) / 2 + 50px);
}
html[dir="rtl"] .nlhd-header__right {
  justify-content: flex-start;
  padding-left: 0;
  padding-right: calc(var(--nlhd-logo-size) / 2 + 50px);
}
html[dir="rtl"] .nlhd-mtoggle {
  right: auto;
  left: 16px;
}
html[dir="rtl"] .nlhd-nav__dropdown {
  left: auto;
  right: 0;
}
html[dir="rtl"] .nlhd-nav__subdropdown {
  left: auto;
  right: 100%;
}
html[dir="rtl"] .nlhd-mnav {
  right: auto;
  left: -100%;
  transition: left 0.25s ease;
}
html[dir="rtl"] .nlhd-mnav.nlhd-mnav--active {
  left: 0;
  right: auto;
}
