/* Exact published-article direction and public footer text isolation. */
html[lang^="ar"] body.postid-7444 #post-7444 > .entry-content > section[lang="en"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
html[lang^="ar"] #colophon .widget_contact li.address > a,
html[lang^="ar"] #colophon .widget_contact li.phone-number > a,
html[lang^="ar"] #masthead .top-header .info li.phone-number > a {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  max-width: 100%;
  text-align: left;
}
body.postid-7444 #masthead > .page-header > .container > .page-title { line-height: 1.25; }
/* Retain the native block Search and Recent Posts; hide their duplicate legacy widgets. */
body.postid-7444 #secondary > #search-1,
body.postid-7444 #secondary > #recent-posts-1,
body.postid-7444 #secondary > #block-4:has(.no-comments.wp-block-latest-comments):not(:has(.wp-block-latest-comments__comment)) { display: none; }
body.postid-7444 #secondary .wp-block-search__button,
body.postid-7444 #secondary .search-submit {
  white-space: nowrap;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

@media (max-width: 480px) {
  body.postid-7444 #content > .container,
  body.postid-7444 #masthead > .page-header > .container,
  #colophon .container {
    box-sizing: border-box;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.postid-7444 #masthead > .page-header > .container > .page-title {
    box-sizing: border-box;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-wrap: anywhere;
  }
  body.postid-7444 #content > .container > #primary,
  body.postid-7444 #content > .container > #secondary {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.postid-7444 #post-7444,
  body.postid-7444 #post-7444 > .entry-content,
  #colophon .widget-area,
  #colophon .column-4,
  #colophon .widget,
  #colophon figure {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  #colophon figure { margin-left: 0; margin-right: 0; }
  #colophon .wp-image-262 {
    width: min(310px, 100%) !important;
    max-width: 100% !important;
    height: auto;
  }
  body.postid-7444 #secondary .wp-block-search__input { min-width: 0; }
  html[lang^="ar"] #colophon .widget_contact li.address > a { overflow-wrap: anywhere; }
}

/* Separate header language control; existing menu destinations/controllers retained. */
body .fe-header-navigation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  background: #fff;
  border-block: 1px solid #ccc;
  clear: both;
}
body .fe-header-navigation > nav.fe-main-nav.fe-services-nav {
  flex: 0 1 auto;
  min-width: 0;
  border-block: 0;
}
body .fe-header-navigation .fe-nav-wrap { padding: 0; }
body .fe-header-language {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-family: Arial, Tahoma, sans-serif;
  line-height: 1.4;
}
body .fe-header-language > :is(a, .fe-header-language-current) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 3px;
}
body .fe-header-language > [lang="ar"] { font-family: Tahoma, Arial, sans-serif; font-size: 15px; }
body .fe-header-language > .fe-header-language-current { color: #fff; background: #222; }
body .fe-header-language > a { color: #222; background: #fff; }
body .fe-header-language > a:hover { color: #111; background: #eee; }
body .fe-header-language > a:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
body .fe-header-language-divider { color: #888; padding: 0 2px; font-size: 13px; }
/* Owner-confirmed address segments only; existing font size and line-height retained. */
html[lang="ar"] #colophon #freesiaempire_contact_widgets-3 li.address > a.fe-footer-address > .fe-footer-address-line {
  display: block;
  white-space: normal;
}
@media (max-width: 980px) {
  body .fe-header-navigation { display: block; padding: 0; }
  body .fe-header-navigation > nav.fe-main-nav.fe-services-nav { width: 100%; }
  body .fe-header-navigation .fe-nav-wrap { padding: 12px 18px; }
  body .fe-header-navigation .fe-menu-toggle { margin-inline-start: 0 !important; margin-inline-end: auto !important; }
  body .fe-header-language { position: absolute; inset-block-start: 12px; inset-inline-end: 18px; z-index: 1001; }
  html[lang="ar"] body .fe-header-language { inset-inline-end: auto; inset-inline-start: 18px; }
}

/* Exact Arabic footer contact rows: keep each native icon beside its detail. */
html[lang="ar"] #colophon #freesiaempire_contact_widgets-3 li:is(.address, .phone-number, .email) {
  display: flex;
  direction: rtl;
  align-items: flex-start;
  gap: 9px;
}
html[lang="ar"] #colophon #freesiaempire_contact_widgets-3 li:is(.address, .phone-number, .email)::before {
  float: none;
  margin: 3px 0 0;
  width: 16px;
  flex: 0 0 16px;
}
html[lang="ar"] #colophon #freesiaempire_contact_widgets-3 li:is(.address, .phone-number, .email) > :is(a, .fe-email-protected) {
  min-width: 0;
}
