/* ------------------------------------------------------------------
   Language switcher dropdown (top right, all screen widths)
   + small mobile menu adjustments
------------------------------------------------------------------ */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 60;
  font-family: 'robotoregular', sans-serif;
}

.lang-switcher-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(40, 46, 53, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
.lang-switcher-button:hover {
  background: rgba(40, 46, 53, 0.8);
}
.lang-switcher-button .fa-language {
  font-size: 17px;
}

.lang-switcher-panel {
  position: absolute;
  right: 0;
  margin-top: 6px;
  min-width: 190px;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.lang-switcher-panel[hidden] {
  display: none;
}

.lang-switcher-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eeeeee;
}
.lang-switcher-search .fa-search {
  color: #999999;
  padding: 0 0 0 12px;
}
.lang-switcher-filter {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 12px 9px 8px;
  font-size: 14px;
  color: #555555;
  background: transparent;
}

.lang-switcher-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 240px;
  overflow-y: auto;
}
.lang-switcher-list a {
  display: block;
  padding: 8px 14px;
  color: #555555;
  text-decoration: none;
}
.lang-switcher-list li.current a {
  font-family: 'robotobold', sans-serif;
}
.lang-switcher-list li.current a:before {
  content: "\2713\00a0";        /* checkmark before the current language */
}
.lang-switcher-list a:hover,
.lang-switcher-list li.active a {
  background: #6cc0f7;
  color: #ffffff;
}
.lang-switcher-list li[hidden] {
  display: none;
}

/* ---- Mobile (uses the same fixed top-right position, over the header) ---- */
@media screen and (max-width: 992px) {
  .lang-switcher {
    top: 10px;
    right: 10px;
  }
  .lang-switcher-button {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* Mobile menu optimisation: left-align entries and tighten spacing
     (also keeps the top-right corner clear for the switcher) */
  .responsive-header .main-navigation {
    text-align: left;
  }
  .main-navigation a {
    padding: 8px 16px;
    text-align: left;
  }
  .responsive-header .social-icons {
    padding: 16px;
    text-align: left;
  }
  .responsive-header .social-icons li {
    margin-right: 14px;
  }
}
