/* Language switcher (header, desktop) */

/* The in-menu copy exists only so the mobile menu clone gets a switcher */
.main-menu nav > ul > li.menu-lang {
  display: none;
}

.lang-switch {
  position: relative;
  float: right;
  margin-top: 25px;
  margin-left: 24px;
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 50px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: #023172;
  font-family: "cerebri_sanssemibold", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}

.lang-switch-toggle i {
  font-size: 16px;
  line-height: 1;
}

.lang-switch-toggle .lang-caret {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.3s;
}

.lang-switch:hover .lang-switch-toggle,
.lang-switch:focus-within .lang-switch-toggle {
  color: #096bd8;
}

.lang-switch:hover .lang-caret,
.lang-switch:focus-within .lang-caret {
  transform: rotate(180deg);
}

.lang-switch-list {
  position: absolute;
  right: 0;
  top: 120%;
  min-width: 170px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.176);
  border-bottom: 3px solid #096bd8;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease 0s;
  z-index: 9;
  text-align: left;
}

.lang-switch:hover .lang-switch-list,
.lang-switch:focus-within .lang-switch-list {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.lang-switch-list li {
  display: block;
}

.lang-switch-list li a {
  display: block;
  padding: 12px 20px;
  color: #666666;
  font-family: "cerebri_sansregular", sans-serif;
  font-size: 15px;
  line-height: 1.3;
  text-transform: none;
}

.lang-switch-list li a:hover,
.lang-switch-list li.current a {
  color: #ffffff;
  background: #096bd8;
}

/* Hide the desktop control where the mobile menu takes over */
@media (max-width: 991px) {
  .lang-switch {
    display: none;
  }
}
