/* AJR: scoped layout repairs for the existing FlowNews design. */
.flownews-header-type3 .others-element-header {height:auto;min-height:120px;}
.flownews-header-type3 .others-element-header .article-info-type3 {padding:12px;height:auto;}
.flownews-header-type3 .others-element-header .article-info-top {height:auto;overflow:visible;}
.flownews-header-type3 .others-element-header .article-title,
.flownews-header-type3 .others-element-header .article-title a {white-space:normal;overflow:visible;text-overflow:clip;width:100%;line-height:1.5;overflow-wrap:anywhere;}
.flownews-header-type3 .first-element-header .article-title a {font-size:clamp(24px,3vw,42px);line-height:1.35;overflow-wrap:anywhere;}
.home .flownews-vc-element-posts-article-container .first-element-posts .article-image img {width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.home .flownews-vc-element-posts-article-container .article-title,
.home .flownews-vc-element-posts-article-container .article-title a {line-height:1.5;overflow-wrap:anywhere;}
.home .flownews-vc-element-posts-article-container .article-excerpt {line-height:1.8;}
.flownews-logo-center img {max-width:min(100%,440px);max-height:120px;width:auto;height:auto;}
.flownews-header-wrap-container a:focus-visible,
.flownews-vc-element-posts a:focus-visible {outline:2px solid #2176bd;outline-offset:3px;}
@media(max-width:799px){
 .flownews-header-type3 .others-element-header {display:flex;align-items:flex-start;gap:12px;margin-bottom:12px!important;}
 .flownews-header-type3 .others-element-header > a {flex:0 0 32%;max-width:32%;float:none;}
 .flownews-header-type3 .others-element-header img {width:100%;max-height:120px;object-fit:cover;}
 .flownews-header-type3 .others-element-header .article-info-type3 {width:auto;flex:1;min-width:0;padding:0 8px;}
 .flownews-header-type3 .others-element-header .article-title a {font-size:17px;}
 .flownews-header-type3 .first-element-header .article-title a {font-size:24px;line-height:1.5;}
 .home .flownews-vc-element-posts-article-container .item-posts.col-xs-6 {width:100%;float:none;}
 .home .flownews-vc-element-posts-article-container .article-title a {font-size:23px;}
 .header-mobile .flownews-logo img {max-width:100%;height:auto;max-height:70px;object-fit:contain;}
}

@media(min-width:800px){.flownews-header-type3 .others-element-header > a {display:block;float:left;width:40%;}.flownews-header-type3 .others-element-header > a img {width:100%;top:0;transform:none;aspect-ratio:4/3;object-fit:cover;}}

/* Compact main masthead; preserve the full logo's aspect ratio. */
.flownews-header-wrap .flownews-header-middle {padding:16px 0!important;}
.flownews-header-wrap .flownews-header-middle .flownews-logo-center {height:auto!important;line-height:normal!important;margin:0!important;}
.flownews-header-wrap .flownews-header-middle .flownews-logo-center > a {display:inline-block;max-width:100%;line-height:0;}
.flownews-header-wrap .flownews-header-middle .flownews-logo-center img {display:block;width:360px!important;max-width:100%!important;height:auto!important;max-height:110px!important;object-fit:contain;}

/* Small story cards below the hero: no fixed heights or clipped Arabic. */
.flownews-vc-element-header.flownews-header-type3 .others-element-header {display:flex;align-items:flex-start;height:auto!important;min-height:0;overflow:visible;padding:12px 8px;gap:12px;}
.flownews-vc-element-header.flownews-header-type3 .others-element-header > a {float:none;flex:0 0 30%;width:30%;max-width:30%;}
.flownews-vc-element-header.flownews-header-type3 .others-element-header > a img {display:block;width:100%;height:auto;top:auto;transform:none;aspect-ratio:4/3;object-fit:cover;}
.flownews-vc-element-header.flownews-header-type3 .others-element-header .article-info-type3 {float:none;flex:1;min-width:0;width:auto;height:auto;padding:0;}
.flownews-vc-element-header.flownews-header-type3 .others-element-header .article-info-type3 .article-info-top {height:auto;max-height:none;overflow:visible;}
.flownews-vc-element-header.flownews-header-type3 .others-element-header .article-title,
.flownews-vc-element-header.flownews-header-type3 .others-element-header .article-title a {display:block;width:100%;height:auto;max-height:none;white-space:normal!important;overflow:visible!important;text-overflow:clip;line-height:1.65;font-size:18px;word-break:normal;overflow-wrap:break-word;-webkit-line-clamp:unset;}
.flownews-vc-element-header.flownews-header-type3 .others-element-header .article-category a {white-space:normal;line-height:1.6;}
@media(max-width:799px){
 .flownews-header-wrap .flownews-header-middle .flownews-logo-center img {width:280px!important;max-height:85px!important;}
 .flownews-vc-element-header.flownews-header-type3 .others-element-header {width:100%;max-width:100%;margin:0 0 12px!important;}
 .flownews-vc-element-header.flownews-header-type3 .others-element-header .article-title a {font-size:17px;}
}

/* Logical Arabic navigation order, shared by normal and sticky menus. */
html[dir="rtl"] .menu-desktop > ul.flownews-menu {display:flex;flex-direction:row;direction:rtl;justify-content:flex-start;flex-wrap:wrap;}
html[dir="rtl"] .menu-desktop > ul.flownews-menu > li {float:none;}
/* Footer: two balanced columns, readable content and grouped links. */
.flownews-footer-wrap .flownews-footer-top {padding:40px 0;}
.flownews-footer-wrap .flownews-footer-top > .flownews-wrap-container {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;direction:rtl;}
.flownews-footer-wrap .footer-widget {float:none;width:auto!important;min-width:0;padding:0 16px;}
.flownews-footer-wrap .footer-widget:empty,.flownews-footer-top > .flownews-wrap-container > .flownews-clear {display:none;}
.flownews-footer-wrap .widget {margin-bottom:22px;}
.flownews-footer-wrap .flownews-widget-contact-text p,.flownews-footer-wrap .flownews-widget-contact-address {color:#ddd!important;font-size:16px;line-height:1.9;text-align:right;}
.flownews-footer-wrap h1,.flownews-footer-wrap h3,.flownews-footer-wrap h4 {color:#fff!important;font-size:21px!important;line-height:1.5;margin:0 0 16px;}
.flownews-footer-wrap .flownews-widget-contact-image img {width:200px;max-width:100%;height:auto;}
.flownews-footer-wrap .flownews-widget-contact-address-title {margin-top:18px;padding-top:18px;border-top:1px solid #494949;}
.flownews-footer-wrap .wp-block-gallery {display:flex;gap:12px!important;align-items:center;}
.flownews-footer-wrap .wp-block-gallery .wp-block-image {width:calc(33.333% - 8px)!important;flex-grow:0!important;margin:0!important;}
.flownews-footer-wrap .wp-block-gallery .wp-block-image img {width:100%!important;height:90px!important;object-fit:contain!important;background:#fff;padding:6px;}
.flownews-footer-wrap .widget:has(> blockquote:empty) {display:none;}
.flownews-footer-wrap .ajr-footer-links ul {list-style:none;margin:0;padding:0;}
.flownews-footer-wrap .ajr-footer-links > ul {display:grid;grid-template-columns:1fr 1fr;gap:22px 24px;}
.flownews-footer-wrap .ajr-footer-links li {margin:0;padding:0;border:0;float:none;}
.flownews-footer-wrap .ajr-footer-links a {display:block;color:#eee;font-size:16px;line-height:1.7;padding:5px 0;text-align:right;}
.flownews-footer-wrap .ajr-footer-links > ul > li > a {font-weight:700;color:#fff;border-bottom:1px solid #494949;margin-bottom:6px;padding-bottom:9px;}
.flownews-footer-wrap .ajr-footer-links ul ul a {color:#ccc;font-size:15px;}
.flownews-footer-wrap .ajr-footer-links a:hover {color:#7dc4ff;}
.flownews-footer-wrap a:focus-visible {outline:2px solid #7dc4ff;outline-offset:3px;}
.flownews-footer-wrap .flownews-footer-social a[href="#"] {display:none;}
.flownews-footer-wrap .flownews-footer-bottom .flownews-wrap-container {display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;}
.flownews-footer-wrap .flownews-footer-bottom .col-xs-4 {width:auto;float:none;}
.flownews-footer-wrap .flownews-footer-bottom .col-xs-4:has(> .flownews-footer-social),.flownews-footer-wrap .flownews-footer-bottom .col-xs-4:has(> ul:empty) {margin:0;padding:0;}
@media(max-width:799px){
 .flownews-footer-wrap .flownews-footer-top > .flownews-wrap-container {grid-template-columns:1fr;gap:24px;}
 .flownews-footer-wrap .flownews-footer-top {padding:28px 0;}
 .flownews-footer-wrap .ajr-footer-links > ul {gap:18px;}
}
@media(max-width:380px){.flownews-footer-wrap .ajr-footer-links > ul {grid-template-columns:1fr;}}

/* Reset legacy column constraints inside the new footer grid. */
.flownews-footer-wrap .flownews-footer-top > .flownews-wrap-container {width:calc(100% - 48px)!important;max-width:1200px!important;margin:0 auto!important;box-sizing:border-box;}
.flownews-footer-wrap .flownews-footer-top .flownews-wrap-container > .footer-widget {width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;margin:0!important;padding:0!important;box-sizing:border-box;}
.flownews-footer-wrap .footer-widget .widget,
.flownews-footer-wrap .flownews-widget-contact-text,
.flownews-footer-wrap .flownews-widget-contact-text p {width:100%!important;max-width:none!important;float:none!important;box-sizing:border-box;white-space:normal;word-break:normal;overflow-wrap:break-word;}
/* Whitespace-only empty sidebar also matches :empty in the rendered HTML. */
.flownews-footer-wrap .footer-widget:not(:has(.widget)) {display:none!important;}

/* Both desktop dropdowns are compact vertical lists. */
.menu-desktop ul.flownews-menu > li.menu-item-has-children {position:relative!important;}
.menu-desktop ul.flownews-menu > li > ul.submenu {width:290px!important;min-width:0!important;max-width:calc(100vw - 32px)!important;right:0!important;left:auto!important;top:100%!important;display:block;columns:auto;padding:6px 0!important;}
.menu-desktop ul.flownews-menu > li > ul.submenu > li {display:block!important;float:none!important;width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box;}
.menu-desktop ul.flownews-menu > li > ul.submenu > li > a {display:block!important;width:100%!important;white-space:normal!important;text-align:right;padding:12px 16px!important;line-height:1.6;box-sizing:border-box;}
.menu-desktop li:focus-within > ul.submenu {visibility:visible;opacity:1;}

/* Podcast posters retain their contents within equal 16:9 frames. */
.flownews-posts-carousel-type2 .item-posts.first-element-header {height:auto!important;padding:0!important;overflow:hidden;}
.flownews-posts-carousel-type2 .item-posts.first-element-header > a:first-child {display:block;width:100%;aspect-ratio:16/9;background:#151515;}
.flownews-posts-carousel-type2 .item-posts.first-element-header > a:first-child img {display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain;position:static!important;transform:none!important;}
.flownews-posts-carousel-type2 .item-posts.first-element-header .article-info {position:relative!important;inset:auto!important;transform:none!important;width:100%!important;box-sizing:border-box;padding:18px!important;background:#202020;}
.flownews-posts-carousel-type2 .item-posts.first-element-header .article-title a {font-size:20px!important;line-height:1.65!important;white-space:normal;}
.flownews-posts-carousel-type2 .item-posts.first-element-header > .header-pattern {display:none!important;}
@media(max-width:799px){.flownews-footer-wrap .flownews-footer-top > .flownews-wrap-container {width:calc(100% - 32px)!important;}.flownews-posts-carousel-type2 .item-posts.first-element-header .article-title a {font-size:18px!important;}}
.menu-desktop ul.flownews-menu > li > ul.submenu {display:none;position:absolute;z-index:9999;background:#fff;}
.menu-desktop ul.flownews-menu > li:hover > ul.submenu,
.menu-desktop ul.flownews-menu > li:focus-within > ul.submenu {display:block;}

/* Footer directory: isolated from theme navigation/widget list styles. */
.flownews-footer-wrap .footer-widget .ajr-footer-links {width:100%;border:0;direction:rtl;}
.flownews-footer-wrap .footer-widget .ajr-footer-links ul,
.flownews-footer-wrap .footer-widget .ajr-footer-links li {list-style:none!important;float:none!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;text-align:right!important;}
.flownews-footer-wrap .footer-widget .ajr-footer-links > ul {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 32px;align-items:start;}
.flownews-footer-wrap .footer-widget .ajr-footer-links > ul > li {display:block!important;min-width:0;}
.flownews-footer-wrap .footer-widget .ajr-footer-links ul ul {display:flex!important;flex-direction:column!important;gap:4px;position:static!important;visibility:visible!important;opacity:1!important;}
.flownews-footer-wrap .footer-widget .ajr-footer-links ul ul li {display:block!important;}
.flownews-footer-wrap .footer-widget .ajr-footer-links a {display:block!important;float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:7px 0!important;border:0!important;background:none!important;line-height:1.7!important;white-space:normal!important;text-align:right!important;text-decoration:none;}
.flownews-footer-wrap .footer-widget .ajr-footer-links > ul > li > a {font-weight:700;font-size:17px;color:#fff;margin-bottom:10px!important;padding-bottom:10px!important;border-bottom:1px solid #484848!important;}
.flownews-footer-wrap .footer-widget .ajr-footer-links ul ul a {font-size:15px;color:#ccc;font-weight:400;}
.flownews-footer-wrap .footer-widget .ajr-footer-links a:hover {color:#7dc4ff;}
.flownews-footer-wrap .footer-widget .ajr-footer-links li::before,
.flownews-footer-wrap .footer-widget .ajr-footer-links li::after,
.flownews-footer-wrap .footer-widget .ajr-footer-links a::before,
.flownews-footer-wrap .footer-widget .ajr-footer-links a::after {content:none!important;display:none!important;}
@media(max-width:480px){.flownews-footer-wrap .footer-widget .ajr-footer-links > ul {grid-template-columns:1fr;gap:20px;}}

/* Photobox controls must not disappear when the pointer is idle. */
#pbOverlay {z-index:2147483000!important;}
#pbOverlay #pbCloseBtn {position:fixed!important;top:16px!important;right:16px!important;left:auto!important;display:block!important;opacity:1!important;visibility:visible!important;transform:none!important;padding:0!important;width:48px!important;height:48px!important;border:2px solid #fff;border-radius:50%;background:#111!important;color:#fff!important;z-index:2147483001!important;cursor:pointer;}
#pbOverlay #pbCloseBtn::before {content:'×'!important;display:block!important;width:44px!important;height:44px!important;padding:0!important;border-radius:50%!important;background:transparent!important;font:36px/42px Arial,sans-serif!important;opacity:1!important;color:#fff!important;text-align:center;}
#pbOverlay #pbCloseBtn:focus-visible {outline:3px solid #70c5ff;outline-offset:4px;}
#pbOverlay .wrapper img {max-width:90vw!important;max-height:calc(100vh - 180px)!important;object-fit:contain;}
@media(max-width:600px){#pbOverlay #pbCloseBtn {top:10px!important;right:10px!important;}#pbOverlay .wrapper img {max-width:94vw!important;}}

/* Consistent archive cards and a purposeful sidebar. */
.ajr-sidebar-section {margin:0 0 28px;padding:0;direction:rtl;}
.ajr-sidebar-section h3 {font-size:21px;line-height:1.5;padding:10px 0;border-bottom:2px solid #2176bd;}
.ajr-sidebar-section ul {list-style:none;padding:0;margin:0;}
.ajr-sidebar-section li {padding:10px 0;border-bottom:1px solid #e5e5e5;}
.ajr-sidebar-section a {font-size:16px;line-height:1.8;overflow-wrap:break-word;}
.ajr-sidebar-section input[type="search"],.ajr-sidebar-section input[name="s"] {max-width:100%;box-sizing:border-box;}
.archive .flownews-element-posts .article-image img {width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.archive .flownews-element-posts .article-title a {font-size:clamp(22px,2.2vw,30px);line-height:1.6;overflow-wrap:break-word;}
@media(max-width:799px){
 .flownews-page.flownews-container > .flownews-content,.flownews-page.flownews-container > .flownews-sidebar {float:none!important;width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box;}
 .flownews-page .flownews-element-posts .item-posts {width:100%!important;max-width:100%!important;}
 .flownews-page .flownews-sidebar {padding:24px 16px!important;}
}

/* Arabic homepage section labels: keep the badge at the reading start. */
html[dir="rtl"] body.home .flownews-vc-element-posts-title-box {
  display: flex;
  flex-direction: row;
  direction: rtl;
  justify-content: flex-start;
  text-align: right;
}
html[dir="rtl"] body.home .flownews-vc-element-posts-title-box > h2 {
  float: none;
  margin-left: 0;
  margin-right: 0;
  text-align: right;
}

/* Visible manual controls outside the carousel clipping area. */
.ajr-carousel-controls {display:flex;direction:rtl;justify-content:flex-start;gap:12px;padding:0 0 18px;}
.ajr-carousel-controls button {appearance:none;background:#2175bc;color:#fff;border:1px solid #fff;border-radius:4px;padding:10px 20px;min-height:44px;font:inherit;font-weight:700;cursor:pointer;}
.ajr-carousel-controls button:hover {background:#15548a;}
.ajr-carousel-controls button:focus-visible {outline:3px solid #ffda44;outline-offset:3px;}

/* Single article RTL: natural height prevents clipped Arabic headings. */
html[dir="rtl"] body.single .flownews-posts-content-wrap article.item-header {height:auto!important;min-height:420px;display:flex;align-items:flex-end;overflow:visible;padding:48px 24px;box-sizing:border-box;}
html[dir="rtl"] body.single .flownews-posts-content-wrap .article-info {position:relative!important;inset:auto!important;transform:none!important;float:none!important;width:100%!important;max-width:100%!important;margin:0!important;direction:rtl;text-align:right;}
html[dir="rtl"] body.single .flownews-posts-content-wrap .article-title {float:none!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;direction:rtl;text-align:right!important;font-size:clamp(26px,3.4vw,48px)!important;line-height:1.6!important;overflow-wrap:anywhere;}
html[dir="rtl"] body.single .navigation-post {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;width:100%!important;max-width:100%;direction:rtl;box-sizing:border-box;}
html[dir="rtl"] body.single .navigation-post > .clearfix {display:none;}
html[dir="rtl"] body.single .navigation-post > div:not(.clearfix) {display:flex!important;align-items:center;gap:12px;float:none!important;width:auto!important;min-width:0;position:static!important;margin:0!important;padding:12px!important;box-sizing:border-box;}
html[dir="rtl"] body.single .navigation-post a {position:static!important;float:none!important;display:block!important;width:auto!important;min-width:0;flex:1;transform:none!important;margin:0!important;text-align:right!important;}
html[dir="rtl"] body.single .navigation-post img {position:static!important;float:none!important;width:60px;height:60px;object-fit:cover;flex:0 0 60px;margin:0!important;}
html[dir="rtl"] body.single .navigation-post .name-post {display:block;white-space:normal!important;overflow:visible!important;max-height:none!important;line-height:1.7;overflow-wrap:anywhere;}
html[dir="rtl"] body.single #comments {direction:rtl;text-align:right;}
html[dir="rtl"] body.single #comments .title-box {text-align:right;}
html[dir="rtl"] body.single .ajr-useful-sidebar a {color:#216ba5!important;}
@media(max-width:600px){html[dir="rtl"] body.single .navigation-post {grid-template-columns:minmax(0,1fr);}html[dir="rtl"] body.single .flownews-posts-content-wrap article.item-header {min-height:300px;padding:28px 16px;}}
html[dir="rtl"] body.single .navigation-post a {height:auto!important;padding:0!important;box-sizing:border-box;}
html[dir="rtl"] body.single .navigation-post > div:not(.clearfix) {height:auto!important;}
html[dir="rtl"] body.single .navigation-post .name-post {padding:0!important;}
html[dir="rtl"] body.single .ajr-sidebar-section a {color:#216ba5!important;}
html[dir="rtl"] body.single .flownews-posts-content-wrap .article-info-top {width:100%!important;overflow:visible!important;height:auto!important;}
/* Let the navigation wrapper grow with multiline titles, before author box. */
html[dir="rtl"] body.single .navigation-post {height:auto!important;min-height:0;max-height:none!important;clear:both;margin-bottom:48px!important;align-items:stretch;}
