/* V5.8 institutional refinements: z-index hierarchy, RTL, footer, video and programs. */
/* Fix the sticky dock ownership at the body level: remains pinned even while footer is visible. */
body.home .saba-v58-stream-dock{position:sticky!important;top:var(--saba-v57-header-bottom,0px)!important;z-index:4500!important;overflow:visible;}
body .saba-v5-header{z-index:5000!important;overflow:visible!important;}
body .saba-v5-header .saba-v5-nav-wrap,body .saba-v5-header .saba-v5-nav-inner,body .saba-v5-header .primary-navigation{overflow:visible;}
body .saba-v5-header .primary-navigation{z-index:6200!important;}
body .saba-v5-header .primary-navigation ul ul,body .saba-v5-header .sub-menu{position:absolute;z-index:6500!important;background:#fff!important;box-shadow:0 16px 38px rgba(6,34,62,.22);border:1px solid #d7e5f1;border-radius:14px;}
body .saba-v5-header .primary-navigation ul li{position:relative;}
body .saba-v5-header .saba-v5-search form{z-index:6600!important;}
/* Native Arabic reading order throughout the three editorial grids. */
body.home .saba-v56-editorial-layout{direction:rtl!important;grid-template-areas:"lead lead lead side" "bottom bottom bottom side"!important;}
body.home .saba-v56-editorial-lead{direction:rtl!important;grid-template-areas:"description visual"!important;}
body.home .saba-v56-editorial-band .mag-heading h2{text-align:center!important;}
body.home .saba-v56-editorial-band .mag-heading{position:relative;justify-content:center!important;}
body.home .saba-v56-editorial-band .mag-heading .mag-more{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);}
body.home .saba-v56-editorial-lead__body{text-align:right!important;direction:rtl!important;}
/* Hide Shorts captions visually, keep meaningful aria-labels on buttons. */
body.home .broadcast-shorts .broadcast-short h3{display:none!important;}
body.home .broadcast-shorts .broadcast-short{padding-bottom:0;}
/* White transparent brand asset supplied by Saba, no boxed background. */
.saba-v58-footer-logo a{display:inline-flex!important;align-items:center;justify-content:center;background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;}
.saba-v58-footer-logo img{width:auto;max-width:148px;max-height:140px;object-fit:contain;display:block;}
.saba-v58-footer-columns{direction:rtl;text-align:right;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(22px,3vw,54px);}
.saba-v58-footer-columns nav{min-width:0;}
.saba-v58-footer-columns .saba-v58-footer-pending{color:#8ca9c0;font-size:.89rem;cursor:default;}
/* Programs: premium layered image, calm glow, richer thumbnail focus and CTA. */
body.home .saba-v5-programs{background:linear-gradient(180deg,#f9fcff,#fff 45%,#f6faff);}
body.home .saba-v5-program-visual{position:relative;box-shadow:0 24px 48px rgba(4,39,74,.16);border:1px solid rgba(18,68,108,.12);}
body.home .saba-v5-program-visual:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(5,30,57,.21),transparent 52%);}
body.home .saba-v5-program-thumb.is-active{border-color:#f18a32;box-shadow:0 0 0 2px rgba(241,138,50,.14),0 12px 30px rgba(7,52,90,.17);}
body.home .saba-v5-program-copy>a{display:inline-flex;padding:10px 18px;border-radius:100px;background:#0c426f;color:#fff;transition:transform .2s,background .2s;}
body.home .saba-v5-program-copy>a:hover{transform:translateY(-2px);background:#e47a25;color:#fff;}
/* Latest verified nonshort videos, keep images only in the cards themselves. */
body.home .saba-v58-regular-videos{padding:54px 0 62px;background:#f1f7fc;color:#0c2b4b;}
body.home .saba-v58-regular-videos .mag-heading{border-bottom:1px solid #d8e6f0;padding-bottom:14px;margin-bottom:24px;}
body.home .saba-v58-regular-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
body.home .saba-v58-regular-card{display:block;min-width:0;border:0;padding:0;text-align:right;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(4,39,74,.08);cursor:pointer;color:#0c2f52;transition:transform .25s,box-shadow .25s;}
body.home .saba-v58-regular-card:hover{transform:translateY(-4px);box-shadow:0 15px 34px rgba(4,39,74,.14);}
body.home .saba-v58-regular-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#0c2643;}
body.home .saba-v58-regular-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
body.home .saba-v58-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;background:rgba(237,119,29,.95);color:#fff;display:grid;place-items:center;}
body.home .saba-v58-regular-title{display:block;line-height:1.55;font-weight:800;padding:12px 15px;}
.saba-v58-player-dialog{border:0;background:#071e34;color:#fff;border-radius:16px;padding:44px 16px 16px;max-width:min(920px,96vw);width:100%;box-shadow:0 20px 60px #0008;}
.saba-v58-player-dialog::backdrop{background:rgba(2,10,20,.82);}
.saba-v58-player-dialog>button{position:absolute;top:6px;inset-inline-end:12px;background:transparent;color:#fff;border:0;font-size:2rem;cursor:pointer;}
.saba-v58-player-dialog iframe{display:block;width:100%;aspect-ratio:16/9;border:0;}
@media(max-width:1100px){body.home .saba-v56-editorial-layout{grid-template-areas:"lead lead" "bottom bottom" "side side"!important;}.saba-v58-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:850px){body .saba-v5-header .primary-navigation.is-open{z-index:6500!important;position:absolute!important;}.saba-v58-footer-columns{gap:24px;}}
@media(max-width:700px){body.home .saba-v56-editorial-layout{display:flex!important;flex-direction:column!important;}body.home .saba-v56-editorial-lead{display:flex!important;flex-direction:column!important;}body.home .saba-v56-editorial-band .mag-heading .mag-more{position:static;transform:none;}body.home .saba-v58-regular-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px){body.home .saba-v58-regular-grid{grid-template-columns:1fr;}.saba-v58-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;}}
@media(prefers-reduced-motion:reduce){body.home .saba-v58-regular-card,body.home .saba-v5-program-copy>a{transition:none!important;}}

/* V5.9: centered footer tagline and stable crossfade instead of FLIP-cloned logo. */
.saba-v58-footer .saba-v5-footer-brand > p {width:100%;text-align:center!important;margin-inline:auto;}
@media(min-width:851px){
 .saba-v52-masthead__brand{transition:opacity .24s ease,transform .32s cubic-bezier(.2,.75,.2,1);transform-origin:center;}
 .saba-v5-nav-brand{transition:opacity .32s ease,width .32s ease,flex-basis .32s ease,transform .32s ease!important;transform:scale(.86);transform-origin:center;}
 .saba-v5-header.is-saba-compact .saba-v5-nav-brand{transform:scale(1);}
 .saba-v5-header.is-saba-compact .saba-v52-masthead__brand{opacity:0;transform:scale(.83);}
}
.saba-v59-video-empty{display:flex;align-items:center;gap:25px;flex-wrap:wrap;padding:25px 30px;border:1px solid #cbddec;border-radius:18px;background:linear-gradient(135deg,#fff,#eaf3fb);color:#0b345d}
.saba-v59-video-empty__mark{height:75px;width:75px;flex:0 0 75px;background:#0a365b;color:#fff;border-radius:19px;display:grid;place-items:center;font-size:2rem}
.saba-v59-video-empty strong{display:block;font-size:1.25rem;margin-bottom:5px}
.saba-v59-video-empty p{margin:0;color:#54718b}
.saba-v59-admin-link{display:inline-block;margin-top:8px;text-decoration:underline;color:#bd5a0c}
.saba-v59-videos-link{display:inline-block;margin-inline-start:auto;padding:11px 18px;background:#e97823;color:white!important;border-radius:999px;text-decoration:none;font-weight:800}
@media(max-width:650px){.saba-v59-video-empty{padding:18px;gap:14px}.saba-v59-video-empty__mark{width:52px;height:52px;flex-basis:52px}.saba-v59-videos-link{margin-inline-start:0}}
@media(prefers-reduced-motion:reduce){.saba-v52-masthead__brand,.saba-v5-nav-brand{transition:none!important}}
