/* ═══════════════════════════════════════════════════════
   آفاق — CSS الرئيسي v2.3
   ملف: css/afaq.css
═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --P: #1a5f7a; --Pl: #2288a8; --Pd: #0f3d4f;
  --A: #c8873a; --Ad: #a06b2a;
  --Plt: rgba(26,95,122,.10); --Pxs: rgba(26,95,122,.05);
  --Alt: rgba(200,135,58,.10);
  --bg: #f5f6f8; --sur: #ffffff; --sur2: #f0f2f5;
  --ink: #111827; --tx: #374151; --tx2: #6b7280; --tx3: #9ca3af;
  --bd: #e5e7eb; --bd2: #f0f2f5;
  --fb: 'Cairo', sans-serif; --fh: 'Playfair Display', serif;
  --r: 12px; --rs: 7px; --rl: 20px; --W: 1200px;
  --s1: 0 1px 4px rgba(0,0,0,.06);
  --s2: 0 4px 18px rgba(0,0,0,.09);
  --s3: 0 8px 32px rgba(0,0,0,.11);
  --s4: 0 16px 52px rgba(0,0,0,.13);
  --ease: .2s ease;
}
[dir="rtl"] { --fh: 'cairo', serif; }

/* ── DARK MODE ── */
[data-theme="dark"],
body.dark-mode {
  --bg: #0f1117; --sur: #1a1c25; --sur2: #22242f;
  --ink: #f0f1f3; --tx: #c8cbd3; --tx2: #8b8f9a; --tx3: #555966;
  --bd: #2a2d38; --bd2: #22242f;
  --s1: 0 1px 4px rgba(0,0,0,.22);
  --s2: 0 4px 18px rgba(0,0,0,.32);
  --s3: 0 8px 32px rgba(0,0,0,.38);
  --s4: 0 16px 52px rgba(0,0,0,.48);
  --Plt: rgba(34,136,168,.12); --Pxs: rgba(34,136,168,.06);
  --Alt: rgba(200,135,58,.12);
}

/* ── RESET ── */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .35s;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--P); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--A); }
ul, ol { padding-inline-start: 1.4em; }
.container { max-width: var(--W); margin: 0 auto; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── SKIP LINK ── */
.afq-skip {
  position: absolute; top: -200px; inset-inline-start: 10px; z-index: 99999;
  background: var(--P); color: #fff; padding: 8px 20px; border-radius: var(--rs);
  font-family: var(--fb); font-size: 14px; font-weight: 700;
  text-decoration: none; box-shadow: var(--s3); transition: top .25s;
}
.afq-skip:focus { top: 10px; color: #fff; }

/* ── PROGRESS BAR ── */
.afq-rbar {
  position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(to left, var(--A), var(--P));
  transform-origin: start; transform: scaleX(0); transition: transform .1s linear;
}
[dir="ltr"] .afq-rbar { background: linear-gradient(to right, var(--A), var(--P)); }

/* ═══════════════════════════════════════════════════════
   ── AD SYSTEM (Premium Responsive Design)
   ═══════════════════════════════════════════════════════ */

/* الحاوية العامة لكل الإعلانات */
.afq-ad-zone {
  transition: all .3s;
  position: relative;
}

.afq-ad-zone.ad-off {
  display: none !important;
}

/* حاوية كود الإعلان (تم تغيير الاتجاه لعمودي ليظهر العنوان في الأعلى) */
.afq-ad-live {
  max-width: 100%;
  overflow: hidden; /* حصر شامل لمنع خروج أي عنصر */
  display: flex;
  flex-direction: column; /* ✅ العنوان في الأعلى والإعلان تحته */
  justify-content: center; 
  align-items: center;
  min-height: 50px;
}

/* عنوان "إعلان" الصغير (مع خلفية بيضاء خافتة وتنسيق التاج) */
.afq-ad-live::before {
  content: 'إعلان';
  display: inline-block;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding: 3px 12px; /* ✅ إضافة مساحة داخلية */
  background: rgba(0,0,0,.04); /* ✅ خلفية بيضاء خافتة جداً */
  border-radius: 4px; /* ✅ حواف مستديرة خفيفة */
  opacity: 0.8;
  transition: opacity .3s, color .35s, background .3s;
  align-self: center; /* توسيط العنوان */
}

.afq-ad-zone:hover .afq-ad-live::before {
  opacity: 1;
  background: rgba(0,0,0,.06); /* تكثيف الخلفية قليلاً عند التمرير */
}

/* ★ حصر الإعلانات بشكل صارم لمنع كسر التصميم أو خروج الإطار */
.afq-ad-live iframe,
.afq-ad-live img,
.afq-ad-live ins,
.afq-ad-live div {
  max-width: 100% !important;
  height: auto !important;
  border: none !important;
}

/* ── تنسيق Placeholder (المساحة المحجوزة) ── */
.afq-ad-wrap {
  background: var(--sur2); 
  border: 1.5px dashed var(--bd); 
  border-radius: var(--r);
  padding: 24px 16px; 
  text-align: center; 
  position: relative;
  transition: background .35s, border-color .35s;
}

.afq-ad-wrap::before {
  content: attr(data-ad-label);
  position: absolute; 
  top: -1px; 
  inset-inline-start: 14px;
  transform: translateY(-50%); 
  font-size: 9px; 
  font-weight: 700; 
  color: var(--tx3);
  text-transform: uppercase; 
  letter-spacing: .8px;
  background: var(--sur2); 
  padding: 0 6px; 
  border-radius: 3px;
  transition: background .35s;
}

.afq-ad-inner { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 6px; 
  pointer-events: none; 
}

.afq-ad-ico { 
  font-size: 22px; 
  color: var(--bd); 
}

.afq-ad-lbl { 
  font-size: 12px; 
  color: var(--tx3); 
  font-weight: 600; 
}

.afq-ad-sz  { 
  font-size: 10px; 
  color: var(--tx3); 
  opacity: .6; 
}

/* ── تنسيق إعلان الهيدر (Leaderboard) ── */
.afq-ad-zone--leaderboard {
  background: var(--sur2); 
  border-bottom: 1px solid var(--bd);
  padding: 12px 0; 
  text-align: center;
  transition: background .35s, border-color .35s;
}

.afq-ad-zone--leaderboard .afq-ad-wrap {
  display: inline-flex; 
  flex-direction: row; 
  align-items: center; 
  gap: 12px;
  padding: 10px 28px; 
  width: auto; 
  border-radius: var(--rs);
  border-color: var(--bd);
}

.afq-ad-zone--leaderboard .afq-ad-inner { 
  flex-direction: row; 
  gap: 10px; 
}

/* ── تنسيق الإعلان العائم في أسفل الشاشة (Anchor) ── */
.afq-ad-zone--floating {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--sur);
  border-top: 1px solid var(--bd);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  padding: 8px 0;
  text-align: center;
  transition: background .35s, border-color .35s;
}

.afq-ad-zone--floating .afq-ad-live::before {
  margin-bottom: 4px;
  font-size: 8px;
}

/* إضافة زر إغلاق للإعلان العائم */
.afq-ad-close-btn {
  position: absolute;
  top: -12px;
  inset-inline-end: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--sur);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .2s, background .2s;
  z-index: 10;
}

.afq-ad-close-btn:hover {
  transform: scale(1.15);
  background: #d32f2f;
}

/* ── Dark Mode للإعلانات ── */
[data-theme="dark"] .afq-ad-wrap,
body.dark-mode .afq-ad-wrap {
  background: rgba(255,255,255,.03);
  border-color: var(--bd);
}

[data-theme="dark"] .afq-ad-wrap::before,
body.dark-mode .afq-ad-wrap::before {
  background: var(--sur);
}

[data-theme="dark"] .afq-ad-zone--leaderboard,
body.dark-mode .afq-ad-zone--leaderboard {
  background: var(--sur);
}

[data-theme="dark"] .afq-ad-zone--floating,
body.dark-mode .afq-ad-zone--floating {
  background: var(--sur);
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}

/* ✅ تعديل خلفية العنوان في الوضع الداكن */
[data-theme="dark"] .afq-ad-live::before,
body.dark-mode .afq-ad-live::before {
  background: rgba(255,255,255,.06);
}

[data-theme="dark"] .afq-ad-zone:hover .afq-ad-live::before,
body.dark-mode .afq-ad-zone:hover .afq-ad-live::before {
  background: rgba(255,255,255,.1);
}

/* ── Responsive Design للهواتف ── */
@media (max-width: 768px) {
  .afq-ad-zone--leaderboard .afq-ad-live {
    transform: scale(0.85);
    transform-origin: center;
    margin: -10px 0;
  }
  
  .afq-ad-wrap {
    padding: 18px 12px;
  }
  .afq-ad-ico { font-size: 18px; }
  .afq-ad-lbl { font-size: 11px; }
  
  .afq-ad-zone--floating {
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .afq-ad-zone--leaderboard .afq-ad-live {
    transform: scale(0.7);
    margin: -20px 0;
  }
}

/* ── HEADER ── */
.afq-header {
  background: var(--sur); border-bottom: 1px solid var(--bd);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow var(--ease), background .35s, border-color .35s;
}
.afq-header.stuck { box-shadow: var(--s2); }
.afq-hdr { display: flex; align-items: center; height: 65px; gap: 16px; }
.afq-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.afq-logo-mark {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--P), var(--Pd));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--fh); font-size: 19px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(26,95,122,.28); transition: transform var(--ease);
}
.afq-logo:hover .afq-logo-mark { transform: rotate(-4deg) scale(1.07); }
[dir="ltr"] .afq-logo:hover .afq-logo-mark { transform: rotate(4deg) scale(1.07); }
.afq-logo-img { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; }
.afq-logo-name { font-family: var(--fh); font-size: 21px; font-weight: 700; color: var(--ink); transition: color .35s; display: block; }
.afq-logo-tag  { font-size: 10px; color: var(--tx3); letter-spacing: .7px; text-transform: uppercase; display: block; }
.afq-nav { flex: 1; display: flex; justify-content: center; }
.afq-nav ul { display: flex; list-style: none; gap: 2px; padding: 0; margin: 0; }
.afq-nav a { display: block; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--tx2); border-radius: var(--rs); transition: all var(--ease); white-space: nowrap; }
.afq-nav a:hover, .afq-nav .current-menu-item > a, .afq-nav .current_page_item > a { color: var(--P); background: var(--Plt); }
.afq-hdr-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.afq-ico-btn {
  width: 34px; height: 34px; border: 1.5px solid var(--bd); border-radius: var(--rs);
  background: transparent; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--tx3); transition: all var(--ease); font-size: 13px;
}
.afq-ico-btn:hover { border-color: var(--P); color: var(--P); background: var(--Plt); }
.afq-lang-btn { font-family: var(--fb); font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.afq-cta {
  background: var(--P); color: #fff !important; padding: 7px 16px; border-radius: var(--rs);
  font-size: 13px; font-weight: 700; font-family: var(--fb); border: none; cursor: pointer;
  display: inline-block; box-shadow: 0 2px 8px rgba(26,95,122,.28); transition: all var(--ease);
}
.afq-cta:hover { background: var(--Pd); transform: translateY(-1px); }
.afq-burger { display: none; border: 1.5px solid var(--bd); border-radius: var(--rs); width: 36px; height: 36px; background: transparent; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 8px; }
.afq-burger span { display: block; width: 100%; height: 1.5px; background: var(--tx); border-radius: 2px; transition: all .25s; }
.afq-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.afq-burger.is-open span:nth-child(2) { opacity: 0; }
.afq-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
[dir="ltr"] .afq-burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(-45deg); }
[dir="ltr"] .afq-burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(45deg); }
.afq-theme-btn .fa-moon { display: none; }
[data-theme="dark"] .afq-theme-btn .fa-sun, body.dark-mode .afq-theme-btn .fa-sun { display: none; }
[data-theme="dark"] .afq-theme-btn .fa-moon, body.dark-mode .afq-theme-btn .fa-moon { display: inline; }

/* Search dropdown */
.afq-search-drop { display: none; background: var(--sur); border-bottom: 1px solid var(--bd); padding: 14px 0; box-shadow: var(--s2); }
.afq-search-drop.open { display: block; }
.afq-search-wrap { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.afq-search-input {
  flex: 1; border: 1.5px solid var(--bd); border-radius: var(--rs);
  padding: 10px 14px; font-family: var(--fb); font-size: 14px;
  color: var(--ink); background: var(--sur2); outline: none;
  transition: border-color var(--ease), background .35s, color .35s;
}
.afq-search-input:focus { border-color: var(--P); }
.afq-search-input::placeholder { color: var(--tx3); }
.afq-search-btn { background: var(--P); color: #fff; border: none; padding: 10px 20px; border-radius: var(--rs); font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--fb); transition: background var(--ease); }
.afq-search-btn:hover { background: var(--Pd); }

/* ── HERO ── */
.afq-hero { position: relative; overflow: hidden; background: #0a0c12; }
.afq-hero-bg { position: absolute; inset: 0; z-index: 0; }
.afq-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(1.1); }
body.dark-mode .afq-hero-bg img, [data-theme="dark"] .afq-hero-bg img { filter: brightness(.35) saturate(.9); }
.afq-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,12,18,.3) 0%, rgba(10,12,18,.85) 100%); }
.afq-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: end; padding: 80px 0 48px; min-height: 480px; }
.afq-hero-main { display: flex; flex-direction: column; justify-content: flex-end; }
.afq-hero-cat { display: inline-flex; align-items: center; gap: 6px; background: var(--A); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 20px; width: fit-content; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.afq-hero-title { font-family: var(--fh); font-size: clamp(28px,4.5vw,48px); font-weight: 700; color: #fff; line-height: 1.22; margin-bottom: 14px; }
.afq-hero-excerpt { font-size: 16px; color: rgba(255,255,255,.65); line-height: 1.8; max-width: 540px; margin-bottom: 20px; }
.afq-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.45); }
.afq-hero-author { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); }
.afq-hero-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.afq-hero-av img { width: 100%; height: 100%; object-fit: cover; }
.afq-hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--A); color: #fff; padding: 11px 26px; border-radius: var(--rs); font-size: 14px; font-weight: 700; font-family: var(--fb); border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(200,135,58,.35); transition: all var(--ease); text-decoration: none; margin-top: 8px; width: fit-content; }
.afq-hero-btn:hover { background: var(--Ad); transform: translateY(-2px); color: #fff; }
[dir="ltr"] .afq-hero-btn i { transform: scaleX(-1); }
.afq-hero-side { display: flex; flex-direction: column; gap: 14px; }
.afq-hero-card { display: flex; gap: 12px; background: rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 12px; cursor: pointer; transition: all var(--ease); text-decoration: none; color: inherit; }
.afq-hero-card:hover { background: rgba(255,255,255,.14); transform: translateX(-4px); color: inherit; }
[dir="ltr"] .afq-hero-card:hover { transform: translateX(4px); }
.afq-hero-card-img { width: 90px; height: 72px; border-radius: var(--rs); overflow: hidden; flex-shrink: 0; }
.afq-hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.afq-hero-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.afq-hero-card-cat { font-size: 9px; font-weight: 700; color: var(--A); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.afq-hero-card-title { font-family: var(--fh); font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afq-hero-card-date { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 4px; }

/* ── SECTIONS (Premium Glow Design) ── */
.afq-sec { padding: 60px 0; position: relative; }
.afq-sec-head { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; }
.afq-sec-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--A), var(--Ad));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(200,135,58,.12), 0 4px 15px rgba(200,135,58,.35);
  transition: all .3s ease;
}
.afq-sec-dot i { display: block !important; color: #ffffff; font-size: 15px; }
.afq-sec-head:hover .afq-sec-dot { transform: scale(1.1) rotate(10deg); box-shadow: 0 0 0 8px rgba(200,135,58,.08), 0 6px 20px rgba(200,135,58,.45); }
.afq-sec-line { flex: 1; height: 2px; background: linear-gradient(to left, var(--A) 0%, var(--P) 60%, transparent 100%); border-radius: 10px; opacity: 0.5; transition: opacity .3s ease; position: relative; }
.afq-sec-head:hover .afq-sec-line { opacity: 0.9; }
.afq-sec-line::after { content: ''; position: absolute; top: 0; left: 0; width: 80px; height: 100%; background: linear-gradient(to left, transparent, rgba(255,255,255,.8), transparent); border-radius: 10px; transform: translateX(-200px); transition: transform 0.7s ease; }
.afq-sec-head:hover .afq-sec-line::after { transform: translateX(calc(100% + 300px)); }
.afq-sec-more { font-size: 11px; font-weight: 800; color: var(--P); background: var(--Plt); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 16px; border-radius: 50px; border: 1px solid transparent; transition: all .3s ease; text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0; }
.afq-sec-more i { font-size: 10px; transition: transform .3s ease; }
.afq-sec-more:hover { color: #ffffff; background: linear-gradient(135deg, var(--P), var(--Pl)); border-color: transparent; box-shadow: 0 4px 15px rgba(26,95,122,.3); gap: 10px; }
.afq-sec-more:hover i { transform: translateX(-4px); }
[dir="ltr"] .afq-sec-more i { transform: scaleX(-1); }
[dir="ltr"] .afq-sec-more:hover i { transform: scaleX(-1) translateX(-4px); }
.afq-sec-head-cat { margin-top: 50px; }
.afq-cat-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 10px; }
@media (max-width: 768px) {
  .afq-sec { padding: 40px 0; }
  .afq-sec-dot { width: 34px; height: 34px; }
  .afq-sec-dot i { font-size: 13px; }
  .afq-sec-line { display: none; }
}

/* Reveal animations */
.afq-reveal { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.afq-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── GRID ── */
.afq-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.afq-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── CARDS ── */
.afq-card { display: flex; flex-direction: column; background: var(--sur); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--s1); transition: all var(--ease); text-decoration: none; color: inherit; }
.afq-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--s4); color: inherit; }
.afq-card-img { height: 200px; position: relative; overflow: hidden; background: var(--sur2); flex-shrink: 0; }
.afq-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.afq-card:hover .afq-card-img img { transform: scale(1.05); }
.afq-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.afq-card-cat { display: inline-block; background: var(--Plt); color: var(--P); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-bottom: 6px; width: fit-content; transition: all var(--ease); }
.afq-card-cat:hover { background: var(--P); color: #fff; }
.afq-card-title { font-family: var(--fh); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; margin: 0 0 10px; transition: color var(--ease); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afq-card:hover .afq-card-title { color: var(--P); }
.afq-card-excerpt { font-size: 13px; color: var(--tx2); line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.afq-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--bd2); }
.afq-card-author-sm { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); }
.afq-card-author-sm img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.afq-card-date { font-size: 11px; color: var(--tx3); }
.afq-card-lg .afq-card-img { height: 260px; }
.afq-card-lg .afq-card-title { font-size: 21px; -webkit-line-clamp: 3; }

/* ── HORIZONTAL CARD ── */
.afq-hcard { display: flex; gap: 18px; background: var(--sur); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--s1); transition: all var(--ease); text-decoration: none; color: inherit; }
.afq-hcard:hover { border-color: transparent; transform: translateY(-3px); box-shadow: var(--s3); color: inherit; }
.afq-hcard-img { width: 200px; min-height: 160px; flex-shrink: 0; overflow: hidden; position: relative; background: var(--sur2); }
.afq-hcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.afq-hcard:hover .afq-hcard-img img { transform: scale(1.05); }
.afq-hcard-body { padding-block: 18px; padding-inline-start: 0; padding-inline-end: 18px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
.afq-hcard-cat { display: inline-block; background: var(--Plt); color: var(--P); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-bottom: 6px; width: fit-content; }
.afq-hcard-title { font-family: var(--fh); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 8px; transition: color var(--ease); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afq-hcard:hover .afq-hcard-title { color: var(--P); }
.afq-hcard-excerpt { font-size: 13px; color: var(--tx2); line-height: 1.7; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.afq-hcard-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--tx3); flex-wrap: wrap; }

/* ── TWO COLUMN LAYOUT ── */
.afq-two-col { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

/* ── QUOTE ── */
.afq-quote-sec { background: linear-gradient(135deg, var(--P), var(--Pd)); padding: 90px 0; position: relative; overflow: hidden; }
.afq-quote-sec::before { display: none; }
.afq-quote-bg-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--fh); font-size: 28vw; color: rgba(255, 255, 255, 0.05); pointer-events: none; animation: afq-float-quote 6s ease-in-out infinite; z-index: 0; line-height: 1; }
@keyframes afq-float-quote { 0%, 100% { transform: translate(-50%, -50%) translateY(0px); } 50% { transform: translate(-50%, -50%) translateY(-20px); } }
.afq-quote-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--rl); padding: 60px 50px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); transition: transform .3s ease, box-shadow .3s ease; }
.afq-quote-inner:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.afq-quote-deco { width: 50px; height: 3px; background: var(--A); margin: 0 auto 35px; border-radius: 10px; }
.afq-quote-text { font-family: var(--fh); font-size: clamp(18px, 2.8vw, 26px); font-weight: 700; color: #fff; line-height: 2; margin-bottom: 35px; font-style: italic; text-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.afq-quote-author-wrap { display: flex; align-items: center; justify-content: center; gap: 15px; }
.afq-quote-author-line { width: 40px; height: 1px; background: rgba(255, 255, 255, 0.3); display: block; }
.afq-quote-author { font-size: 14px; color: rgba(255, 255, 255, 0.75); font-weight: 700; letter-spacing: 0.5px; margin: 0; }
@media (max-width: 768px) {
  .afq-quote-sec { padding: 60px 0; }
  .afq-quote-inner { padding: 35px 20px; border-radius: var(--r); }
  .afq-quote-bg-icon { font-size: 40vw; }
}

/* ── NEWSLETTER ── */
.afq-nl-sec { background: var(--sur); border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); padding: 52px 0; transition: background .35s, border-color .35s; }
.afq-nl-inner { display: flex; align-items: center; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.afq-nl-text { max-width: 420px; }
.afq-nl-heading { font-family: var(--fh); font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 6px; transition: color .35s; }
.afq-nl-desc { font-size: 14px; color: var(--tx2); line-height: 1.7; }
.afq-nl-form-wrap { display: flex; gap: 10px; flex: 1; max-width: 440px; min-width: 280px; }
.afq-nl-input { flex: 1; border: 1.5px solid var(--bd); border-radius: var(--rs); padding: 12px 16px; font-family: var(--fb); font-size: 14px; color: var(--ink); background: var(--sur2); outline: none; transition: border-color var(--ease), background .35s, color .35s; }
.afq-nl-input:focus { border-color: var(--P); }
.afq-nl-input::placeholder { color: var(--tx3); }
.afq-nl-submit { background: var(--P); color: #fff; border: none; padding: 12px 28px; border-radius: var(--rs); font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--fb); transition: all var(--ease); white-space: nowrap; box-shadow: 0 3px 12px rgba(26,95,122,.28); }
.afq-nl-submit:hover { background: var(--Pd); transform: translateY(-1px); }

/* ── SIDEBAR (Modern Card Design) ── */
.afq-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; }
.afq-widget { background: var(--sur); border: 1px solid var(--bd); border-radius: var(--r); padding: 20px; box-shadow: var(--s1); transition: all var(--ease); overflow: hidden; }
.afq-widget:hover { box-shadow: var(--s2); border-color: transparent; }
.afq-widget-title { font-family: var(--fh); font-size: 17px; font-weight: 800; color: var(--ink); margin: 0 0 18px; padding-bottom: 14px; border-bottom: none !important; position: relative; display: flex; align-items: center; gap: 10px; transition: color .35s; }
.afq-widget-title::before { content: ''; width: 4px; height: 22px; background: linear-gradient(180deg, var(--A), var(--P)); border-radius: 10px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(200,135,58,.25); }
.afq-widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to left, transparent, var(--bd) 30%, var(--bd) 70%, transparent); }
.afq-cat-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(128,128,128,.15); text-decoration: none; transition: all var(--ease); border-radius: var(--rs); margin-bottom: 4px; }
.afq-cat-row:last-child { margin-bottom: 0; border-bottom: none; }
.afq-cat-row:hover { background: var(--Plt); transform: translateX(-3px); border-bottom-color: transparent; }
[dir="ltr"] .afq-cat-row:hover { transform: translateX(3px); }
.afq-cat-name { font-size: 13px; font-weight: 600; color: var(--tx); display: flex; align-items: center; gap: 8px; transition: color var(--ease); }
.afq-cat-name::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(128,128,128,.4); flex-shrink: 0; transition: all var(--ease); }
.afq-cat-row:hover .afq-cat-name { color: var(--P); font-weight: 700; }
.afq-cat-row:hover .afq-cat-name::before { background: var(--A); box-shadow: 0 0 6px rgba(200,135,58,.4); transform: scale(1.3); }
.afq-cat-num { background: rgba(128,128,128,.1); color: rgba(80,80,80,.85); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 20px; transition: all var(--ease); min-width: 28px; text-align: center; }
.afq-cat-row:hover .afq-cat-num { background: var(--P); color: #fff; box-shadow: 0 2px 8px rgba(26,95,122,.25); }

/* ويدجت النشرة البريدية */
.afq-widget-nl { background: linear-gradient(135deg,var(--Plt),var(--Pxs)); border-color: rgba(26,95,122,.15); }
.afq-nl-desc-sm { font-size: 13px; color: var(--tx2); line-height: 1.65; margin-bottom: 14px; }
.afq-nl-form-sm { display: flex; flex-direction: column; gap: 8px; }
.afq-nl-input-sm { border: 1.5px solid var(--bd); border-radius: var(--rs); padding: 10px 14px; font-family: var(--fb); font-size: 13px; color: var(--ink); background: var(--sur); outline: none; transition: border-color var(--ease), box-shadow var(--ease), background .35s, color .35s; }
.afq-nl-input-sm:focus { border-color: var(--P); box-shadow: 0 0 0 3px var(--Plt); }
.afq-nl-input-sm::placeholder { color: var(--tx3); }
.afq-nl-btn-sm { background: var(--P); color: #fff; border: none; padding: 10px; border-radius: var(--rs); font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--fb); transition: all var(--ease); }
.afq-nl-btn-sm:hover { background: var(--Pd); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(26,95,122,.3); }

/* ═══════════════════════════════════════
   ★ ويدجت الأكثر قراءة
   ═══════════════════════════════════════ */
.afq-pop-list { display: flex; flex-direction: column; }
.afq-pop-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(128,128,128,.12); text-decoration: none; transition: all var(--ease); }
.afq-pop-row:last-child { border-bottom: none; padding-bottom: 0; }
.afq-pop-row:first-child { padding-top: 0; }
.afq-pop-row:hover { transform: translateX(-3px); }
[dir="ltr"] .afq-pop-row:hover { transform: translateX(3px); }
.afq-pop-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; background: rgba(128,128,128,.08); color: rgba(100,100,100,.6); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: all var(--ease); margin-top: 2px; }
.afq-pop-row:nth-child(1) .afq-pop-num { background: linear-gradient(135deg, var(--A), var(--P)); color: #fff; box-shadow: 0 3px 10px rgba(200,135,58,.3); border-radius: 10px 10px 10px 3px; }
.afq-pop-row:nth-child(2) .afq-pop-num { background: rgba(128,128,128,.14); color: rgba(80,80,80,.85); }
.afq-pop-row:nth-child(3) .afq-pop-num { background: rgba(128,128,128,.1); color: rgba(100,100,100,.75); }
.afq-pop-row:hover .afq-pop-num { background: var(--P); color: #fff; box-shadow: 0 3px 10px rgba(26,95,122,.25); transform: scale(1.05); }
.afq-pop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.afq-pop-cat { font-size: 10px; font-weight: 700; color: var(--P); text-transform: uppercase; letter-spacing: .3px; opacity: .8; transition: opacity var(--ease); }
.afq-pop-row:hover .afq-pop-cat { opacity: 1; }
.afq-pop-t { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--ease); }
.afq-pop-row:hover .afq-pop-t { color: var(--P); }
.afq-pop-d { font-size: 10.5px; color: rgba(128,128,128,.6); font-weight: 600; }
[data-theme="dark"] .afq-pop-num, body.dark-mode .afq-pop-num { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); }
[data-theme="dark"] .afq-pop-row:nth-child(2) .afq-pop-num, body.dark-mode .afq-pop-row:nth-child(2) .afq-pop-num { background: rgba(255,255,255,.1); color: rgba(255,255,255,.65); }
[data-theme="dark"] .afq-pop-row:nth-child(3) .afq-pop-num, body.dark-mode .afq-pop-row:nth-child(3) .afq-pop-num { background: rgba(255,255,255,.07); color: rgba(255,255,255,.55); }
[data-theme="dark"] .afq-pop-d, body.dark-mode .afq-pop-d { color: rgba(255,255,255,.35); }
/* ═══════════════════════════════════════
   ★ نهاية ويدجت الأكثر قراءة
   ═══════════════════════════════════════ */

/* ── BREADCRUMB ── */
.afq-crumb { padding: 10px 0 14px; font-size: 12px; color: var(--tx3); }
.afq-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 3px; padding: 0; margin: 0; }
.afq-crumb li + li::before { content: '›'; margin-inline-end: 3px; opacity: .45; }
[dir="ltr"] .afq-crumb li + li::before { content: '›'; }
.afq-crumb a { color: var(--tx3); }
.afq-crumb a:hover { color: var(--P); }

/* ── SINGLE ARTICLE ── */
.afq-layout { display: grid; grid-template-columns: 1fr 290px; gap: 36px; align-items: start; }
.afq-content-wrap { background: var(--sur); border: 1px solid var(--bd); border-radius: var(--rl); padding: 36px 40px; box-shadow: var(--s1); transition: background .35s, border-color .35s; }
.afq-art-header { margin-bottom: 28px; }
.afq-art-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.afq-art-cat { display: inline-block; background: var(--Plt); color: var(--P); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: .3px; transition: all var(--ease); }
.afq-art-cat:hover { background: var(--P); color: #fff; }
.afq-art-title { font-family: var(--fh); font-size: clamp(24px,3.8vw,42px); font-weight: 700; color: var(--ink); line-height: 1.28; margin-bottom: 16px; transition: color .35s; }
.afq-art-subtitle { font-size: 18px; color: var(--tx2); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.afq-art-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--tx3); padding: 14px 0; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); transition: border-color .35s; }
.afq-art-author { display: flex; align-items: center; gap: 8px; color: var(--tx); font-weight: 600; }
.afq-art-author-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.afq-art-author-av img { width: 100%; height: 100%; object-fit: cover; }
.afq-art-meta .sep { opacity: .3; }
.afq-art-views { display: flex; align-items: center; gap: 4px; }
.afq-art-thumb { width: 100%; border-radius: var(--r); overflow: hidden; margin: 28px 0 32px; box-shadow: var(--s3); position: relative; }
.afq-art-thumb img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.afq-art-thumb figcaption { background: var(--sur2); padding: 8px 14px; font-size: 12px; color: var(--tx3); border-top: 1px solid var(--bd); transition: background .35s; }
.afq-article { font-size: 17px; line-height: 1.95; color: var(--tx); transition: color .35s; }
.afq-article h2 { font-family: var(--fh); font-size: 24px; font-weight: 700; color: var(--ink); margin: 40px 0 14px; padding-inline-start: 14px; border-inline-start: 3px solid var(--P); transition: color .35s; }
.afq-article h3 { font-family: var(--fh); font-size: 20px; font-weight: 700; color: var(--ink); margin: 30px 0 10px; transition: color .35s; }
.afq-article h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.afq-article p { margin-bottom: 22px; }
.afq-article a { color: var(--P); text-decoration: underline; text-decoration-color: rgba(26,95,122,.25); }
.afq-article a:hover { color: var(--A); }
.afq-article blockquote { background: var(--Plt); border-inline-start: 4px solid var(--P); border-radius: 0 var(--rs) var(--rs) 0; padding: 18px 20px; margin: 28px 0; font-family: var(--fh); font-size: 19px; font-style: italic; color: var(--P); transition: background .35s; }
.afq-article ul, .afq-article ol { margin-bottom: 22px; padding-inline-start: 26px; }
.afq-article li { margin-bottom: 7px; }
.afq-article img { border-radius: var(--r); margin: 26px 0; border: 1px solid var(--bd); max-width: 100%; }
.afq-article strong { color: var(--ink); transition: color .35s; }
.afq-article table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.afq-article th { background: var(--P); color: #fff; padding: 10px 14px; text-align: start; font-weight: 700; }
.afq-article td { padding: 10px 14px; border-bottom: 1px solid var(--bd); }
.afq-article tr:nth-child(even) td { background: var(--sur2); }
.afq-hl-box { background: linear-gradient(135deg,var(--Plt),var(--Pxs)); border: 1px solid rgba(26,95,122,.15); border-radius: var(--r); padding: 22px 24px; margin: 30px 0; transition: background .35s; }
.afq-hl-box-title { font-family: var(--fh); font-size: 16px; font-weight: 700; color: var(--P); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.afq-hl-box p { font-size: 15px; color: var(--tx2); line-height: 1.8; margin-bottom: 0; }
.afq-share { background: var(--sur2); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin: 32px 0; flex-wrap: wrap; transition: background .35s, border-color .35s; }
.afq-share-lbl { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: color .35s; }
.afq-share-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.afq-sh { width: 36px; height: 36px; border-radius: var(--rs); border: 1.5px solid var(--bd); background: var(--sur); color: var(--tx2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; font-family: var(--fb); transition: all var(--ease); text-decoration: none; }
.afq-sh:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,.1); color: var(--tx); }
.afq-sh-x:hover    { background: #000; border-color: #000; color: #fff; }
.afq-sh-fb:hover   { background: #1877f2; border-color: #1877f2; color: #fff; }
.afq-sh-wa:hover   { background: #25d366; border-color: #25d366; color: #fff; }
.afq-sh-tele:hover { background: #0088cc; border-color: #0088cc; color: #fff; }
.afq-sh-cp:hover   { background: var(--Plt); border-color: var(--P); color: var(--P); }
.afq-author-box { background: var(--sur2); border: 1px solid var(--bd); border-radius: var(--r); padding: 22px; display: flex; gap: 18px; margin: 32px 0; transition: background .35s, border-color .35s; }
.afq-author-av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 3px 8px rgba(26,95,122,.22); }
.afq-author-av img { width: 100%; height: 100%; object-fit: cover; }
.afq-author-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; transition: color .35s; }
.afq-author-bio { font-size: 13px; color: var(--tx2); line-height: 1.65; }
.afq-post-tags { display: flex; align-items: center; gap: 7px; margin: 22px 0; flex-wrap: wrap; }
.afq-post-tags-lbl { font-size: 11px; font-weight: 700; color: var(--tx3); text-transform: uppercase; letter-spacing: .6px; }
.afq-tag { background: var(--sur2); color: var(--tx2); font-size: 11px; padding: 3px 10px; border-radius: 16px; text-decoration: none; border: 1px solid var(--bd); transition: all var(--ease); font-weight: 600; }
.afq-tag:hover { background: var(--Plt); color: var(--P); border-color: var(--P); }
.afq-related { margin-top: 44px; }
.afq-related-title { font-family: var(--fh); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--bd); transition: color .35s, border-color .35s; }

/* ── COMMENTS ── */
.afq-comments-section { margin-top: 44px; padding-top: 36px; border-top: 2px solid var(--bd); transition: border-color .35s; }
.afq-comments-head { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.afq-comments-head h3 { font-family: var(--fh); font-size: 22px; font-weight: 700; color: var(--ink); transition: color .35s; }
.afq-comments-count { background: var(--Plt); color: var(--P); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.afq-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--bd2); transition: border-color .35s; }
.afq-comment:last-child { border-bottom: none; }
.afq-comment-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.afq-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.afq-comment-body { flex: 1; min-width: 0; }
.afq-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.afq-comment-name { font-size: 14px; font-weight: 700; color: var(--ink); transition: color .35s; }
.afq-comment-badge { font-size: 9px; font-weight: 700; padding: 1px 7px; border-radius: 8px; text-transform: uppercase; }
.afq-comment-badge.is-author { background: var(--Alt); color: var(--A); }
.afq-comment-date { font-size: 11px; color: var(--tx3); margin-inline-start: auto; }
.afq-comment-text { font-size: 15px; color: var(--tx); line-height: 1.78; }
.afq-replies { padding-inline-start: 32px; margin-top: 4px; }
.afq-comment-form { background: var(--sur2); border: 1px solid var(--bd); border-radius: var(--rl); padding: 26px; margin-top: 32px; transition: background .35s, border-color .35s; }
.afq-comment-form-title { font-family: var(--fh); font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; transition: color .35s; }
.afq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.afq-form-group { display: flex; flex-direction: column; gap: 5px; }
.afq-form-label { font-size: 12px; font-weight: 700; color: var(--tx2); text-transform: uppercase; letter-spacing: .5px; }
.afq-form-input, .afq-form-textarea { border: 1.5px solid var(--bd); border-radius: var(--rs); padding: 10px 14px; font-family: var(--fb); font-size: 14px; color: var(--ink); background: var(--sur); outline: none; transition: border-color var(--ease), box-shadow var(--ease), background .35s, color .35s; width: 100%; }
.afq-form-input:focus, .afq-form-textarea:focus { border-color: var(--P); box-shadow: 0 0 0 3px var(--Plt); }
.afq-form-textarea { min-height: 120px; resize: vertical; line-height: 1.75; }
.afq-form-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 10px; }
.afq-form-hint { font-size: 12px; color: var(--tx3); }
.afq-submit-btn { background: var(--P); color: #fff; border: none; padding: 11px 30px; border-radius: var(--rs); font-family: var(--fb); font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 3px 10px rgba(26,95,122,.28); transition: all var(--ease); }
.afq-submit-btn:hover { background: var(--Pd); transform: translateY(-1px); }

/* ── 404 PAGE ── */
.afq-404 { text-align: center; padding: 100px 20px; }
.afq-404-code { font-family: var(--fh); font-size: clamp(80px,15vw,160px); font-weight: 700; color: var(--P); line-height: 1; opacity: .15; }
.afq-404-title { font-family: var(--fh); font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.afq-404-text { font-size: 16px; color: var(--tx2); margin-bottom: 28px; }

/* ── ARCHIVE / SEARCH ── */
.afq-archive-head { background: linear-gradient(135deg,var(--P),var(--Pd)); padding: 52px 0; margin-bottom: 40px; }
.afq-archive-head h1 { font-family: var(--fh); font-size: clamp(24px,4vw,38px); font-weight: 700; color: #fff; margin-bottom: 8px; }
.afq-archive-head p { font-size: 15px; color: rgba(255,255,255,.6); }
.afq-archive-head .afq-badge { background: rgba(255,255,255,.15); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 14px; display: inline-block; margin-bottom: 12px; }
.afq-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.afq-pagination a, .afq-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--rs); border: 1.5px solid var(--bd); font-size: 14px; font-weight: 600; color: var(--tx2); transition: all var(--ease); text-decoration: none; }
.afq-pagination a:hover, .afq-pagination .current { background: var(--P); color: #fff; border-color: var(--P); }

/* ── FOOTER ── */
.afq-footer { background: #0d0e13; color: rgba(255,255,255,.55); padding: 52px 0 0; }
body.dark-mode .afq-footer, [data-theme="dark"] .afq-footer { background: #090a0e; }
.afq-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.afq-foot-name { font-family: var(--fh); font-size: 24px; font-weight: 700; color: #fff; display: block; margin-bottom: 10px; }
.afq-foot-desc { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.8; max-width: 230px; margin-bottom: 16px; }
.afq-foot-soc { display: flex; gap: 7px; flex-wrap: wrap; }
.afq-soc-btn { width: 30px; height: 30px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); text-decoration: none; font-size: 12px; transition: all var(--ease); }
.afq-soc-btn:hover { background: var(--P); border-color: var(--P); color: #fff; transform: translateY(-2px); }
.afq-foot-col-title { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; display: block; }
.afq-foot-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.afq-foot-links a { color: rgba(255,255,255,.45); font-size: 13px; text-decoration: none; transition: color var(--ease); }
.afq-foot-links a:hover { color: #fff; }
.afq-foot-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.22); flex-wrap: wrap; gap: 8px; }
.afq-foot-bottom a { color: rgba(255,255,255,.32); }
.afq-foot-bottom a:hover { color: #fff; }

/* ── BTT & TOAST ── */
.afq-btt { position: fixed; bottom: 28px; inset-inline-end: 28px; z-index: 9998; width: 42px; height: 42px; border-radius: 50%; background: var(--P); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; box-shadow: 0 4px 16px rgba(26,95,122,.35); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all var(--ease); }
.afq-btt.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.afq-btt:hover { background: var(--Pd); transform: translateY(-2px); }
.afq-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: var(--rs); font-size: 14px; font-weight: 600; font-family: var(--fb); box-shadow: var(--s4); z-index: 99999; opacity: 0; transition: all .35s ease; pointer-events: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.afq-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── CUSTOMIZER LIVE PREVIEW ── */
body.customize-preview .afq-header { position: relative; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .afq-footer-grid { grid-template-columns: 1fr 1fr; }
  .afq-two-col, .afq-layout { grid-template-columns: 1fr; }
  .afq-hero-inner { grid-template-columns: 1fr; }
  .afq-hero-side { display: none; }
  .afq-sidebar { position: static !important; top: auto; }
}
@media (max-width: 768px) {
  .afq-nav { display: none; position: fixed; top: 65px; inset-inline: 0; background: var(--sur); border-bottom: 1px solid var(--bd); padding: 12px 20px; z-index: 100; box-shadow: var(--s2); }
  .afq-nav.is-open { display: block; }
  .afq-nav ul { flex-direction: column; gap: 2px; }
  .afq-burger { display: flex; }
  .afq-hdr { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .afq-hdr-r .afq-cta { display: none; }
  .afq-grid-2, .afq-grid-3 { grid-template-columns: 1fr; }
  .afq-hcard { flex-direction: column; }
  .afq-hcard-img { width: 100%; min-height: 200px; }
  .afq-hcard-body { padding: 14px; }
  .afq-nl-inner { flex-direction: column; text-align: center; }
  .afq-nl-text { max-width: 100%; }
  .afq-nl-form-wrap { max-width: 100%; width: 100%; }
  .afq-hero-inner { padding: 48px 0 36px; min-height: 360px; }
  .afq-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .afq-foot-bottom { flex-direction: column; text-align: center; }
  .afq-content-wrap { padding: 22px 18px; }
  .afq-form-row { grid-template-columns: 1fr; }
  .afq-replies { padding-inline-start: 16px; }
  .afq-share { flex-direction: column; align-items: flex-start; }
  .afq-author-box { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .afq-nl-form-wrap { flex-direction: column; }
  .afq-article h2 { font-size: 20px; }
}

/* ── تثبيت خلفية البطاقات باللون الأبيض ── */
.afq-card, .afq-hcard {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
.afq-card-title, .afq-hcard-title {
  color: #111827 !important;
}
.afq-card-excerpt, .afq-hcard-excerpt {
  color: #374151 !important;
}
.afq-card-footer, .afq-hcard-meta {
  border-color: #f0f2f5 !important;
}