/* Language switcher dropdown in the navbar.
   - Below the lg breakpoint: rendered next to the hamburger toggle (outside
     the collapsible navbar-nav) so it stays visible even when the mobile
     menu is collapsed.
   - At lg and up: rendered as a nav item just to the left of "Contact". */
.lang-switcher-nav-item {
  margin-right: 6px;
}

.navbar .lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff !important;
  font-family: 'oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.4;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.navbar .lang-toggle:hover,
.navbar .lang-toggle:focus {
  border-color: var(--copper, #ab6400);
  background-color: rgba(255, 255, 255, 0.08);
}

.navbar .lang-toggle .fa-globe {
  font-size: 0.8rem;
}

/* Reset to Bootstrap's default triangle caret. Some pages load a legacy
   theme stylesheet (templatemo-kind-heart-charity.css) that redefines
   .dropdown-toggle::after globally with an icon-font ligature — without
   this reset the caret renders as a missing-glyph box on those pages. */
.navbar .lang-toggle::after {
  content: "" !important;
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: 2px;
  border-top: 0.3em solid !important;
  border-right: 0.3em solid transparent !important;
  border-bottom: 0 !important;
  border-left: 0.3em solid transparent !important;
  font-family: inherit !important;
  font-size: inherit !important;
  position: static !important;
}

/* The same legacy stylesheet also sets a generic `.dropdown-menu` /
   `.dropdown-item` / `.dropdown:hover .dropdown-menu` (hover-to-open) for
   its own theme dropdowns. Scope + !important below make sure our language
   menu looks and behaves identically no matter which page it's on. */
.lang-switcher .dropdown-menu {
  min-width: 8.5rem !important;
  max-width: none !important;
  padding: 4px !important;
  margin-top: 6px !important;
  font-family: 'oswald', sans-serif;
}

.lang-switcher.dropdown:hover .dropdown-menu:not(.show) {
  display: none !important;
}

.lang-switcher .dropdown-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: #212529 !important;
  padding: 6px 10px !important;
}

.lang-switcher .dropdown-item.active,
.lang-switcher .dropdown-item:active {
  background-color: var(--Dblue, #132154) !important;
  color: #fff !important;
}

.lang-switcher .dropdown-item .fa-check {
  font-size: 0.75rem;
  opacity: 0;
}

.lang-switcher .dropdown-item.active .fa-check {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .navbar .lang-toggle {
    font-size: 0.78rem;
    padding: 3px 8px;
  }
}
