/*
Theme Name: Sudan Now
Theme URI: https://sudannow.net
Author: Sudan Now Team
Description: قالب احترافي لموقع السودان الآن — تصميم Euronews
Version: 1.1
Text Domain: sudannow
*/

/* ═══════════════════════════════════════════
   متغيرات الموقع
   ═══════════════════════════════════════════ */
:root {
  --teal: #008baa;
  --teal-d: #006d87;
  --teal-dd: #005568;
  --ink: #141210;
  --bg: #f7f5f2;
  --white: #fff;
  --border: #e5e0d8;
  --muted: #767068;
  --fb: #1877f2;
  --tw: #000000;
  --tg: #0088cc;
  --wa: #25d366;
}

/* الوضع الليلي */
body.dark {
  --bg: #1a1a1a;
  --white: #252525;
  --ink: #e5e5e5;
  --border: #333;
  --muted: #999;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
  transition: background .3s, color .3s;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* أيقونات SVG للسوشيال */
.svg-icon { width: 16px; height: 16px; fill: currentColor; }

/* ═══════════════════════════════════════════
   1. شريط عاجل
   ═══════════════════════════════════════════ */
.breaking { background: var(--teal); display: flex; align-items: center; height: 36px; overflow: hidden; }
.b-tag { background: var(--teal-dd); color: #fff; font-size: 11px; font-weight: 700; padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0; letter-spacing: .03em; }
.bp { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: bp 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes bp { 0%,100% {opacity:1; transform:scale(1);} 50% {opacity:.3; transform:scale(.6);} }
.b-wrap { flex: 1; overflow: hidden; padding: 0 14px; display: flex; align-items: center; }
.b-scroll { display: flex; gap: 36px; white-space: nowrap; animation: mq 32s linear infinite; font-size: 12px; color: rgba(255,255,255,.92); }
@keyframes mq { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.bdot { color: rgba(255,255,255,.3); margin: 0 4px; }

/* ═══════════════════════════════════════════
   2. الشريط العلوي
   ═══════════════════════════════════════════ */
.topbar { background: var(--white); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.btn-lang { background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 11px; border-radius: 3px; letter-spacing: .04em; }
.topbar-date { font-size: 11px; color: var(--muted); }
.tsoc { display: flex; gap: 6px; }
.tsoc a { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; }
.tsoc a:hover { color: #fff; border-color: transparent; }
.tsoc a.fb:hover { background: var(--fb); }
.tsoc a.tw:hover { background: var(--tw); }
.tsoc a.ig:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tsoc a.tg:hover { background: var(--tg); }

/* ═══════════════════════════════════════════
   3. الهيدر والشعار
   ═══════════════════════════════════════════ */
.masthead { background: var(--white); border-bottom: 3px solid var(--teal); padding: 12px 0; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { max-height: 56px; width: auto; display: block; }
.logo-fallback { display: flex; align-items: center; gap: 10px; }
.lmark { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: #fff; flex-shrink: 0; }
.ltext { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.01em; }
.ltext em { font-style: normal; color: var(--teal); }
.lsub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.btn-search { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all .15s; }
.btn-search:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.masthead-actions { display: flex; align-items: center; gap: 10px; }

/* زر القائمة للموبايل */
.btn-menu { display: none; width: 38px; height: 38px; border-radius: 8px; background: var(--white); border: 1px solid var(--border); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.btn-menu svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════
   4. شريط التنقل
   ═══════════════════════════════════════════ */
.nav { background: var(--ink); position: sticky; top: 0; z-index: 100; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-inner { display: flex; min-width: max-content; }
.nav-inner a { display: block; padding: 14px 16px; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.75); white-space: nowrap; border-bottom: 3px solid transparent; transition: all .15s; }
.nav-inner a:hover, .nav-inner a.active, .nav-inner .current-menu-item a { color: #fff; border-bottom-color: var(--teal); }
.nav-inner a.hot { color: var(--teal); font-weight: 700; }

/* ═══════════════════════════════════════════
   5. القائمة المنبثقة للموبايل
   ═══════════════════════════════════════════ */
.mobile-menu { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--ink); z-index: 200; transition: right .3s ease; overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,.3); }
.mobile-menu.open { right: 0; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; opacity: 0; visibility: hidden; transition: all .3s; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu-hdr { padding: 18px; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-hdr-title { color: #fff; font-size: 14px; font-weight: 700; }
.mobile-menu-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-menu-close:hover { background: rgba(255,255,255,.08); }
.mobile-menu ul { padding: 14px 0; }
.mobile-menu ul li a { display: block; padding: 13px 18px; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.05); transition: all .15s; }
.mobile-menu ul li a:hover, .mobile-menu ul li a.active { background: rgba(255,255,255,.05); color: var(--teal); border-right: 3px solid var(--teal); }
.mobile-menu ul li a.hot { color: var(--teal); }
.mobile-menu-soc { padding: 18px; display: flex; gap: 8px; justify-content: center; border-top: 1px solid rgba(255,255,255,.1); }
.mobile-menu-soc a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.mobile-menu-soc a.fb:hover { background: var(--fb); }
.mobile-menu-soc a.tw:hover { background: var(--tw); }
.mobile-menu-soc a.ig:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.mobile-menu-soc a.tg:hover { background: var(--tg); }

/* ═══════════════════════════════════════════
   6. الأكثر قراءة
   ═══════════════════════════════════════════ */
.ticker { background: var(--white); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.ticker-inner { display: flex; align-items: stretch; min-height: 48px; }
.ticker-lbl { background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 0 18px; display: flex; align-items: center; white-space: nowrap; letter-spacing: .03em; flex-shrink: 0; }
.ticker-items { display: flex; align-items: center; flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ticker-items::-webkit-scrollbar { display: none; }
.ticker-item { display: flex; align-items: center; gap: 9px; padding: 0 18px; height: 48px; border-left: 1px solid var(--border); white-space: nowrap; flex-shrink: 0; transition: background .12s; color: var(--ink); }
.ticker-item:hover { background: var(--bg); }
.ticker-num { font-size: 12px; font-weight: 700; color: var(--teal); flex-shrink: 0; }
.ticker-text { font-size: 12.5px; font-weight: 500; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════════════════════════════════════
   7. الصفحة الرئيسية
   ═══════════════════════════════════════════ */
.main { padding: 20px 0 40px; }
.sh { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.sh h2 { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; white-space: nowrap; }
.sh-acc { width: 28px; height: 3px; background: var(--teal); border-radius: 2px; flex-shrink: 0; }
.sh-line { flex: 1; height: 1px; background: var(--border); }
.sh-more { font-size: 11px; color: var(--teal); font-weight: 600; white-space: nowrap; }
.sec { margin-bottom: 24px; }
.sec-w { background: var(--white); border-radius: 8px; padding: 18px; margin-bottom: 24px; border-top: 3px solid var(--teal); }
.sec-g { background: var(--bg); border-radius: 8px; padding: 18px; margin-bottom: 24px; border-top: 3px solid rgba(0,139,170,.3); }
body.dark .sec-g { background: #222; }

/* ═══════════════════════════════════════════
   8. هيرو الصفحة الرئيسية
   ═══════════════════════════════════════════ */
.hero-row { display: grid; grid-template-columns: 1fr 280px; gap: 14px; margin-bottom: 24px; }
.hero-main { border-radius: 8px; overflow: hidden; position: relative; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.hero-main-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.05) 100%); }
.hero-main-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, #1a3545, #0a1f2f); }
.hcontent { position: relative; z-index: 2; padding: 24px; }
.hcat { display: inline-block; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 3px; margin-bottom: 12px; letter-spacing: .03em; }
.htitle { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.45; margin-bottom: 10px; letter-spacing: -.01em; }
.htitle a { color: #fff; }
.hmeta { font-size: 12px; color: rgba(255,255,255,.5); }

.sidebar { background: var(--white); border-radius: 8px; overflow: hidden; }
.sidebar-hdr { padding: 12px 14px; border-bottom: 2px solid var(--teal); font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
.si { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.si:last-child { border-bottom: none; }
.si:hover { background: var(--bg); }
.si-n { font-size: 20px; font-weight: 900; color: var(--border); flex-shrink: 0; width: 22px; line-height: 1.1; }
.si-cat { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: .03em; margin-bottom: 3px; }
.si-title { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.55; }
.si-time { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* ═══════════════════════════════════════════
   9. شبكة الأخبار 3 أعمدة
   ═══════════════════════════════════════════ */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; }
.g3i { background: var(--white); padding: 16px; cursor: pointer; transition: background .12s; }
.g3i:hover { background: var(--bg); }
.g3i-img { width: 100%; height: 130px; border-radius: 5px; margin-bottom: 12px; overflow: hidden; }
.g3i-img img { width: 100%; height: 100%; object-fit: cover; }
.g3i-cat { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: .03em; margin-bottom: 5px; }
.g3i-title { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.55; margin-bottom: 6px; }
.g3i-meta { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════
   10. قائمة عمودية
   ═══════════════════════════════════════════ */
.list-v { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.lvi { background: var(--white); display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.lvi:last-child { border-bottom: none; }
.lvi:hover { background: var(--bg); }
.lvi-img { width: 100px; height: 72px; border-radius: 5px; flex-shrink: 0; overflow: hidden; }
.lvi-img img { width: 100%; height: 100%; object-fit: cover; }
.lvi-cat { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: .03em; margin-bottom: 4px; }
.lvi-title { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.55; }
.lvi-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ═══════════════════════════════════════════
   11. خريطة الحرب
   ═══════════════════════════════════════════ */
.map-promo { background: var(--teal-dd); margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.map-promo-inner { display: flex; align-items: center; gap: 18px; padding: 18px; }
.mp-icon { font-size: 32px; flex-shrink: 0; }
.mp-text { flex: 1; }
.mp-title { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mp-sub { font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.55; }
.mp-btn { background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 11px 22px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; transition: background .12s; }
.mp-btn:hover { background: var(--teal-d); }

/* ═══════════════════════════════════════════
   12. الفوتر
   ═══════════════════════════════════════════ */
.footer { background: var(--ink); padding: 32px 0 16px; margin-top: 30px; }
.f-logo { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.f-logo em { font-style: normal; color: var(--teal); }
.f-logo img { max-height: 50px; }
.f-desc { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.75; margin-bottom: 16px; max-width: 600px; }
.f-soc { display: flex; gap: 8px; margin-bottom: 24px; }
.f-soc a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: all .15s; }
.f-soc a.fb:hover { background: var(--fb); color: #fff; border-color: var(--fb); }
.f-soc a.tw:hover { background: var(--tw); color: #fff; border-color: var(--tw); }
.f-soc a.ig:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; border: none; }
.f-soc a.tg:hover { background: var(--tg); color: #fff; border-color: var(--tg); }
.f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 16px; }
.f-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: .04em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.f-col ul li { margin-bottom: 7px; }
.f-col ul li a { font-size: 13px; color: rgba(255,255,255,.42); transition: color .15s; }
.f-col ul li a:hover { color: var(--teal); }
.f-copy { font-size: 11.5px; color: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════════
   13. صفحة المقال
   ═══════════════════════════════════════════ */
.reading-bar { position: fixed; top: 0; right: 0; height: 3px; background: var(--teal); z-index: 1001; width: 0; transition: width .1s; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; padding: 0 4px; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { margin: 0 6px; color: var(--border); }

.article-layout { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start; }

/* شريط مشاركة عائم */
.share-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 8px; }
.share-sticky a { width: 42px; height: 42px; border-radius: 8px; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; cursor: pointer; }
.share-sticky a svg { width: 16px; height: 16px; fill: currentColor; }
.share-sticky a:hover { transform: translateY(-2px); }
.share-sticky a.fb:hover { background: var(--fb); color: #fff; border-color: var(--fb); }
.share-sticky a.tw:hover { background: var(--tw); color: #fff; border-color: var(--tw); }
.share-sticky a.tg:hover { background: var(--tg); color: #fff; border-color: var(--tg); }
.share-sticky a.wa:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
.share-sticky a.cp:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* المقال */
.article { background: var(--white); border-radius: 8px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.article-cat { display: inline-block; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 3px; margin-bottom: 16px; letter-spacing: .04em; }
.article-title { font-size: 32px; font-weight: 700; line-height: 1.45; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.article-excerpt { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 22px; font-weight: 500; border-right: 3px solid var(--teal); padding-right: 14px; }

.article-meta-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.author-mini { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 40px; height: 40px; 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: 16px; flex-shrink: 0; }
.author-mini-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.author-mini-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.article-date { font-size: 12px; color: var(--muted); }

.article-img { width: 100%; border-radius: 6px; margin-bottom: 6px; }
.article-img-cap { font-size: 11.5px; color: var(--muted); text-align: center; font-style: italic; margin-bottom: 24px; padding: 8px 10px 0; line-height: 1.6; }

/* أدوات */
.article-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tools-left { display: flex; align-items: center; gap: 6px; }
.tool-btn { width: 34px; height: 34px; border-radius: 5px; border: 1px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s; font-family: inherit; }
.tool-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.tool-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.tool-lbl { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 6px; }

/* جدول المحتويات */
.toc { background: var(--bg); border-right: 3px solid var(--teal); padding: 14px 18px; margin: 0 0 24px; border-radius: 0 6px 6px 0; }
body.dark .toc { background: #2a2a2a; }
.toc-title { font-size: 12px; font-weight: 700; color: var(--teal); letter-spacing: .04em; margin-bottom: 8px; }
.toc ol { padding-right: 18px; list-style: decimal; }
.toc li { margin-bottom: 5px; font-size: 13.5px; line-height: 1.6; }
.toc a:hover { color: var(--teal); }

/* محتوى المقال */
.article-body { font-size: 17px; line-height: 1.95; color: var(--ink); transition: font-size .2s; }
.article-body.size-l { font-size: 19px; line-height: 2; }
.article-body.size-xl { font-size: 21px; line-height: 2.05; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 26px; font-weight: 700; margin: 32px 0 14px; color: var(--ink); scroll-margin-top: 80px; line-height: 1.4; }
.article-body h3 { font-size: 21px; font-weight: 700; margin: 26px 0 12px; color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--teal); border-bottom: 1px solid rgba(0,139,170,.3); padding-bottom: 1px; }
.article-body a:hover { border-bottom-color: var(--teal); }

/* اقتباس */
.article-body blockquote { border: none; background: linear-gradient(135deg, #f0f7f9, #fafdfd); padding: 24px 28px; margin: 28px 0; border-radius: 8px; font-size: 19px; line-height: 1.75; color: var(--ink); position: relative; border-right: 5px solid var(--teal); }
body.dark .article-body blockquote { background: linear-gradient(135deg, #1f2a2d, #1a1a1a); }
.article-body blockquote::before { content: '"'; position: absolute; top: -10px; right: 14px; font-size: 60px; color: var(--teal); opacity: .2; line-height: 1; }
.article-body blockquote cite { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); font-style: normal; }
.article-body blockquote cite::before { content: '— '; }

/* الصور */
.article-body figure { margin: 24px 0; }
.article-body figure img { border-radius: 6px; width: 100%; }
.article-body figcaption { font-size: 12px; color: var(--muted); text-align: center; font-style: italic; margin-top: 8px; padding: 0 14px; line-height: 1.6; }

/* القوائم */
.article-body ul, .article-body ol { padding-right: 24px; margin: 18px 0; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.85; }

/* الوسوم */
.article-tags { margin: 30px 0 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.tags-lbl { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; letter-spacing: .03em; }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 6px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; color: var(--ink); transition: all .15s; }
.tag:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
body.dark .tag { background: #2a2a2a; }

/* مشاركة inline */
.share-inline-row { margin: 20px 0; padding: 18px; background: var(--bg); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
body.dark .share-inline-row { background: #222; }
.share-inline-text { font-size: 14px; font-weight: 600; color: var(--ink); }
.share-inline-icons { display: flex; gap: 6px; }
.share-inline-icons a { width: 36px; height: 36px; border-radius: 6px; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; cursor: pointer; }
.share-inline-icons a svg { width: 14px; height: 14px; fill: currentColor; }
.share-inline-icons a:hover { transform: translateY(-1px); }
.share-inline-icons a.fb:hover { background: var(--fb); color: #fff; border-color: var(--fb); }
.share-inline-icons a.tw:hover { background: var(--tw); color: #fff; border-color: var(--tw); }
.share-inline-icons a.tg:hover { background: var(--tg); color: #fff; border-color: var(--tg); }
.share-inline-icons a.wa:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
.share-inline-icons a.cp:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* بطاقة الكاتب */
.author-card { margin: 28px 0 0; padding: 24px; background: linear-gradient(135deg, #fafaf8, #f5f3ee); border-radius: 10px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
body.dark .author-card { background: linear-gradient(135deg, #252525, #1f1f1f); }
.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-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-card-info { flex: 1; min-width: 200px; }
.author-card-lbl { font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: .04em; margin-bottom: 4px; }
.author-card-name { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.author-card-bio { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.author-card-social { display: flex; gap: 6px; }
.author-card-social a { width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .15s; }
.author-card-social a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.author-card-link { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--teal); font-weight: 700; }
.author-card-link:hover { text-decoration: underline; }

/* المقالات ذات الصلة */
.related-sec { margin-top: 28px; }
.related-hdr { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.related-hdr h2 { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.related-acc { width: 30px; height: 3px; background: var(--teal); border-radius: 2px; }
.related-line { flex: 1; height: 1px; background: var(--border); }

/* ═══════════════════════════════════════════
   14. صفحة التصنيف
   ═══════════════════════════════════════════ */
.archive-hdr { padding: 22px 0; text-align: center; }
.archive-title { font-size: 32px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.archive-desc { font-size: 14px; color: var(--muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.archive-card { background: var(--white); border-radius: 8px; overflow: hidden; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.archive-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.archive-card-img { width: 100%; height: 180px; overflow: hidden; }
.archive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-body { padding: 14px; }
.archive-card-cat { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: .04em; margin-bottom: 6px; }
.archive-card-title { font-size: 15.5px; font-weight: 600; line-height: 1.55; margin-bottom: 8px; }
.archive-card-meta { font-size: 11px; color: var(--muted); }

/* الترقيم */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; font-size: 13px; color: var(--ink); }
.pagination a:hover, .pagination .current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ═══════════════════════════════════════════
   15. زر العودة للأعلى
   ═══════════════════════════════════════════ */
.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 3px 14px rgba(0,139,170,.4); }
.back-top.show { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   16. الموبايل — Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1023px) {
  .hero-row { grid-template-columns: 1fr 240px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  /* إخفاء التاريخ والشعار الفرعي */
  .topbar-date, .lsub { display: none; }

  /* اللوغو */
  .ltext { font-size: 22px; }
  .lmark { width: 40px; height: 40px; font-size: 19px; }
  .logo img { max-height: 44px; }

  /* زر القائمة */
  .btn-menu { display: flex; }

  /* إخفاء الناف الأفقي للموبايل */
  .nav { display: none; }

  /* Hero موبايل */
  .hero-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 16px; }
  .hero-main { min-height: 240px; border-radius: 8px 8px 0 0; }
  .htitle { font-size: 19px; line-height: 1.5; }
  .hcontent { padding: 16px; }
  .sidebar { border-radius: 0 0 8px 8px; }

  /* الأخبار */
  .grid3 { grid-template-columns: 1fr; }
  .g3i { padding: 14px; }
  .g3i-img { height: 180px; }

  /* القوائم */
  .lvi { padding: 12px; gap: 10px; }
  .lvi-img { width: 90px; height: 66px; }
  .lvi-title { font-size: 14px; }

  /* الخريطة */
  .map-promo-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .mp-btn { width: 100%; text-align: center; }

  /* Sections */
  .sec-w, .sec-g { border-radius: 0; padding: 14px; margin-left: -16px; margin-right: -16px; }

  /* المقال — Layout */
  .article-layout { grid-template-columns: 1fr; gap: 0; }

  /* شريط المشاركة في الأسفل */
  .share-sticky {
    position: fixed;
    bottom: 0; right: 0; left: 0;
    flex-direction: row;
    justify-content: space-around;
    padding: 8px;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 99;
    box-shadow: 0 -2px 8px rgba(0,0,0,.06);
    top: auto;
  }
  .share-sticky a { width: 44px; height: 44px; }

  /* المقال */
  .article { padding: 18px; border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .article-title { font-size: 23px; line-height: 1.5; }
  .article-excerpt { font-size: 15px; }
  .article-img { height: 240px; }
  .article-body { font-size: 16px; line-height: 1.85; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .article-body blockquote { padding: 18px 20px; font-size: 17px; }

  /* بطاقة الكاتب */
  .author-card { padding: 18px; gap: 14px; }
  .author-card-avatar { width: 60px; height: 60px; font-size: 24px; }
  .author-card-name { font-size: 19px; }

  /* الأرشيف */
  .archive-grid { grid-template-columns: 1fr; }
  .archive-title { font-size: 24px; }

  /* الفوتر */
  .f-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .f-logo { font-size: 20px; }

  /* مساحة لشريط المشاركة في الأسفل */
  body.has-share-bar .main { padding-bottom: 80px; }

  /* Back top */
  .back-top { bottom: 75px; left: 12px; width: 40px; height: 40px; font-size: 17px; }
}
