/* Mufeng language switcher + RTL safety + script fonts (preview only) */

@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/i18n/fonts/NotoSansArabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/i18n/fonts/NotoSansArabic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/i18n/fonts/NotoSans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/i18n/fonts/NotoSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* CMS pages assign a single custom font id with no fallback. An empty
   BrownStd file would otherwise prevent Arabic/Cyrillic glyphs from rendering. */
html[lang]:not([lang="en"]) body :is(p, a, span, li, ul, ol, h1, h2, h3, h4, h5, h6, td, th, div, button, label, input, textarea, em, strong, b, i, small, dt, dd) {
  font-family: "Noto Sans Arabic", "Noto Sans", Tahoma, "Segoe UI", Arial, sans-serif !important;
}

.mf-lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10050;
  font-family: "Noto Sans Arabic", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  margin: 0 8px;
  vertical-align: middle;
}
.mf-lang-switcher .mf-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e6bb8;
  color: #fff !important;
  border: 1px solid #185a9a;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: inherit !important;
}
.mf-lang-switcher .mf-lang-btn:hover,
.mf-lang-switcher.open .mf-lang-btn {
  background: #155a9c;
  color: #fff !important;
}
.mf-lang-switcher .mf-caret {
  font-size: 10px;
  opacity: 0.95;
}
.mf-lang-switcher .mf-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.mf-lang-switcher.open .mf-lang-menu,
.mf-lang-switcher:hover .mf-lang-menu,
.mf-lang-switcher:focus-within .mf-lang-menu {
  display: block;
}
.mf-lang-switcher .mf-lang-menu a {
  display: block;
  padding: 8px 14px;
  color: #222 !important;
  text-decoration: none !important;
  font-size: 14px;
  white-space: nowrap;
  font-family: inherit !important;
}
.mf-lang-switcher .mf-lang-menu a:hover,
.mf-lang-switcher .mf-lang-menu a:focus {
  background: #e8f1fb;
  color: #155a9c !important;
}
.mf-lang-switcher .mf-lang-menu a.is-active {
  font-weight: 700;
  background: #f3f7fc;
  color: #155a9c !important;
}
body.mf-rtl .mf-lang-switcher .mf-lang-menu {
  right: auto;
  left: 0;
}
.cbox-24-2.p_item {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  min-width: 140px;
}
html[dir="rtl"] body.mf-rtl {
  direction: rtl;
}
html[dir="rtl"] body.mf-rtl .e_container-13.header .p_menu1Item,
html[dir="rtl"] body.mf-rtl .e_container-13.header .p_menu1Item a,
html[dir="rtl"] body.mf-rtl .e_container-13.header .p_menu1Item span {
  font-size: 13px;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .mf-lang-switcher .mf-lang-btn { font-size: 12px; padding: 4px 8px; }
  .cbox-24-2.p_item { min-width: 0; }
}
