/*
Theme Name: Sudan Now AR
Theme URI: https://www.sudannow.net/
Author: Digital Meta
Author URI: https://digitalmeta.net/
Description: قالب احترافي للسودان الآن بتصميم Euronews-style — تطوير Digital Metan of Sudan Now — Euronews-inspired design with teal accent.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sudannow
Tags: news, magazine, blog, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --teal: #008baa;
  --teal-d: #006d87;
  --teal-dd: #005568;
  --accent: #008baa;
  --hot: #fa0a32;
  --ink: #0a0a0a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: 'IBM Plex Sans Arabic', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
body.dark { background: #0a0a0a; color: #e5e7eb; --bg: #0a0a0a; --bg-2: #1f2937; --ink: #fff; --white: #1f2937; --border: #374151; --muted: #9ca3af; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Breaking Bar */
.breaking { background: var(--hot); color: #fff; display: flex; align-items: center; height: 38px; overflow: hidden; }
.b-tag { background: rgba(0,0,0,.25); color: #fff; font-size: 11px; font-weight: 800; padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 7px; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; }
.bp { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: bp 1.4s ease-in-out infinite; }
@keyframes bp { 0%,100% {opacity:1} 50% {opacity:.3} }
.b-wrap { flex: 1; overflow: hidden; padding: 0 14px; }
.b-scroll { display: flex; gap: 36px; white-space: nowrap; animation: mq 38s linear infinite; font-size: 12.5px; color: rgba(255,255,255,.95); font-weight: 500; }
@keyframes mq { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.bdot { color: rgba(255,255,255,.4); margin: 0 4px; }

/* Topbar */
.topbar { background: #0a0a0a; color: #fff; padding: 6px 0; font-size: 11px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.topbar-left { display: flex; align-items: center; gap: 14px; color: #9ca3af; }
.btn-lang { color: #fff !important; font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.btn-lang:hover { color: var(--teal) !important; }
.topbar-date { font-size: 11px; color: #9ca3af; }
.tsoc { display: flex; gap: 8px; }
.tsoc a { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: color .15s; }
.tsoc a:hover { color: var(--teal); }
.tsoc svg { width: 12px; height: 12px; }

/* Masthead / Header */
.masthead { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 50; }
body.dark .masthead { background: #0a0a0a; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img, .logo .custom-logo { max-height: 50px; max-width: 220px; object-fit: contain; }
.masthead-actions { display: flex; align-items: center; gap: 10px; }
.btn-search, .btn-mobile-menu, .btn-darkmode { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); transition: all .15s; }
body.dark .btn-search, body.dark .btn-mobile-menu, body.dark .btn-darkmode { color: #fff; border-color: #374151; }
.btn-search:hover, .btn-mobile-menu:hover, .btn-darkmode:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-search svg, .btn-mobile-menu svg, .btn-darkmode svg { width: 16px; height: 16px; }
.btn-mobile-menu { display: none; }

/* Nav */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 79px; z-index: 49; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
body.dark .nav { background: #0a0a0a; border-color: #1f2937; }
.nav-inner { display: flex; align-items: center; min-width: max-content; gap: 4px; padding: 6px 0; }
.nav-inner a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink); border-radius: 6px; transition: all .15s; white-space: nowrap; }
body.dark .nav-inner a { color: #e5e7eb; }
.nav-inner a:hover, .nav-inner a.active { background: var(--bg-2); }
.nav-inner a.hot { background: var(--hot); color: #fff !important; padding: 8px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.nav-inner a.hot::before { content: ''; width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: bp 1.4s ease-in-out infinite; }
.nav-inner a.hot:hover { background: var(--hot); }

/* Ticker */
.ticker { background: var(--bg-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.ticker-inner { display: flex; align-items: stretch; min-height: 44px; }
.ticker-lbl { background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; padding: 0 18px; display: flex; align-items: center; gap: 6px; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; }
.ticker-items { display: flex; align-items: center; flex: 1; overflow-x: auto; scrollbar-width: none; }
.ticker-items::-webkit-scrollbar { display: none; }
.ticker-item { display: flex; align-items: center; gap: 9px; padding: 0 18px; height: 44px; border-left: 1px solid var(--border); white-space: nowrap; flex-shrink: 0; color: var(--ink); transition: background .12s; }
body.dark .ticker-item { color: #e5e7eb; border-color: #374151; }
.ticker-item:hover { background: #fff; }
body.dark .ticker-item:hover { background: #1f2937; }
.ticker-num { font-size: 13px; font-weight: 800; color: var(--teal); }
.ticker-text { font-size: 13px; font-weight: 500; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }

/* Main */
.main { padding: 28px 0 60px; }

/* Trending bar (kept) */
.trending-bar { background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; }
body.dark .trending-bar { background: #0a0a0a; }
.trending-inner { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; min-height: 42px; }
.trending-inner::-webkit-scrollbar { display: none; }
.trending-lbl { font-size: 11px; font-weight: 800; color: var(--teal); white-space: nowrap; padding: 0 14px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; flex-shrink: 0; border-left: 1px solid var(--border); }
.trending-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: bp 1.5s ease-in-out infinite; }
.trending-items { display: flex; align-items: center; gap: 6px; padding: 0 12px; flex: 1; min-width: 0; }
.trending-tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 6px 12px; border-radius: 18px; background: var(--bg-2); transition: all .15s; white-space: nowrap; }
.trending-tag:hover { background: var(--teal); color: #fff; }
.trending-tag.hot { background: rgba(250,10,50,.08); color: var(--hot); }
.trending-tag.hot:hover { background: var(--hot); color: #fff; }

/* Section heads */
.sh, .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.sh h2, .section-title { font-size: 24px; font-weight: 800; letter-spacing: -.015em; display: flex; align-items: center; gap: 12px; color: var(--ink); }
body.dark .sh h2, body.dark .section-title { color: #fff; }
.sh h2::before, .section-title::before { content: ''; width: 4px; height: 24px; background: var(--teal); border-radius: 2px; }
.sh-acc { display: none; }
.sh-line { display: none; }
.sh-more, .section-more { font-size: 13px; font-weight: 700; color: var(--teal); }
.sh-more:hover, .section-more:hover { text-decoration: underline; }
.sec { margin-bottom: 40px; }

/* HERO — Latest News */
.lnews-section { margin-bottom: 40px; }
.lnews-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.lnews-main { display: flex; flex-direction: column; cursor: pointer; }
.lnews-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lnews-fallback { background: linear-gradient(135deg, #1a3545, #0a2030); }
.lnews-main-overlay { padding: 18px 0 0; }
.lnews-cat { display: inline-block; background: var(--teal); color: #fff; font-size: 10.5px; font-weight: 800; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; letter-spacing: .08em; text-transform: uppercase; }
.lnews-main-title { font-size: 30px; font-weight: 800; line-height: 1.18; letter-spacing: -.015em; color: var(--ink); margin-bottom: 10px; }
body.dark .lnews-main-title { color: #fff; }
.lnews-main:hover .lnews-main-title { color: var(--teal); }
.lnews-main-meta { font-size: 12px; color: var(--muted); }

/* Hero side list */
.lnews-side { display: flex; flex-direction: column; }
.lnews-side-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); cursor: pointer; align-items: start; }
.lnews-side-item:first-child { padding-top: 0; }
.lnews-side-item:last-child { border-bottom: none; }
.lnews-side-img { width: 130px; aspect-ratio: 4/3; overflow: hidden; }
.lnews-side-img img { width: 100%; height: 100%; object-fit: cover; }
.lnews-side-body { min-width: 0; padding-top: 2px; }
.lnews-side-cat { font-size: 10.5px; font-weight: 800; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.lnews-side-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 6px; transition: color .15s; }
body.dark .lnews-side-title { color: #fff; }
.lnews-side-item:hover .lnews-side-title { color: var(--teal); }
.lnews-side-time { font-size: 12px; color: var(--muted); }

/* Daily Summary */
.daily-summary { background: linear-gradient(135deg, #0a0a0a, #1f2937); color: #fff; border-radius: 16px; padding: 28px 32px; margin-bottom: 36px; position: relative; overflow: hidden; }
.daily-summary::before { content: ''; position: absolute; top: -50px; left: -50px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(0,139,170,.4), transparent 70%); }
.ds-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.ds-title-wrap { display: flex; align-items: center; gap: 14px; }
.ds-icon { width: 44px; height: 44px; background: var(--teal); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ds-title { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.ds-subtitle { font-size: 12.5px; color: rgba(255,255,255,.65); margin-top: 3px; }
.ds-date-badge { background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.15); }
.ds-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 1; }
.ds-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 16px 14px; cursor: pointer; transition: all .2s; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.ds-item:hover { background: rgba(255,255,255,.1); border-color: var(--teal); transform: translateY(-2px); }
.ds-item-num { font-size: 28px; font-weight: 900; color: var(--teal); line-height: .9; letter-spacing: -.04em; }
.ds-item-title { font-size: 13px; font-weight: 600; line-height: 1.45; color: #fff; flex: 1; }
.ds-item-time { font-size: 10px; color: rgba(255,255,255,.5); margin-top: auto; text-transform: uppercase; letter-spacing: .04em; }

/* Cards grid (3) */
.grid3, .cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g3i { background: transparent; overflow: visible; cursor: pointer; display: flex; flex-direction: column; }
.g3i-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.g3i-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g3i:hover .g3i-img img { transform: scale(1.04); }
.g3i-img-fallback { background: linear-gradient(135deg, #1a3545, #0a2030); }
.hero-main-fallback { background: linear-gradient(135deg, #1a3545, #0a2030); }
.g3i-body { padding: 14px 0 0; }
.g3i-cat { font-size: 10.5px; font-weight: 800; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.g3i-title { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 8px; transition: color .15s; }
body.dark .g3i-title { color: #fff; }
.g3i:hover .g3i-title { color: var(--teal); }
.g3i-meta { font-size: 12px; color: var(--muted); }

/* Timeline list (numbered) */
.timeline-list { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); cursor: pointer; align-items: start; }
.tl-item:last-child { border-bottom: none; }
.tl-num { font-size: 40px; font-weight: 900; color: var(--teal); line-height: .85; letter-spacing: -.04em; padding-top: 4px; }
.tl-cat { font-size: 11px; font-weight: 800; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.tl-title { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); transition: color .15s; margin-bottom: 6px; }
body.dark .tl-title { color: #fff; }
.tl-item:hover .tl-title { color: var(--teal); }
.tl-meta { font-size: 12px; color: var(--muted); }

/* List vertical (large) */
.list-l { display: flex; flex-direction: column; }
.lli { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); cursor: pointer; align-items: start; }
.lli:last-child { border-bottom: none; }
.lli-img { width: 240px; aspect-ratio: 16/10; overflow: hidden; }
.lli-img img { width: 100%; height: 100%; object-fit: cover; }
.lli-img-fallback { background: linear-gradient(135deg, #1a3545, #0a2030); }
.lli-cat { font-size: 11px; font-weight: 800; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.lli-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 10px; transition: color .15s; }
body.dark .lli-title { color: #fff; }
.lli:hover .lli-title { color: var(--teal); }
.lli-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.lli-meta { font-size: 12px; color: var(--muted); }

/* Qadaya grid (Investigations) */
.qadaya-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.qadaya-main { position: relative; overflow: hidden; aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.qadaya-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.qadaya-main:hover .qadaya-main-img { transform: scale(1.04); }
.qadaya-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.2) 55%, transparent 100%); }
.qadaya-main-overlay { position: relative; z-index: 2; padding: 24px; }
.qadaya-cat-badge { display: inline-block; background: var(--teal); color: #fff; font-size: 10.5px; font-weight: 800; padding: 5px 12px; border-radius: 4px; margin-bottom: 12px; letter-spacing: .08em; text-transform: uppercase; }
.qadaya-main-title { font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: #fff; margin-bottom: 8px; }
.qadaya-main-meta { font-size: 12px; color: rgba(255,255,255,.7); }
.qadaya-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qadaya-sub-item { display: flex; flex-direction: column; cursor: pointer; }
.qadaya-sub-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.qadaya-sub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.qadaya-sub-item:hover .qadaya-sub-img img { transform: scale(1.04); }
.qadaya-sub-body { padding: 12px 0 0; }
.qadaya-sub-cat { font-size: 10.5px; font-weight: 800; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.qadaya-sub-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
body.dark .qadaya-sub-title { color: #fff; }
.qadaya-sub-item:hover .qadaya-sub-title { color: var(--teal); }
.qadaya-sub-time { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Map promo */
.map-promo { background: linear-gradient(135deg, var(--teal), var(--teal-dd)); border-radius: 16px; padding: 24px 28px; margin-bottom: 36px; }
.map-promo-inner { display: flex; align-items: center; gap: 18px; }
.mp-icon { font-size: 36px; flex-shrink: 0; }
.mp-text { flex: 1; }
.mp-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 5px; letter-spacing: -.01em; }
.mp-sub { font-size: 13.5px; color: rgba(255,255,255,.85); }
.mp-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 13px; font-weight: 700; padding: 11px 22px; border-radius: 999px; flex-shrink: 0; transition: background .15s; }
.mp-btn:hover { background: rgba(255,255,255,.25); }

/* SIDEBAR LAYOUT */
.sn-page-layout, .sn-article-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.sn-page-main, .sn-article-main { min-width: 0; }
.sn-page-aside, .sn-article-sidebar { display: flex; flex-direction: column; gap: 24px; align-self: start; position: sticky; top: 160px; }
.sn-aside-ad { background: var(--bg-2); border-radius: 12px; padding: 12px; text-align: center; min-height: 620px; display: flex; align-items: flex-start; justify-content: center; }
body.dark .sn-aside-ad { background: #1f2937; }
.sn-aside-ad ins { display: block; width: 300px; height: 600px; margin: 0 auto; }
.sn-aside-mr, .sn-sb-popular { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
body.dark .sn-aside-mr, body.dark .sn-sb-popular { background: #1f2937; border-color: #374151; }
.sn-aside-mr-hdr, .sn-sb-hdr { background: transparent; color: var(--ink); padding: 16px 18px; border-bottom: 2px solid var(--hot); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
body.dark .sn-aside-mr-hdr, body.dark .sn-sb-hdr { color: #fff; }
.sn-aside-mr-list { padding: 0; }
.sn-aside-mr-item, .sn-sb-item { display: grid !important; grid-template-columns: 44px 1fr !important; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); cursor: pointer; color: inherit; transition: background .12s; }
body.dark .sn-aside-mr-item, body.dark .sn-sb-item { border-color: #374151; }
.sn-aside-mr-item:last-child, .sn-sb-item:last-child { border-bottom: none; }
.sn-aside-mr-item:hover, .sn-sb-item:hover { background: var(--bg-2); }
body.dark .sn-aside-mr-item:hover, body.dark .sn-sb-item:hover { background: #111827; }
.sn-aside-mr-num, .sn-sb-num { font-size: 32px; font-weight: 900; color: var(--teal); line-height: .9; letter-spacing: -.04em; text-align: center; }
.sn-aside-mr-body, .sn-sb-body { padding-top: 2px; min-width: 0; }
.sn-aside-mr-cat, .sn-sb-cat { font-size: 10px; font-weight: 800; color: var(--hot); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.sn-aside-mr-title, .sn-sb-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--ink); transition: color .15s; }
body.dark .sn-aside-mr-title, body.dark .sn-sb-title { color: #fff; }
.sn-aside-mr-item:hover .sn-aside-mr-title, .sn-sb-item:hover .sn-sb-title { color: var(--teal); }
.sn-aside-mr-time, .sn-sb-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Single Article */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--hot); z-index: 1001; width: 0; transition: width .1s; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { margin: 0 6px; color: var(--border); }
.article-layout { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 28px; align-items: start; }
.share-sticky { position: sticky; top: 160px; display: flex; flex-direction: column; gap: 10px; }
.share-sticky a { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; }
.share-sticky a:hover { transform: scale(1.08); }
.share-sticky a.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-sticky a.tw:hover { background: #000; color: #fff; border-color: #000; }
.share-sticky a.tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.share-sticky a.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-sticky a.cp:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.share-sticky svg { width: 16px; height: 16px; }
.article { background: transparent; padding: 0; }
.article-cat { display: inline-flex; align-items: center; gap: 8px; background: var(--hot); color: #fff; font-size: 10.5px; font-weight: 800; padding: 5px 14px; border-radius: 4px; margin-bottom: 18px; letter-spacing: .08em; text-transform: uppercase; }
.article-cat::before { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: bp 1.4s ease-in-out infinite; }
.article-title { font-size: 44px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin-bottom: 16px; text-wrap: pretty; }
body.dark .article-title { color: #fff; }
.article-excerpt { font-size: 18px; line-height: 1.55; color: var(--muted); font-weight: 500; margin-bottom: 24px; border: none; padding: 0; }
.article-meta-bar { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.author-mini { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-dd)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 17px; }
.author-mini-name { font-size: 14px; font-weight: 700; }
.author-mini-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.article-date { font-size: 12px; color: var(--muted); }
.article-meta-right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.read-time { background: rgba(0,139,170,.1); color: var(--teal); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.article-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 8px; }
.article-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.article-img-cap { font-size: 12px; color: var(--muted); padding: 8px 0 24px; font-style: italic; }
.article-tools { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.tools-left { display: flex; align-items: center; gap: 8px; }
.tool-btn { width: 36px; height: 36px; background: var(--bg-2); border: none; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 13px; transition: all .15s; font-family: inherit; color: var(--ink); display: flex; align-items: center; justify-content: center; }
body.dark .tool-btn { background: #1f2937; color: #fff; }
.tool-btn:hover, .tool-btn.active { background: var(--ink); color: #fff; }
.tool-btn svg { width: 14px; height: 14px; }
.tool-lbl { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.article-body { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; line-height: 1.75; color: #1f2937; }
body.dark .article-body { color: #e5e7eb; }
.article-body.size-l { font-size: 19px; }
.article-body.size-xl { font-size: 21px; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.015em; margin: 36px 0 14px; line-height: 1.25; color: var(--ink); }
body.dark .article-body h2 { color: #fff; }
.article-body h3 { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: var(--ink); }
body.dark .article-body h3 { color: #fff; }
.article-body strong { font-weight: 700; color: var(--ink); }
body.dark .article-body strong { color: #fff; }
.article-body a { color: var(--teal); border-bottom: 1px solid rgba(0,139,170,.3); }
.article-body blockquote { border: none; background: var(--bg-2); padding: 28px 32px; margin: 32px 0; border-right: 4px solid var(--hot); border-radius: 12px 0 0 12px; font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; font-style: normal; }
body.dark .article-body blockquote { background: #1f2937; }
.article-body blockquote cite { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); font-style: normal; font-weight: 500; }
.article-body blockquote cite::before { content: '— '; }
.article-body figure { margin: 28px 0; }
.article-body figure img { width: 100%; border-radius: 6px; max-height: 480px; object-fit: cover; }
.article-body figcaption { font-size: 12px; color: var(--muted); text-align: center; padding: 8px 14px 0; font-style: italic; }
.article-body ul, .article-body ol { padding-right: 28px; margin: 18px 0; }
.article-body li { margin-bottom: 10px; }
.article-tags { padding: 28px 0 0; border-top: 1px solid var(--border); margin-top: 36px; }
.tags-lbl { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 7px 14px; background: var(--bg-2); border-radius: 999px; font-size: 13px; font-weight: 600; transition: all .15s; }
body.dark .tag { background: #1f2937; }
.tag:hover { background: var(--teal); color: #fff; }
.share-inline-row { background: var(--bg-2); padding: 22px 26px; border-radius: 12px; margin: 28px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
body.dark .share-inline-row { background: #1f2937; }
.share-inline-text { font-size: 14px; font-weight: 700; }
.share-inline-icons { display: flex; gap: 8px; }
.share-inline-icons a { width: 38px; height: 38px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; }
body.dark .share-inline-icons a { background: #0a0a0a; }
.share-inline-icons a:hover { transform: scale(1.08); }
.share-inline-icons a.fb:hover { background: #1877f2; color: #fff; }
.share-inline-icons a.tw:hover { background: #000; color: #fff; }
.share-inline-icons a.tg:hover { background: #0088cc; color: #fff; }
.share-inline-icons a.wa:hover { background: #25d366; color: #fff; }
.share-inline-icons a.cp:hover { background: var(--teal); color: #fff; }
.share-inline-icons svg { width: 14px; height: 14px; }
.author-card, .sn-author-card { background: linear-gradient(135deg, #f0f9fb, #e0f2f7); padding: 28px; border-radius: 16px; display: flex; gap: 20px; align-items: flex-start; margin-top: 36px; }
body.dark .author-card, body.dark .sn-author-card { background: linear-gradient(135deg, #1f2937, #111827); }
.author-card-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-dd)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 32px; flex-shrink: 0; }
.author-card-info { flex: 1; min-width: 0; }
.author-card-lbl { font-size: 11px; font-weight: 800; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.author-card-name { font-size: 22px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 8px; }
.author-card-bio { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.author-card-social { display: flex; gap: 8px; }
.author-card-social a { width: 32px; height: 32px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
body.dark .author-card-social a { background: #0a0a0a; }

/* Mobile menu */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; opacity: 0; visibility: hidden; transition: all .25s; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #0a0a0a; z-index: 999; transition: left .25s; overflow-y: auto; }
.mobile-menu.open { right: 0; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu-title { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.mobile-menu-close { background: transparent; border: none; color: rgba(255,255,255,.7); cursor: pointer; width: 32px; height: 32px; }
.mobile-menu nav { padding: 8px 0; }
.mobile-menu nav a { display: block; padding: 14px 22px; font-size: 13.5px; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.05); font-weight: 600; }
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: rgba(255,255,255,.05); color: var(--teal); padding-right: 26px; }
.mobile-menu nav a.hot { color: var(--hot); }
.mobile-menu-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; }
.mobile-menu-soc { display: flex; gap: 10px; }
.mobile-menu-soc a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); }

/* Bottom nav */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .bottom-nav { position: fixed; bottom: 0; right: 0; left: 0; z-index: 997; background: #fff; border-top: 1px solid var(--border); display: flex; justify-content: space-around; height: 60px; }
  body.dark .bottom-nav { background: #0a0a0a; }
  .bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; color: var(--muted); font-weight: 700; }
  .bn-item svg { width: 20px; height: 20px; }
  .bn-item.active, .bn-item:hover { color: var(--teal); }
  .main { padding-bottom: 75px !important; }
}

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding-top: 100px; opacity: 0; visibility: hidden; transition: all .25s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner { width: 100%; max-width: 720px; padding: 0 20px; position: relative; }
.search-overlay-form { display: flex; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.search-overlay-input { flex: 1; border: none; outline: none; padding: 18px 26px; font-size: 17px; background: transparent; color: var(--ink); }
.search-overlay-btn { background: var(--teal); border: none; color: #fff; padding: 0 28px; cursor: pointer; }
.search-overlay-btn svg { width: 20px; height: 20px; }
.search-overlay-close { position: absolute; top: -60px; right: 0; background: rgba(255,255,255,.15); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.search-overlay-close svg { width: 20px; height: 20px; }

/* Back to top */
.back-top { position: fixed; bottom: 24px; left: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 19px; font-weight: 700; border: none; cursor: pointer; opacity: 0; transform: translateY(10px); transition: all .25s; z-index: 999; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,139,170,.4); }
.back-top.show { opacity: 1; transform: translateY(0); }

/* Mobile sticky article bar */
.article-sticky-bar { display: none; }

/* Footer */
.footer { background: #0a0a0a; color: #fff; padding: 56px 0 28px; margin-top: 60px; }
.f-logo-wrap { margin-bottom: 18px; }
.f-logo-text { display: inline-flex; align-items: center; gap: 10px; }
.f-logo-text img { max-height: 44px; }
.f-logo-n { width: 42px; height: 42px; background: linear-gradient(135deg, var(--teal), var(--teal-d)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: #fff; }
.f-logo-name { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.015em; }
.f-desc { font-size: 13.5px; color: #9ca3af; line-height: 1.65; margin-bottom: 22px; max-width: 480px; }
.f-soc { display: flex; gap: 8px; margin-bottom: 32px; }
.f-soc a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: background .15s; }
.f-soc a:hover { background: var(--teal); color: #fff; }
.f-soc svg { width: 14px; height: 14px; }
.f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 18px; }
.f-col h4 { font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.f-col ul li { margin-bottom: 11px; }
.f-col ul li a { font-size: 13.5px; color: #9ca3af; transition: color .15s; }
.f-col ul li a:hover { color: #fff; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.f-copy, .f-credit { font-size: 12px; color: #6b7280; }
.f-credit a { color: var(--teal); font-weight: 600; }

/* Tablet */
@media (max-width: 1199px) {
  .sn-page-layout, .sn-article-page { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
  .sn-aside-ad { min-height: 320px; }
  .sn-aside-ad ins { width: 300px; height: 250px; }
  .lnews-main-title { font-size: 26px; }
  .ds-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .sn-page-layout, .sn-article-page { grid-template-columns: 1fr; gap: 0; }
  .sn-page-aside, .sn-article-sidebar { position: static; margin-top: 32px; }
  .lnews-grid { grid-template-columns: 1fr; }
  .grid3, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .qadaya-grid { grid-template-columns: 1fr; }
  .qadaya-main { aspect-ratio: 16/9; }
  .lli { grid-template-columns: 180px 1fr; gap: 18px; }
  .ds-list { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .share-sticky { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-title { font-size: 32px; }
}
@media (max-width: 767px) {
  .nav { display: none; }
  .btn-mobile-menu { display: flex; }
  .topbar-date { display: none; }
  .lnews-main-title { font-size: 22px; }
  .lnews-side-item { grid-template-columns: 100px 1fr !important; gap: 12px; }
  .lnews-side-img { width: 100px; }
  .grid3, .cards-3 { grid-template-columns: 1fr; }
  .qadaya-sub-grid { grid-template-columns: 1fr 1fr; }
  .lli { grid-template-columns: 1fr; }
  .lli-img { width: 100%; aspect-ratio: 16/9; }
  .ds-list { grid-template-columns: 1fr; }
  .daily-summary { padding: 20px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 26px; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 22px; }
  .article-body blockquote { font-size: 18px; padding: 22px 24px; }
  .map-promo-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mp-btn { width: 100%; text-align: center; }
  .article-sticky-bar { display: block; position: fixed; top: 0; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 100; padding: 10px 14px; transform: translateY(-100%); transition: transform .25s; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
  .article-sticky-bar.visible { transform: translateY(0); }
  body.dark .article-sticky-bar { background: #0a0a0a; }
  .asb-inner { display: flex; align-items: center; gap: 10px; }
  .asb-back, .asb-share { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
  .asb-share { background: var(--teal); color: #fff; }
  .asb-title { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .asb-back svg, .asb-share svg { width: 16px; height: 16px; }
}

/* Ad slots */
.ad-slot { text-align: center; margin: 28px 0; }
.ad-rectangle, .ad-infeed { padding: 0; }

/* Hide unfilled ads cleanly */
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.sn-aside-ad ins[data-ad-status="unfilled"] { display: none !important; }


/* ═══ ربط الـ classes القديمة في sudannow-ar بالتصميم الجديد ═══ */
.sn-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.sn-content-col, .sn-page-main, .sn-article-main { min-width: 0; }
.sn-sidebar, .sn-page-aside, .sn-article-sidebar {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 100px; align-self: start;
}
.sn-sidebar-ad { background: var(--bg-2, #f5f5f7); border-radius: 12px; padding: 12px; text-align: center; min-height: 320px; position: relative; }
.sn-sidebar-ad-lbl { font-size: 10px; color: var(--muted, #6b7280); letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; font-weight: 700; }
.sn-sidebar-ad ins { display: block; margin: 0 auto; }

@media (max-width: 1199px) {
  .sn-page-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 24px; }
}
@media (max-width: 1023px) {
  .sn-page-layout { grid-template-columns: 1fr; gap: 0; }
  .sn-sidebar, .sn-page-aside, .sn-article-sidebar { position: static; margin-top: 32px; }
}


/* ═══ Footer 4 columns on mobile ═══ */
.f-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}
.f-col h4 { font-size: 11px !important; letter-spacing: .04em !important; margin-bottom: 10px !important; }
.f-col ul li { margin-bottom: 8px !important; }
.f-col li a { font-size: 11.5px !important; line-height: 1.4 !important; }
@media (max-width: 600px) {
  .f-grid { gap: 10px !important; }
  .f-col h4 { font-size: 10px !important; padding-bottom: 6px !important; margin-bottom: 8px !important; }
  .f-col li a { font-size: 10.5px !important; }
  .f-col ul li { margin-bottom: 6px !important; }
}


/* ═══ FIX: fp-hero classes used in Arabic front-page ═══ */
.fp-hero-section { margin-bottom: 36px; }
.fp-hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }

/* الـ lnews-main يأتي داخل fp-hero-grid */
.fp-hero-grid .lnews-main {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  cursor: pointer;
}
.fp-hero-grid .lnews-main-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  inset: auto;
  object-fit: cover;
}
.fp-hero-grid .lnews-main::after { display: none; }
.fp-hero-grid .lnews-main-overlay {
  position: relative;
  z-index: 1;
  padding: 18px 0 0;
}
.fp-hero-grid .lnews-cat {
  background: var(--teal);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.fp-hero-grid .lnews-main-title {
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.fp-hero-grid .lnews-main:hover .lnews-main-title { color: var(--teal); }
.fp-hero-grid .lnews-main-meta { color: var(--muted); font-size: 12px; }

/* fp-timeline (الجدول الزمني الجانبي) */
.fp-timeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 480px;
}
.fp-tl-header {
  background: var(--hot);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.fp-tl-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: bp 1.4s ease-in-out infinite;
}
.fp-tl-more {
  font-size: 11px;
  color: rgba(255,255,255,.85);
}
.fp-tl-feed {
  flex: 1;
  overflow-y: auto;
}
.fp-tl-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.fp-tl-item:last-child { border-bottom: none; }
.fp-tl-item:hover { background: var(--bg-2); }
.fp-tl-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
  padding-top: 2px;
}
.fp-tl-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.fp-tl-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 6px;
}
.fp-tl-node-new {
  background: var(--hot);
  box-shadow: 0 0 0 3px rgba(250,10,50,.18);
}
.fp-tl-vline {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
  min-height: 20px;
}
.fp-tl-content { flex: 1; min-width: 0; }
.fp-tl-cat {
  font-size: 10px;
  font-weight: 800;
  color: var(--hot);
  letter-spacing: .04em;
  margin-bottom: 3px;
}
.fp-tl-title-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: color .15s;
}
.fp-tl-item:hover .fp-tl-title-text { color: var(--teal); }

@media (max-width: 1023px) {
  .fp-hero-grid { grid-template-columns: 1fr; }
  .fp-timeline { max-height: 360px; }
}
@media (max-width: 600px) {
  .fp-hero-grid .lnews-main-title { font-size: 22px; }
}

/* most-read-bar (الشريط الأفقي القديم) — نخفيه لأن البديل في الـ sidebar */
.most-read-bar { display: none !important; }


/* ═══ HERO IMAGE — HARD FIX ═══ */
.fp-hero-grid .lnews-main {
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
}
.fp-hero-grid .lnews-main-img,
.fp-hero-section .lnews-main-img,
.lnews-main img.lnews-main-img {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  aspect-ratio: 16/9 !important;
  height: auto !important;
  max-height: 460px !important;
  object-fit: cover !important;
}
.lnews-main .lnews-fallback,
.fp-hero-grid .lnews-main .lnews-fallback {
  position: relative !important;
  inset: auto !important;
  aspect-ratio: 16/9 !important;
  height: auto !important;
  min-height: 280px !important;
  width: 100%;
}
.lnews-main::after { display: none !important; }
.lnews-main-overlay {
  position: relative !important;
  background: transparent !important;
  color: var(--ink) !important;
  padding: 18px 0 0 !important;
}
.lnews-main-overlay .lnews-cat {
  background: var(--teal) !important;
  color: #fff !important;
  display: inline-block !important;
}
.lnews-main-overlay .lnews-main-title {
  color: var(--ink) !important;
  text-shadow: none !important;
}
.lnews-main-overlay .lnews-main-meta {
  color: var(--muted) !important;
}

/* ═══ QADAYA IMAGE — HARD FIX ═══ */
.qadaya-main { aspect-ratio: 4/5 !important; min-height: 0 !important; max-height: 600px !important; overflow: hidden !important; }
.qadaya-main-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ═══ MOST-READ-BAR — FORCE HIDE ═══ */
.most-read-bar,
div.most-read-bar,
.most-read-bar.mrb-items,
.mrb-items,
.mrb-item,
.mrb-label { display: none !important; }

/* ═══════════════════════════════════════════
   FIXES — May 23 2026
═══════════════════════════════════════════ */

/* 1. قسم المقالات وآراء — أيقونة مربعة صغيرة وليس دائرة كبيرة */
.opinion-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.oq-item { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--ink); padding: 16px; background: var(--white); border-radius: 10px; border: 1px solid var(--border); transition: box-shadow .2s; }
.oq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.oq-item:hover .oq-title { color: var(--teal); }
.oq-avatar { width: 52px !important; height: 52px !important; min-width: 52px !important; max-width: 52px !important; min-height: 52px !important; max-height: 52px !important; border-radius: 8px !important; overflow: hidden; border: 1px solid var(--border); margin-bottom: 10px; flex-shrink: 0; }
.oq-avatar img { width: 52px !important; height: 52px !important; object-fit: cover; display: block; border-radius: 8px !important; }
.oq-author { font-size: 12px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.oq-title { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); margin-bottom: 8px; transition: color .15s; text-align: right; }
.oq-meta { font-size: 11px; color: var(--muted); }
@media(max-width:900px){ .opinion-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px){ .opinion-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .oq-item { padding: 12px; } .oq-avatar { width: 44px !important; height: 44px !important; min-width: 44px !important; max-width: 44px !important; min-height: 44px !important; max-height: 44px !important; } .oq-title { font-size: 13px; } }

/* 2. قضايا — الصورة الكبيرة بنسبة أفقية وليس عمودية */
.qadaya-main { aspect-ratio: 16/9 !important; max-height: 320px !important; }
@media(max-width:900px){ .qadaya-main { aspect-ratio: 16/9 !important; max-height: 240px !important; } }

/* 3. الأكثر قراءة — حذف حرف (ن) من الأيقونة */
.sn-aside-mr-hdr svg,
.sn-aside-mr-hdr .sn-fire-icon { display: none !important; }
.sn-aside-mr-hdr::before { content: '🔥'; font-size: 15px; margin-left: 6px; }

/* 4. lnews-section — العنوان في الموبايل */
@media(max-width:600px){
  .lnews-section .sh { flex-wrap: wrap; gap: 6px; }
  .lnews-main-title { font-size: 18px !important; line-height: 1.4 !important; }
  .lnews-main-overlay { padding: 14px !important; }
  .lnews-grid { grid-template-columns: 1fr !important; }
  .lnews-side { width: 100% !important; }
  .lnews-side-item { grid-template-columns: 90px 1fr !important; }
  .lnews-side-img { width: 90px !important; height: 65px !important; }
  .lnews-side-img img { width: 90px !important; height: 65px !important; }
}

/* ═══════════════════════════════════════════
   CRITICAL FIXES — lnews + article mobile
═══════════════════════════════════════════ */

/* 1. lnews-main — الصورة تملأ الـ div والعنوان فوقها */
.lnews-main {
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  min-height: 280px !important;
}
.lnews-main-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.lnews-main::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 60%, transparent 100%) !important;
  z-index: 1 !important;
  display: block !important;
}
.lnews-main-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  z-index: 2 !important;
  padding: 20px 18px 18px !important;
  background: transparent !important;
}
.lnews-main-title {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.6) !important;
  font-size: 22px !important;
}
.lnews-main-meta { color: rgba(255,255,255,.75) !important; }
.lnews-cat { color: #fff !important; }

/* 2. صفحة المقال على الموبايل */
@media (max-width: 768px) {
  .sn-article-page,
  .sn-page-layout {
    display: block !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  .sn-content-col {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }
  .article-body,
  #articleBody {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .article-body *,
  #articleBody * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .article-body p,
  #articleBody p {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
}


/* ═══ FORCE FIX: lnews-main العنوان فوق الصورة ═══ */
.lnews-section .lnews-main {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  min-height: 300px !important;
}
.lnews-section .lnews-main-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: unset !important;
}
.lnews-section .lnews-main::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 55%, transparent 100%) !important;
  z-index: 1 !important;
}
.lnews-section .lnews-main-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  z-index: 2 !important;
  padding: 20px 18px 18px !important;
  background: transparent !important;
}
.lnews-section .lnews-main-title {
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.5) !important;
}
.lnews-section .lnews-cat { color: #fff !important; }
.lnews-section .lnews-main-meta { color: rgba(255,255,255,.75) !important; }

/* ═══ مقالات وآراء في الـ Sidebar — طراز الجزيرة ═══ */
.sn-aside-opinion { margin-bottom: 20px; }
.sn-aside-op-list { display: flex; flex-direction: column; }
.sn-aside-op-item {
  display: grid !important;
  grid-template-columns: 1fr 56px !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--border) !important;
  text-decoration: none !important;
}
.sn-aside-op-item:last-child { border-bottom: none !important; }
.sn-aside-op-avatar {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  order: 2 !important;
}
.sn-aside-op-avatar img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
}
.sn-aside-op-body { min-width: 0 !important; order: 1 !important; text-align: right !important; }
.sn-aside-op-title { font-size: 15px !important; font-weight: 700 !important; line-height: 1.5 !important; color: var(--ink) !important; transition: color .15s !important; margin-bottom: 6px !important; }
body.dark .sn-aside-op-title { color: #fff !important; }
.sn-aside-op-item:hover .sn-aside-op-title { color: var(--teal) !important; }
.sn-aside-op-author { font-size: 12px !important; font-weight: 600 !important; color: var(--muted) !important; margin-bottom: 0 !important; }
.sn-aside-op-time { font-size: 10px !important; color: var(--muted) !important; margin-top: 3px !important; }

/* ═══ FORCE: صورة مقالات وآراء صغيرة دائرية — ديسكتوب وموبايل ═══ */
aside.sn-page-aside .sn-aside-op-avatar,
.sn-aside-opinion .sn-aside-op-avatar {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex: 0 0 54px !important;
}
aside.sn-page-aside .sn-aside-op-avatar img,
.sn-aside-opinion .sn-aside-op-avatar img {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  aspect-ratio: 1/1 !important;
}

/* ═══ إعلان In-feed داخل شبكة الأخبار ═══ */
.g3i-ad {
  display: flex !important;
  flex-direction: column;
  background: linear-gradient(135deg,#f8f9fb,#eef1f5);
  border: 1px solid var(--border,#e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  padding: 14px;
  box-sizing: border-box;
}
.g3i-ad .g3i-ad-lbl { font-size: 10px; color: #aaa; margin-bottom: 10px; align-self: flex-start; letter-spacing: .05em; }
.g3i-ad ins.adsbygoogle { width: 100% !important; max-width: 100% !important; flex: 1; min-height: 180px; display: block !important; }
body.dark .g3i-ad { background: #1e2640; }
@media (max-width: 600px) {
  .g3i-ad { min-height: 220px; }
  .g3i-ad ins.adsbygoogle { min-height: 200px; }
}

/* إعلان أفقي بين الأقسام */
.sn-hbanner-ad { width: 100%; max-width: 100%; overflow: hidden; box-sizing: border-box; }
.sn-hbanner-ad ins.adsbygoogle { width: 100% !important; max-width: 100% !important; display: block !important; }

