/* =========================================================
   هوية الهيدر والفوتر — Alsdad Press v0.2.1
   ========================================================= */
.alsdad-press-child #theme-header{
	--main-nav-background:var(--alsdad-primary);
	--main-nav-primary-color:var(--alsdad-accent);
	--main-nav-contrast-primary-color:var(--alsdad-primary-deep);
	--main-nav-text-color:#fff;
}

.alsdad-press-child #main-nav:not(.fixed-nav){background:var(--alsdad-primary)!important}
.alsdad-press-child #top-nav{background:var(--alsdad-primary-deep)!important;border-color:rgba(255,255,255,.08)!important}
.alsdad-press-child #top-nav a:not(:hover),
.alsdad-press-child #top-nav .components>li>a{color:#d6e0e9!important}

@media(min-width:992px){
	.alsdad-compact-header-enabled #theme-header .header-container{max-width:1440px!important;padding-right:24px;padding-left:24px}
	.alsdad-compact-header-enabled #theme-header .logo-row{display:block!important;height:auto!important;min-height:126px;margin:0!important}
	.alsdad-compact-header-enabled #theme-header .logo-wrapper{display:flex!important;direction:rtl;align-items:center;width:100%!important;min-height:126px;margin:0!important}
	.alsdad-compact-header-enabled #theme-header .logo-container{display:block!important;float:none!important;width:28%!important;flex:0 0 28%;padding:0!important}
	.alsdad-compact-header-enabled #theme-header #logo{float:none!important;text-align:right!important;margin:13px 0!important;line-height:1}
	.alsdad-compact-header-enabled #theme-header #logo img{width:auto!important;max-height:96px!important}
	.alsdad-compact-header-enabled #theme-header .stream-item-top-wrapper{display:block;float:none!important;width:auto!important;flex:1 1 auto;margin:0!important;padding:0 24px!important}
	.alsdad-compact-header-enabled #theme-header .stream-item-top{margin:0!important}
	.alsdad-compact-header-enabled #theme-header #main-nav:not(.fixed-nav){line-height:50px!important}
	.alsdad-compact-header-enabled.alsdad-header-ad-disabled #theme-header .logo-row,
	.alsdad-compact-header-enabled.alsdad-header-ad-disabled #theme-header .logo-wrapper{height:126px!important;min-height:126px!important;max-height:126px!important}
	.alsdad-compact-header-enabled.alsdad-header-ad-disabled #theme-header .logo-wrapper{justify-content:flex-start}
	.alsdad-compact-header-enabled.alsdad-header-ad-disabled #theme-header .logo-container{width:100%!important;flex-basis:100%}
}

/* إخفاء حاوية إعلان Jannah نفسها يمنع بقاء ارتفاع الإعلان عندما لا يعرض محتوى. */
.alsdad-header-ad-disabled #theme-header .stream-item-top-wrapper{display:none!important}

/* فوتر Jannah التجريبي وإعلانه العلوي يُستبدلان بفوتر السداد. */
.alsdad-custom-footer-enabled #footer,
.alsdad-custom-footer-enabled .stream-item-above-footer{display:none!important}

.alsdad-site-footer{direction:rtl;position:relative;z-index:120;background:var(--alsdad-primary-deep);color:#dce5ed;font-family:"Tajawal","Noto Sans Arabic",Tahoma,Arial,sans-serif}
.alsdad-footer-accent{height:4px;background:linear-gradient(90deg,var(--alsdad-primary),var(--alsdad-accent),var(--alsdad-urgent),var(--alsdad-accent),var(--alsdad-primary))}
.alsdad-footer-shell{width:min(1440px,calc(100% - 48px));margin-inline:auto;padding:46px 0 20px}
.alsdad-footer-brand{display:flex;align-items:center;gap:18px;padding-bottom:28px;margin-bottom:30px;border-bottom:1px solid rgba(255,255,255,.1)}
.alsdad-footer-brand>div:last-child{display:flex;flex-direction:column;gap:4px}
.alsdad-footer-brand strong{font-size:24px;color:#fff;font-weight:900}
.alsdad-footer-brand span{font-size:12px;color:#91a6b7}
.alsdad-footer-target{position:relative;width:54px;height:54px;border:2px solid var(--alsdad-accent);border-radius:50%;box-shadow:0 0 0 7px rgba(199,154,69,.08)}
.alsdad-footer-target:before,.alsdad-footer-target:after{content:"";position:absolute;background:var(--alsdad-accent)}
.alsdad-footer-target:before{width:68px;height:1px;right:-9px;top:25px}
.alsdad-footer-target:after{height:68px;width:1px;right:25px;top:-9px}
.alsdad-footer-target i{position:absolute;width:9px;height:9px;background:#fff;border-radius:50%;right:20px;top:20px;z-index:2}
.alsdad-footer-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(180px,.7fr) minmax(0,1.15fr);gap:54px;padding-bottom:36px}
.alsdad-footer-grid h2{font-size:15px;color:#fff;margin:0 0 18px;padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.1);position:relative}
.alsdad-footer-grid h2:after{content:"";position:absolute;right:0;bottom:-1px;width:42px;height:2px;background:var(--alsdad-accent)}
.alsdad-footer-about p{font-size:13px;line-height:2;color:#aebdca;max-width:520px;margin:0 0 14px}
.alsdad-footer-email{color:var(--alsdad-accent-soft)!important;font-size:12px}
.alsdad-footer-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:0;padding:0;list-style:none}
.alsdad-footer-categories a{display:flex;align-items:center;gap:7px;color:#dce5ed!important;font-size:12px}
.alsdad-footer-categories a:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--alsdad-accent)}
.alsdad-footer-latest ul{list-style:none;margin:0;padding:0}
.alsdad-footer-latest li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.alsdad-footer-latest li:last-child{margin-bottom:0}
.alsdad-footer-latest time{font-size:10px;font-weight:800;color:var(--alsdad-accent);font-variant-numeric:tabular-nums}
.alsdad-footer-latest a{font-size:12px;line-height:1.65;color:#fff!important}
.alsdad-footer-latest a:hover,.alsdad-footer-categories a:hover{color:var(--alsdad-accent-soft)!important}
.alsdad-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid rgba(255,255,255,.1);padding-top:18px}
.alsdad-footer-bottom p{margin:0;color:#8297a9;font-size:11px}
.alsdad-footer-social{display:flex;align-items:center;gap:7px}
.alsdad-footer-social a{display:grid;place-items:center;min-width:31px;height:31px;padding:0 7px;border:1px solid rgba(255,255,255,.15);border-radius:50%;color:#fff!important;font-size:10px;font-weight:800}
.alsdad-footer-social a:hover{background:var(--alsdad-accent);border-color:var(--alsdad-accent);color:var(--alsdad-primary-deep)!important}

@media(max-width:900px){.alsdad-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px}.alsdad-footer-latest{grid-column:1/-1}.alsdad-footer-shell{width:calc(100% - 34px)}}
@media(max-width:600px){.alsdad-footer-shell{width:calc(100% - 24px);padding-top:34px}.alsdad-footer-brand strong{font-size:19px}.alsdad-footer-grid{grid-template-columns:1fr;gap:28px}.alsdad-footer-latest{grid-column:auto}.alsdad-footer-bottom{align-items:flex-start;flex-direction:column}.alsdad-footer-target{width:46px;height:46px}.alsdad-footer-target:before{width:58px;top:21px}.alsdad-footer-target:after{height:58px;right:21px}.alsdad-footer-target i{right:16px;top:16px}}
