/* English layout and independent site-language selector */
#bn-public-language{position:fixed;bottom:20px;left:20px;z-index:2147483000;background:#070c32;color:white;box-shadow:0 10px 35px #03102b55;border:1px solid #ffffff45;padding:9px 14px;border-radius:50px;display:flex;align-items:center;gap:9px;font:700 13px/1.2 Arial,sans-serif;direction:ltr}
#bn-public-language a{color:#dce6ff;text-decoration:none}#bn-public-language a[aria-current]{color:#fff;background:#e32932;border-radius:20px;padding:5px 9px}
html[lang=en] body{direction:ltr}html[lang=en] #bnf-footer,html[lang=en] .bnca-main,html[lang=en] .bnsp-main,html[lang=en] .bnsp-article,html[lang=en] .bnsp-max,html[lang=en] .fmcsh-header{direction:ltr!important}
html[lang=en] #bnf-footer .bnf-catcols,html[lang=en] .bnca-news-grid,html[lang=en] .bnsp-related-grid{direction:ltr}
html[lang=en] .bnca-hero-info,html[lang=en] .bnsp-article-body{direction:ltr;text-align:left}
html[lang=en] .fmcsh-language-pop{direction:ltr}
html[lang=en] .bnsp-editorial-body p,html[lang=en] .bnsp-prose p{direction:ltr}
/* Private dashboard styles are only applicable inside the portal. */
html[lang=en] .app-shell{direction:ltr}
html[lang=en] .sidebar,html[lang=en] .app-content,html[lang=en] .main-view,html[lang=en] .page-top{text-align:left;direction:ltr}
html[lang=en] .bn-content-form{direction:ltr}html[lang=en] .bn-content-form input,html[lang=en] .bn-content-form textarea{direction:ltr;text-align:left}
html[lang=en] .bn-content-form #bn-content{direction:rtl;text-align:right}
html[lang=en] .bn-editor-english input,html[lang=en] .bn-editor-english textarea{direction:ltr;text-align:left}
.bn-editor-english{border:1px solid #bed4ef!important;background:linear-gradient(150deg,#fff,#f6faff);}
.bn-language-hint{background:#f4f8ff;border:1px solid #dae6fa;border-radius:14px;padding:15px;margin-top:16px;color:#23456d}
.bn-language-hint p{margin:8px 0 0;line-height:1.8}
.bn-editor-english .field{margin:13px 0}
@media(max-width:600px){#bn-public-language{bottom:10px;left:9px;padding:7px 10px}}

.bn-logo-move-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0}.bn-logo-move-controls input[type=range]{flex:1;min-width:170px;accent-color:#2879ed}.bn-logo-move-controls input[type=number]{width:95px;padding:9px;border:1px solid #d0ddec;border-radius:9px}.bn-logo-move-controls output{min-width:55px;direction:ltr;text-align:center;font:700 12px Arial;color:#2879ed}.bn-footer-logo-preview{height:75px;display:flex;justify-content:center;align-items:center;overflow:visible;isolation:isolate}.bn-footer-logo-preview img{transition:transform .15s ease}

.bn-video-english-fields{border:1px solid #d6e5fa;background:#f8fbff;border-radius:14px;padding:15px;margin-top:16px}.bn-video-english-fields h4{margin:0 0 13px;color:#2363a8}.bn-video-english-fields input,.bn-video-english-fields textarea{text-align:left;direction:ltr}

/* V3.5.1 · LTR direction correction — explicitly scoped to English only.
   WP templates, public blocks and the dashboard shipped with fixed RTL offsets.
   Setting dir on <html> alone doesn't reverse those fixed properties. */
html[lang="en"][dir="ltr"] body {direction:ltr!important;text-align:left}
/* Dashboard: put the navigation on the left, keep full content visible. */
html[lang="en"][dir="ltr"] body.fmc-logged .app-shell{direction:ltr!important}
html[lang="en"][dir="ltr"] body.fmc-logged .sidebar{
  left:0!important;right:auto!important;direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] body.fmc-logged .app-content{
  margin-left:270px!important;margin-right:0!important;direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] body.fmc-logged .sidebar-collapsed .sidebar{width:83px}
html[lang="en"][dir="ltr"] body.fmc-logged .sidebar-collapsed .app-content{margin-left:83px!important;margin-right:0!important}
html[lang="en"][dir="ltr"] body.fmc-logged .nav-item,
html[lang="en"][dir="ltr"] body.fmc-logged .sidebar-status,
html[lang="en"][dir="ltr"] body.fmc-logged .topbar-heading,
html[lang="en"][dir="ltr"] body.fmc-logged .main-view,
html[lang="en"][dir="ltr"] body.fmc-logged .page-top,
html[lang="en"][dir="ltr"] body.fmc-logged .bn-content-editor-page,
html[lang="en"][dir="ltr"] body.fmc-logged .bn-native-toolbar,
html[lang="en"][dir="ltr"] body.fmc-logged .topbar-label,
html[lang="en"][dir="ltr"] body.fmc-logged .editorial-news-copy{
  direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] body.fmc-logged .topbar-actions,
html[lang="en"][dir="ltr"] body.fmc-logged .topbar-search,
html[lang="en"][dir="ltr"] body.fmc-logged .topbar-search input,
html[lang="en"][dir="ltr"] body.fmc-logged .search-results,
html[lang="en"][dir="ltr"] body.fmc-logged .search-hit{
  direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] body.fmc-logged .topbar-label{justify-content:flex-start!important}
html[lang="en"][dir="ltr"] body.fmc-logged .nav-item.active:before{left:-3px;right:auto}
html[lang="en"][dir="ltr"] body.fmc-logged .nav-item small{margin-left:auto;margin-right:0}
html[lang="en"][dir="ltr"] body.fmc-logged .nav-logout{margin-left:13px;margin-right:0}
html[lang="en"][dir="ltr"] body.fmc-logged .sidebar-status i{margin-right:8px;margin-left:0}
html[lang="en"][dir="ltr"] body.fmc-logged .search-results{right:auto;left:0}
/* Editorial fields: English layout left; preserve RTL for the separately authored Arabic article editor. */
html[lang="en"][dir="ltr"] body.fmc-logged .bn-content-form,
html[lang="en"][dir="ltr"] body.fmc-logged .bn-video-editor-form{direction:ltr!important;text-align:left!important}
html[lang="en"][dir="ltr"] body.fmc-logged .bn-content-form #bn-content{direction:rtl!important;text-align:right!important}
html[lang="en"][dir="ltr"] body.fmc-logged .bn-editor-english input,
html[lang="en"][dir="ltr"] body.fmc-logged .bn-editor-english textarea{direction:ltr!important;text-align:left!important}
/* Dashboard navigation on phones: slide in from LEFT, not off-screen right. */
@media(max-width:900px){
  html[lang="en"][dir="ltr"] body.fmc-logged .app-content,
  html[lang="en"][dir="ltr"] body.fmc-logged .sidebar-collapsed .app-content{margin-left:0!important;margin-right:0!important}
  html[lang="en"][dir="ltr"] body.fmc-logged .sidebar,
  html[lang="en"][dir="ltr"] body.fmc-logged .sidebar-collapsed .sidebar{width:270px!important;transform:translateX(-100%)!important}
  html[lang="en"][dir="ltr"] body.fmc-logged .menu-open .sidebar,
  html[lang="en"][dir="ltr"] body.fmc-logged .menu-open.sidebar-collapsed .sidebar{transform:translateX(0)!important}
}
/* Public header: LTR sequence, text, search, dropdowns and drawers. */
html[lang="en"][dir="ltr"] #fmc-site-header,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-top-inside,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-nav-inside,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-main-navigation,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-links,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-nav-actions,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-drawer,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-services-panel,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-search-pop,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-search-entry input,
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-drawer-nav{
  direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-nav-inside{padding-left:0!important;padding-right:38px!important}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-main-navigation{margin-left:0;margin-right:0}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-nav-actions{margin-left:auto!important;margin-right:0!important}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-links .sub-menu{left:0!important;right:auto!important}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-services-pop{left:auto!important;right:0!important}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-services-panel{direction:ltr!important;text-align:left!important}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-drawer{left:0!important;right:auto!important;box-shadow:18px 0 45px #0003}
html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-search-entry input{text-align:left!important}
@media(max-width:1070px){
 html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-main-navigation{margin-left:auto!important;margin-right:0!important}
 html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-nav-actions{margin-left:0!important}
}
@media(max-width:600px){html[lang="en"][dir="ltr"] #fmc-site-header .fmcsh-nav-inside{padding-right:0!important}}
/* Public home: every section reverses in English, including small article cards. */
html[lang="en"][dir="ltr"] #bn-news-slider,
html[lang="en"][dir="ltr"] #bn-latest-ticker,
html[lang="en"][dir="ltr"] #bn-editorial-grid,
html[lang="en"][dir="ltr"] .bnh-section,
html[lang="en"][dir="ltr"] .bnh-mini,
html[lang="en"][dir="ltr"] .bnh-opinion-card,
html[lang="en"][dir="ltr"] .bnh-popular-row,
html[lang="en"][dir="ltr"] .bnh-popular-body,
html[lang="en"][dir="ltr"] .bnv-home,
html[lang="en"][dir="ltr"] .bnv-archive,
html[lang="en"][dir="ltr"] .bnca-main,
html[lang="en"][dir="ltr"] .bnsp-page,
html[lang="en"][dir="ltr"] .bnsp-article,
html[lang="en"][dir="ltr"] .bnsp-layout,
html[lang="en"][dir="ltr"] .bnsp-max,
html[lang="en"][dir="ltr"] #bnf-footer{
  direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] .bnh-heading:after{left:0!important;right:auto!important}
html[lang="en"][dir="ltr"] .bnh-section .bnh-infographic-card,
html[lang="en"][dir="ltr"] .bnh-section .bnh-infographic-card time,
html[lang="en"][dir="ltr"] .bnh-section .bnh-three-feature,
html[lang="en"][dir="ltr"] .bnh-section .bnh-opinion-copy,
html[lang="en"][dir="ltr"] .bnh-section .bnh-popular-body,
html[lang="en"][dir="ltr"] .bnh-section .bnh-mini-text,
html[lang="en"][dir="ltr"] #bn-editorial-grid .bne-security-text,
html[lang="en"][dir="ltr"] #bn-news-slider .bns-headline h2{
  direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] #bn-news-slider .bns-headline{left:clamp(20px,4vw,80px)!important;right:auto!important}
html[lang="en"][dir="ltr"] #bn-news-slider .bns-thumbnails,
html[lang="en"][dir="ltr"] #bn-news-slider .bns-thumb,
html[lang="en"][dir="ltr"] #bn-latest-ticker .bnt-track,
html[lang="en"][dir="ltr"] #bn-latest-ticker .bnt-group{
 direction:ltr!important;text-align:left!important;
}
/* Category and single: remove hardcoded RTL borders/alignment/positions. */
html[lang="en"][dir="ltr"] .bnca-hero-info,
html[lang="en"][dir="ltr"] .bnca-lead-content,
html[lang="en"][dir="ltr"] .bnca-card-body,
html[lang="en"][dir="ltr"] .bnca-breadcrumbs,
html[lang="en"][dir="ltr"] .bnsp-article-text,
html[lang="en"][dir="ltr"] .bnsp-article-body,
html[lang="en"][dir="ltr"] .bnsp-prose,
html[lang="en"][dir="ltr"] .bnsp-hero-content,
html[lang="en"][dir="ltr"] .bnsp-crumbs{
 direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] .bnca-hero-headline{padding-left:17px;padding-right:0;border-left:3px solid #f33346;border-right:0}
html[lang="en"][dir="ltr"] .bnca-hero-marker{left:max(0px,calc((100vw - 1460px)/2));right:auto}
html[lang="en"][dir="ltr"] .bnca-feed-head:after{left:0;right:auto}
html[lang="en"][dir="ltr"] .bnca-lead-content{padding-right:30px;padding-left:0}
html[lang="en"][dir="ltr"] .bnsp-hero,.bnsp-page[dir="ltr"] .bnsp-hero{direction:ltr}
/* Footer and embedded service dialog. */
html[lang="en"][dir="ltr"] #bnf-footer .bnf-grid,
html[lang="en"][dir="ltr"] #bnf-footer .bnf-catcols,
html[lang="en"][dir="ltr"] .bnf-service-overlay,
html[lang="en"][dir="ltr"] .bnf-service-panel{
 direction:ltr!important;text-align:left!important;
}
html[lang="en"][dir="ltr"] #bnf-footer li{padding-right:0!important;padding-left:13px!important}
html[lang="en"][dir="ltr"] #bnf-footer li:before{left:0!important;right:auto!important}
/* Retain the original right-to-left treatment for genuinely Arabic text embedded in the English version. */
html[lang="en"][dir="ltr"] [lang="ar"]{direction:rtl;text-align:right}

/* v3.5.2: independent English footer logo position; Arabic positioning remains unchanged. */
html[lang="en"][dir="ltr"] #bnf-footer .bnf-logo{
  transform:translateX(var(--bnf-logo-offset-en,-35px))!important;
}
@media(max-width:900px){
 html[lang="en"][dir="ltr"] #bnf-footer .bnf-logo{transform:translateX(clamp(-70px,var(--bnf-logo-offset-en,-35px),70px))!important}
}
