/* Atheer News Fix — تحسينات مظهر قالب Newsup */
:root{
  --anf-navy:#0e1736;
  --anf-navy-2:#1b2654;
  --anf-red:#c41e3a;
  --anf-bg:#f3f5f9;
  --anf-card:#ffffff;
  --anf-text:#1d2433;
  --anf-muted:#6b7385;
  --anf-radius:12px;
  --anf-shadow:0 2px 10px rgba(14,23,54,.07);
}

/* الخط العربي */
body, h1,h2,h3,h4,h5,h6, p, a, li, input, button, .navbar, .mg-blog-meta,
.mg-latest-news, .mg-head-detail, .newsup-categories{
  font-family:'Tajawal', 'Segoe UI', Tahoma, sans-serif !important;
}
body{ background:var(--anf-bg) !important; color:var(--anf-text); }
p{ line-height:1.9; }

/* ===== الترويسة: كان الشعار يملأ الشاشة كاملة ===== */
.mg-nav-widget-area-back{ background-size:cover !important; background-position:center !important; }
.mg-nav-widget-area-back .inner{ padding:18px 0 !important; }
.mg-nav-widget-area{ min-height:0 !important; }
.navbar-brand{ display:inline-flex !important; align-items:center; gap:14px; height:auto !important; width:auto !important; padding:0 !important; }
.navbar-brand .custom-logo, img.custom-logo{
  max-height:110px !important; width:auto !important; height:auto !important;
  border-radius:50%; border:3px solid rgba(255,255,255,.85); box-shadow:0 4px 18px rgba(0,0,0,.35);
  object-fit:cover; aspect-ratio:1/1;
}
.site-branding-text .site-title a, .site-title a{ color:#fff !important; font-weight:800 !important; font-size:30px !important; }
.site-description{ color:rgba(255,255,255,.8) !important; }
@media (max-width:767px){
  .navbar-brand .custom-logo, img.custom-logo{ max-height:72px !important; }
  .site-title a{ font-size:22px !important; }
}

/* القائمة والشريط الإخباري */
.mg-menu-full{ background:var(--anf-navy) !important; border-bottom:3px solid var(--anf-red); }
.mg-menu-full .navbar-nav > li > a{ font-weight:700 !important; font-size:15px !important; }
.mg-latest-news-sec{ background:#fff !important; box-shadow:var(--anf-shadow); }
.mg-latest-news .bn_title, .mg-latest-news-sec .bn_title{ background:var(--anf-red) !important; border-radius:6px; }
.mg-latest-news .bn_title .title{ font-weight:700; }

/* ===== السلايدر الرئيسي ===== */
.mg-fea-area{ padding-top:20px !important; }
.mg-blog-post.lg, .mg-blog-post.back-img{
  border-radius:var(--anf-radius); overflow:hidden;
  background-color:var(--anf-navy-2) !important; background-size:cover !important; background-position:center !important;
}
.mg-blog-post .bottom{ background:linear-gradient(to top, rgba(8,12,30,.92) 0%, rgba(8,12,30,.55) 55%, transparent 100%) !important; padding:24px !important; }
.mg-blog-post .bottom h4 a, .mg-blog-post .bottom .title a{ color:#fff !important; font-weight:800 !important; line-height:1.5; text-shadow:0 1px 6px rgba(0,0,0,.5); }

/* ===== بطاقات الأخبار ===== */
.mg-posts-sec-post, .mg-blog-post-box, .mg-sidebar .mg-widget, .mg-posts-sec-inner .mg-posts-sec{
  background:var(--anf-card) !important; border-radius:var(--anf-radius) !important;
  box-shadow:var(--anf-shadow) !important; border:none !important; overflow:hidden; margin-bottom:18px !important;
}
.mg-posts-sec-post{ transition:transform .2s ease, box-shadow .2s ease; }
.mg-posts-sec-post:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(14,23,54,.12) !important; }
.mg-posts-sec-post .mg-post-thumb, .mg-posts-sec-post .col-12.col-md-6:first-child{ border-radius:10px; overflow:hidden; }
.mg-posts-sec-post .back-img, .mg-post-thumb.back-img{ min-height:200px; background-size:cover !important; background-position:center !important; border-radius:10px; }
.entry-title a, .mg-posts-sec-post h4 a, .title a{ color:var(--anf-text) !important; font-weight:700 !important; line-height:1.6 !important; }
.entry-title a:hover, .title a:hover{ color:var(--anf-red) !important; }
.mg-blog-meta, .mg-blog-meta a, .mg-blog-date a{ color:var(--anf-muted) !important; font-size:13px !important; }
.mg-blog-category a.newsup-categories{ background:var(--anf-red) !important; border-radius:4px !important; padding:3px 10px !important; font-weight:700; font-size:12px !important; }

/* الشريط الجانبي */
.mg-sidebar .mg-widget{ padding:18px !important; }
.mg-sec-title, .mg-widget .wtitle{ border-bottom:2px solid var(--anf-red) !important; }
.mg-sec-title h4, .mg-widget .wtitle{ background:var(--anf-navy) !important; color:#fff !important; border-radius:6px 6px 0 0; padding:6px 14px !important; }

/* صفحة الخبر */
.single .mg-blog-post-box{ padding:24px !important; }
.single .mg-blog-post-box h1.title{ font-size:30px !important; font-weight:800 !important; line-height:1.55 !important; }
.single .mg-blog-post-box article p{ font-size:18px; color:#2a3142; }
.single .mg-blog-post-box img.wp-post-image{ border-radius:var(--anf-radius); width:100%; height:auto; }
.anf-source{ margin:28px 0 8px; padding:14px 18px; background:#f6f7fb; border-right:4px solid var(--anf-red); border-radius:8px; font-size:15px; }
.anf-source a{ color:var(--anf-red) !important; font-weight:700; }

/* ترقيم الصفحات */
.navigation.pagination .page-numbers{ border-radius:8px !important; }
.navigation.pagination .page-numbers.current{ background:var(--anf-red) !important; border-color:var(--anf-red) !important; }

/* التذييل */
footer.footer{ border-top:4px solid var(--anf-red); }
