/*----------------------------------------*/
/*  LANGUAGE SWITCHER (SR / EN)
/*----------------------------------------*/
.lang-switch {
  position: fixed;
  z-index: 9992;
  display: flex;
  gap: 4px;
  padding: 4px;
  background-color: var(--black-2);
  border: 1px solid rgba(240, 240, 240, 0.12);
  border-radius: 100px;
  font-family: "Kanit", sans-serif;
}
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: all 0.3s;
}
.lang-switch a:hover {
  color: var(--white);
}
.lang-switch a.active {
  background-color: var(--primary);
  color: var(--black-2);
  pointer-events: none;
}

/* Desktop: vertical switcher inside the left header sidebar, below the logo */
@media only screen and (min-width: 1200px) {
  .lang-switch {
    flex-direction: column;
    top: 180px;
    left: 31px;
    transform: translateX(-50%);
  }
  .lang-switch a {
    min-width: 0;
    width: 40px;
    padding: 0;
  }
}
@media only screen and (min-width: 1920px) {
  .lang-switch {
    left: 50px;
  }
}

/* Mobile / tablet: pinned to the bottom of the screen */
@media only screen and (max-width: 1199px) {
  .lang-switch {
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
  .lang-switch a {
    height: 36px;
    min-width: 52px;
    font-size: 15px;
  }
}
