/*
 * MENA-SINO Living Network RTL foundation.
 * Design philosophy: Arabic is a first-class regional experience, not a translated overlay.
 * The selectors target Polylang’s Arabic direction output and mirror generic WordPress,
 * Hello Elementor, and Elementor composition without changing published Arabic content.
 */

html[dir="rtl"],
html[dir="rtl"] body,
body.rtl {
  direction: rtl;
  font-family: var(--font-arabic) !important;
}

html[dir="rtl"] body,
body.rtl {
  text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .elementor-heading-title,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
body.rtl .elementor-heading-title {
  font-family: var(--font-arabic) !important;
  letter-spacing: 0;
}

html[dir="rtl"] #site-header,
html[dir="rtl"] .site-header,
body.rtl #site-header,
body.rtl .site-header {
  direction: rtl;
}

html[dir="rtl"] .site-header,
body.rtl .site-header {
  text-align: right;
}

html[dir="rtl"] .site-navigation ul,
body.rtl .site-navigation ul {
  padding-right: 0;
}

html[dir="rtl"] .elementor-button-content-wrapper,
html[dir="rtl"] .elementor-icon-list-item,
body.rtl .elementor-button-content-wrapper,
body.rtl .elementor-icon-list-item {
  flex-direction: row-reverse;
}

html[dir="rtl"] .elementor-button-icon,
body.rtl .elementor-button-icon {
  margin-left: 0.5em;
  margin-right: 0;
}

html[dir="rtl"] .elementor-button-icon:last-child,
body.rtl .elementor-button-icon:last-child {
  margin-left: 0;
  margin-right: 0.5em;
}

html[dir="rtl"] .elementor-icon-list-icon,
body.rtl .elementor-icon-list-icon {
  margin-left: 0.5em;
  margin-right: 0;
}

html[dir="rtl"] blockquote,
body.rtl blockquote {
  border-left: 0;
  border-right: 3px solid var(--teal);
  padding-left: 0;
  padding-right: 1.4rem;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
body.rtl input,
body.rtl textarea {
  text-align: right;
}
