/* الخط Cairo يُحمَّل عبر wp_enqueue_style في functions.php.
   @import هنا كان يُحمّله مرّة ثانية ويعطّل عرض الصفحة حتى ينتهي تحميله. */

/* ========================================
   ANTHRO — OFFICIAL BRAND GUIDELINES STYLESHEET
   Brand Colors (from Brand Manual):
   - Cream:    #F6F3EC (الخلفية)
   - Sand:     #E7E1D4 (الأرضية الثانوية)
   - Olive:    #6B6F4A (اللون الرئيسي)
   - Dark:     #1F1F1F (النصوص والداكن)
   - Copper:   #C47A44 (النحاسي/التأكيدي)
   Derived tones (same hue 66.5 deg, same saturation 20%):
   - Olive DK: #4D5035 (7.54:1 on cream — WCAG AAA)
   - Olive LT: #7C8156 (3.69:1 on cream — AA large; was 3.27:1)
   Font: Cairo (Bold for Headings, Regular for Body)
======================================== */

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #F6F3EC;
  --sand:     #E7E1D4;
  --sand-md:  #D5CCBA;
  --olive:    #6B6F4A;
  --olive-dk: #4D5035;
  --olive-lt: #7C8156;
  --dark:     #1F1F1F;
  --dark-2:   #2a2a2a;
  --copper:   #C47A44;
  --copper-lt:#E8A96A;
  --olive-text:  #6E724C;
  --copper-text: #9F6032;
  --white:    #ffffff;

  --font-sans: 'Cairo', sans-serif;
  --font-serif: 'Cairo', sans-serif;
  --font: 'Cairo', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --border-dashed: 1px dashed rgba(107, 111, 74,0.25);

  --shadow-sm: 0 4px 16px rgba(31,31,31,0.05);
  --shadow-md: 0 10px 30px rgba(31,31,31,0.08);
  --shadow-lg: 0 20px 50px rgba(31,31,31,0.14);

  --hdr-h: 76px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .hero-title, .art-title, .article-main-title, .archive-title, .sec-heading {
  font-family: var(--font);
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-space { padding: 80px 0; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--olive-lt); border-radius: 3px; }

/* ============ SELECTION ============ */
::selection { background: var(--olive); color: var(--cream); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(246,243,236,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(104,104,72,0.1);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(246,243,236,0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr-h);
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--olive);
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }
.logo-icon { display: flex; align-items: center; color: var(--olive); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-en {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--dark);
}
.logo-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.08em;
}

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; right: 14px; left: 14px;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--olive); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--sand); color: var(--olive); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  padding: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--sand); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search Overlay */
.search-overlay {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 2px solid var(--olive);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding var(--transition);
}
.search-overlay.open { max-height: 80px; padding: 16px 0; }
.search-inner { display: flex; align-items: center; gap: 12px; }
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  direction: rtl;
}
.search-input::placeholder { color: var(--sand-md); }
.search-close { color: var(--olive); }
.search-close:hover { color: var(--copper-text); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--cream);
  z-index: 1100;
  padding: calc(var(--hdr-h) + 24px) 24px 40px;
  border-left: 1px solid var(--sand);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }

/*
 * التنسيق يستهدف الرابط نفسه، لا فئة mobile-nav-link.
 *
 * والسبب أنّ القائمة تُبنى بـ wp_nav_menu، وووردبريس لا يضع
 * فئة على الـ <a> إطلاقاً. فكانت الروابط بلا حشو ولا مقاس
 * ولا مساحة لمس — نصّ عارٍ يصعب إصابته بالإصبع.
 *
 * والاستهداف بالعنصر يعمل مع قائمة ووردبريس ومع قائمة
 * الثيم الاحتياطيّة معاً، فلا يتوقّف على من بناها.
 */
.mobile-nav-list > li > a,
.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  min-height: 48px;          /* مساحة لمس لا تُخطئ */
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--r-md);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > a:focus-visible,
.mobile-nav-link:hover { background: var(--sand); color: var(--olive); }

/* الصفحة الجارية تُعرَف بالنظر */
.mobile-nav-list > li.current-menu-item > a {
  background: var(--sand);
  color: var(--olive-dk);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,31,31,0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.show { opacity: 1; pointer-events: all; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(196,122,68,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(104,104,72,0.4) 0%, transparent 50%),
    linear-gradient(160deg, #4D5035 0%, #1F1F1F 40%, #2a1a0a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31,31,31,0.2) 0%,
    rgba(31,31,31,0.55) 60%,
    rgba(31,31,31,0.85) 100%
  );
}

/* Hero Geo Pattern — defined in v3.0 pattern system below */
/* Old PNG-based pattern utilities removed — v3.0 uses inline SVG */


.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding-top: var(--hdr-h);
  padding-bottom: 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(246,243,236,0.7);
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(196,122,68,0.3);
  border-radius: 100px;
  background: rgba(196,122,68,0.1);
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  letter-spacing: -0.01em;
}
.hero-em {
  font-style: normal;
  color: var(--copper-lt);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: rgba(246,243,236,0.8);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(246,243,236,0.15);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.scroll-dot-anim {
  position: absolute;
  top: -10px;
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--copper-lt), transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { top: -20px; opacity: 0; }
  40% { opacity: 1; }
  100% { top: 60px; opacity: 0; }
}

/* Hero Stats Bar */
.hero-stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(246,243,236,0.06);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(246,243,236,0.1);
  padding: 20px 0;
  margin-top: auto;
  width: 100%;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 40px;
}
.stat-n {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
}
.stat-plus { font-size: 1.2rem; color: var(--copper-lt); }
.stat-l {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(246,243,236,0.6);
  white-space: nowrap;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: rgba(246,243,236,0.15);
  flex-shrink: 0;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--olive);
  color: var(--cream);
  border: 2px solid var(--olive);
}
.btn--primary:hover {
  background: var(--olive-dk);
  border-color: var(--olive-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104,104,72,0.4);
}

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--olive);
  border: 2px solid var(--olive);
}
.btn--outline:hover {
  background: var(--olive);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ============ SECTION HEADERS ============ */
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}
.sec-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
}
.sec-line--cu { background: var(--copper); }
.sec-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--olive);
  transition: gap var(--transition), color var(--transition);
}
.sec-more:hover { gap: 10px; color: var(--copper-text); }

/* Light variants */
.sec-header--lt .sec-label { color: rgba(246,243,236,0.7); }
.sec-label--lt { color: rgba(246,243,236,0.7); }
.sec-label--lt .sec-line { background: var(--copper); }
.sec-more--lt { color: rgba(246,243,236,0.8); }
.sec-more--lt:hover { color: var(--cream); }

/* ============ CATEGORIES ============ */
.cats-section {
  background: var(--cream);
  padding: 72px 0;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--sand);
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--olive), var(--copper));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover .cat-icon-wrap { background: var(--olive); color: var(--cream); }

.cat-icon-wrap {
  width: 68px; height: 68px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  transition: all var(--transition);
  flex-shrink: 0;
}
.cat-icon-wrap svg { width: 32px; height: 32px; }

.cat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.cat-desc {
  font-size: 0.82rem;
  color: var(--olive-text);
  font-weight: 400;
  line-height: 1.5;
}
.cat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--copper-text);
  background: rgba(196,122,68,0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: auto;
}

/* ============ ARTICLE CARDS ============ */
.art-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--sand);
  transition: all var(--transition);
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.art-img-link { display: block; position: relative; overflow: hidden; }
.art-img {
  background: var(--sand);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.art-card:hover .art-img { transform: scale(1.04); }
.art-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,31,31,0.5) 0%, transparent 60%);
}
.art-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: var(--olive);
  padding: 4px 12px;
  border-radius: 100px;
}

.art-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.art-meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--olive-text); flex-wrap: wrap; }
.art-cat { font-weight: 600; color: var(--copper-text); }
.meta-sep { color: var(--sand-md); }

.art-title { line-height: 1.45; }
.art-title a { color: var(--dark); font-weight: 700; transition: color var(--transition); }
.art-title a:hover { color: var(--olive); }
.art-title--lg { font-size: 1.4rem; }
.art-title { font-size: 1rem; }

.art-excerpt { font-size: 0.88rem; color: #5a5a4a; line-height: 1.75; }

.art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--sand);
  flex-wrap: wrap;
  gap: 8px;
}
.art-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  transition: color var(--transition);
}
.art-author:hover { color: var(--olive); }

/* Author Avatars */
.av {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--sand);
}
.av--1 { background: linear-gradient(135deg, #6B6F4A, #C47A44); }
.av--2 { background: linear-gradient(135deg, #4D5035, #6B6F4A); }
.av--3 { background: linear-gradient(135deg, #C47A44, #8B5E3C); }
.av--4 { background: linear-gradient(135deg, #8d8f64, #4D5035); }
.av--5 { background: linear-gradient(135deg, #C47A44, #6B6F4A); }
.av--6 { background: linear-gradient(135deg, #6B6F4A, #8d8f64); }

.read-time { font-size: 0.75rem; color: var(--olive-text); white-space: nowrap; }

/* ============ FEATURED LAYOUT ============ */
.featured-section { background: var(--cream); }

.featured-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.art-card--hero { flex-direction: row; border-radius: var(--r-lg); }
.art-card--hero .art-img-link { width: 55%; flex-shrink: 0; }
.art-card--hero .art-img { height: 100%; min-height: 380px; }
.art-card--hero .art-body { padding: 32px; justify-content: center; }
.art-card--hero .art-title--lg { font-size: 1.6rem; }
.art-card--hero .art-excerpt { font-size: 0.92rem; }

.art-side { display: flex; flex-direction: column; gap: 24px; }
.art-card--side .art-img { height: 160px; }
.art-card--side .art-body { padding: 18px; }
.art-card--side .art-title { font-size: 0.92rem; }

/* ============ PHILOSOPHY STRIP ============ */
.philosophy {
  background: var(--olive);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.philosophy::before {
  content: '"';
  position: absolute;
  top: -40px; left: 60px;
  font-size: 300px;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  font-family: var(--font);
}
.philosophy-inner {
  text-align: center;
  position: relative;
}
.ph-mark {
  display: block;
  font-size: 4rem;
  color: var(--copper-lt);
  line-height: 0.5;
  margin-bottom: 24px;
}
.ph-quote {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 20px;
}
.ph-cite {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(246,243,236,0.55);
  font-style: normal;
}

/* ============ STORIES GRID ============ */
.grid-section { background: var(--sand); }

.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.flt-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--olive);
  background: transparent;
  border: 1.5px solid var(--sand-md);
  border-radius: 100px;
  transition: all var(--transition);
}
.flt-btn:hover { border-color: var(--olive); color: var(--olive); }
.flt-btn.active {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.art-card--grid .art-img { height: 200px; }
.art-card--grid { background: var(--white); }

.load-wrap { text-align: center; margin-top: 48px; }

/* ============ PODCAST SECTION ============ */
.podcast-sec {
  background: var(--dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.pod-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, rgba(246,243,236,1) 0, rgba(246,243,236,1) 1px, transparent 0, transparent 60px),
    repeating-linear-gradient(90deg, rgba(246,243,236,1) 0, rgba(246,243,236,1) 1px, transparent 0, transparent 60px);
}

.pod-intro { margin-bottom: 48px; }
.pod-season-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-text);
  border: 1px solid rgba(196,122,68,0.4);
  background: rgba(196,122,68,0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pod-main-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 16px;
}
.pod-main-desc {
  font-size: 1rem;
  color: rgba(246,243,236,0.65);
  max-width: 560px;
  line-height: 1.8;
}

.pod-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

/* Episode Cards */
.ep-card { display: flex; border-radius: var(--r-lg); overflow: hidden; }
.ep-card--feat { flex-direction: row; background: rgba(246,243,236,0.05); border: 1px solid rgba(246,243,236,0.08); }

.ep-thumb {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ep-thumb--1 { width: 200px; background: linear-gradient(135deg, #6B6F4A, #4D5035); }
.ep-thumb--2 { background: linear-gradient(135deg, #C47A44, #8B5E3C); }
.ep-thumb--3 { background: linear-gradient(135deg, #4D5035, #6B6F4A); }
.ep-thumb--4 { background: linear-gradient(135deg, #8d8f64, #C47A44); }
.ep-thumb--sm { width: 80px; height: 80px; border-radius: var(--r-md); flex-shrink: 0; }

.ep-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(196,122,68,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.ep-play-btn:hover { background: var(--copper); transform: scale(1.1); }
.ep-play-btn--lg { width: 64px; height: 64px; }

.ep-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ep-meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: rgba(246,243,236,0.5); }
.ep-num { font-weight: 700; color: var(--copper-text); }
.ep-dur { color: rgba(246,243,236,0.5); }

.ep-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.45;
}
.ep-title--sm { font-size: 0.9rem; }
.ep-desc { font-size: 0.85rem; color: rgba(246,243,236,0.6); line-height: 1.75; }

/* Mini Player */
.mini-player {
  margin-top: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.mp-track { margin-bottom: 12px; }
.mp-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.mp-fill {
  height: 100%;
  background: linear-gradient(to left, var(--copper), var(--olive));
  border-radius: 2px;
  transition: width 0.1s linear;
}
.mp-thumb {
  position: absolute;
  top: 50%; right: 35%;
  width: 12px; height: 12px;
  background: var(--cream);
  border-radius: 50%;
  transform: translate(50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(246,243,236,0.2);
}
.mp-controls { display: flex; align-items: center; gap: 12px; }
.pp-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--olive);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: all var(--transition);
}
.pp-btn:hover { background: var(--copper); }
.mp-time { font-size: 0.75rem; color: rgba(246,243,236,0.5); flex: 1; }
.vol-btn { color: rgba(246,243,236,0.5); transition: color var(--transition); }
.vol-btn:hover { color: var(--cream); }

/* Episode List */
.ep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-card--row {
  background: rgba(246,243,236,0.04);
  border: 1px solid rgba(246,243,236,0.07);
  flex-direction: row;
  align-items: center;
  gap: 0;
  transition: all var(--transition);
}
.ep-card--row:hover {
  background: rgba(246,243,236,0.08);
  border-color: rgba(196,122,68,0.2);
}
.ep-card--row .ep-body { padding: 16px; }

.all-eps-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--copper-text);
  padding: 12px 16px;
  border: 1px dashed rgba(196,122,68,0.3);
  border-radius: var(--r-md);
  text-align: center;
  justify-content: center;
  transition: all var(--transition);
  flex-direction: row-reverse;
}
.all-eps-link:hover { border-color: var(--copper); background: rgba(196,122,68,0.08); }

/* ============ AUTHORS ============ */
.authors-sec { background: var(--cream); }
.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.au-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--r-lg);
  transition: all var(--transition);
}
.au-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(104,104,72,0.2);
}
.au-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--sand);
  transition: border-color var(--transition);
}
.au-card:hover .au-photo { border-color: var(--olive); }
.au-photo--1 { background: linear-gradient(135deg, #6B6F4A, #C47A44); }
.au-photo--2 { background: linear-gradient(135deg, #4D5035, #6B6F4A); }
.au-photo--3 { background: linear-gradient(135deg, #C47A44, #8B5E3C); }
.au-photo--4 { background: linear-gradient(135deg, #8d8f64, #4D5035); }

.au-name { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.au-field { font-size: 0.78rem; color: var(--olive-text); line-height: 1.5; }
.au-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--copper-text);
  background: rgba(196,122,68,0.08);
  padding: 3px 12px;
  border-radius: 100px;
  margin-top: auto;
}

/* ============ NEWSLETTER ============ */
.nl-section {
  background: var(--olive);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.nl-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, rgba(246,243,236,1) 0, rgba(246,243,236,1) 1px, transparent 0, transparent 30px),
    repeating-linear-gradient(-45deg, rgba(246,243,236,1) 0, rgba(246,243,236,1) 1px, transparent 0, transparent 30px);
}
.nl-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.nl-icon {
  width: 64px; height: 64px;
  color: var(--copper-lt);
  flex-shrink: 0;
}
.nl-icon svg { width: 100%; height: 100%; }
.nl-text { flex: 1; min-width: 200px; }
.nl-title { font-size: 1.8rem; font-weight: 800; color: var(--cream); margin-bottom: 8px; }
.nl-desc { font-size: 0.9rem; color: rgba(246,243,236,0.75); line-height: 1.7; }

.nl-form { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.nl-field { display: flex; gap: 0; border-radius: var(--r-md); overflow: hidden; border: 2px solid rgba(246,243,236,0.2); background: rgba(246,243,236,0.08); transition: border-color var(--transition); }
.nl-field:focus-within { border-color: var(--copper); }
.nl-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--cream);
  direction: rtl;
}
.nl-input::placeholder { color: rgba(246,243,236,0.4); }
.nl-field .btn--primary {
  background: var(--copper);
  border: none;
  border-radius: 0;
  padding: 14px 24px;
  margin: 0;
}
.nl-field .btn--primary:hover { background: var(--copper-lt); transform: none; box-shadow: none; }
.nl-note { font-size: 0.72rem; color: rgba(246,243,236,0.45); text-align: right; }

/* ============ FOOTER ============ */
.site-footer { background: var(--dark-2); }

.ft-top { padding: 64px 0 40px; }
.ft-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
}
.ft-brand { display: flex; flex-direction: column; gap: 16px; }

.logo--ft { color: var(--cream); }
.logo--ft .logo-en { color: var(--cream); }
.logo--ft .logo-ar { color: rgba(246,243,236,0.5); }

.ft-tagline { font-size: 0.82rem; color: rgba(246,243,236,0.5); line-height: 1.8; }

.social-row { display: flex; gap: 8px; }
.soc-link {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(246,243,236,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(246,243,236,0.5);
  transition: all var(--transition);
}
.soc-link:hover { border-color: var(--copper); color: var(--copper-text); background: rgba(196,122,68,0.08); }

.ft-col { display: flex; flex-direction: column; gap: 16px; }
.ft-head { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246,243,236,0.4); }
.ft-col ul { display: flex; flex-direction: column; gap: 8px; }
.ft-col li a { font-size: 0.88rem; color: rgba(246,243,236,0.65); transition: color var(--transition); }
.ft-col li a:hover { color: var(--cream); }

.ft-bottom {
  border-top: 1px solid rgba(246,243,236,0.06);
  padding: 20px 0;
}
.ft-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ft-copy { font-size: 0.8rem; color: rgba(246,243,236,0.35); }
.ft-legal { display: flex; align-items: center; gap: 12px; }
.ft-legal a { font-size: 0.8rem; color: rgba(246,243,236,0.35); transition: color var(--transition); }
.ft-legal a:hover { color: var(--cream); }
.ft-legal span { color: rgba(246,243,236,0.2); }

/* ============ BACK TO TOP ============ */
.back-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-top:hover { background: var(--copper); transform: translateY(-2px); }

/* ============ FADE-IN ANIMATION ============ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ANTHRO VISUAL PATTERNS SYSTEM — v3.0 (FULL REWRITE)
   الأنماط البصرية — نظام الخامات البصرية لكامل الموقع
   
   APPROACH: background-image directly on sections.
   → No z-index conflicts. No pseudo-element stacking issues.
   → Opacity baked into SVG path attributes (not CSS opacity).
   → Every page, every section covered professionally.
   ============================================================ */

/* ── BASE LAYER: Full-page topography on html ──────────────── */
/* This ensures the pattern is always visible between sections  */
html {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23B9A88C' stroke-linecap='round' stroke-linejoin='round' opacity='0.076'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.6'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.3'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.7'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.4'/%3E%3Cpath d='M-40,172 C46,148 98,204 168,178 C238,152 320,140 440,174' stroke-width='1.6'/%3E%3Cpath d='M-40,208 C52,184 106,238 178,212 C250,186 328,176 440,210' stroke-width='1.3'/%3E%3Cpath d='M-40,244 C44,220 100,274 172,248 C244,222 324,212 440,246' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-attachment: local;
  background-repeat: repeat;
}

/* ── HERO GEO PATTERN: Topography on dark overlay ──────────── */
.hero-geo-pattern {
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23F6F3EC' stroke-linecap='round' opacity='0.092'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.8'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.5'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.9'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.6'/%3E%3Cpath d='M-40,172 C46,148 98,204 168,178 C238,152 320,140 440,174' stroke-width='1.8'/%3E%3Cpath d='M-40,208 C52,184 106,238 178,212 C250,186 328,176 440,210' stroke-width='1.4'/%3E%3Cpath d='M-40,244 C44,220 100,274 172,248 C244,222 324,212 440,246' stroke-width='1.7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* ── CATEGORIES: Sadu Geometric Star Grid on Cream ─────────── */
.cats-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Crect width='130' height='130' fill='none'/%3E%3Cg fill='none' stroke='%236B6F4A' stroke-linecap='round'%3E%3Cpath d='M0,0 L130,130 M130,0 L0,130 M65,0 L65,130 M0,65 L130,65' stroke-width='0.6' opacity='0.084'/%3E%3C/g%3E%3Cg transform='translate(65,65)' fill='none' stroke='%236B6F4A'%3E%3Cpath d='M0,-46 L0,46 M-46,0 L46,0 M-33,-33 L33,33 M-33,33 L33,-33' stroke-width='0.9' opacity='0.118'/%3E%3Cpath d='M0,-26 L26,0 L0,26 L-26,0 Z' stroke-width='1' opacity='0.134'/%3E%3Crect x='-18' y='-18' width='36' height='36' stroke-width='0.85' opacity='0.109'/%3E%3Ccircle r='5' stroke-width='0.9' opacity='0.134'/%3E%3Ccircle r='1.8' fill='%236B6F4A' opacity='0.118'/%3E%3C/g%3E%3Cg transform='translate(0,0)' fill='none' stroke='%236B6F4A' opacity='0.076'%3E%3Cpath d='M0,-22 L22,0 L0,22 L-22,0 Z' stroke-width='0.75'/%3E%3Ccircle r='2.5' stroke-width='0.7'/%3E%3C/g%3E%3Cg transform='translate(130,0)' fill='none' stroke='%236B6F4A' opacity='0.076'%3E%3Cpath d='M0,-22 L22,0 L0,22 L-22,0 Z' stroke-width='0.75'/%3E%3Ccircle r='2.5' stroke-width='0.7'/%3E%3C/g%3E%3Cg transform='translate(0,130)' fill='none' stroke='%236B6F4A' opacity='0.076'%3E%3Cpath d='M0,-22 L22,0 L0,22 L-22,0 Z' stroke-width='0.75'/%3E%3Ccircle r='2.5' stroke-width='0.7'/%3E%3C/g%3E%3Cg transform='translate(130,130)' fill='none' stroke='%236B6F4A' opacity='0.076'%3E%3Cpath d='M0,-22 L22,0 L0,22 L-22,0 Z' stroke-width='0.75'/%3E%3Ccircle r='2.5' stroke-width='0.7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 130px 130px;
  background-repeat: repeat;
}

/* ── FEATURED ARTICLES: Topography on Cream ─────────────────── */
.featured-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23B9A88C' stroke-linecap='round' opacity='0.176'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.5'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.2'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.6'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.3'/%3E%3Cpath d='M-40,172 C46,148 98,204 168,178 C238,152 320,140 440,174' stroke-width='1.5'/%3E%3Cpath d='M-40,208 C52,184 106,238 178,212 C250,186 328,176 440,210' stroke-width='1.2'/%3E%3Cpath d='M-40,244 C44,220 100,274 172,248 C244,222 324,212 440,246' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-repeat: repeat;
}

/* ── PHILOSOPHY STRIP: Palm Fronds on Olive ─────────────────── */
.philosophy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='380'%3E%3Cg fill='%234D5035' opacity='0.189'%3E%3Cellipse cx='140' cy='340' rx='7' ry='20' transform='rotate(78 140 340)'/%3E%3Cellipse cx='140' cy='340' rx='7' ry='20' transform='rotate(-78 140 340)'/%3E%3Cellipse cx='140' cy='314' rx='8' ry='25' transform='rotate(66 140 314)'/%3E%3Cellipse cx='140' cy='314' rx='8' ry='25' transform='rotate(-66 140 314)'/%3E%3Cellipse cx='140' cy='286' rx='9' ry='30' transform='rotate(56 140 286)'/%3E%3Cellipse cx='140' cy='286' rx='9' ry='30' transform='rotate(-56 140 286)'/%3E%3Cellipse cx='140' cy='256' rx='10' ry='35' transform='rotate(46 140 256)'/%3E%3Cellipse cx='140' cy='256' rx='10' ry='35' transform='rotate(-46 140 256)'/%3E%3Cellipse cx='140' cy='224' rx='10' ry='38' transform='rotate(37 140 224)'/%3E%3Cellipse cx='140' cy='224' rx='10' ry='38' transform='rotate(-37 140 224)'/%3E%3Cellipse cx='140' cy='192' rx='10' ry='38' transform='rotate(28 140 192)'/%3E%3Cellipse cx='140' cy='192' rx='10' ry='38' transform='rotate(-28 140 192)'/%3E%3Cellipse cx='140' cy='160' rx='9' ry='32' transform='rotate(19 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='9' ry='32' transform='rotate(-19 140 160)'/%3E%3Cellipse cx='140' cy='130' rx='8' ry='26' transform='rotate(12 140 130)'/%3E%3Cellipse cx='140' cy='130' rx='8' ry='26' transform='rotate(-12 140 130)'/%3E%3Cellipse cx='140' cy='102' rx='7' ry='20' transform='rotate(6 140 102)'/%3E%3Cellipse cx='140' cy='102' rx='7' ry='20' transform='rotate(-6 140 102)'/%3E%3C/g%3E%3Cline x1='140' y1='360' x2='140' y2='80' stroke='%234D5035' stroke-width='4' opacity='0.147' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 280px 380px;
  background-repeat: repeat-x;
  background-position: center bottom;
}

/* ── STORIES GRID: Palm Weave on Sand ───────────────────────── */
.grid-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24'%3E%3Cpath d='M0,12 C4.5,2 13.5,2 18,12' fill='none' stroke='%236E5B3C' stroke-width='2' opacity='0.160' stroke-linecap='round'/%3E%3Cpath d='M0,14 C4.5,4 13.5,4 18,14' fill='none' stroke='%23B9A88C' stroke-width='1.4' opacity='0.118' stroke-linecap='round'/%3E%3Cline x1='9' y1='13' x2='9' y2='24' stroke='%236E5B3C' stroke-width='1.1' opacity='0.101'/%3E%3Cline x1='0' y1='23' x2='18' y2='23' stroke='%236E5B3C' stroke-width='1.2' opacity='0.109'/%3E%3C/svg%3E");
  background-size: 18px 24px;
  background-repeat: repeat;
}

/* ── PODCAST SECTION: Mudbrick Vents on Dark ────────────────── */
.podcast-sec {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='120'%3E%3Crect x='22' y='6' width='44' height='54' rx='7' fill='%23EFC08A' opacity='0.029'/%3E%3Crect x='22' y='6' width='44' height='54' rx='7' fill='none' stroke='%23EFC08A' stroke-width='1.2' opacity='0.092'/%3E%3Crect x='-22' y='66' width='44' height='54' rx='7' fill='%23EFC08A' opacity='0.029'/%3E%3Crect x='-22' y='66' width='44' height='54' rx='7' fill='none' stroke='%23EFC08A' stroke-width='1.2' opacity='0.092'/%3E%3Crect x='66' y='66' width='44' height='54' rx='7' fill='%23EFC08A' opacity='0.029'/%3E%3Crect x='66' y='66' width='44' height='54' rx='7' fill='none' stroke='%23EFC08A' stroke-width='1.2' opacity='0.092'/%3E%3C/svg%3E");
  background-size: 88px 120px;
  background-repeat: repeat;
}
/* Hide old pod-pattern div */
.pod-pattern { display: none !important; }

/* ── AUTHORS SECTION: Sadu Grid on Cream ────────────────────── */
.authors-sec {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Crect width='130' height='130' fill='none'/%3E%3Cg fill='none' stroke='%236B6F4A' stroke-linecap='round'%3E%3Cpath d='M0,0 L130,130 M130,0 L0,130 M65,0 L65,130 M0,65 L130,65' stroke-width='0.6' opacity='0.084'/%3E%3C/g%3E%3Cg transform='translate(65,65)' fill='none' stroke='%236B6F4A'%3E%3Cpath d='M0,-46 L0,46 M-46,0 L46,0 M-33,-33 L33,33 M-33,33 L33,-33' stroke-width='0.9' opacity='0.118'/%3E%3Cpath d='M0,-26 L26,0 L0,26 L-26,0 Z' stroke-width='1' opacity='0.134'/%3E%3Crect x='-18' y='-18' width='36' height='36' stroke-width='0.85' opacity='0.109'/%3E%3Ccircle r='5' stroke-width='0.9' opacity='0.134'/%3E%3Ccircle r='1.8' fill='%236B6F4A' opacity='0.118'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 130px 130px;
  background-repeat: repeat;
}

/* ── NEWSLETTER SECTION: Topography on Olive ────────────────── */
.nl-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23F6F3EC' stroke-linecap='round' opacity='0.067'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.8'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.4'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.9'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.5'/%3E%3Cpath d='M-40,172 C46,148 98,204 168,178 C238,152 320,140 440,174' stroke-width='1.8'/%3E%3Cpath d='M-40,208 C52,184 106,238 178,212 C250,186 328,176 440,210' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-repeat: repeat;
  position: relative;
}
.nl-section > * { position: relative; z-index: 1; }
/* Hide old nl-pattern div */
.nl-pattern { display: none !important; }

/* ── SITE FOOTER: Mudbrick Vents on Dark ────────────────────── */
.site-footer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='120'%3E%3Crect x='22' y='6' width='44' height='54' rx='7' fill='none' stroke='%23EFC08A' stroke-width='1' opacity='0.050'/%3E%3Crect x='-22' y='66' width='44' height='54' rx='7' fill='none' stroke='%23EFC08A' stroke-width='1' opacity='0.050'/%3E%3Crect x='66' y='66' width='44' height='54' rx='7' fill='none' stroke='%23EFC08A' stroke-width='1' opacity='0.050'/%3E%3C/svg%3E");
  background-size: 88px 120px;
  background-repeat: repeat;
}

/* ── ABOUT HERO: Topography ──────────────────────────────────── */
.about-hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23B9A88C' stroke-linecap='round' opacity='0.202'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.6'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.3'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.7'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.4'/%3E%3Cpath d='M-40,172 C46,148 98,204 168,178 C238,152 320,140 440,174' stroke-width='1.6'/%3E%3Cpath d='M-40,208 C52,184 106,238 178,212 C250,186 328,176 440,210' stroke-width='1.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-repeat: repeat;
}

/* ── AUTHOR HERO: Sadu Star Grid on Dark ──────────────────────
   نُقلت الشبكة إلى ‎::before‎ وسقطت ‎!important‎.
   السبب: كانت هنا ‎background-image ... !important‎ على العنصر
   نفسه، فحجبت صورة الرأس الموحّدة (‎--page-hero-img‎) — وحدها من
   بين كل الرؤوس. فبقيت صفحة الكاتب سوداء بلا صورة بينما ظهرت
   الصورة في التصنيف، لأنّ ‎.cat-hero‎ كتب النمط نفسه بلا
   ‎!important‎ فسمح للطبقة اللاحقة أن تعلوه.
   ──────────────────────────────────────────────────────────── */
.author-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Crect width='130' height='130' fill='none'/%3E%3Cg fill='none' stroke='%23F6F3EC' stroke-linecap='round'%3E%3Cpath d='M0,0 L130,130 M130,0 L0,130 M65,0 L65,130 M0,65 L130,65' stroke-width='0.6' opacity='0.042'/%3E%3C/g%3E%3Cg transform='translate(65,65)' fill='none' stroke='%23F6F3EC'%3E%3Cpath d='M0,-46 L0,46 M-46,0 L46,0 M-33,-33 L33,33 M-33,33 L33,-33' stroke-width='0.9' opacity='0.059'/%3E%3Cpath d='M0,-26 L26,0 L0,26 L-26,0 Z' stroke-width='1' opacity='0.067'/%3E%3Crect x='-18' y='-18' width='36' height='36' stroke-width='0.85' opacity='0.055'/%3E%3Ccircle r='5' stroke-width='0.9' opacity='0.067'/%3E%3Ccircle r='1.8' fill='%23F6F3EC' opacity='0.059'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 130px 130px;
  background-repeat: repeat;
  opacity: .55;
}

/* ── CAT HERO: Topography on Olive ──────────────────────────── */
.cat-hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23F6F3EC' stroke-linecap='round' opacity='0.084'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.8'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.5'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.9'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.6'/%3E%3Cpath d='M-40,172 C46,148 98,204 168,178 C238,152 320,140 440,174' stroke-width='1.8'/%3E%3Cpath d='M-40,208 C52,184 106,238 178,212 C250,186 328,176 440,210' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-repeat: repeat;
}

/* ── CONTACT HERO: Sadu Star Grid on Olive ───────────────────── */
.contact-hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cg fill='none' stroke='%23F6F3EC' stroke-linecap='round'%3E%3Cpath d='M0,0 L130,130 M130,0 L0,130 M65,0 L65,130 M0,65 L130,65' stroke-width='0.6' opacity='0.059'/%3E%3C/g%3E%3Cg transform='translate(65,65)' fill='none' stroke='%23F6F3EC'%3E%3Cpath d='M0,-46 L0,46 M-46,0 L46,0 M-33,-33 L33,33 M-33,33 L33,-33' stroke-width='0.9' opacity='0.076'/%3E%3Cpath d='M0,-26 L26,0 L0,26 L-26,0 Z' stroke-width='1' opacity='0.084'/%3E%3Crect x='-18' y='-18' width='36' height='36' stroke-width='0.85' opacity='0.067'/%3E%3Ccircle r='5' stroke-width='0.9' opacity='0.084'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 130px 130px;
  background-repeat: repeat;
}
/* Remove conflicting pseudo-element */
.contact-hero::before { display: none; }

/* ── SEARCH HERO: Topography on White ───────────────────────── */
.search-hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23B9A88C' stroke-linecap='round' opacity='0.160'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.5'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.2'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.6'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.3'/%3E%3Cpath d='M-40,172 C46,148 98,204 168,178 C238,152 320,140 440,174' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-repeat: repeat;
}
/* Remove conflicting pseudo-element */
.search-hero::before { display: none; }

/* ── ARCHIVE HEADER: Topography on White ────────────────────── */
.archive-header {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='280'%3E%3Cg fill='none' stroke='%23B9A88C' stroke-linecap='round' opacity='0.168'%3E%3Cpath d='M-40,30 C40,8 90,58 160,40 C230,22 310,12 440,36' stroke-width='1.5'/%3E%3Cpath d='M-40,64 C50,42 100,94 170,72 C240,50 320,42 440,70' stroke-width='1.2'/%3E%3Cpath d='M-40,100 C42,76 96,130 166,106 C236,82 316,72 440,104' stroke-width='1.6'/%3E%3Cpath d='M-40,136 C56,112 104,166 176,140 C248,114 324,106 440,138' stroke-width='1.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 280px;
  background-repeat: repeat;
}
/* Remove conflicting pseudo-element */
.archive-header::before { display: none; }

/* ── MISSION VISUAL (About Page): Weave on Olive ────────────── */
.mission-visual {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24'%3E%3Cpath d='M0,12 C4.5,2 13.5,2 18,12' fill='none' stroke='%23F6F3EC' stroke-width='2' opacity='0.076' stroke-linecap='round'/%3E%3Cpath d='M0,14 C4.5,4 13.5,4 18,14' fill='none' stroke='%23F6F3EC' stroke-width='1.4' opacity='0.050' stroke-linecap='round'/%3E%3Cline x1='9' y1='13' x2='9' y2='24' stroke='%23F6F3EC' stroke-width='1' opacity='0.042'/%3E%3Cline x1='0' y1='23' x2='18' y2='23' stroke='%23F6F3EC' stroke-width='1.1' opacity='0.050'/%3E%3C/svg%3E");
  background-size: 18px 24px;
  background-repeat: repeat;
}

/* ── ARTICLE HERO: Topography (single.css handled below) ─────── */
/* The article-hero has a dark overlay — use cream strokes       */

/* ── REMOVE all old conflicting pseudo-elements ─────────────── */
.cats-section::before,
.grid-section::before,
.authors-sec::before,
.philosophy::after,
.nl-section::before,
.site-footer::before,
.about-hero::before,
.featured-section::before,
.archive-hero::before,
.search-hero::before,
.category-hero::before,
.contact-hero::before,
.single-sidebar::before,
.article-aside::before,
.author-hero::after,
.podcast-sec::before,
.podcast-hero::before,
.cat-hero::after,
.values-grid-wrap::before,
.archive-header::before,
.grid-section::before { display: none; content: none; }

/* ── Fix z-index for sections using background-image ─────────── */
/* No children need z-index — background-image is always behind  */
.cats-section > .container,
.featured-section > .container,
.grid-section > .container,
.authors-sec > .container,
.nl-section > .container,
.about-hero > .container,
.philosophy > .container,
.author-hero > .container,
.cat-hero > .container,
.contact-hero > .container,
.search-hero > .container {
  position: static;
  z-index: auto;
}

/* ── Reduced motion override ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { background-attachment: local; }
}
/* (Old pattern system removed — v3.0 uses background-image above) */


/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .featured-layout { grid-template-columns: 1fr; }
  .art-card--hero { flex-direction: column; }
  .art-card--hero .art-img-link { width: 100%; }
  .art-card--hero .art-img { min-height: 280px; height: 280px; }
  .art-side { flex-direction: row; }
  .art-card--side { flex: 1; }

  .pod-layout { grid-template-columns: 1fr; }
  .ep-card--feat { flex-direction: column; }
  .ep-thumb--1 { width: 100%; height: 200px; }
}

@media (max-width: 900px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-brand { grid-column: 1 / -1; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .stat { padding: 10px 24px; }
}

@media (max-width: 600px) {
  :root { --hdr-h: 64px; }
  .section-space { padding: 56px 0; }
  .container { padding: 0 16px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 24px 16px; }
  .art-grid { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .art-side { flex-direction: column; }
  .stats-row { gap: 0; }
  .stat { padding: 10px 16px; }
  .stat-sep { height: 24px; }
  .ft-grid { grid-template-columns: 1fr; gap: 28px; }
  .nl-inner { flex-direction: column; text-align: center; }
  .nl-note { text-align: center; }
  .nl-form { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .back-top { bottom: 20px; left: 20px; }
}


/* =========================================================
   G-04 — ARTICLE CARD, REBUILT
   تشريح البطاقة: صورة ← «الشكل / السلسلة» فوقها ← عنوان ← كاتب ← مقتطف
   هذه القواعد تأتي بعد قواعد .art-card الأصلية عمداً لتفوز
   عليها بنفس درجة التخصيص دون الحاجة إلى !important.
   ========================================================= */

/* ---- حاوية الصورة: نسبة ثابتة بدل ارتفاع مضمّن في HTML ---- */
.art-card .art-img {
  position: relative;
  aspect-ratio: 3 / 2;
  height: auto;
  display: block;
  background: var(--sand);
}
.art-card--large .art-img { aspect-ratio: 16 / 9; }

.art-card .art-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* الصورة الاحتياطية: نقش من نقوش الهوية، لا صورة مكرّرة */
.art-card--pattern .art-img {
  background: var(--sand);
}
.art-card .art-img-pattern {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 180px;
  opacity: 0.55;
}
.art-card--pattern .art-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 111, 74,0.10), rgba(196,122,68,0.10));
}

/* ---- «الشكل / السلسلة» فوق الصورة ---- */
.art-card .art-kicker {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-end: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: baseline;
  gap: 6px;

  max-width: calc(100% - 24px);
  padding: 5px 11px;
  border-radius: 3px;

  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;

  color: var(--cream);
  background: rgba(31, 31, 31, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.art-card .kicker-type   { opacity: 0.72; font-weight: 600; }
.art-card .kicker-sep    { opacity: 0.45; }
.art-card .kicker-series { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- جسم البطاقة ---- */
.art-card .art-body { gap: 8px; }

.art-card .art-byline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.art-card .art-author {
  color: var(--copper-text);
  transition: color var(--transition);
  display: inline;
  padding: 0;
}
.art-card .art-author:hover { color: var(--olive); }

.art-card .art-excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-card .art-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--olive-text);
  border-top: 1px dashed rgba(107, 111, 74, 0.18);
}
.art-card .art-date { white-space: nowrap; }

/* شبكة الأرشيف تُضبط بالشبكة نفسها لا بارتفاعات مضمّنة */
.art-card--grid .art-img { height: auto; }

/* ---- شارات الشكل التحريري غير المقالي ---- */
.art-card--type-poem       .art-kicker { background: rgba(77, 80, 53, 0.72); }
.art-card--type-video      .art-kicker { background: rgba(196, 122, 68, 0.78); }
.art-card--type-photo-essay .art-kicker { background: rgba(31, 31, 31, 0.72); }
.art-card--type-interview  .art-kicker { background: rgba(107, 111, 74, 0.75); }


/* =========================================================
   B-08 — ARCHIVE LAYOUT WITH OPTIONAL SIDEBAR
   ========================================================= */
.archive-layout { display: block; }

@media (min-width: 992px) {
  .archive-layout--has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
  }
  .archive-layout--has-sidebar .archive-sidebar {
    position: sticky;
    top: calc(var(--hdr-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .archive-layout--has-sidebar .art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.archive-sidebar .sidebar-widget {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  padding: 20px;
}
.archive-sidebar .widget-heading {
  font-size: 0.95rem;
  color: var(--olive-dk);
  margin-bottom: 12px;
}


/* =========================================================
   B-05 — COMMENTS
   ========================================================= */
.article-comments {
  padding: 56px 0 72px;
  border-top: 1px solid var(--sand);
  background: var(--cream);
}
.container--narrow { max-width: 820px; margin-inline: auto; }

.comments-title {
  font-size: 1.4rem;
  color: var(--olive-dk);
  margin-bottom: 28px;
}

.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list .children {
  margin-top: 20px;
  padding-inline-start: 28px;
  border-inline-start: 1px dashed rgba(107, 111, 74, 0.25);
}
.comment-list > .comment-item + .comment-item { margin-top: 24px; }

.comment-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.comment-avatar img { border-radius: 50%; display: block; }

.comment-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-author { font-weight: 700; color: var(--olive-dk); }
.comment-date   { font-size: 0.76rem; color: var(--olive-text); }
.comment-pending {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--copper-text);
  background: rgba(196, 122, 68, 0.12);
  padding: 2px 8px;
  border-radius: 100px;
}
.comment-content { font-size: 0.94rem; line-height: 1.85; }
.comment-content p:last-child { margin-bottom: 0; }

.comment-actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
}
.comment-reply-link,
.comment-edit-link a { color: var(--copper-text); font-weight: 600; }

.comment-form { margin-top: 40px; display: grid; gap: 14px; }
.comment-form .comment-notes { font-size: 0.8rem; color: var(--olive-text); }
.comment-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--olive-dk);
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  border: 1px solid var(--sand-md);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--dark);
}
.comment-form textarea { resize: vertical; min-height: 140px; }
.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 1px;
  border-color: transparent;
}
.comment-form .form-submit { margin: 0; }
.no-comments { color: var(--olive-text); font-size: 0.88rem; }


/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .art-card,
  .art-card .art-img,
  .art-card:hover { transition: none; transform: none; }
  .art-card:hover .art-img { transform: none; }
}
