/* =============================================================
   navbar.css — Technaureus navbar with mega dropdowns
   Base font-size: 19px (global.css)
   ============================================================= */

/* ---------------------------------------------------------------
   1. HEADER SHELL
--------------------------------------------------------------- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4.947rem; /* 113px / 19 */
  background: var(--body-bg-white);
  /* border-bottom: 1px solid var(--border-gray); */
  z-index: 1000;
  transition: box-shadow 0.3s ease, height 0.3s ease;
}

.navbar-header.scrolled {
  height: 4.737rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 101.053rem; /* 1920px / 19 */
  height: 100%;
  margin: 0 auto;
  padding: 0 8.44rem; /* 150px */
  gap: 2rem;
}

@media (max-width: 1600px) { .navbar-inner { padding: 0 4.5rem; } }
@media (max-width: 1280px) { .navbar-inner { padding: 0 2rem; } }

/* ---------------------------------------------------------------
   2. LOGO
--------------------------------------------------------------- */
.navbar-logo {
  display: block;
  width: 13.316rem; /* 253px */
  height: 3.158rem; /* 60px */
  flex-shrink: 0;
}

.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------------------------------------------------------------
   3. NAV LIST
--------------------------------------------------------------- */
.navbar-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.105rem; /* 40px */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: static; /* mega uses viewport-relative positioning */
}

/* Link and button base */
.nav-link,
.nav-link--btn {
  display: inline-flex;
  align-items: center;
  gap: 0.316rem;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.842rem; /* 16px */
  color: var(--base-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s ease;
  line-height: 1;
}

.nav-link::after,
.nav-link--btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link--btn:hover,
.nav-link.active,
.nav-link--btn.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link--btn:hover::after,
.nav-link.active::after,
.nav-link--btn.active::after,
.nav-item--mega.is-open .nav-link--btn::after {
  width: 100%;
}

/* Active / open state — blue + bold */
.nav-item--mega.is-open > .nav-link--btn,
.nav-link--btn[aria-expanded="true"],
.nav-link--btn.active {
  color: #006cc2;
  font-weight: 600;
}

/* Chevron rotation */
.nav-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-item--mega.is-open .nav-chevron {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------------
   4. MEGA DROPDOWN
--------------------------------------------------------------- */
.mega-dropdown {
  position: fixed;
  left: 0;
  right: 0;
  top: 5.947rem; /* flush under header */
  background: var(--body-bg-white);
  box-shadow: 0 9px 20px rgba(8, 75, 129, 0.26);
  z-index: 999;

  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.navbar-header.scrolled .mega-dropdown {
  top: 4.737rem;
}

/* Visible state — toggled by JS */
.nav-item--mega.is-open .mega-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mega-inner {
  display: flex;
  max-width: 101.053rem;
  margin: 0 auto;
  padding: 0 7.895rem;
  min-height: 15rem;
}

@media (max-width: 1600px) { .mega-inner { padding: 0 4rem; } }
@media (max-width: 1280px) { .mega-inner { padding: 0 2rem; } }

/* ---------------------------------------------------------------
   5. MEGA SIDEBAR (left tab column)
--------------------------------------------------------------- */
.mega-sidebar {
  width: 18.368rem; /* 349px */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* border-right: 1px solid rgba(255, 255, 255, 0.2); */
  padding: 1.526rem 0; /* 29px */
}

.mega-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 3.105rem; /* 59px */
  padding: 0 1.368rem; /* 26px */
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.842rem;
  color: #ffffff;
  background: #006cc2;
  border: 0.8px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.mega-tab--active {
  background: #084b81;
  font-weight: 500;
}

.mega-tab:hover:not(.mega-tab--active) {
  background: #0558a0;
}

.mega-tab svg {
  flex-shrink: 0;
  opacity: 0.7;
}

[dir="rtl"] .mega-tab svg  {
  transform: scale(1, -1) rotate(180deg);
}

.mega-tab--active svg {
  opacity: 1;
}

/* ---------------------------------------------------------------
   6. MEGA CONTENT (right panels)
--------------------------------------------------------------- */
.mega-content {
  flex: 1;
  position: relative;
  padding: 1.5rem 2.105rem 0 2.105rem;
}

.mega-panel {
  display: none;
  gap: 9rem;
  flex-wrap: wrap;
}

.mega-panel--active {
  display: flex;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mega-link {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 0.842rem; /* 16px */
  color: #000000;
  text-decoration: none;
  line-height: 1;
  padding: 1.263rem 0 1rem;
  border: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
  /* width: 12rem; */
  max-width: 12rem;
}

.mega-link:hover,
.mega-link.active,
.mega-link--active {
  color: var(--primary-blue);
  font-weight: 500;
}

.mega-link:hover {
  padding-left: 0.5rem;
}

/* ---------------------------------------------------------------
   7. RIGHT ACTIONS
--------------------------------------------------------------- */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.789rem; /* ~15px */
  flex-shrink: 0;
}

/* Icon buttons */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.105rem;
  height: 2.105rem;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  background: var(--bg-light);
}

.nav-icon-btn svg {
  display: block;
  flex-shrink: 0;
}

/* Menu / hamburger — larger icon */
.nav-icon-btn--menu svg {
  width: 1.523rem;
  height: 1.523rem;
}

/* Bookmark badge */
.nav-badge-wrap {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--primary-blue);
  color: #ffffff;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.632rem;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.09rem 0.40rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-white);
  pointer-events: none;
}

/* Contact button */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* height: 2.65rem; */
  padding: 0.65625rem 1.07813rem;
  border: 1px solid var(--button-primary-blue);
  border-radius: 2rem;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.842rem;
  color: var(--base-dark);
  background: var(--bg-white);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.btn-contact:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

/* Talk to an Expert button */
.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 0.474rem;
  /* height: 2.65rem; */
  padding: 0.75625rem 0.9375rem;
  border: 1px solid #ffffff;
  border-radius: 1.579rem;
  background: var(--button-primary-blue);
  color: var(--bg-white);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 0.842rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.btn-talk:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border: 1px solid #ffffff;
  transform: translateY(-1px);
}

.btn-talk svg {
  width: 1.105rem;
  height: 1.105rem;
  display: block;
}

[dir="rtl"] .btn-talk svg {
  transform: scale(1, -1) rotate(180deg);
}

/* ---------------------------------------------------------------
   8. DARK THEME OVERRIDES
--------------------------------------------------------------- */
body.dark-theme .navbar-header {
  border-bottom-color: var(--border-gray);
}

body.dark-theme .nav-link,
body.dark-theme .nav-link--btn {
  color: var(--base-dark);
}

body.dark-theme .nav-link.active,
body.dark-theme .nav-link--btn.active {
  color: #38b6ff;
}

/* Dark Theme Icon Styling */
body.dark-theme .nav-icon-btn svg path,
body.dark-theme .nav-icon-btn svg rect {
  stroke: var(--base-dark);
}

/* Protect the Yellow Sun in Dark Mode */
body.dark-theme #theme-dark-icon path {
  fill: #FF9933 !important;   /* Force yellow fill */
  stroke: none !important;    /* Remove any stroke */
}


/* body.dark-theme .mega-dropdown {
  background: #1a1a24;
} */

body.dark-theme .mega-link {
  color: #e0e0e0;
}

body.dark-theme .mega-link:hover,
body.dark-theme .mega-link.active,
body.dark-theme .mega-link--active {
  color: #38b6ff;
  font-weight: 500;
}

body.dark-theme .mega-link:hover {
  padding-left: 0.5rem;
}

body.dark-theme .btn-contact {
  color: var(--base-dark);
  background: transparent;
}

@media (max-width: 1350px) {
  .mega-panel{
    gap: 5rem;
  }
}

/* ---------------------------------------------------------------
   9. MOBILE NAV OVERLAY
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Hide mega-capable nav on mobile, show simple overlay instead */
  .navbar-nav {
    position: fixed;
    top: 5.947rem;
    left: -100%;
    width: 100%;
    height: calc(100dvh - 5.947rem);
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    border-top: 1px solid var(--border-gray);
  }

  .navbar-nav.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-gray);
  }

  .nav-link,
  .nav-link--btn {
    width: 100%;
    justify-content: space-between;
    font-size: 1.053rem;
    padding: 1rem 0;
  }

  .nav-link::after,
  .nav-link--btn::after {
    display: none;
  }

  /* Mobile mega dropdown — accordion style */
  .mega-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    transform: none;
    opacity: 1;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-item--mega.is-open .mega-dropdown {
    pointer-events: all;
    max-height: 60rem;
    transform: none;
    opacity: 1;
  }

  .mega-inner {
    flex-direction: column;
    padding: 0;
    min-height: unset;
  }

  .mega-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-right: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-gray);
    background: var(--bg-light);
  }

  .mega-tab {
    flex: 1 1 auto;
    height: 2.5rem;
    border-radius: 0.5rem;
    justify-content: center;
    font-size: 0.737rem;
    padding: 0 0.75rem;
  }

  .mega-tab svg { display: none; }

  .mega-content {
    padding: 1rem 1.25rem;
  }

  .mega-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-panel--active {
    display: flex;
    flex-direction: column;
  }

  .mega-link {
    padding: 0.75rem 0;
    font-size: 0.895rem;
  }

  /* Hide some action items on mobile */
  .btn-talk { display: none !important; }
  .btn-contact { display: none !important; }
  .nav-icon-btn--theme { display: none !important; }
}

@media (max-width: 600px) {
  .navbar-inner { padding: 0 1rem; gap: 0.5rem; }
  .navbar-logo { width: 9.5rem; }
  .navbar-actions { gap: 0.5rem; }
}

/* ---------------------------------------------------------------
   10. LANGUAGE SWITCHER
--------------------------------------------------------------- */

/* Wrapper — gives the dropdown a positioning context */
.lang-switcher {
  position: relative;
}

/* Trigger button — extends the existing .nav-icon-btn */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: auto;
  padding: 0 0.4rem;
  border-radius: 1rem;
}

.lang-active-code {
  font-family: var(--font-primary);
  font-size: 0.684rem;
  font-weight: 600;
  color: var(--base-dark);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Dropdown panel */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 16rem;
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(8, 75, 129, 0.14);
  z-index: 1100;
  overflow: hidden;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Search bar */
.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-gray);
}

.lang-search-icon {
  flex-shrink: 0;
  color: #9ca3af;
}

.lang-search {
  flex: 1;
  font-family: var(--font-primary);
  font-size: 0.789rem;
  color: var(--base-dark);
  background: transparent;
  border: none;
  outline: none;
}

.lang-search::placeholder {
  color: #9ca3af;
}

/* Language list */
.lang-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 14rem;
  overflow-y: auto;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-item:hover {
  background: var(--bg-light, #f5f7fa);
}

.lang-item--active {
  background: rgba(0, 108, 194, 0.07);
}

.lang-name {
  font-family: var(--font-primary);
  font-size: 0.789rem;
  font-weight: 500;
  color: var(--base-dark);
  flex: 1;
}

.lang-native {
  font-family: var(--font-primary);
  font-size: 0.684rem;
  color: #6b7280;
}

.lang-check {
  flex-shrink: 0;
  color: var(--primary-blue);
}

/* Empty state */
.lang-empty {
  padding: 0.75rem 0.9rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-sub);
  text-align: center;
  margin: 0;
}

/* Dark mode overrides */
body.dark-theme .lang-dropdown {
  background: #1a1a24;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .lang-search-wrap {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .lang-search {
  color: #e0e0e0;
}

body.dark-theme .lang-name {
  color: #e0e0e0;
}

body.dark-theme .lang-native {
  color: #9ca3af;
}

body.dark-theme .lang-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-theme .lang-item--active {
  background: rgba(0, 108, 194, 0.2);
}

body.dark-theme .lang-active-code {
  color: var(--base-dark);
}

/* Mobile — keep the trigger, hide code text on very small screens */
@media (max-width: 600px) {
  .lang-active-code { display: none; }
  .lang-dropdown { right: -1rem; width: 14rem; }
}

.navbar-logo .logo-light { display: none; }
.navbar-logo .logo-dark  { display: block; }

.nav-icon-btn { color: #241e20; }

/* ---------------------------------------------------------------
   11. TRANSPARENT VARIANT (hero pages, e.g. Join Us)
   position stays fixed at all times — only visual treatment changes.
   Unscrolled state = transparent/white-text; .scrolled explicitly
   restates every default value rather than relying on absence.
--------------------------------------------------------------- */

/* --- Unscrolled: transparent look --- */
.navbar-header--transparent {
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.navbar-header--transparent .nav-link,
.navbar-header--transparent .nav-link--btn,
.navbar-header--transparent .lang-active-code {
  color: #ffffff;
  transition: color 0.3s ease;
}

.navbar-header--transparent .nav-link::after,
.navbar-header--transparent .nav-link--btn::after {
  background: #ffffff;
}

.navbar-header--transparent .nav-icon-btn {
  color: #ffffff;
  transition: color 0.3s ease;
}

.navbar-header--transparent .nav-icon-btn:hover{
  color: var(--base-dark);
}
.navbar-header--transparent .nav-icon-btn:hover .lang-active-code {
  color: var(--base-dark);
}

.navbar-header--transparent .btn-contact {
  color: #ffffff;
  background: transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-header--transparent .btn-contact:hover {
    background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.navbar-header--transparent .nav-item--mega.is-open > .nav-link--btn,
.navbar-header--transparent .nav-link--btn[aria-expanded="true"],
.navbar-header--transparent .nav-link--btn.active {
  color: #006cc2;
  font-weight: 600;
}

.navbar-header--transparent .navbar-logo .logo-dark  { display: none; }
.navbar-header--transparent .navbar-logo .logo-light { display: block; }

/* --- Scrolled: explicit revert to default white navbar ---
   Selector specificity (.navbar-header--transparent.scrolled = 0,2,0)
   beats the unscrolled block above (0,1,0), so this always wins
   once JS adds .scrolled — no reliance on :not() absence. */
.navbar-header--transparent.scrolled {
  background: var(--body-bg-white);
  border-bottom-color: var(--border-gray);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-header--transparent.scrolled .nav-link,
.navbar-header--transparent.scrolled .lang-active-code {
  color: var(--base-dark);
}

.navbar-header--transparent.scrolled .nav-link--btn.active,
.navbar-header--transparent.scrolled .nav-link--btn:hover {
  color: #006cc2;
}

.navbar-header--transparent.scrolled .nav-item--mega.is-open > .nav-link--btn,
.navbar-header--transparent.scrolled .nav-link--btn[aria-expanded="true"],
.navbar-header--transparent.scrolled .nav-link--btn.active {
  color: #006cc2;
  font-weight: 600;
}

.navbar-header--transparent.scrolled .nav-link::after,
.navbar-header--transparent.scrolled .nav-link--btn::after,
.navbar-header--transparent .nav-link--btn:hover::after {
  background: #006cc2;
}

.navbar-header--transparent.scrolled .nav-icon-btn {
  color: #241e20;
}

.navbar-header--transparent.scrolled .btn-contact {
  color: var(--base-dark);
  background: var(--bg-white);
}

.navbar-header--transparent.scrolled .btn-contact:hover {
  background: #006cc2;
  color: #ffffff;
}

.navbar-header--transparent.scrolled .navbar-logo .logo-dark  { display: block; }
.navbar-header--transparent.scrolled .navbar-logo .logo-light { display: none; }

body.dark-theme .navbar-header--transparent.scrolled .navbar-logo .logo-dark  { display: none; }
body.dark-theme .navbar-header--transparent.scrolled .navbar-logo .logo-light { display: block; }

/* =============================================================
   12. MOBILE SIDE DRAWER
   ============================================================= */
.mobile-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease;
  display: none;
}

.mobile-side-drawer.is-open {
  display: block;
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop */
.mobile-side-drawer__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-side-drawer.is-open .mobile-side-drawer__backdrop {
  opacity: 1;
}

/* Panel */
.mobile-side-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 75vw;
  height: 100%;
  background: #ffffff;
  border-radius: 24px 0 0 24px;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.mobile-side-drawer.is-open .mobile-side-drawer__panel {
  transform: translateX(0);
}

/* Header bar inside drawer */
.mobile-side-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.mobile-drawer-logo {
  display: block;
  width: 130px;
  height: auto;
}

.mobile-drawer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mobile-drawer-logo .logo-light { display: none; }
.mobile-drawer-logo .logo-dark { display: block; }

.mobile-drawer-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1e1e;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Scrollable Content Body */
.mobile-side-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Language Selector */
.mobile-drawer-lang {
  margin-bottom: 1.25rem;
}

.mobile-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--base-dark);
}

.mobile-lang-code {
  font-size: 0.85rem;
  font-weight: 500;
  color: #242424;
}

.mobile-lang-chevron {
  color: #666666;
}

/* Menu List */
/* .mobile-drawer-nav {
  margin-bottom: 1.5rem;
} */

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-menu-item {
  width: 100%;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e1e1e;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: #0A5186;
  font-weight: 600;
}

.mobile-menu-link.active .mobile-menu-chevron {
  color: #0A5186;
}

.mobile-menu-chevron {
  color: #555555;
  transition: transform 0.3s ease;
}

.mobile-menu-item.is-open .mobile-menu-chevron {
  transform: rotate(180deg);
}

/* Submenu Accordion */
.mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.75rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-menu-item.is-open .mobile-submenu {
  max-height: 60rem;
  opacity: 1;
}

.mobile-submenu-item {
  margin: 0.4rem 0;
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: #2b2b2b;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.mobile-submenu-link:hover,
.mobile-submenu-link.active {
  color: #0A5186;
}

.mobile-submenu-link.active .mobile-sub-bullet,
.mobile-submenu-link:hover .mobile-sub-bullet {
  color: #0A5186;
}

.mobile-sub-bullet {
  font-size: 1.1rem;
  line-height: 1;
  color: #333333;
  margin-right: 0.5rem;
  transition: color 0.2s ease;
}

.mobile-sub-title {
  flex: 1;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: #2b2b2b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-submenu-link.active .mobile-sub-title,
.mobile-sub-title:hover,
.mobile-sub-title.active {
  color: #0A5186;
  font-weight: 600;
}

.mobile-category-header.active .mobile-sub-bullet,
.mobile-category-header:has(.mobile-sub-title.active) .mobile-sub-bullet {
  color: #0A5186;
}

.mobile-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
}

.mobile-category-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mobile-category-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-category-icon {
  color: #4A4A4A;
  transition: transform 0.2s ease;
}

/* Transform plus into minus icon when nested list is open */
.mobile-submenu-item.is-nested-open .plus-v-line {
  display: none;
}

/* Nested sub-items list */
.mobile-nested-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.mobile-submenu-item.is-nested-open .mobile-nested-list {
  max-height: 40rem;
  opacity: 1;
  margin: 0.3rem 0 0.5rem 0;
}

.mobile-nested-item {
  margin: 0.25rem 0;
}

.mobile-nested-link {
  display: block;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.82rem;
  font-weight: 400;
  color: #555555;
  text-decoration: none;
  padding: 0.35rem 0 0.35rem 1.6rem;
  transition: color 0.2s ease;
}

.mobile-nested-link:hover,
.mobile-nested-link.active {
  color: #0A5186;
  font-weight: 600;
}

/* Mobile Language Dropdown */
.mobile-drawer-lang {
  position: relative;
  margin-bottom: 1.25rem;
}

.mobile-lang-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: 160px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-gray, #e5e7eb);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  z-index: 10000;
  display: none;
}

.mobile-lang-dropdown.is-open {
  display: block;
}

.mobile-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.84rem;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mobile-lang-option:hover {
  background-color: #f3f4f6;
  color: #0A5186;
}

.mobile-lang-option.active {
  color: #0A5186;
  font-weight: 600;
}

/* Dark Mode Switch Row */
.mobile-drawer-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  /* margin-top: 0.5rem; */
  margin-bottom: 1.5rem;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e1e1e;
}

.mobile-theme-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.mobile-theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mobile-theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 22px;
}

.mobile-theme-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.mobile-theme-switch input:checked + .mobile-theme-slider {
  background-color: #0A5186;
}

.mobile-theme-switch input:checked + .mobile-theme-slider:before {
  transform: translateX(16px);
}

/* Talk to an Expert Button */
.mobile-drawer-cta {
  /* margin-top: auto; */
  padding-top: 0.5rem;
}

.btn-mobile-talk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 46px;
  background: #0A5186;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 81, 134, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-mobile-talk:hover {
  background: #084370;
  color: #ffffff;
}

/* Dark Theme Overrides for Mobile Drawer */
body.dark-theme .mobile-side-drawer__panel {
  background: #14141d;
  color: #f0f0f0;
}

body.dark-theme .mobile-drawer-logo .logo-dark { display: none; }
body.dark-theme .mobile-drawer-logo .logo-light { display: block; }

body.dark-theme .logo-dark { display: none; }
body.dark-theme .logo-light { display: block; }

body.dark-theme .mobile-drawer-close {
  color: #ffffff;
}
body.dark-theme .mobile-drawer-close svg path {
  stroke: #ffffff;
}

body.dark-theme .mobile-menu-link,
body.dark-theme .mobile-lang-code,
body.dark-theme .mobile-sub-title,
body.dark-theme .mobile-theme-label {
  color: #f0f0f0;
}

body.dark-theme .mobile-nested-link {
  color: #c0c0c0;
}

body.dark-theme .mobile-submenu-link {
  color: #d0d0d0;
}

body.dark-theme .mobile-sub-bullet {
  color: #a0a0a0;
}

body.dark-theme .mobile-category-icon circle,
body.dark-theme .mobile-category-icon path {
  stroke: #a0a0a0;
}

body.dark-theme .mobile-menu-chevron,
body.dark-theme .mobile-lang-chevron {
  color: #a0a0a0;
}

body.dark-theme .mobile-lang-dropdown {
  background: #1e1e2d;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .mobile-lang-option {
  color: #e0e0e0;
}

body.dark-theme .mobile-lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .mobile-menu-link:hover,
body.dark-theme .mobile-menu-link.active {
  color: #38b6ff;
}

body.dark-theme .mobile-menu-link.active .mobile-menu-chevron {
  color: #38b6ff;
}

body.dark-theme .mobile-submenu-link:hover,
body.dark-theme .mobile-submenu-link.active {
  color: #38b6ff;
}

body.dark-theme .mobile-submenu-link.active .mobile-sub-bullet,
body.dark-theme .mobile-submenu-link:hover .mobile-sub-bullet {
  color: #38b6ff;
}

body.dark-theme .mobile-submenu-link.active .mobile-sub-title,
body.dark-theme .mobile-sub-title:hover,
body.dark-theme .mobile-sub-title.active {
  color: #38b6ff;
}

body.dark-theme .mobile-category-header.active .mobile-sub-bullet,
body.dark-theme .mobile-category-header:has(.mobile-sub-title.active) .mobile-sub-bullet {
  color: #38b6ff;
}

body.dark-theme .mobile-nested-link:hover,
body.dark-theme .mobile-nested-link.active {
  color: #38b6ff;
  font-weight: 600;
}

/* =============================================================
   NAVBAR SEARCH OVERLAY  (Figma node 859:4463)
   Append this block to global.css.
   Prefix .nav-search-* / .nav-search__* so it can't clash with
   navbar.css. Sizes are Figma px / 19 (root font-size = 19px at
   the 1920 design width), so everything scales with the site's
   existing html font-size breakpoints.

   Requires .navbar-header to be a positioned element
   (fixed / sticky / absolute / relative) — the overlay is
   absolutely positioned to cover the header exactly.
   ============================================================= */

.nav-search {
  position: absolute;
  inset: 0;
  z-index: 2000;
  background-color: var(--body-bg-white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* visibility flips after the fade-out finishes */
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.navbar-header.is-search-open .nav-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2000;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

/* Reuses .navbar-inner so the logo lands exactly where it is in the
   normal navbar (no jump) at every breakpoint. */
.nav-search .nav-search__inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-search__inner img {
  width: 4.8125rem;
  height: 4.8125rem;
}

/* ── Logo ───────────────────────────────────────────────────── */
.nav-search .nav-search__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-search .nav-search__logo span {
  color: #084B81;
  font-family: var(--font-primary);
  font-size: 3.1875rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}


/* ── Divider (Vector 97: 1 × 47px, 20.5px after logo, 17px before icon) ── */
.nav-search__divider {
  flex-shrink: 0;
  width: 1px;
  height: 2.474rem;
  /* 47px */
  margin-inline: 1.079rem 0.895rem;
  /* 20.5px / 17px */
  background-color: var(--border-medium);
}

/* ── Form: icon + input ─────────────────────────────────────── */
.nav-search__form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  /* 16px */
  margin: 0;
}

.nav-search__icon {
  flex-shrink: 0;
  width: max(0.947rem, 16px);
  /* 18px */
  height: max(0.947rem, 16px);
  color: var(--base-dark);
}

.nav-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav-search__input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  font-family: 'Poppins', var(--font-primary);
  font-weight: 400;
  /* 16px in Figma; never below 16px so iOS Safari doesn't zoom on focus */
  font-size: max(0.842rem, 16px);
  line-height: 1.5;
  color: var(--base-dark);
  -webkit-appearance: none;
  appearance: none;
}

.nav-search__input::placeholder {
  color: #bcbcbc;
  /* Figma Gray-1 */
  font-weight: 300;
  /* Poppins Light */
  opacity: 1;
}

/* Hide the native clear "x" so only the Figma close icon is shown */
.nav-search__input::-webkit-search-decoration,
.nav-search__input::-webkit-search-cancel-button,
.nav-search__input::-webkit-search-results-button,
.nav-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

/* ── Close (X, 24px) ────────────────────────────────────────── */
.nav-search__close {
  flex-shrink: 0;
  /* padding enlarges the tap target without moving the icon */
  box-sizing: content-box;
  width: max(1.263rem, 20px);
  /* 24px */
  height: max(1.263rem, 20px);
  padding: 0.632rem;
  margin: -0.632rem;
  margin-inline-start: 0.632rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--base-dark);
  border-radius: 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.nav-search__close svg {
  width: 100%;
  height: 100%;
}

.nav-search__close:hover {
  opacity: 0.6;
}

.nav-search__close:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .nav-search,
  .navbar-header.is-search-open .nav-search,
  .nav-search__close {
    transition: none;
  }
}

@media (max-width: 900px) {

  .lang-trigger {
    display: none;
  }
}
