/* ==========================================================================
   Snack-News – الأنماط الرئيسية
   تطوير: Omar Haj Khamis
   الألوان والخطوط والعرض تُحقن من لوحة التحكم كمتغيرات CSS (inc/core/enqueue.php)
   ========================================================================== */

/* ---------- المتغيرات ---------- */
:root {
  --red: #e3141b;
  --red-dark: #b80d13;
  --red-soft: #fdecec;
  --ink: #141414;
  --ink-2: #2b2b2b;
  --muted: #8a8a8f;
  --line: #ececee;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --nav: #1c1c1e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
  --font: 'Tajawal', system-ui, sans-serif;
  --font-brand: 'Cairo', 'Tajawal', sans-serif;
  --container: 1320px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --surface: #ffffff;      /* خلفية البطاقات والودجات */
  --text-1: #222222;       /* نص المقال */
  --text-2: #555555;       /* نص ثانوي */
  --line-strong: #dddde2;
  --toast-bg: #141414;
  --ad-a: #fafafb;
  --ad-b: #f3f3f6;
  color-scheme: light;
}

/* ---------- الوضع الداكن ----------
   يُفعَّل عبر data-theme="dark" على <html> (السكربت في <head> يضبطه قبل الرسم لتجنّب الوميض) */
:root[data-theme="dark"] {
  --red-soft: rgba(227,20,27,.16);
  --ink: #ececef;
  --ink-2: #d6d6db;
  --muted: #8e8e97;
  --line: #2a2b31;
  --line-strong: #3a3b42;
  --bg: #0f1013;
  --bg-soft: #1b1c21;
  --surface: #16171b;
  --nav: #1f2026;
  --text-1: #d9d9de;
  --text-2: #a7a7b0;
  --toast-bg: #2a2b31;
  --ad-a: #18191d;
  --ad-b: #1d1e23;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 22px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
  color-scheme: dark;
}
:root[data-theme="dark"] .masthead__skyline { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; opacity: .45; }
:root[data-theme="dark"] .masthead__tagline { color: var(--ink); }
:root[data-theme="dark"] .mainnav__list { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .share__x { box-shadow: inset 0 0 0 1px #3a3b42; }
:root[data-theme="dark"] .footer-main { background: #0b0c0e; }
:root[data-theme="dark"] .footer-bottom { background: #070708; }
:root[data-theme="dark"] .footer-news::before { opacity: .15; }
:root[data-theme="dark"] .promo { filter: brightness(.92); }
:root[data-theme="dark"] .field input::placeholder, :root[data-theme="dark"] .field textarea::placeholder { color: #6e6e77; }

/* الشعار أبيض بالكامل في الوضع الداكن */
:root[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }

/* انتقال ناعم عند التبديل فقط (لا يؤثر على باقي الحركات) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

/* زر التبديل */
.theme-toggle {
  flex: none; position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; overflow: hidden; color: inherit; font-size: 17px;
}
.theme-toggle i { position: absolute; transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle .fa-sun { transform: translateY(120%) rotate(-90deg); opacity: 0; color: #f5b301; }
:root[data-theme="dark"] .theme-toggle .fa-moon { transform: translateY(-120%) rotate(90deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .fa-sun { transform: none; opacity: 1; }

/* ---------- الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input { font: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.45; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

/* ---------- الشعار (الرسمي) ---------- */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 64px; width: auto; max-width: none; }
.brand--footer img { height: 84px; filter: brightness(0) invert(1); } /* شعار أبيض بالكامل على خلفية الفوتر الداكنة */

/* ---------- عناصر عامة ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 20px; border-radius: 8px; border: 1.5px solid var(--red);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--sm { font-size: 14px; padding: 7px 14px; }
.btn--light { background: #fff; color: var(--red); border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--red-dark); }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--outline:disabled { color: var(--muted); border-color: var(--line); background: var(--bg-soft); cursor: default; }
.btn--wide { min-width: 220px; }
.btn i { font-size: .85em; }
.btn.is-loading i { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }

.badge {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 12.5px; font-weight: 700; line-height: 1; padding: 6px 10px 7px; border-radius: 5px;
  transition: background .2s;
}
.badge:hover { background: var(--red-dark); }
.badge--lg { font-size: 15px; padding: 7px 13px 9px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red-soft); color: var(--red); font-weight: 700; font-size: 13px;
  padding: 5px 12px; border-radius: 30px;
}

.meta-time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.meta-time i { font-size: 12px; }

.save-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--ink); font-size: 17px; transition: background .2s, color .2s;
}
.save-btn:hover { background: var(--bg-soft); color: var(--red); }
.save-btn.is-saved, .save-article.is-saved { color: var(--red); }
.save-btn.is-saved i::before, .save-article.is-saved i::before { font-weight: 900; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; font-size: 22px; transition: background .2s; }
.icon-btn:hover { background: var(--bg-soft); }

.socials { display: flex; align-items: center; gap: 14px; }
.socials a { font-size: 18px; transition: transform .2s, opacity .2s; }
.socials a:hover { transform: translateY(-2px); }
.socials--color .soc-yt { color: #ff0000; }
.socials--color .soc-ig { color: #d62976; }
.socials--color .soc-x { color: var(--ink); }
.socials--color .soc-fb { color: #1877f2; }
.socials--color .soc-tg { color: #229ed9; }
.socials--sm a { font-size: 15px; }
.socials--ghost a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 16px; }
.socials--ghost a:hover { background: var(--red); }

/* عنوان القسم */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.sec-head h2 i { color: var(--red); font-size: .85em; }
.sec-head h2 a:hover { color: var(--red); }
.sec-head__more { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 14px; }
.sec-head__more i { font-size: 12px; transition: transform .2s; }
.sec-head__more:hover i { transform: translateX(-4px); }
.sec-head--sm { margin-bottom: 12px; }
.sec-head--sm h2 { font-size: 18px; }
.sec-head--line { position: relative; }
.sec-head--line h2 { padding-inline-start: 12px; border-inline-start: 4px solid var(--red); font-size: 20px; line-height: 1.2; background: var(--surface); padding-inline-end: 14px; position: relative; z-index: 1; }
.sec-head--line::after { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 2px; background: var(--red); }

.section { margin-top: 48px; }
.section--tint { background: var(--bg-soft); padding: 28px; border-radius: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.sticky-aside { position: sticky; top: 100px; }

/* ==========================================================================
   الهيدر (موحّد لكل الصفحات)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); }
.m-header { display: none; }

.masthead { background: var(--surface); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 118px; }
.masthead__brand { position: relative; display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.masthead__brand .brand img { height: var(--logo-h, 92px); }
.masthead__tagline {
  position: relative; z-index: 1; color: var(--ink-2); font-size: 17px; font-weight: 800;
  padding-inline-start: 18px; border-inline-start: 3px solid var(--red);
  line-height: 1; padding-block: 9px 3px; /* خط Tajawal يرسم الحروف أعلى، فنزيد الحشوة العلوية ليتوسط النص مع الخط الأحمر */
}
.masthead__skyline {
  height: 96px; width: auto; align-self: flex-end; margin-inline-start: -10px;
  mix-blend-mode: multiply; opacity: .85; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 18%, #000 55%, transparent);
          mask-image: linear-gradient(to left, transparent, #000 18%, #000 55%, transparent);
}
.masthead__weather { display: inline-flex; align-items: center; gap: 7px; }
.masthead__weather i { color: #f5b301; font-size: 20px; display: inline-block; }
.masthead__weather.is-sun i { animation: sunSpin 14s linear infinite, sunGlow 3s ease-in-out infinite; }
@keyframes sunSpin { to { transform: rotate(360deg); } }
@keyframes sunGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(245,179,1,0)); }
  50% { filter: drop-shadow(0 0 7px rgba(245,179,1,.85)); }
}

.mainnav { background: var(--surface); padding-bottom: 4px; }
.site-header.is-scrolled .mainnav { box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.mainnav__list { display: flex; align-items: stretch; background: var(--nav); border-radius: 4px; min-height: 46px; }
.mainnav__list > li { position: relative; flex: 1 1 auto; display: flex; }
.mainnav__list > li > a, .mainnav__list > li > button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  color: #fff; font-weight: 700; font-size: 16px; padding: 10px 14px; white-space: nowrap;
  transition: background .2s;
}
.mainnav__list > li > a:hover, .mainnav__list > li > button:hover { background: rgba(255,255,255,.08); }
.mainnav__list > li.is-active > a, .mainnav__list > li.is-active > button { background: var(--red); }
.mainnav__list > li:first-child > a { border-radius: 0 4px 4px 0; }
.mainnav__list i { font-size: 17px; }
.dd-caret { font-size: 10px !important; opacity: .7; transition: transform .2s; }
.has-dd.is-open .dd-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 200px;
  background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); z-index: 60;
}
.has-dd.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.dropdown a i { width: 18px; text-align: center; color: var(--ink-2); font-size: 15px; }
.dropdown a:hover { background: var(--red-soft); color: var(--red); }
.dropdown a:hover i { color: var(--red); }

/* زر البحث + اللوحة المنسدلة */
.search-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-soft); font-size: 17px; transition: background .2s, color .2s;
}
.search-toggle:hover { color: var(--red); }
.mainnav__list > li.nav-search, .mainnav__list > li.nav-theme { flex: none; border-inline-start: 1px solid rgba(255,255,255,.12); }
.mainnav__list .theme-toggle { width: 54px; height: auto; border-radius: 0; color: #fff; }
.mainnav__list .theme-toggle:hover { background: rgba(255,255,255,.08); }
.mainnav__list .search-toggle { width: 54px; height: auto; border-radius: 4px 0 0 4px; background: transparent; color: #fff; }
.mainnav__list .search-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.mainnav__list .search-toggle.is-active { background: var(--red); }
.search-toggle.is-active { background: var(--red); color: #fff; }
.search-toggle.is-active i::before { content: '\f00d'; }

.search-panel {
  position: absolute; top: calc(100% - 4px); inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(0,0,0,.08); padding: 18px 0 16px;
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s var(--ease); z-index: 45;
}
.search-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.search-panel__form { display: flex; align-items: center; gap: 12px; height: 56px; padding-inline: 18px 6px; border: 2px solid var(--red); border-radius: 12px; background: var(--surface); }
.search-panel__form > i { color: var(--muted); font-size: 18px; }
.search-panel__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; height: 100%; }
.search-panel__form .btn { height: 44px; padding-inline: 26px; }
.search-panel__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; }
.search-panel__tags span { color: var(--muted); font-weight: 600; }
.search-panel__tags a { background: var(--bg-soft); padding: 4px 12px; border-radius: 20px; font-weight: 600; transition: .2s; }
.search-panel__tags a:hover { background: var(--red); color: #fff; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ==========================================================================
   الرئيسية
   ========================================================================== */
.home { padding-top: 16px; }

/* بانرات */
.promos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.promo {
  position: relative; display: flex; align-items: center; min-height: 186px; border-radius: 4px; overflow: hidden;
  isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo__img { position: absolute; inset-block: 0; inset-inline-end: 0; height: 100%; width: 62%; object-fit: cover; object-position: left center; z-index: -2; transition: transform .6s var(--ease); }
.promo:hover .promo__img { transform: scale(1.05); }
.promo::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.promo__body { position: relative; width: 72%; padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.promo__kicker { font-size: 14px; font-weight: 700; opacity: .85; }
.promo__title { font-size: 23px; font-weight: 800; line-height: 1.3; }
.promo__sub { font-size: 13.5px; margin-bottom: 10px; line-height: 1.55; }
.promo--dark { background: #15161a; color: #fff; }
.promo--dark::before { background: linear-gradient(to left, #15161a 34%, rgba(21,22,26,.7) 58%, rgba(21,22,26,.1)); }
.promo--pink { background: #f6c4c6; color: var(--ink); }
.promo--pink::before { background: linear-gradient(to left, #f6c4c6 34%, rgba(246,196,198,.6) 60%, rgba(246,196,198,0)); }
.promo--pink .promo__title { color: var(--red); }
.promo--beige { background: #ead8bf; color: var(--ink); }
.promo--beige::before { background: linear-gradient(to left, #ead8bf 34%, rgba(234,216,191,.6) 60%, rgba(234,216,191,0)); }
.promo--light { background: #f4f4f4; color: var(--ink); }
.promo--light::before { background: linear-gradient(to left, #f4f4f4 36%, rgba(244,244,244,.75) 60%, rgba(244,244,244,0)); }
.promo--light .promo__title { color: var(--red); }
.promo--light::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--red); }

/* السلايدر + الجانب */
.lead { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 12px; --hero-delay: 6s; }
.hero { position: relative; border-radius: 6px; overflow: hidden; background: #111; width: 100%; height: 100%; min-height: 440px; }
.hero__slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; color: #fff; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide__body > * { transition: transform .8s var(--ease), opacity .8s; }
.hero-slide:not(.is-active) .hero-slide__body > * { transform: translateY(18px); opacity: 0; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-active > img { transform: scale(1); }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,0) 70%); }
.hero-slide__badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; font-size: 17px; padding: 8px 15px 10px; border-radius: 6px; }
.hero-slide__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 30px 28px 26px; }
.hero-slide__badge-inline { display: none; }
.hero-slide__title { font-size: 34px; line-height: 1.4; max-width: 92%; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-slide__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-slide__excerpt { font-size: 17px; margin-top: 10px; max-width: 86%; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide .meta-time { color: #fff; margin-top: 14px; font-size: 14px; }

.hero-controls { position: absolute; bottom: 24px; inset-inline-end: 26px; z-index: 5; display: flex; align-items: center; gap: 10px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { position: relative; width: 18px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.5); overflow: hidden; transition: width .3s var(--ease), background .3s; }
.hero-dot:hover { background: rgba(255,255,255,.8); }
.hero-dot.is-active { width: 36px; background: rgba(255,255,255,.3); }
.hero-dot.is-active::after { content: ''; position: absolute; inset: 0; background: var(--red); transform-origin: right; animation: heroFill var(--hero-delay) linear forwards; }
.lead.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
@keyframes heroFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.card-side.swap-in { animation: sideIn .7s var(--ease) both; }
@keyframes sideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } } /* حركة عمودية فقط: الأفقية كانت تُخرج البطاقة عن عرض الموبايل */
.hero-nav { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; backdrop-filter: blur(6px); transition: background .2s; }
.hero-nav:hover { background: var(--red); }

.hero-side { display: flex; flex-direction: column; gap: 8px; }
.card-side { display: grid; grid-template-columns: minmax(0, 1fr) 42%; flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.card-side:hover { box-shadow: var(--shadow); border-color: transparent; }
.card-side__media { order: 2; overflow: hidden; }
.card-side__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-side:hover .card-side__media img { transform: scale(1.07); }
.card-side__body { order: 1; padding: 10px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.card-side__title { font-size: 18px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-side__title a:hover { color: var(--red); }
.card-side__chip, .card-side__ago, .card-side .save-btn { display: none; }
.card-side__foot { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* بلوكات الأقسام */
.cat-blocks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 20px; }
.cat-block { border: 1px solid var(--line); border-radius: 4px; padding: 12px 12px 14px; background: var(--surface); transition: box-shadow .25s; }
.cat-block:hover { box-shadow: var(--shadow); }
.cat-block .sec-head h2 { font-size: 16px; gap: 7px; white-space: nowrap; }
.cat-block .sec-head { gap: 6px; }
.cat-block .sec-head__more { font-size: 12.5px; white-space: nowrap; }

.card-block__media { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 9.4; background: var(--bg-soft); }
.card-block__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-block:hover .card-block__media img { transform: scale(1.07); }
.card-block__body { padding-top: 10px; }
.card-block__title { font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-block__title a:hover { color: var(--red); }
.card-block__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.card-block .save-btn { width: 28px; height: 28px; font-size: 15px; margin-inline-end: -6px; }

/* سناك ساخن */
.hot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.hot-grid__list { display: flex; flex-direction: column; gap: 14px; }
.hot-grid__list .card-block { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hot-grid__list .card-block:last-child { border-bottom: 0; padding-bottom: 0; }
.hot-grid__list .card-block__media { order: 2; border-radius: 8px; }
.hot-grid__list .card-block__body { order: 1; padding-top: 0; }
.hot-grid__list .card-block__title { font-size: 18px; -webkit-line-clamp: 3; }
.hot-grid__lead .card-overlay { height: 100%; aspect-ratio: auto; min-height: 420px; }

/* بطاقة بصورة كاملة */
.card-overlay { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 3.4; color: #fff; isolation: isolate; background: #222; }
.card-overlay > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.card-overlay:hover > img { transform: scale(1.06); }
.card-overlay::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.2) 55%, rgba(0,0,0,0)); }
.card-overlay__link { position: absolute; inset: 0; z-index: 1; }
.card-overlay__body { position: absolute; inset-inline: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-overlay__body .badge { position: relative; z-index: 2; }
.card-overlay__title { font-size: 19px; line-height: 1.5; }
.card-overlay .meta-time { color: rgba(255,255,255,.85); }
.hot-grid__lead .card-overlay__title { font-size: 28px; }

/* عمود تقارير */
.card-list { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow .25s, border-color .25s; }
.card-list:hover { box-shadow: var(--shadow); border-color: transparent; }
.card-list__media { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.card-list__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-list:hover .card-list__media img { transform: scale(1.06); }
.card-list__badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px 5px; border-radius: 4px; }
.card-list__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.card-list__title { font-size: 20px; line-height: 1.5; }
.card-list__title a:hover { color: var(--red); }
.card-list__excerpt { color: var(--text-2); font-size: 15px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 13px; margin-top: auto; width: 100%; }
.card-list__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.card-list__meta .save-btn { margin-inline-start: auto; }
.card-list--lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 0; overflow: hidden; border: 0; background: var(--bg-soft); }
.card-list--lead .card-list__media { border-radius: 0; aspect-ratio: auto; min-height: 330px; }
.card-list--lead .card-list__body { padding: 26px 8px 22px 26px; justify-content: center; }
.card-list--lead .card-list__title { font-size: 27px; }
.card-list--lead .card-list__excerpt { -webkit-line-clamp: 4; font-size: 16px; }
.reports-grid { margin-top: 20px; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* عنصر صغير */
.mini { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; align-items: center; }
.mini__media { order: 2; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 1.3; background: var(--bg-soft); }
.mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mini:hover .mini__media img { transform: scale(1.08); }
.mini__body { order: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini__title { font-size: 15.5px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__title a:hover { color: var(--red); }

/* أعمدة ثلاثية */
.col-block .card-block__title { font-size: 18px; }
.link-list { margin-top: 12px; }
.link-list li { padding: 12px 0; border-top: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 4px; }
.link-list a { font-weight: 700; font-size: 15.5px; line-height: 1.6; }
.link-list a:hover { color: var(--red); }

/* ==========================================================================
   الودجات (sidebar.php)
   ========================================================================== */
.layout__aside { display: flex; flex-direction: column; gap: 22px; }
.widget { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); overflow: hidden; }
.widget__title { display: flex; align-items: center; gap: 10px; font-size: 20px; padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.widget__title i { color: var(--red); font-size: .9em; }
.widget__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }

.rank-list { display: flex; flex-direction: column; counter-reset: rank; }
.rank { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank:first-child { padding-top: 0; }
.rank:last-child { border-bottom: 0; padding-bottom: 0; }
.rank__num { flex: none; width: 20px; padding-top: 2px; color: var(--red); font-family: var(--font-brand); font-weight: 900; font-size: 26px; line-height: 1; text-align: center; }
.rank__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rank__title { font-size: 15px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rank__title a:hover { color: var(--red); }
.rank__views { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.rank__body { flex: 1; }
.rank__media { flex: none; width: 84px; aspect-ratio: 1.3; border-radius: 6px; overflow: hidden; background: var(--bg-soft); align-self: center; }
.rank__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rank:hover .rank__media img { transform: scale(1.08); }



/* ==========================================================================
   صفحة التصنيف
   ========================================================================== */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb i { font-size: 9px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--ink-2); max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cat-hero {
  margin-bottom: 26px; position: relative; display: flex; align-items: center; gap: 22px; padding: 30px 32px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 0% 100%, rgba(227,20,27,.42), transparent 45%), var(--nav); color: #fff; isolation: isolate;
}
.cat-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/ui/header-skyline.jpg') left 20px bottom / auto 115% no-repeat; filter: invert(1) grayscale(1); mix-blend-mode: screen; opacity: .22; }
.cat-hero::after { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.cat-hero__icon { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--red); font-size: 30px; box-shadow: 0 8px 24px rgba(227,20,27,.4); }
.cat-hero__text h1 { font-size: 34px; }
.cat-hero__text p { opacity: .8; font-size: 16px; margin-top: 4px; max-width: 640px; }


.list-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; gap: 12px; }
.list-head__title { font-size: 22px; padding-inline-start: 12px; border-inline-start: 4px solid var(--red); line-height: 1.2; }
.tabs { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; }
.tabs button { padding: 7px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--muted); transition: .2s; }
.tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.cat-list { display: flex; flex-direction: column; gap: 16px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.empty { text-align: center; padding: 60px 20px; background: var(--bg-soft); border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.empty i { font-size: 46px; color: var(--line-strong); }

.fade-up { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   صفحة المقال
   ========================================================================== */
.read-progress { position: fixed; top: 0; inset-inline: 0; z-index: 200; height: 3px; background: transparent; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .1s linear; }

.article__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.article__title { font-size: 34px; line-height: 1.5; font-weight: 800; }
.article__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; width: 100%; padding-bottom: 16px; }
.article__info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; font-size: 14.5px; color: var(--text-2); }
.article__info > span { display: inline-flex; align-items: center; gap: 7px; }
.article__info i { color: var(--muted); font-size: 15px; }
.author { font-weight: 700; color: var(--ink); }
.author__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--red), #ff6b5b); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.article__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.save-article.is-saved { background: var(--red-soft); }

.share { display: flex; align-items: center; gap: 8px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 17px; transition: transform .2s, filter .2s; }
.share a:hover, .share button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share__fb { background: #1877f2; }
.share__x { background: #000; }
.share__wa { background: #25d366; }
.share__link { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line-strong); }
.share--labeled span { font-weight: 700; margin-inline-end: 4px; }

.article__figure { margin: 4px 0 0; }
.article__figure img { width: 100%; border-radius: 6px; aspect-ratio: 16 / 8.6; object-fit: cover; }
.article__figure figcaption { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 10px 2px 0; }

.article__tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 14px 0 4px; font-size: 13px; color: var(--muted); }
.article__tools button { width: 34px; height: 30px; border-radius: 6px; border: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--ink-2); }
.article__tools button:hover { border-color: var(--red); color: var(--red); }

.article__content { --fs-step: 0; font-size: calc(18px + var(--fs-step) * 1.5px); line-height: 2; color: var(--text-1); }
.article__content > * + * { margin-top: 1em; }
.article__content p.dateline { display: inline-flex; color: var(--red); font-weight: 800; font-size: .9em; background: var(--red-soft); padding: 2px 12px; border-radius: 5px; }
.article__content h2, .article__content h3 { font-size: 1.28em; padding-inline-start: 12px; border-inline-start: 4px solid var(--red); line-height: 1.5; margin-top: 1.6em; }
.article__content blockquote {
  position: relative; margin-inline: 0; margin-block: 1.4em; padding: 22px 64px 22px 26px; background: var(--red-soft); border-radius: 6px;
  font-weight: 500;
}
.article__content blockquote::before { content: '\201D'; position: absolute; top: 4px; inset-inline-start: 18px; font-family: Georgia, serif; font-size: 70px; line-height: 1; color: var(--red); font-weight: 900; }
.article__content blockquote p + p { margin-top: .6em; }
.article__content ul, .article__content ol { padding-inline-start: 22px; }
.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }
.article__content li::marker { color: var(--red); }
.article__content strong { font-weight: 800; }

.article__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 30px; padding: 18px 0; border-block: 1px solid var(--line); }
.article__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.article__tags a { background: var(--bg-soft); padding: 5px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: .2s; }
.article__tags a:hover { background: var(--red); color: #fff; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.post-nav__item { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; transition: .2s; }
.post-nav__item span { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 13px; font-weight: 700; }
.post-nav__item strong { font-size: 15.5px; line-height: 1.6; }
.post-nav__item:hover { border-color: var(--red); background: var(--red-soft); }
.post-nav__item--prev { text-align: left; align-items: flex-end; }

.related-wrap { margin-top: 36px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related .mini { border: 1px solid var(--line); border-radius: 6px; padding: 10px; grid-template-columns: minmax(0, 1fr) 100px; transition: box-shadow .25s; }
.related .mini:hover { box-shadow: var(--shadow); }
.page-single .layout { gap: 30px; }
.page-single .layout__aside .mini { grid-template-columns: minmax(0, 1fr) 96px; }

/* ==========================================================================
   الفوتر
   ========================================================================== */
.site-footer { margin-top: 64px; }
.footer-news { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.footer-news::before { content: ''; position: absolute; inset: 0; background: url('../img/ui/header-skyline.jpg') left bottom / auto 140% no-repeat; mix-blend-mode: multiply; opacity: .25; filter: grayscale(1); }
.newsletter { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'icon title row' 'icon text row'; align-items: center; gap: 2px 20px; padding-block: 30px; }
.newsletter__icon { grid-area: icon; font-size: 44px; opacity: .9; }
.newsletter h3 { grid-area: title; font-size: 24px; }
.newsletter p { grid-area: text; opacity: .9; }
.newsletter__row { grid-area: row; display: flex; background: #fff; /* أبيض في الوضعين لأنه فوق الشريط الأحمر */ border-radius: 10px; padding: 5px; width: 440px; max-width: 100%; }
.newsletter__row input { flex: 1; min-width: 0; border: 0; outline: 0; padding-inline: 14px; color: #141414; background: transparent; }
.newsletter__row .btn { background: #141414; border-color: #141414; color: #fff; }
.newsletter__row .btn:hover { background: #000; }

.footer-main { background: #111214; color: #b9b9bf; padding-block: 52px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-about p { font-size: 15px; line-height: 1.9; max-width: 380px; margin-bottom: 20px; }
.footer-about .footer-tag { color: #fff; font-weight: 700; margin: 10px 0 12px; }
.footer-grid h4 { color: #fff; font-size: 18px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-grid h4::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 30px; height: 3px; background: var(--red); border-radius: 3px; }
.footer-grid ul li + li { margin-top: 9px; }
.footer-grid ul a { font-size: 15px; transition: color .2s, padding .2s; }
.footer-grid ul a:hover { color: #fff; padding-inline-start: 4px; }
.footer-bottom { background: #0b0b0c; color: #7d7d84; font-size: 13.5px; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 16px; flex-wrap: wrap; }

/* ==========================================================================
   الطبقات العائمة: الدرج / البحث / التنبيه / للأعلى
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(330px, 86vw); background: var(--surface); padding: 16px 18px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; gap: 12px; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.drawer__head .brand img { height: 52px; }
.drawer h5 { font-size: 13px; color: var(--muted); margin-top: 10px; }
.drawer__list a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer__list a i { width: 20px; text-align: center; color: var(--red); }
.drawer__pages { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }


.toast { position: fixed; bottom: 24px; left: 50%; z-index: 120; display: flex; align-items: center; gap: 10px; background: var(--toast-bg); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
.toast i { color: #ff5a5f; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

.to-top { position: fixed; bottom: 24px; left: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 12px; background: var(--red); color: #fff; font-size: 17px; box-shadow: 0 8px 20px rgba(227,20,27,.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* ==========================================================================
   شريط آخر الأخبار
   ========================================================================== */
.ticker { background: var(--surface); }
.ticker__inner { display: flex; align-items: stretch; height: 44px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; overflow: hidden; background: var(--surface); }
.ticker__label { flex: none; display: flex; align-items: center; gap: 9px; padding-inline: 16px; background: var(--red); color: #fff; font-weight: 800; font-size: 14.5px; position: relative; }
.ticker__label > span:last-child { line-height: 1; translate: 0 .17em; } /* توسيط النص بصرياً داخل الشارة */
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: livePulse 1.6s ease-out infinite; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
.ticker__track { position: relative; flex: 1; min-width: 0; margin-inline-start: 16px; }
.ticker__item { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(100%); transition: transform .55s var(--ease), opacity .55s; pointer-events: none; }
.ticker__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ticker__item.is-out { opacity: 0; transform: translateY(-100%); }
.ticker__item a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ticker__item a:hover { color: var(--red); }
.ticker__marquee { display: none; }
.ticker__nav { flex: none; display: flex; align-items: center; gap: 6px; padding-inline: 10px; }
.ticker__nav button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); transition: .2s; }
.ticker__nav button:hover { border-color: var(--red); color: var(--red); }

/* ==========================================================================
   مساحات إعلانات Google
   ضع كود الإعلان داخل .ad-slot__inner – عند وجود كود يختفي الشكل التوضيحي تلقائياً
   ========================================================================== */
.ad-slot { margin: 30px auto; text-align: center; width: 100%; }
.ad-slot__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.ad-slot__inner { display: flex; justify-content: center; align-items: center; margin-inline: auto; overflow: hidden; }
.ad-slot__inner:empty { background: repeating-linear-gradient(-45deg, var(--ad-a) 0 12px, var(--ad-b) 12px 24px); border: 1px dashed var(--line-strong); border-radius: 8px; }
.ad-slot__inner:empty::before { content: 'مساحة إعلانية · ' attr(data-size); color: var(--muted); font-size: 13px; font-weight: 600; }
.ad-slot--leaderboard .ad-slot__inner { max-width: 970px; min-height: 90px; }
.ad-slot--rect .ad-slot__inner { max-width: 300px; min-height: 250px; }
.ad-slot--tall .ad-slot__inner { max-width: 300px; min-height: 600px; }
.ad-slot--article .ad-slot__inner { max-width: 336px; min-height: 280px; }
.layout__aside .ad-slot { margin: 0; }
.article__content .ad-slot { margin-block: 1.8em; }
.article__content .ad-slot__label { line-height: 1.4; }
.aside-widgets { display: flex; flex-direction: column; gap: 22px; }

/* ==========================================================================
   الصفحات الثابتة: من نحن / ميثاق الشرف / فريق العمل / اتصل بنا
   ========================================================================== */
.page-hero { margin-bottom: 30px; }
.page-hero .cat-hero__text p { max-width: 720px; }
.page-body { font-size: 17.5px; line-height: 2; color: var(--text-1); }
.page-body > * + * { margin-top: 1.1em; }
.page-lead { font-size: 21px; line-height: 1.85; font-weight: 700; color: var(--ink); padding-inline-start: 18px; border-inline-start: 4px solid var(--red); }
.page-section { margin-top: 40px; }
.page-section > h2 { font-size: 23px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.page-section > h2 i { color: var(--red); font-size: .85em; translate: 0 -.2em; }

.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.value-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: .25s var(--ease); }
.value-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.value-card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 20px; margin-bottom: 14px; }
.value-card h3 { font-size: 18px; margin-bottom: 6px; }
.value-card p { font-size: 15px; line-height: 1.8; color: var(--text-2); }

.quote-band { position: relative; padding: 28px 30px 28px 70px; border-radius: 12px; background: var(--nav); color: #fff; font-size: 18px; line-height: 1.9; font-weight: 500; overflow: hidden; }
.quote-band::before { content: '\201D'; position: absolute; inset-inline-end: 22px; top: 6px; font-family: Georgia, serif; font-size: 90px; color: var(--red); line-height: 1; }
.quote-band { padding: 28px 30px; padding-inline-end: 80px; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.person { text-align: center; padding: 26px 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: .25s var(--ease); }
.person:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.person__avatar { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-brand); font-size: 32px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--red), #ff7a5c); box-shadow: 0 0 0 5px var(--red-soft); }
.person__name { font-size: 18px; }
.person__role { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 3px 12px; border-radius: 20px; }
.person--lead { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; text-align: start; padding: 24px 28px; background: var(--bg-soft); border-color: transparent; }
.person--lead .person__avatar { margin: 0; width: 96px; height: 96px; }
.person--lead .person__name { font-size: 22px; }
.person--lead p { font-size: 15px; color: var(--text-2); margin-top: 8px; line-height: 1.8; }
.person--join { border-style: dashed; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.person--join .person__avatar { background: var(--bg-soft); color: var(--red); box-shadow: none; font-size: 28px; }
.person--join p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.org-badge { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 12px; border: 1px solid var(--line); font-weight: 800; letter-spacing: 1px; }
.org-badge span { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 600; }

.charter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: charter; }
.charter li { counter-increment: charter; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; font-size: 16px; line-height: 1.6; transition: .2s var(--ease); }
.charter li::before { content: counter(charter, decimal-leading-zero); flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-family: var(--font-brand); font-weight: 900; font-size: 15px; transition: .2s; }
.charter li:hover { border-color: var(--red); }
.charter li:hover::before { background: var(--red); color: #fff; }

.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding: 24px 26px; border-radius: 14px; background: var(--red-soft); }
.page-cta h3 { font-size: 20px; }
.page-cta p { color: var(--text-2); font-size: 15px; margin-top: 4px; }


/* اتصل بنا */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; transition: .25s var(--ease); }
.contact-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.contact-card i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 19px; margin-bottom: 6px; }
.contact-card strong { font-size: 17px; }
.contact-card span { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.contact-form { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.contact-form h2 { grid-column: 1 / -1; font-size: 22px; }
.contact-form > p { grid-column: 1 / -1; color: var(--text-2); font-size: 15px; margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14.5px; }
.field label b { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15.5px; background: var(--surface); color: var(--ink); outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,20,27,.08); }
.field__error { color: var(--red); font-size: 13px; font-weight: 600; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: var(--red-soft); }
.field__count { font-size: 12px; color: var(--muted); text-align: end; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-foot .btn { min-width: 160px; height: 48px; }
.form-foot .btn.is-loading { opacity: .7; }
.contact-success { text-align: center; padding: 50px 24px; border-radius: 14px; background: var(--bg-soft); }
.contact-success > i { font-size: 54px; color: #16a34a; margin-bottom: 14px; }
.contact-success h2 { font-size: 24px; }
.contact-success p { color: var(--text-2); margin: 8px 0 20px; }

/* ==========================================================================
   محاذاة الأيقونات مع النص العربي
   خط Tajawal يرسم الحروف أعلى من منتصف السطر، فنرفع الأيقونات المجاورة للنص قليلاً
   حتى تتوسط معه بصرياً (لا يشمل الأزرار التي تحتوي أيقونة فقط).
   ========================================================================== */
.mainnav__list a > i, .mainnav__list button > i, .dropdown a i, .drawer__list a i,
.sec-head h2 i, .sec-head__more i, .widget__title i, .chip i, .meta-time i,
.card-list__meta i, .article__info i, .rank__views i, .btn i, .breadcrumb i,
.article__figure figcaption i, .masthead__weather i, .post-nav__item span i,
.article__tags > i, .toast i, .search-panel__form > i {
  translate: 0 -.2em;
}

/* ---------- الرئيسية: عناوين أصغر (عدا عنوان السلايدر) ---------- */
@media (min-width: 992px) {
  .home .sec-head h2 { font-size: 21px; }
  .home .cat-block .sec-head h2 { font-size: 15px; }
  .home .card-side__title { font-size: 16px; }
  .home .card-block__title { font-size: 15px; }
  .home .col-block .card-block__title, .home .hot-grid__list .card-block__title { font-size: 16px; }
  .home .card-overlay__title { font-size: 16.5px; }
  .home .hot-grid__lead .card-overlay__title { font-size: 23px; }
  .home .card-list--lead .card-list__title { font-size: 22px; }
  .home .link-list a { font-size: 14.5px; }
  .home .promo__title { font-size: 21px; }
  .home .widget__title { font-size: 18px; }
  .home .rank__title { font-size: 14.5px; }
}

/* ==========================================================================
   التجاوب
   ========================================================================== */
@media (max-width: 1280px) {
  .cat-blocks { grid-template-columns: repeat(3, 1fr); }
  .mainnav__list > li > a, .mainnav__list > li > button { font-size: 15px; padding-inline: 10px; gap: 7px; }
  .hero-slide__title { font-size: 28px; }
  .promo__title { font-size: 20px; }
  .promo__sub { font-size: 13px; }
}

@media (max-width: 1100px) {
  .mainnav__list i:not(.dd-caret):not(.fa-magnifying-glass) { display: none; }
  .topbar__city { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .lead { grid-template-columns: minmax(0, 1fr); }
  .hero { height: auto; min-height: 0; aspect-ratio: 890 / 422; }
  .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo__title { font-size: 24px; }
  .hero-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .card-side { min-height: 120px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-list { grid-template-columns: 240px minmax(0, 1fr); }
}

/* ---- موبايل وتابلت: تصميم الموبايل ---- */
@media (max-width: 991px) {
  .masthead, .mainnav { display: none; }
  .site-header { top: 0 !important; }
  .site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
  .m-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; padding: 6px 12px; }
  .m-header > .icon-btn { justify-self: start; }
  .m-header__actions { justify-self: end; }
  .m-header .brand img { height: 50px; }
  .m-header__actions { display: flex; align-items: center; gap: 2px; }
  .m-header .theme-toggle { width: 42px; height: 42px; font-size: 19px; }
  .m-header .search-toggle { background: transparent; font-size: 20px; }
  .m-header .search-toggle.is-active { background: var(--red); }
  .search-panel { top: 100%; }
  .widget--desktop-only { display: none; } /* "أخبار ذات صلة" على الكمبيوتر فقط */
  .search-panel { padding: 12px 0; }
  .search-panel__form { height: 50px; padding-inline: 14px 5px; }
  .search-panel__form .btn { height: 40px; padding-inline: 16px; }

  /* ترتيب الرئيسية يتبع ترتيب الأقسام في منشئ الرئيسية */
  .home { padding-top: 12px; }
  .home .promos { margin-top: 12px; }

  .hero { border-radius: 10px; aspect-ratio: 4 / 3.3; max-height: 460px; }
  .hero-slide__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-slide__body { padding: 20px 18px 34px; display: flex; flex-direction: column; align-items: flex-start; }
  .hero-slide__badge { display: none; }
  .hero-slide__badge-inline { display: inline-block; margin-bottom: 8px; }
  .hero-slide .badge--lg { font-size: 13px; padding: 6px 11px 7px; }
  .hero-slide__title { font-size: 22px; max-width: 100%; }
  .hero-slide__excerpt { font-size: 14.5px; max-width: 100%; }
  .hero-slide .meta-time { display: none; }
  .hero-controls { inset-inline: 0; bottom: 12px; justify-content: center; }
  .hero-nav { display: none; }
  .hero-dot { width: 8px; height: 8px; border-radius: 8px; }
  .hero-dot.is-active { width: 26px; }

  .hero-side { display: flex; gap: 0; }
  .card-side { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; grid-template-columns: minmax(0, 1fr) 46%; gap: 14px; min-height: 0; }
  .card-side:hover { box-shadow: none; }
  .card-side__media { border-radius: 8px; min-height: 128px; }
  .card-side__body { padding: 0; justify-content: flex-start; position: relative; }
  .card-side__badge { display: none; }
  .card-side__title { font-size: 17px; -webkit-line-clamp: 3; padding-top: 22px; }
  .card-side__chip { display: block; }
  .card-side__foot { position: static; margin-top: auto; }
  .card-side__foot > .meta-time { display: none; }
  .card-side__ago { display: block; position: absolute; top: 0; inset-inline-end: 0; }
  .card-side__ago .meta-time { font-size: 12px; }
  .card-side .save-btn { display: inline-grid; margin-inline-start: auto; margin-inline-end: -6px; }

  .promos { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .promo { min-height: 172px; border-radius: 6px; }
  .promo__img { width: 70%; }
  .promo__body { width: 62%; padding: 16px 18px; }
  .promo__title { font-size: 26px; }
  .promo__sub { font-size: 14px; }

  .cat-blocks { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 22px; }
  .cat-block { border: 0; padding: 0 0 18px; }
  .cat-block:hover { box-shadow: none; }
  .cat-block .sec-head h2 { font-size: 21px; padding-inline-start: 10px; border-inline-start: 4px solid var(--red); line-height: 1.2; }
  .cat-block .sec-head h2 i { display: none; }
  .cat-block .card-block { display: grid; grid-template-columns: minmax(0, 1fr) 50%; gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 0; overflow: hidden; }
  .cat-block .card-block__media { order: 2; border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 110px; } /* الصورة بكامل ارتفاع البطاقة */
  .cat-block .card-block__body { order: 1; padding: 12px 0 8px 12px; padding-inline-start: 12px; display: flex; flex-direction: column; }
  .cat-block .card-block__title { font-size: 16px; -webkit-line-clamp: 3; }
  .cat-block .card-block__foot { margin-top: auto; }

  .layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-aside { position: static; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hot-grid { grid-template-columns: minmax(0, 1fr); }
  .hot-grid__lead .card-overlay { width: 100%; min-height: 0; height: 300px; aspect-ratio: auto; }
  .hot-grid__lead .card-overlay__title { font-size: 22px; }
  .section { margin-top: 34px; }
  .section--tint { padding: 18px; margin-inline: -16px; border-radius: 0; }
  .sec-head h2 { font-size: 21px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
  .newsletter { grid-template-columns: auto 1fr; grid-template-areas: 'icon title' 'icon text' 'row row'; gap: 4px 16px; }
  .newsletter__row { width: 100%; margin-top: 14px; }

  .cat-hero { padding: 22px 20px; gap: 16px; }
  .cat-hero__icon { width: 56px; height: 56px; font-size: 24px; border-radius: 14px; }
  .cat-hero__text h1 { font-size: 26px; }
  .cat-hero__text p { font-size: 14.5px; }

  .article__title { font-size: 26px; }
  .related { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 991px) {
  .home .sec-head h2, .home .cat-block .sec-head h2 { font-size: 19px; }
  .home .card-side__title { font-size: 15.5px; }
  .home .cat-block .card-block__title, .home .card-block__title { font-size: 15px; }
  .home .hot-grid__lead .card-overlay__title { font-size: 20px; }
  .home .card-list--lead .card-list__title { font-size: 19px; }
  .home .promo__title { font-size: 23px; }
}

@media (max-width: 991px) {
  .ticker__inner { height: 42px; border-radius: 0; border-inline: 0; }
  .ticker .container { padding-inline: 0; }
  .ticker__label { font-size: 13px; padding-inline: 12px; }
  .ticker__track { margin-inline-start: 12px; }
  .ticker__item { display: none; }
  /* على الموبايل: شريط متحرك أفقياً من اليسار إلى اليمين */
  .ticker__track { overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 14px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to left, transparent, #000 14px, #000 calc(100% - 24px), transparent); }
  .ticker__marquee { display: flex; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: max-content; animation: tickerMove var(--ticker-dur, 60s) linear infinite; will-change: transform; }
  .ticker.is-paused .ticker__marquee { animation-play-state: paused; }
  .ticker__marquee a { display: flex; align-items: center; gap: 14px; padding-inline-end: 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
  .ticker__marquee a::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
  .ticker__nav { display: none; }
  .ticker__track { margin-inline-end: 12px; }
  .ad-slot { margin: 22px auto; }
  .ad-slot--leaderboard .ad-slot__inner { min-height: 100px; }
  .ad-slot--tall .ad-slot__inner { min-height: 250px; }
  .layout__aside .ad-slot { margin: 0 auto; }
  .charter, .value-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .person--lead { flex-direction: column; text-align: center; }
  .page-lead { font-size: 18.5px; }
}

@media (max-width: 640px) {
  .grid-4, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .overlay-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .overlay-grid .card-overlay { aspect-ratio: 3 / 4; }
  .overlay-grid .card-overlay__body { padding: 12px; }
  .overlay-grid .card-overlay__title { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .overlay-grid .badge { font-size: 11px; }
  .overlay-grid .meta-time { display: none; }
  .hot-grid__list .card-block { grid-template-columns: minmax(0, 1fr) 42%; gap: 12px; }
  .hot-grid__list .card-block__title { font-size: 15.5px; }

  .card-list, .card-list--lead { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; overflow: hidden; }
  .card-list__media { border-radius: 0; }
  .card-list__body { padding: 14px; }
  .card-list--lead .card-list__media { min-height: 0; aspect-ratio: 16 / 10; }
  .card-list--lead .card-list__body { padding: 16px; }
  .card-list--lead .card-list__title { font-size: 21px; }
  .card-list__title { font-size: 18px; }
  .list-head { flex-direction: column; align-items: flex-start; }

  .cat-hero { flex-wrap: wrap; }
  
  .article__title { font-size: 23px; }
  .article__info { gap: 8px 16px; font-size: 13.5px; }
  .article__info > .meta-views { display: none; }
  .article__actions { width: 100%; justify-content: space-between; }
  .article__content { font-size: calc(17px + var(--fs-step) * 1.5px); line-height: 1.95; }
  .article__content blockquote { padding: 18px 46px 18px 16px; }
  .article__content blockquote::before { font-size: 54px; inset-inline-start: 10px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--prev { text-align: right; align-items: flex-start; }
  .breadcrumb span { max-width: 200px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > div:last-child { grid-column: span 2; }
  .footer-bottom__inner { justify-content: center; text-align: center; }
  .newsletter__icon { font-size: 34px; }
  .newsletter h3 { font-size: 19px; }
  .newsletter p { font-size: 14px; }
  .to-top { left: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   إضافات قالب ووردبريس (Snack-News)
   ========================================================================== */

/* إتاحة */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 300; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* إظهار/إخفاء أقسام المنشئ حسب الجهاز */
@media (max-width: 991px) { .hide-mobile { display: none !important; } }
@media (min-width: 992px) { .hide-desktop { display: none !important; } }

/* شريط الإدارة */
.admin-bar .sticky-aside { top: 132px; }
.admin-bar .read-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .read-progress { top: 46px; } }

/* بديل الصورة */
.thumb-fallback { display: block; width: 100%; height: 100%; min-height: 100%; background: linear-gradient(135deg, var(--bg-soft), var(--line)); position: relative; }
.thumb-fallback::after { content: '\f03e'; font-family: 'Font Awesome 6 Free'; font-weight: 400; position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-strong); font-size: 28px; }
.card-overlay > .thumb-fallback, .hero-slide > .thumb-fallback { position: absolute; inset: 0; z-index: -2; }
.hero-slide > .thumb-fallback { z-index: 0; }

/* لون التصنيف */
.badge[style*="--cat"], .card-list__badge[style*="--cat"] { background: var(--cat); }
.chip[style*="--cat"] { color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, transparent); }
.cat-hero-wrap[style*="--cat"] .cat-hero__icon { background: var(--cat); }
.cat-hero-wrap[style*="--cat"] .cat-hero::after { background: var(--cat); }

/* أعمدة متغيرة من المنشئ */
.promos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-blocks--4 { grid-template-columns: repeat(4, 1fr); }
.cat-blocks--3 { grid-template-columns: repeat(3, 1fr); }
.hb-box { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--surface); }
.posts-grid--mini { gap: 16px 24px; }
.posts-grid--list { display: flex; flex-direction: column; }
.card-block__badge { margin-bottom: 6px; }
@media (max-width: 1100px) { .promos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .promos--2, .promos--3 { grid-template-columns: minmax(0, 1fr); }
  .cat-blocks--3, .cat-blocks--4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .grid-4.overlay-grid { grid-template-columns: repeat(2, 1fr); } }

/* المشاهدات */
.meta-views { display: inline-flex; align-items: center; gap: 5px; }
.meta-views b { font-weight: inherit; }

/* رأس المقال */
.article__subtitle { font-size: 19px; line-height: 1.75; color: var(--text-2); font-weight: 500; padding-inline-start: 14px; border-inline-start: 3px solid var(--red); }
a.author:hover { color: var(--red); }
img.author__avatar { object-fit: cover; }
.author { display: inline-flex; align-items: center; gap: 8px; }
.article__figure img { height: auto; }
.page-links { display: flex; gap: 8px; align-items: center; margin-top: 24px; }
.page-links a, .page-links > span { min-width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; }
.table-wrap { overflow-x: auto; }
.article__content table, .entry-content table { width: 100%; border-collapse: collapse; font-size: .9em; }
.article__content th, .article__content td, .entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.article__content th, .entry-content th { background: var(--bg-soft); }
.article__content a, .entry-content a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article__content h4 { font-size: 1.12em; margin-top: 1.4em; }
.article__content img, .entry-content img { height: auto; border-radius: 6px; }
.article__content iframe, .entry-content iframe { max-width: 100%; }
.wp-caption, .article__content figure { max-width: 100%; margin-inline: 0; }
.wp-caption-text, .article__content figcaption { color: var(--muted); font-size: 13px; padding-top: 8px; }
.alignleft { float: left; margin: .4em 0 1em 1.4em; }
.alignright { float: right; margin: .4em 1.4em 1em 0; }
.aligncenter { margin-inline: auto; }
.article__content::after { content: ''; display: table; clear: both; }

/* صندوق الكاتب */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 26px; padding: 22px; border-radius: 12px; background: var(--bg-soft); }
.author-box__avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-brand); font-size: 28px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--red), #ff7a5c); object-fit: cover; box-shadow: 0 0 0 4px var(--surface); }
.author-box__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-box__label { color: var(--red); font-size: 13px; font-weight: 700; }
.author-box__name { font-size: 20px; }
.author-box__name a:hover { color: var(--red); }
.author-box p { color: var(--text-2); font-size: 15px; line-height: 1.8; }
.author-box__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--red); font-weight: 700; font-size: 14px; }
.author-box__more i { font-size: 12px; translate: 0 -.2em; }

/* صفحة الكاتب */
.author-hero__avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-brand); font-size: 38px; font-weight: 900; background: var(--red); color: #fff; object-fit: cover; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.author-hero__job { display: inline-block; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.12); padding: 3px 12px; border-radius: 20px; margin-bottom: 6px; }
.author-hero__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 12px; font-size: 14px; }
.author-hero__stats span { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.author-hero__stats i { translate: 0 -.15em; }
.author-hero__social { gap: 12px !important; }
.author-hero__social a { font-size: 16px; }
.author-hero__social a:hover { color: var(--red); }

/* الترقيم */
.pagination { margin-top: 28px; }
.pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding-inline: 10px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 700; transition: .2s; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
[data-archive].is-loading .cat-list, [data-archive].is-loading #cat-lead { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* بحث مضمّن */
.search-inline { display: flex; gap: 8px; width: 100%; max-width: 520px; margin-inline: auto; }
.search-inline input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding-inline: 14px; background: var(--surface); color: var(--ink); outline: 0; }
.search-inline input:focus { border-color: var(--red); }
.search-inline .btn { height: 46px; }

/* 404 */
.err404 { text-align: center; padding: 56px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.err404__code { font-family: var(--font-brand); font-weight: 900; font-size: clamp(90px, 18vw, 170px); line-height: 1; color: var(--red); text-shadow: 6px 6px 0 var(--red-soft); }
.err404 h1 { font-size: clamp(22px, 3vw, 30px); }
.err404 p { color: var(--text-2); max-width: 560px; }

/* محتوى الصفحات */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 23px; margin-top: 1.6em; }
.entry-content h3 { font-size: 19px; margin-top: 1.4em; }
.entry-content ul { list-style: disc; padding-inline-start: 22px; }
.entry-content ol { list-style: decimal; padding-inline-start: 22px; }
.entry-content li::marker { color: var(--red); }
.entry-content blockquote { margin: 1.4em 0; padding: 22px 26px; border-radius: 12px; background: var(--nav); color: #fff; font-size: 18px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.page-body .quote-band, .page-body .page-section, .page-body .value-grid { margin-top: 28px; }
.admin-hint { padding: 12px 16px; border-radius: 10px; background: var(--red-soft); font-size: 14px; }
.admin-hint a { color: var(--red); text-decoration: underline; }
a.person { display: block; color: inherit; }
img.person__avatar { object-fit: cover; }

/* نموذج الميثاق: القوائم المرقّمة كبطاقات */
.page-charter .entry-content ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: charter; list-style: none; padding: 0; }
.page-charter .entry-content ol li { counter-increment: charter; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; font-size: 16px; line-height: 1.6; transition: .2s var(--ease); }
.page-charter .entry-content ol li::before { content: counter(charter, decimal-leading-zero); flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-family: var(--font-brand); font-weight: 900; font-size: 15px; transition: .2s; }
.page-charter .entry-content ol li:hover { border-color: var(--red); }
.page-charter .entry-content ol li:hover::before { background: var(--red); color: #fff; }
@media (max-width: 991px) { .page-charter .entry-content ol { grid-template-columns: minmax(0, 1fr); } }

/* اتصل بنا */
.contact-form > p .req { color: var(--red); }
.field-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { color: inherit; }

/* المحفوظات */
.saved-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-weight: 700; color: var(--text-2); }
.saved-toolbar[hidden] { display: none; }
.skeleton-list { display: flex; flex-direction: column; gap: 16px; }
.skeleton-list span { height: 150px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty[hidden] { display: none; }

/* الودجات العامة (قوائم، أرشيف، بحث…) */
.widget__body > ul, .widget__body .menu { display: flex; flex-direction: column; }
.widget__body > ul li, .widget__body .menu li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget__body > ul li:last-child { border-bottom: 0; }
.widget__body > ul a:hover { color: var(--red); }
.widget select { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); padding-inline: 10px; }
.follow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.follow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; transition: filter .2s, transform .2s; background: #444; }
.follow:hover { filter: brightness(1.08); transform: translateY(-2px); }
.follow--fb { background: #1877f2; } .follow--x { background: #000; } .follow--ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.follow--yt { background: #ff0000; } .follow--tg { background: #229ed9; } .follow--tt { background: #111; } .follow--wa { background: #25d366; } .follow--in { background: #0a66c2; }
.newsletter--compact { display: flex; flex-direction: column; gap: 10px; padding: 0; color: var(--text-2); }
.newsletter--compact .newsletter__row { width: 100%; border: 1px solid var(--line-strong); }

/* أيقونات تواصل إضافية */
.socials--color .soc-tt { color: var(--ink); }
.socials--color .soc-in { color: #0a66c2; }
.socials--color .soc-wa { color: #25d366; }
.share__tg { background: #229ed9; } .share__in { background: #0a66c2; } .share__em { background: #6b7280; }

/* الفوتر */
.footer-grid .menu, .footer-grid ul { display: block; }
.footer-bottom__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom__links a:hover, .footer-credit strong { color: #fff; }
.footer-credit { opacity: .8; }
.brand--footer.brand--own img { filter: none; }
:root[data-theme="dark"] .brand--footer.brand--own img { filter: none; }

/* التعليقات */
.comments { margin-top: 36px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.comment-list .children { margin-top: 14px; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 14px; }
.comment-body { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12.5px; color: var(--muted); margin: 4px 0 8px; }
.comment-content { color: var(--text-1); line-height: 1.9; }
.reply a { color: var(--red); font-weight: 700; font-size: 14px; }
.comment-respond { padding: 22px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.comment-reply-title { font-size: 20px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form label { font-weight: 700; font-size: 14.5px; display: block; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font: inherit; background: var(--surface); color: var(--ink); outline: 0; }
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--red); }

@media (max-width: 640px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-box__body { align-items: center; }
  .author-hero__avatar { width: 72px; height: 72px; font-size: 28px; }
}

/* حسابات الكاتب في صندوق الكاتب */
.author-box__social { display: flex; gap: 8px; margin-top: 4px; }
.author-box__social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 14px; transition: .2s; }
.author-box__social a:hover { background: var(--red); color: #fff; }

/* ==========================================================================
   عناصر المحرر (تُستخدم في المقال والصفحات والمحرر)
   ========================================================================== */
.sn-subhead { font-size: 1.28em; line-height: 1.5; padding-inline-start: 12px; border-inline-start: 4px solid var(--red, #e3141b); margin: 1.6em 0 .6em; font-weight: 800; }
.sn-icon-head { display: flex; align-items: center; gap: 12px; font-size: 1.3em; line-height: 1.5; margin: 1.6em 0 .7em; font-weight: 800; border: 0 !important; padding: 0 !important; }
.sn-icon-head i { flex: none; width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: var(--red, #e3141b); color: #fff; font-size: .6em; }
blockquote.sn-quote { position: relative; margin: 1.4em 0; padding: 22px 64px 22px 26px; background: var(--red-soft, #fdecec); border-radius: 8px; border: 0; font-weight: 500; font-style: normal; color: inherit; }
blockquote.sn-quote::before { content: '\201D'; position: absolute; top: 4px; inset-inline-start: 18px; font-family: Georgia, serif; font-size: 70px; line-height: 1; color: var(--red, #e3141b); font-weight: 900; }
blockquote.sn-quote p { margin: 0; }
blockquote.sn-quote p + p { margin-top: .6em; }
blockquote.sn-quote .sn-quote__source { font-style: italic; font-size: .92em; opacity: .85; }
blockquote.sn-quote--dark { background: #1c1c1e; color: #fff; padding: 28px 30px; padding-inline-start: 80px; border-radius: 12px; font-size: 1.02em; line-height: 1.9; }
blockquote.sn-quote--dark::before { font-size: 90px; inset-inline-start: 22px; top: 8px; }
.sn-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4em 0; }
.sn-box { padding: 22px; border: 1px solid var(--line, #ececee); border-radius: 12px; background: var(--surface, #fff); transition: .25s; margin: 1em 0; }
.sn-boxes .sn-box { margin: 0; }
.sn-box:hover { border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.06); transform: translateY(-3px); }
.sn-box__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft, #fdecec); color: var(--red, #e3141b); font-size: 20px; margin-bottom: 14px; }
.sn-box h3 { font-size: 1.05em; margin: 0 0 6px; padding: 0 !important; border: 0 !important; line-height: 1.5; }
.sn-box p { font-size: .88em; line-height: 1.8; color: var(--text-2, #555); margin: 0; }
.sn-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 1.6em 0; padding: 24px 26px; border-radius: 14px; background: var(--red-soft, #fdecec); }
.sn-cta h3 { font-size: 1.12em; margin: 0; padding: 0 !important; border: 0 !important; line-height: 1.5; }
.sn-cta p { color: var(--text-2, #555); font-size: .85em; margin: 4px 0 0; }
.sn-cta__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red, #e3141b); color: #fff !important; font-weight: 700; font-size: 15px; padding: 11px 22px; border-radius: 8px; text-decoration: none !important; transition: background .2s; white-space: nowrap; }
.sn-cta__btn:hover { background: var(--red-dark, #b80d13); }
.sn-cta__btn i { font-size: .85em; }
.sn-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.4em 0; border-radius: 10px; overflow: hidden; background: #000; }
.sn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sn-video--short { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }
a.sn-related { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 18px; margin: 1.6em 0; padding: 12px; border: 1px solid var(--line, #ececee); border-inline-start: 4px solid var(--red, #e3141b); border-radius: 10px; background: var(--surface, #fff); color: inherit !important; text-decoration: none !important; transition: box-shadow .25s; }
a.sn-related:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.sn-related__media { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg-soft, #f6f6f8); }
.sn-related__media img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.sn-related__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sn-related__kicker { color: var(--red, #e3141b); font-weight: 800; font-size: 13px; line-height: 1.2; }
.sn-related__title { font-size: 1.02em; line-height: 1.55; font-weight: 800; }
a.sn-related:hover .sn-related__title { color: var(--red, #e3141b); }
.sn-related__excerpt { color: var(--text-2, #555); font-size: .8em; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.sn-related:not(:has(.sn-related__media)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  .sn-boxes { grid-template-columns: minmax(0, 1fr); }
  a.sn-related { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .sn-related__excerpt { display: none; }
  blockquote.sn-quote { padding: 18px 46px 18px 16px; }
  blockquote.sn-quote--dark { padding: 22px 18px; padding-inline-start: 56px; }
  .sn-cta { padding: 20px; }
}
:root[data-theme="dark"] blockquote.sn-quote--dark { background: #0b0c0e; box-shadow: inset 0 0 0 1px var(--line); }

/* ==========================================================================
   معرض الفيديو
   ========================================================================== */
.vgallery--dark { background: #111214; color: #fff; padding: 28px; border-radius: 16px; }
.vgallery--dark .sec-head h2, .vgallery--dark .sec-head h2 a { color: #fff; }
.vgallery__wrap { position: relative; }
.vgallery__track { display: grid; gap: 14px; }
.vgallery--shorts .vgallery__track { grid-auto-flow: column; grid-auto-columns: calc((100% - 14px * 4) / 5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.vgallery--shorts .vgallery__track::-webkit-scrollbar { display: none; }
.vgallery--grid .vgallery__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vgallery--grid .vcard--lead { grid-column: span 2; grid-row: span 2; }
.vcard { display: flex; flex-direction: column; gap: 10px; text-align: start; scroll-snap-align: start; min-width: 0; color: inherit; }
.vcard__media { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }
.vgallery--shorts .vcard__media { aspect-ratio: 9 / 16; }
.vcard--lead .vcard__media { aspect-ratio: auto; height: 100%; min-height: 300px; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard:hover .vcard__media img { transform: scale(1.06); }
.vcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); }
.vcard__play { position: absolute; z-index: 1; top: 50%; left: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--red-rgb, 227,20,27), .92); color: #fff; font-size: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.vcard__play i { translate: 2px 0; }
.vcard:hover .vcard__play { transform: scale(1.12); }
.vcard__tag { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(4px); direction: ltr; }
.vcard__body { display: flex; flex-direction: column; gap: 4px; }
.vcard__title { font-weight: 700; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard--lead .vcard__title { font-size: 20px; }
.vcard:hover .vcard__title { color: var(--red); }
.vcard__meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); }
.vgallery--dark .vcard__meta { color: rgba(255,255,255,.6); }
.vcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.vgallery__nav { position: absolute; z-index: 2; top: calc(50% - 40px); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); transition: opacity .2s, background .2s; }
.vgallery__nav:hover { background: var(--red); color: #fff; }
.vgallery__nav:disabled { opacity: 0; pointer-events: none; }
.vgallery__nav--prev { inset-inline-start: -14px; }
.vgallery__nav--next { inset-inline-end: -14px; }

.vmodal { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .25s; }
.vmodal.is-open { visibility: visible; opacity: 1; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(4px); }
.vmodal__box { position: relative; width: min(960px, 100%); }
.vmodal.is-short .vmodal__box { width: min(400px, 100%, calc((100vh - 150px) * 9 / 16)); }
.vmodal__box { max-height: calc(100vh - 150px); }
.vmodal__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vmodal.is-short .vmodal__frame { aspect-ratio: 9 / 16; }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__close { position: absolute; top: -48px; inset-inline-end: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; }
.vmodal__close:hover { background: var(--red); }

@media (max-width: 1100px) { .vgallery--shorts .vgallery__track { grid-auto-columns: calc((100% - 14px * 2) / 3); } }
@media (max-width: 991px) {
  .vgallery--dark { margin-inline: -16px; border-radius: 0; padding: 22px 16px; }
  .vgallery--shorts .vgallery__track { grid-auto-columns: 42%; }
  .vgallery--grid .vgallery__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgallery__nav { display: none; }
}
@media (max-width: 640px) {
  .vgallery--grid .vgallery__track { grid-template-columns: minmax(0, 1fr); }
  .vgallery--grid .vcard--lead { grid-column: auto; grid-row: auto; }
  .vcard--lead .vcard__media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   السلايدر على الموبايل: السلايدر فقط (بلا المقالات الجانبية)، تصنيف + عنوان أصغر بلا مقدمة
   ========================================================================== */
@media (max-width: 991px) {
  .lead .hero-side { display: none; }
  .lead { gap: 0; }
  .hero { aspect-ratio: 16 / 11; max-height: 420px; }
  .hero-slide::after { background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,0) 55%); }
  .hero-slide__body { padding: 14px 16px 30px; }
  .hero-slide__excerpt { display: none; }
  .hero-slide__title, .home .hero-slide__title { font-size: 17px; line-height: 1.55; -webkit-line-clamp: 2; }
  .hero-slide__badge-inline { margin-bottom: 6px; }
  .hero-slide .badge--lg { font-size: 12px; padding: 5px 9px 6px; }
  .hero-controls { bottom: 10px; }
}
@media (max-width: 480px) {
  .hero-slide__title, .home .hero-slide__title { font-size: 16px; }
}

/* ==========================================================================
   الترويسة (كمبيوتر): الشعار النصي تحت الشعار + بانر بجانبه
   ========================================================================== */
.masthead__logo { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.masthead__logo .masthead__tagline { border: 0; padding: 0; font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--ink-2); letter-spacing: .2px; translate: 0; }
.masthead--banner .masthead__inner { gap: 28px; }
.masthead--banner .masthead__brand { flex: none; padding-block: 10px; }
.masthead__banner { flex: 1 1 auto; min-width: 0; max-width: 680px; display: block; margin-inline-start: auto; }
.masthead__banner img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 222; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
a.masthead__banner img { transition: transform .3s var(--ease), box-shadow .3s; }
a.masthead__banner:hover img { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
:root[data-theme="dark"] .masthead__banner img { box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 1280px) {
  .masthead--banner .masthead__inner { gap: 18px; }
  .masthead__banner { max-width: 580px; }
}

/* ---- الشريط العلوي: التاريخ يميناً، الطقس والتواصل يساراً ---- */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__start, .topbar__end { display: flex; align-items: center; gap: 18px; }
.topbar__date { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; line-height: 1; }
.topbar__date i { color: var(--red); font-size: 14px; }
.topbar__weather { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.topbar__weather > i { font-size: 17px; }
.topbar__city { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.topbar__city i { color: var(--muted); font-size: 12px; }
.topbar__temp { font-weight: 800; color: var(--ink); padding: 4px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.topbar__socials { gap: 6px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line-strong); }
.topbar__socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); }
.topbar__socials a:hover { transform: translateY(-1px); border-color: currentColor; }
.masthead--banner .masthead__inner { min-height: 0; padding-block: 14px; }
/* زر الوضع الداكن يبقى ظاهراً عند إخفاء أيقونات القائمة (أقل من 1100px) */
@media (max-width: 1100px) { .mainnav__list .theme-toggle i { display: inline-block !important; } }

/* بلوكات الأقسام: عناوين إضافية تحت المقال الرئيسي */
.cat-block { display: flex; flex-direction: column; }
.cat-block__links { margin-top: 10px; }
.cat-block__links li { padding: 9px 0; gap: 3px; }
.cat-block__links a { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-block__links .meta-time { font-size: 12px; }
.cat-blocks--6 .cat-block__links a { font-size: 13.5px; }
.cat-blocks--3 { gap: 16px; }
.cat-blocks--3 .cat-block { padding: 16px 16px 12px; }
.cat-blocks--3 .cat-block__links a { font-size: 15px; }
@media (max-width: 1280px) { .cat-blocks--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) {
  .cat-blocks--3 .cat-block { padding: 0 0 18px; }
  .cat-block__links { margin-top: 6px; }
  .cat-block__links a { font-size: 15px; }
}
/* بلوكات الأقسام بلا صور: العنوان الأول أبرز */
.cat-block__links--only { margin-top: 0; }
.cat-block__links--only li:first-child { border-top: 0; padding-top: 2px; }
.cat-block__links--only li:first-child a { font-size: 16px; font-weight: 800; -webkit-line-clamp: 3; }
/* بلوكات الأقسام: صور مصغرة لبقية المقالات */
.cat-block__links--thumbs li { flex-direction: row !important; align-items: flex-start; gap: 10px !important; }
.cat-block__thumb { flex: none; width: 64px; aspect-ratio: 1.25; border-radius: 6px; overflow: hidden; background: var(--bg-soft); display: block; }
.cat-block__thumb img, .cat-block__thumb .thumb-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cat-block__links--thumbs li:hover .cat-block__thumb img { transform: scale(1.08); }
.cat-block__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cat-blocks--3 .cat-block__thumb { width: 86px; }
.cat-block__links--only.cat-block__links--thumbs li:first-child .cat-block__thumb { width: 100%; }
@media (max-width: 991px) { .cat-block__thumb { width: 86px; } }
.cat-block__links--only.cat-block__links--thumbs li:first-child { flex-direction: column !important; }

/* ==========================================================================
   التحميل التلقائي للمقال التالي (صفحة المقال)
   ========================================================================== */
.next-posts { margin-top: 28px; }
.next-post { margin-top: 36px; }
.next-post__sep { position: relative; display: flex; justify-content: center; margin-bottom: 26px; }
.next-post__sep::before { content: ''; position: absolute; inset-inline: 0; top: 50%; border-top: 2px dashed var(--line-strong); }
.next-post__sep span {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 14px; font-weight: 800; box-shadow: 0 4px 14px rgba(227,20,27,.25);
}
.next-post__sep i { font-size: 12px; }
.next-posts__loader {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 1px; color: var(--muted); font-size: 14px; font-weight: 600;
  visibility: hidden; height: 1px; overflow: hidden;
}
.next-posts__loader.is-active { visibility: visible; height: auto; padding-block: 28px; }
.next-posts__loader .spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--red);
  animation: nextSpin .8s linear infinite;
}
@keyframes nextSpin { to { transform: rotate(360deg); } }
