/* ========== Language Dropdown (text-only) ========== */

/* Container trong header (giữ lại nếu bạn đang đặt theo grid/flex) */
.header-lang {
  position: relative;
}

.lang-switch {
  align-self: center;
  justify-self: end;
}

/* Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
  /* đủ cao để nổi trên overlay/header */
}

/* Nút mở dropdown (hiển thị chữ) */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 10px 10px;
  border-radius: 99px;
  border: 1px solid #f1f2f4;
  background: #EDEEF1;
  color: #0B1726;
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover {
  border: 1px solid #0B5AA3;
}

.lang-text {
  font-weight: 600;
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 23px;

}

/* Caret */
.lang-caret svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform .2s ease;
}

.lang-btn[aria-expanded="true"] .lang-caret svg {
  transform: rotate(180deg);
}

/* Menu */
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);

  padding: 6px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: none;
}

.lang-dropdown.is-open .lang-menu {
  display: block;
}

.lang-menu li {
  margin: 0;
  padding: 0;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.lang-item:hover,
.lang-item:focus-visible {
  background: rgba(0, 0, 0, .05);
}

.lang-item-text {
  font-weight: 500;
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
}

.lang-menu [aria-selected="true"] .lang-item-text {
  text-decoration: underline;
}

/* Utility (nếu cần ẩn block trong vài trang) */
.header-lang.is-hidden {
  display: none !important;
}
