/*
Theme Name: AFRO News
Theme URI: https://digitalmeta.net/
Author: DigitalMeta
Author URI: https://digitalmeta.net/
Description: قالب إخباري عربي (RTL) بهوية جريئة أصفر/أسود، متجاوب مع الموبايل ووضع ليلي كامل. مناسب لمنصات الأخبار والمجلات. تصميم وتطوير DigitalMeta.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afro
Tags: news, magazine, rtl-language-support, right-to-left, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, two-columns, full-width-template
*/

/* =========================================================
   AFRO · أفرو — News Theme Design System
   Bold gold + black editorial identity, RTL Arabic, dark mode
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens : light ---------- */
:root {
  --gold:        #F4BE16;
  --gold-deep:   #E0A409;
  --gold-soft:   #F8D661;
  --gold-wash:   #FDF4D4;

  --ink:         #15120C;
  --ink-2:       #3C362B;
  --muted:       #756D5B;

  --bg:          #FFFFFF;
  --surface:     #FBF6EA;
  --surface-2:   #F2EAD6;
  --line:        #E9E1CD;
  --line-strong: #D8CDB2;

  --red:         #D42839;

  /* always-dark: chrome bars, dark surfaces, and text/borders that sit ON gold.
     Deliberately NOT redefined in dark mode so it never flips. */
  --char:        #15120C;

  --maxw: 1240px;
  --gap: 28px;
  --radius: 4px;
  --radius-lg: 14px;

  --font-display: "Tajawal", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Tajawal", sans-serif;

  --shadow-sm: 0 1px 2px rgba(20,16,8,.06), 0 2px 8px rgba(20,16,8,.05);
  --shadow-md: 0 6px 24px rgba(20,16,8,.10);
  --shadow-gold: 0 8px 30px rgba(224,164,9,.28);

  --t: .22s cubic-bezier(.4,0,.2,1);
}

/* ---------- Tokens : dark ---------- */
[data-theme="dark"] {
  --gold:        #F8C82C;
  --gold-deep:   #F4BE16;
  --gold-soft:   #5A4A12;
  --gold-wash:   #251F0E;

  --ink:         #F3EEE1;
  --ink-2:       #CDC6B6;
  --muted:       #9A9181;

  --bg:          #0D0C0A;
  --surface:     #161410;
  --surface-2:   #201C16;
  --line:        #2B2720;
  --line-strong: #3A352C;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 8px 28px rgba(0,0,0,.5);
  --shadow-gold: 0 8px 30px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t), color var(--t);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--char); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* =========================================================
   UTILITY BAR
   ========================================================= */
.utility {
  background: var(--char);
  color: #EDE7D6;
  font-size: 13px;
  border-bottom: 2px solid var(--gold);
}
.utility .wrap { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.utility-date { display: flex; align-items: center; gap: 8px; color: #C9C1AE; font-weight: 500; white-space: nowrap; overflow: hidden; }
.utility-date b { color: var(--gold); font-weight: 700; }
.utility-tools { display: flex; align-items: center; gap: 4px; }
.u-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 0; color: #D7D0BF; padding: 7px 10px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; transition: var(--t);
}
.u-btn:hover { background: rgba(244,190,22,.16); color: var(--gold); }
.u-btn svg { width: 17px; height: 17px; }
.u-social { display: flex; gap: 2px; padding-inline-start: 8px; margin-inline-start: 6px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.u-social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #C9C1AE; transition: var(--t); }
.u-social a:hover { background: var(--gold); color: var(--char); }
.u-social svg { width: 15px; height: 15px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--gold);
  position: sticky; top: 0; z-index: 60;
  /* header is gold in both themes */
  box-shadow: 0 2px 0 rgba(21,18,12,.12);
  transition: background var(--t);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid var(--char);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { line-height: 1; }
.brand-text .ar { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--char); letter-spacing: -.02em; }
.brand-text .en { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .32em; color: #4a4334; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.main-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--char);
  padding: 10px 14px; border-radius: var(--radius); position: relative; transition: var(--t);
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 3px;
  background: var(--char); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform var(--t);
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a[aria-current] { color: var(--char); }

.header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--char);
  background: transparent; color: var(--char); display: grid; place-items: center; transition: var(--t);
}
.icon-btn:hover { background: var(--char); color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; }

/* =========================================================
   BREAKING TICKER
   ========================================================= */
.ticker {
  background: var(--char); color: #F3EEE1; overflow: hidden;
  display: flex; align-items: stretch; height: 48px; position: relative; z-index: 50;
}
.ticker-label {
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 900;
  display: flex; align-items: center; gap: 9px; padding: 0 20px; flex-shrink: 0;
  font-size: 15px; letter-spacing: .02em; position: relative;
}
.ticker-label::after { content:""; position:absolute; inset-inline-start:100%; top:0; border-width:24px 0 24px 12px; border-style:solid; border-color: transparent transparent transparent var(--red); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.35; transform:scale(.7);} }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-move { display: flex; align-items: center; gap: 0; white-space: nowrap; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { display: inline-flex; align-items: center; gap: 14px; padding: 0 24px; font-weight: 500; font-size: 15px; color: #EDE7D6; transition: color var(--t); }
.ticker-move a:hover { color: var(--gold); }
.ticker-move a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* =========================================================
   SECTION HEADINGS / KICKERS
   ========================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display);
  font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--char);
  background: var(--gold); padding: 5px 12px; border-radius: 3px; text-transform: none;
}
.kicker.ghost { background: transparent; color: var(--gold-deep); padding: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.section-head h2 {
  font-size: 30px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 14px;
}
.section-head h2::before { content:""; width: 8px; height: 30px; background: var(--gold); border-radius: 2px; }
.section-head .more { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: var(--t); }
.section-head .more:hover { color: var(--gold-deep); }
.section-head .more svg { width: 16px; height: 16px; }

/* =========================================================
   CATEGORY TAG
   ========================================================= */
.cat-tag {
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: .02em;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px;
}
.cat-tag::before { content:""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.cat-pill {
  font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--char);
  background: var(--gold); padding: 4px 11px; border-radius: 100px; display: inline-block;
}

/* =========================================================
   DUOTONE IMAGE TREATMENT (Afro signature)
   ========================================================= */
.media { position: relative; overflow: hidden; background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,0,.2,1); }
.media.duo img { filter: saturate(.92) contrast(1.03); }
.media.duo::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(150deg, rgba(244,190,22,.32) 0%, rgba(244,190,22,.04) 52%, rgba(28,20,6,.30) 100%);
}
a:hover > .media img, .story:hover .media img { transform: scale(1.05); }

/* =========================================================
   STORY CARDS
   ========================================================= */
.story { display: flex; flex-direction: column; gap: 12px; }
.story .media { border-radius: var(--radius); aspect-ratio: 16/10; }
.story h3 { font-size: 20px; font-weight: 800; color: var(--ink); transition: color var(--t); }
.story:hover h3 { color: var(--gold-deep); }
.story .excerpt { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story .meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.story .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.story.row { flex-direction: row; gap: 16px; align-items: flex-start; }
.story.row .media { width: 132px; flex-shrink: 0; aspect-ratio: 1/1; }
.story.row h3 { font-size: 17px; }

/* HERO lead */
.hero-lead { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; }
.hero-lead .media { position: absolute; inset: 0; }
.hero-lead .media::after { background: linear-gradient(to top, rgba(8,6,2,.92) 0%, rgba(8,6,2,.35) 45%, rgba(8,6,2,.15) 100%); opacity:1; mix-blend-mode: normal; }
.hero-lead .media.duo img { filter: grayscale(.25) contrast(1.02); }
.hero-lead .media.duo::before { display:none; }
.hero-content { position: relative; z-index: 3; padding: 40px; max-width: 760px; }
.hero-content h1 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 900; color: #fff; line-height: 1.08; margin: 14px 0 14px; text-wrap: balance; }
.hero-content .excerpt { color: rgba(255,255,255,.86); font-size: 18px; max-width: 620px; margin: 0; }
.hero-content .meta { color: rgba(255,255,255,.7); margin-top: 18px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent; transition: var(--t);
}
.btn-primary { background: var(--char); color: var(--gold); }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--char); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--gold); }
.btn svg { width: 18px; height: 18px; }

/* =========================================================
   NEWSLETTER BAND
   ========================================================= */
.newsletter { background: var(--gold); color: var(--char); position: relative; overflow: hidden; }
.newsletter::before {
  content: "أفرو"; position: absolute; inset-inline-end: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900; font-size: 260px; color: rgba(21,18,12,.06); line-height: .8; pointer-events: none;
}
.newsletter .wrap { display: flex; align-items: center; gap: 40px; padding: 56px 24px; position: relative; flex-wrap: wrap; }
.newsletter-copy { flex: 1; min-width: 280px; }
.newsletter-copy h2 { font-size: 38px; font-weight: 900; color: var(--char); margin-bottom: 10px; }
.newsletter-copy p { color: #4a4334; font-size: 17px; max-width: 460px; margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex: 1; min-width: 320px; max-width: 540px; }
.newsletter-form input {
  flex: 1; border: 2.5px solid var(--char); background: rgba(255,255,255,.55); border-radius: var(--radius);
  padding: 15px 18px; font-family: var(--font-body); font-size: 16px; color: var(--char); font-weight: 500;
}
.newsletter-form input::placeholder { color: #8a7a45; }
.newsletter-form input:focus { outline: none; background: #fff; }
.newsletter-note { color: #4a4334; font-size: 13.5px; margin: 12px 0 0; font-weight: 500; }

/* =========================================================
   MOST READ
   ========================================================= */
.mostread { background: var(--surface); border-radius: var(--radius-lg); padding: 26px 24px; border: 1px solid var(--line); }
.mostread h3 { font-size: 22px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mostread h3 .fire { color: var(--red); }
.mostread ol { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.mostread li { counter-increment: mr; display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.mostread li:last-child { border-bottom: 0; padding-bottom: 0; }
.mostread li::before {
  content: counter(mr); font-family: var(--font-display); font-weight: 900; font-size: 30px;
  color: var(--gold); line-height: 1; flex-shrink: 0; width: 34px; -webkit-text-stroke: 1px var(--gold-deep);
}
.mostread li a { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); transition: var(--t); line-height: 1.35; }
.mostread li:hover a { color: var(--gold-deep); }
.mostread li .mr-meta { display:block; font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* =========================================================
   OPINION / OP-ED CARDS
   ========================================================= */
.oped {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 24px; position: relative; cursor: pointer; transition: var(--t);
  display: flex; flex-direction: column; overflow: hidden;
}
.oped::before { content:""; position:absolute; inset-inline-start:0; top:0; bottom:0; width:5px; background:var(--gold); transform: scaleY(0); transform-origin: top; transition: transform var(--t); }
.oped:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.oped:hover::before { transform: scaleY(1); }
.oped .q { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: .6; color: var(--gold); height: 30px; }
.oped h3 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 8px 0 10px; line-height: 1.3; transition: var(--t); }
.oped:hover h3 { color: var(--gold-deep); }
.oped .ex { color: var(--muted); font-size: 15px; margin: 0 0 20px; flex: 1; }
.oped .auth { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.oped .auth img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; filter: saturate(.9); border: 2px solid var(--gold); }
.oped .auth b { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.oped .auth span { color: var(--muted); font-size: 13px; }

/* =========================================================
   VIDEO
   ========================================================= */
.video-band { background: var(--char); color: #F3EEE1; }
.video-band .section-head h2 { color: #fff; }
.video-band .section-head h2::before { background: var(--gold); }
.video-band .section-head .more { color: rgba(243,238,225,.7); }
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.video-card .media { aspect-ratio: 16/9; }
.video-card .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(244,190,22,.94); display: grid; place-items: center; transition: var(--t); z-index: 4;
}
.video-card .play svg { width: 26px; height: 26px; color: var(--char); margin-inline-start: 3px; }
.video-card:hover .play { transform: scale(1.12); background: var(--gold); }
.video-card .v-dur { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 4; background: rgba(0,0,0,.78); color: #fff; font-weight: 600; font-size: 12.5px; padding: 3px 9px; border-radius: 3px; }
.video-card h3 { font-size: 17px; font-weight: 700; color: #F3EEE1; margin-top: 12px; transition: var(--t); }
.video-card:hover h3 { color: var(--gold); }
.video-card .v-meta { color: rgba(243,238,225,.55); font-size: 13px; margin-top: 5px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--char); color: #C9C1AE; padding-top: 60px; border-top: 4px solid var(--gold); }
[data-theme="dark"] .site-footer { background: #080705; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand-text .ar { color: var(--gold); }
.footer-brand .brand-text .en { color: #8c8472; }
.footer-brand p { color: #968E7C; font-size: 15px; max-width: 320px; margin-top: 18px; }
.footer-col h4 { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #B0A893; font-size: 15px; transition: var(--t); }
.footer-col a:hover { color: var(--gold); padding-inline-start: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #3a352b; display: grid; place-items: center; color: #C9C1AE; transition: var(--t); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--char); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #2a2820; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13.5px; color: #847c6b; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--gold); }

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(13,12,10,.92); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding-top: 16vh; opacity: 0; visibility: hidden; transition: var(--t); }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(720px, 90vw); }
.search-box label { display: block; font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--gold); letter-spacing: .1em; margin-bottom: 14px; }
.search-field { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--gold); padding-bottom: 14px; }
.search-field svg { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.search-field input { flex: 1; background: transparent; border: 0; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 32px; }
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: rgba(255,255,255,.3); }
.search-tags { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-tags span { color: rgba(255,255,255,.5); font-size: 14px; }
.search-tags a { background: rgba(244,190,22,.14); color: var(--gold); padding: 6px 14px; border-radius: 100px; font-size: 14px; font-weight: 600; transition: var(--t); }
.search-tags a:hover { background: var(--gold); color: var(--char); }
.search-close { position: absolute; top: 28px; inset-inline-end: 28px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: #fff; display: grid; place-items: center; transition: var(--t); }
.search-close:hover { background: var(--gold); color: var(--char); border-color: var(--gold); }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--char); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; padding: 24px; visibility: hidden; }
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #F3EEE1; padding: 14px 0; border-bottom: 1px solid #2a2820; transition: var(--t); }
.mobile-menu nav a:hover { color: var(--gold); padding-inline-start: 10px; }

/* =========================================================
   ARTICLE PAGE
   ========================================================= */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; padding: 18px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .sep { color: var(--line-strong); }

.article-head { max-width: 780px; margin: 0 auto; text-align: center; padding: 8px 24px 28px; box-sizing: border-box; }
.article-head h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 900; color: var(--ink); line-height: 1.12; margin: 16px 0 18px; text-wrap: balance; }
.article-head .standfirst { font-size: 20px; color: var(--ink-2); font-weight: 500; line-height: 1.55; max-width: 680px; margin: 0 auto; }
.byline { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.byline .author { display: flex; align-items: center; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--char); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 18px; border: 2px solid var(--char); }
.byline .author b { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.byline .author span { font-size: 13px; color: var(--muted); }
.byline .b-meta { color: var(--muted); font-size: 14px; font-weight: 500; }
.share-row { display: flex; align-items: center; gap: 8px; }
.share-row a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--ink-2); transition: var(--t); }
.share-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--char); }
.share-row svg { width: 17px; height: 17px; }
.share-row .afro-copy-link { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: var(--t); cursor: pointer; padding: 0; }
.share-row .afro-copy-link:hover { background: var(--gold); border-color: var(--gold); color: var(--char); }
.share-row .afro-copy-link.copied { background: var(--char); border-color: var(--char); color: var(--gold); }

.article-hero { margin: 6px 0 8px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.article-hero .caption { }
figcaption { color: var(--muted); font-size: 13.5px; margin-top: 10px; padding-inline-start: 14px; border-inline-start: 3px solid var(--gold); }

.article-body { max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.85; color: var(--ink-2); padding-inline: 24px; box-sizing: border-box; overflow-wrap: break-word; word-wrap: break-word; }
.article-body p { margin: 0 0 1.3em; }
.article-body h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ink); margin: 1.6em 0 .6em; }
.article-body a.inline { color: var(--gold-deep); font-weight: 600; border-bottom: 1.5px solid var(--gold); }
.pull-quote { margin: 1.6em 0; padding: 28px 30px; background: var(--surface); border-radius: var(--radius-lg); border-inline-start: 6px solid var(--gold); position: relative; }
.pull-quote p { font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--ink); line-height: 1.4; margin: 0; }
.pull-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 36px 0; }
.article-tags a { background: var(--surface); border: 1px solid var(--line); padding: 7px 15px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: var(--t); }
.article-tags a:hover { background: var(--gold); border-color: var(--gold); color: var(--char); }

/* =========================================================
   CATEGORY / GENERIC PAGE HEADERS
   ========================================================= */
.page-banner { background: var(--char); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.page-banner.gold { background: var(--gold); color: var(--char); }
.page-banner::before { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(244,190,22,.12); }
.page-banner.gold::before { border-color: rgba(21,18,12,.08); }
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner .kick { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .08em; color: var(--gold); }
.page-banner.gold .kick { color: #4a4334; }
.page-banner h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 900; margin: 10px 0 12px; }
.page-banner p { color: rgba(255,255,255,.7); font-size: 17px; max-width: 560px; margin: 0; }
.page-banner.gold p { color: #4a4334; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 30px; }
.chip { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--line-strong); color: var(--ink-2); background: var(--bg); transition: var(--t); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current], .chip.active { background: var(--char); color: var(--gold); border-color: var(--char); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 48px 0 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-2); border: 1.5px solid var(--line); transition: var(--t); }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--gold); color: var(--char); border-color: var(--gold); }

/* =========================================================
   FORMS (contact)
   ========================================================= */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: 2px solid var(--line-strong); background: var(--bg); border-radius: var(--radius);
  padding: 13px 15px; font-family: var(--font-body); font-size: 16px; color: var(--ink); transition: var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }
.field textarea { resize: vertical; min-height: 140px; }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.section { padding: 56px 0; }
.section.tight { padding: 40px 0; }
.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }
.split { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }

/* homepage hero + video rows (collapse on mobile) */
.hero-row { grid-template-columns: 1.7fr 1fr; align-items: stretch; }
.hero-side { grid-template-rows: 1fr 1fr; gap: 20px; }
.video-row { grid-template-columns: 1.6fr 1fr 1fr; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.bg-surface { background: var(--surface); }

/* toast */
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%) translateY(120%); background: var(--char); color: var(--gold); font-family: var(--font-display); font-weight: 700; padding: 14px 26px; border-radius: 100px; box-shadow: var(--shadow-md); z-index: 200; transition: transform .4s cubic-bezier(.4,0,.2,1); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .main-nav, .header-cta .icon-btn:not(.search-toggle) { display: none; }
  .burger { display: grid; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
  .g-3 { grid-template-columns: repeat(2,1fr); }
  .hero-lead { min-height: 420px; }
  .utility-date span.full { display: none; }
  .hero-row { grid-template-columns: 1fr; }
  .video-row { grid-template-columns: 1fr 1fr; }
  .video-row .video-card[style*="span 2"] { grid-row: auto !important; grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .video-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero-content { padding: 24px; }
  .hero-content h1 { font-size: clamp(26px, 7vw, 34px); }
  .newsletter .wrap { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .story.row .media { width: 104px; }
  .article-body { font-size: 17px; }
  .utility-tools .u-btn span { display: none; }
  .section-head h2 { font-size: 24px; }
  .section-head h2::before { height: 24px; }
}


/* =========================================================
   FOOTER · DESIGNER CREDIT (DigitalMeta)
   ========================================================= */
.footer-credit { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #847c6b; flex-wrap: wrap; }
.footer-credit > span { color: #6f6857; }
.footer-credit .credit-brand { font-family: var(--font-display); font-weight: 800; color: var(--gold); letter-spacing: .01em; transition: var(--t); }
.footer-credit .credit-brand:hover { color: #fff; }
.footer-credit .credit-wa { display: inline-flex; align-items: center; gap: 6px; background: rgba(37,211,102,.12); color: #25D366; padding: 5px 12px; border-radius: 100px; font-weight: 700; font-size: 12.5px; transition: var(--t); }
.footer-credit .credit-wa:hover { background: #25D366; color: #fff; }
.footer-credit .credit-wa svg { width: 16px; height: 16px; }

/* WP-specific: alignment & block helpers */
.alignwide { width: 100%; }
.aligncenter { margin-inline: auto; }
.wp-caption, figure.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption { color: var(--muted); font-size: 13.5px; margin-top: 10px; padding-inline-start: 14px; border-inline-start: 3px solid var(--gold); }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page-links { margin: 24px 0; font-family: var(--font-display); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.page-links a { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 4px 12px; }

/* Comments */
.comments-area { margin-top: 48px; }
.comments-title { font-family: var(--font-display); font-weight: 900; font-size: 24px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-inline-start: 28px; }
.comment-author { font-family: var(--font-display); font-weight: 700; }
.comment-form label { display:block; font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; border: 2px solid var(--line-strong); background: var(--bg); border-radius: var(--radius);
  padding: 13px 15px; font-family: var(--font-body); font-size: 16px; color: var(--ink); margin-bottom: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }

/* WP widgets */
.widget { margin-bottom: 28px; }
.widget-title { font-family: var(--font-display); font-weight: 900; font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.widget-title::before { content:""; width: 7px; height: 22px; background: var(--gold); border-radius: 2px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.widget ul li a:hover { color: var(--gold-deep); }

/* Footer credit responsive */
@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* =========================================================
   v1.2 FIXES — nav hide on mobile, grid overflow, hero height
   ========================================================= */

/* Nav list reset (desktop only): wp_nav_menu/wp_list_categories emit <li>.
   Scoped to >900px so it NEVER re-enables the menu on mobile. */
@media (min-width: 901px) {
  .main-nav, .main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-inline-start: auto; }
  .main-nav li, .main-nav ul li { list-style: none; margin: 0; padding: 0; display: inline-flex; }
}
.main-nav li::marker { content: none; }
.main-nav .count, .footer-col .count { display: none; }

/* Mobile drawer menu list reset */
.mobile-menu nav, .mobile-menu nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav li, .mobile-menu nav ul li { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav li::marker { content: none; }
.mobile-menu nav a { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #F3EEE1; padding: 14px 0; border-bottom: 1px solid #2a2820; display: block; transition: var(--t); }
.mobile-menu nav a:hover { color: var(--gold); padding-inline-start: 10px; }

/* THE overflow fix: grid/flex children default to min-width:auto, so long
   Arabic words or fixed-width media push the column wider than the screen,
   shoving the whole page sideways. Force them to shrink. */
.grid > *, .split > *, .hero-row > *, .hero-side > *, .video-row > * { min-width: 0; }
.story, .story.row, .story.row > div, .mostread, .oped, aside, .sidebar { min-width: 0; max-width: 100%; }
.story h3, .story .excerpt, .mostread li a, .oped h3 { overflow-wrap: anywhere; word-break: break-word; }

/* Page-level overflow guards */
html, body { max-width: 100%; overflow-x: hidden; }
.wrap { width: 100%; box-sizing: border-box; }
img, video, iframe { max-width: 100%; }
.newsletter { overflow: hidden; }

@media (max-width: 900px) {
  /* HARD hide the desktop nav + extra header icons on mobile (wins over any
     later display rule). Burger is the only nav control. */
  .main-nav { display: none !important; }
  .header-cta .icon-btn:not(.search-toggle):not(.burger) { display: none !important; }
  .burger { display: grid !important; }
  /* shorter hero on tablets/phones so the lead image isn't a tall column */
  .hero-lead { min-height: 300px; }
  .site-header .wrap { gap: 14px; }
  .main-nav, .header-cta { margin-inline-start: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4, .video-row, .footer-top { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .hero-lead { min-height: 260px; border-radius: 10px; }
  .hero-content { padding: 18px; }
  .hero-content h1 { font-size: clamp(22px, 6.4vw, 30px); }
  .hero-content .excerpt { font-size: 15px; }
  .hero-content .meta { margin-top: 8px; }
  .newsletter .wrap { padding: 36px 20px; }
  .newsletter::before { font-size: 130px; inset-inline-end: -8px; opacity: .5; }
  .newsletter-form { flex-direction: column; }
  .newsletter-copy h2 { font-size: 28px; }
  .page-banner { padding: 36px 0; }
  .page-banner::before { display: none; }
  .page-banner h1 { font-size: clamp(28px, 8vw, 40px); }
  .breadcrumb { padding: 12px 0; font-size: 12.5px; }
  .article-head { padding: 4px 0 16px; }
  .article-head h1 { font-size: clamp(26px, 7.5vw, 38px); }
  .article-body { font-size: 17px; }
  .pull-quote p { font-size: 20px; }
  .story.row { gap: 12px; }
  .story.row .media { width: 96px; }
  .split { gap: 28px; }
  .section-head h2 { font-size: 23px; }
  .section-head h2::before { height: 23px; }
  .utility-tools .u-btn span { display: none; }
  .utility-date span.full { display: none; }
  .utility .wrap { font-size: 12px; }
  .mostread { padding: 22px 18px; }
}

@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; height: 70px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-text .ar { font-size: 23px; }
  .brand-text .en { font-size: 9.5px; letter-spacing: .22em; }
  .icon-btn { width: 42px; height: 42px; }
}
