/* ================================================================
   INDIGENA — Editorial Indigenous Media Platform
   style.css — Production-Grade Stylesheet
   Aesthetic: Luxury Editorial × Earth & Forest Depths
   ================================================================ */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  /* Core Palette */
  --clr-bg:          #faf7f2;
  --clr-surface:     #ffffff;
  --clr-surface-2:   #f5ede0;
  --clr-surface-3:   #ece0d0;

  /* Earth Tones */
  --clr-earth-dark:  #1a110a;
  --clr-earth:       #2c1f12;
  --clr-earth-mid:   #4a3728;
  --clr-earth-soft:  #7a6250;
  --clr-earth-muted: #b09a86;

  /* Forest */
  --clr-forest-deep: #0f2318;
  --clr-forest:      #1a3a28;
  --clr-forest-mid:  #2c5a3e;

  /* Gold Accent */
  --clr-gold:        #c8860a;
  --clr-gold-light:  #e8a830;
  --clr-gold-pale:   #f5d48a;
  --clr-gold-glow:   rgba(200, 134, 10, 0.15);

  /* Text */
  --clr-text-primary:   #1a110a;
  --clr-text-secondary: #4a3728;
  --clr-text-muted:     #7a6250;
  --clr-text-faint:     #b09a86;

  /* Borders */
  --clr-border:      rgba(74, 55, 40, 0.12);
  --clr-border-gold: rgba(200, 134, 10, 0.3);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Cairo', sans-serif;

  /* Spacing Scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   36px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(26, 17, 10, 0.06);
  --shadow-md:  0 8px 24px rgba(26, 17, 10, 0.10);
  --shadow-lg:  0 16px 48px rgba(26, 17, 10, 0.14);
  --shadow-xl:  0 24px 64px rgba(26, 17, 10, 0.18);
  --shadow-gold: 0 8px 32px rgba(200, 134, 10, 0.22);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   180ms;
  --dur-mid:    320ms;
  --dur-slow:   550ms;

  /* Navbar Height */
  --navbar-h: 68px;
  --strip-h:  48px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  /* Subtle grain texture overlay */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
ul, ol { list-style: none; }

/* ===== Scroll Progress Bar ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-forest), var(--clr-gold), var(--clr-gold-light));
  transform-origin: right;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 80ms linear;
}

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  left: var(--sp-8);
  width: 48px;
  height: 48px;
  background: var(--clr-earth);
  color: var(--clr-gold-light);
  border: 1px solid var(--clr-border-gold);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-mid) var(--ease-smooth),
              transform var(--dur-mid) var(--ease-smooth),
              background var(--dur-fast);
  box-shadow: var(--shadow-md);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
}

/* ===== UNIFIED HEADER ===== */
.unified-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: stretch;
}

/* Logo occupies full height of both rows */
.unified-header .logo.logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
  border-left: 1px solid rgba(200, 134, 10, 0.18);
  padding: 6px 12px;
  background: #000;
  z-index: 2;
}

.logo-banner-img {
  height: calc(var(--navbar-h) + var(--strip-h) - 12px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* Right side: navbar + strip stacked */
.unified-header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  height: var(--navbar-h);
  background: transparent;
  border-bottom: 1px solid rgba(200, 134, 10, 0.18);
  flex-shrink: 0;
}

/* nav-container defined in enhancements below */

/* Legacy text logo (footer etc.) */
.logo:not(.logo-img) {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  user-select: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--clr-forest), var(--clr-gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0e0c8;
  letter-spacing: 0.03em;
}

.logo-text .logo-sub {
  font-size: 0.62rem;
  color: var(--clr-gold);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}

.nav-links a {
  color: rgba(240, 224, 200, 0.85);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--dur-fast);
  position: relative;
  padding: var(--sp-2) var(--sp-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links a i {
  font-size: 0.8rem;
  opacity: 0.8;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-smooth);
}

.nav-links a:hover { color: var(--clr-gold-light); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--clr-gold-light); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-search-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 134, 10, 0.3);
  background: rgba(200, 134, 10, 0.08);
  color: var(--clr-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--dur-fast);
  cursor: pointer;
}
.nav-search-btn:hover {
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
  border-color: var(--clr-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--clr-gold-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--sp-2);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: var(--navbar-h);
  right: 0;
  left: 0;
  background: rgba(26, 17, 10, 0.98);
  border-top: 1px solid rgba(200, 134, 10, 0.15);
  border-bottom: 1px solid rgba(200, 134, 10, 0.15);
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-8);
  z-index: 999;
}
.dropdown-menu.open { display: flex; }
.dropdown-menu a {
  color: rgba(240, 224, 200, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: rgba(200, 134, 10, 0.08);
  border: 1px solid rgba(200, 134, 10, 0.15);
  transition: all var(--dur-fast);
}
.dropdown-menu a:hover {
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
  border-color: var(--clr-gold);
}

/* ===== CATEGORIES STRIP ===== */
.categories-strip {
  height: var(--strip-h);
  background: transparent;
  border-top: 1px solid rgba(200, 134, 10, 0.12);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex-shrink: 0;
}
.categories-strip::-webkit-scrollbar { display: none; }

.strip-container {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-8);
  height: 100%;
  min-width: 100%;
}

.cat-chip {
  height: 28px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 134, 10, 0.25);
  color: rgba(240, 224, 200, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  user-select: none;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
  border-color: var(--clr-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 134, 10, 0.3);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 620px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(15, 35, 24, 0.82) 0%, rgba(44, 31, 18, 0.75) 50%, rgba(10, 8, 5, 0.90) 100%),
    url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?w=1800&q=80') center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}

/* Decorative diagonal line */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--clr-bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: var(--sp-8);
  animation: heroFadeUp 1s var(--ease-smooth) both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(200, 134, 10, 0.15);
  border: 1px solid rgba(200, 134, 10, 0.35);
  color: var(--clr-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-6);
  animation: heroFadeUp 1s 0.2s var(--ease-smooth) both;
}
.hero-eyebrow i { color: var(--clr-gold); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: #fdf6ec;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  line-height: 1.15;
  margin-bottom: var(--sp-5);
  animation: heroFadeUp 1s 0.3s var(--ease-smooth) both;
}

.hero-title em {
  font-style: normal;
  color: var(--clr-gold-light);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(240, 224, 200, 0.85);
  max-width: 580px;
  margin: 0 auto var(--sp-8);
  line-height: 1.75;
  animation: heroFadeUp 1s 0.45s var(--ease-smooth) both;
}

.hero-buttons {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 1s 0.6s var(--ease-smooth) both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.hero-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-mid) var(--ease-smooth);
}
.hero-btn:hover::before { transform: scaleX(1); }

.hero-btn.primary {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-light));
  color: var(--clr-earth-dark);
  box-shadow: 0 8px 24px rgba(200, 134, 10, 0.4);
}
.hero-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(200, 134, 10, 0.5);
}

.hero-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: #f0e0c8;
  border: 1.5px solid rgba(240, 224, 200, 0.35);
  backdrop-filter: blur(8px);
}
.hero-btn.secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(240, 224, 200, 0.6);
  transform: translateY(-3px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(240, 224, 200, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}

/* Hero Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 90px;
  right: var(--sp-8);
  z-index: 3;
  display: flex;
  gap: var(--sp-6);
  animation: heroFadeUp 1s 0.8s var(--ease-smooth) both;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-gold-light);
  line-height: 1;
}
.hero-stat .lbl {
  display: block;
  font-size: 0.65rem;
  color: rgba(240, 224, 200, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

/* ===== SECTION HEADERS ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-3);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--clr-earth);
  font-weight: 700;
  line-height: 1.2;
}
.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  margin: var(--sp-4) auto 0;
  border-radius: 2px;
}

/* ===== FEATURED POSTS ===== */
.featured-posts {
  padding: var(--sp-16) 0 var(--sp-12);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-5);
}

/* Large featured card */
.featured-card-large {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  position: relative;
  transition: transform var(--dur-slow) var(--ease-smooth),
              box-shadow var(--dur-slow) var(--ease-smooth);
}
.featured-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.featured-card-large .post-img {
  height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.featured-card-large:hover .post-img {
  transform: scale(1.04);
}
.featured-card-large .post-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,17,10,0.7) 0%, transparent 55%);
}

.featured-card-large .post-content {
  padding: var(--sp-6) var(--sp-8) var(--sp-8);
}
.featured-card-large h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-earth);
  line-height: 1.35;
  margin-bottom: var(--sp-3);
  transition: color var(--dur-fast);
}
.featured-card-large:hover h3 { color: var(--clr-gold); }

/* Side small cards */
.featured-side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.featured-card-small {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex: 1;
  border: 1px solid var(--clr-border);
  transition: all var(--dur-mid) var(--ease-smooth);
}
.featured-card-small:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border-gold);
}
.featured-card-small .post-img {
  width: 140px;
  min-height: 130px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.featured-card-small:hover .post-img {
  transform: scale(1.06);
}
.featured-card-small .post-content {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card-small h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--clr-earth);
  line-height: 1.4;
  margin-bottom: var(--sp-2);
  transition: color var(--dur-fast);
}
.featured-card-small:hover h4 { color: var(--clr-gold); }

/* ===== CATEGORY SHOWCASE ===== */
.categories-showcase {
  padding: var(--sp-12) 0;
  background: linear-gradient(135deg, var(--clr-forest-deep) 0%, var(--clr-earth) 100%);
  position: relative;
  overflow: hidden;
}
.categories-showcase::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--clr-bg);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}
.categories-showcase::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--clr-bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.categories-showcase .container { position: relative; z-index: 2; }
.categories-showcase .section-header h2 { color: #fdf6ec; }
.categories-showcase .section-eyebrow { color: var(--clr-gold-light); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-4);
}

.category-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200, 134, 10, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: #f0e0c8;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-spring);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-gold), transparent);
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.category-card:hover {
  border-color: var(--clr-gold);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.category-card:hover::before { opacity: 0.12; }
.category-card i {
  font-size: 2.2rem;
  color: var(--clr-gold-light);
  margin-bottom: var(--sp-4);
  display: block;
  position: relative;
  z-index: 1;
  transition: transform var(--dur-mid) var(--ease-spring);
}
.category-card:hover i { transform: scale(1.2) rotate(-5deg); }
.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-2);
}
.category-card p {
  font-size: 0.75rem;
  color: rgba(200, 170, 130, 0.7);
  position: relative;
  z-index: 1;
}

/* ===== POSTS GRID ===== */
#mainPosts { padding: var(--sp-16) 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
}

.post-card {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--clr-border);
  transition: all var(--dur-slow) var(--ease-smooth);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--clr-border-gold);
}

.post-img {
  height: 230px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.post-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,17,10,0.4) 0%, transparent 60%);
  transition: opacity var(--dur-mid);
}
.post-card:hover .post-img { }
.post-card .post-img-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.post-card:hover .post-img-inner {
  transform: scale(1.07);
}

.post-category {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.post-content {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--clr-earth);
  margin-bottom: var(--sp-3);
  transition: color var(--dur-fast);
  flex: 1;
}
.post-card:hover .post-title { color: var(--clr-gold); }

.post-excerpt {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--clr-text-faint);
  font-size: 0.75rem;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-4);
  margin-top: auto;
}
.post-meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.post-meta i { color: var(--clr-earth-muted); }

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--clr-surface-2) 25%, var(--clr-surface-3) 50%, var(--clr-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}
.skeleton-img   { height: 230px; }
.skeleton-body  { padding: var(--sp-5) var(--sp-6); }
.skeleton-line  { height: 14px; margin-bottom: var(--sp-3); border-radius: var(--radius-pill); }
.skeleton-line.short { width: 55%; }
.skeleton-line.shorter { width: 35%; }

/* ===== LOAD MORE ===== */
.load-more-container {
  text-align: center;
  margin-top: var(--sp-10);
}
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 40px;
  background: var(--clr-earth);
  color: var(--clr-gold-light);
  border: 1px solid var(--clr-border-gold);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-spring);
}
.load-more-btn:hover {
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
  border-color: var(--clr-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ===== ARTICLE PAGE ===== */
.article-container {
  max-width: 820px;
  margin: var(--sp-10) auto var(--sp-16);
  padding: 0 var(--sp-8);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-6);
}
.article-breadcrumb a { color: var(--clr-gold); }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb i { font-size: 0.65rem; }

.article-header {
  margin-bottom: var(--sp-8);
}

.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.article-cat-tag {
  background: var(--clr-gold-glow);
  border: 1px solid var(--clr-border-gold);
  color: var(--clr-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--clr-earth);
  line-height: 1.25;
  margin-bottom: var(--sp-5);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.82rem;
}
.article-meta-bar span {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.article-meta-bar i { color: var(--clr-gold); }

.article-hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  margin: var(--sp-8) 0;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* Reading Progress */
#reading-progress {
  position: fixed;
  top: var(--navbar-h);
  right: 0;
  left: 0;
  height: 3px;
  background: var(--clr-border);
  z-index: 900;
}
#reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-forest-mid), var(--clr-gold));
  width: 0%;
  transition: width 80ms linear;
}

/* Article Content Typography */
.article-content {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--clr-text-secondary);
}
.article-content h2,
.article-content h3 {
  font-family: var(--font-display);
  color: var(--clr-earth);
  margin: var(--sp-8) 0 var(--sp-4);
  line-height: 1.3;
}
.article-content h2 { font-size: 1.65rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content p  { margin-bottom: var(--sp-5); }
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--sp-6) 0;
  box-shadow: var(--shadow-md);
}
.article-content blockquote {
  border-right: 4px solid var(--clr-gold);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: var(--clr-surface-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--clr-earth-mid);
  font-size: 1.1rem;
}
.article-content a {
  color: var(--clr-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content ul, .article-content ol {
  padding-right: var(--sp-6);
  margin-bottom: var(--sp-5);
}
.article-content li { margin-bottom: var(--sp-2); }

/* Share Buttons */
.share-section {
  margin: var(--sp-12) 0 var(--sp-8);
  padding: var(--sp-6);
  background: var(--clr-surface-2);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
}
.share-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-secondary);
  transition: all var(--dur-fast);
  cursor: pointer;
}
.share-btn:hover {
  background: var(--clr-earth);
  color: var(--clr-gold-light);
  border-color: var(--clr-earth);
  transform: translateY(-2px);
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-gold);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap var(--dur-fast);
}
.back-home:hover { gap: var(--sp-3); }

/* ===== CATEGORY PAGE HERO ===== */
.category-hero {
  padding: var(--sp-20) var(--sp-8) var(--sp-16);
  background: linear-gradient(135deg, var(--clr-forest-deep) 0%, var(--clr-earth) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.category-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--clr-bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.category-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fdf6ec;
  margin-bottom: var(--sp-3);
}
.category-hero p {
  color: rgba(240, 224, 200, 0.7);
  font-size: 1rem;
}
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(200,134,10,0.2);
  border: 1px solid rgba(200,134,10,0.4);
  color: var(--clr-gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-5);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--clr-earth-dark);
  color: var(--clr-earth-muted);
  padding: var(--sp-16) 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-forest), var(--clr-gold), var(--clr-gold-light));
}

.footer-container {
  max-width: 1320px;
  margin: auto;
  padding: 0 var(--sp-8);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-10);
}

.footer-about .logo-name { color: #f0e0c8; }
.footer-about p {
  margin-top: var(--sp-4);
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(176, 154, 134, 0.85);
}
.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-earth-muted);
  font-size: 0.95rem;
  transition: all var(--dur-fast);
}
.footer-social a:hover {
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
  border-color: var(--clr-gold);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #f0e0c8;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col ul li { margin-bottom: var(--sp-3); }
.footer-col ul li a {
  color: rgba(176, 154, 134, 0.8);
  font-size: 0.88rem;
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer-col ul li a:hover { color: var(--clr-gold-light); }
.footer-col ul li a::before {
  content: '›';
  color: var(--clr-gold);
  font-size: 1.1rem;
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: rgba(176, 154, 134, 0.7);
  margin-bottom: var(--sp-4);
  line-height: 1.7;
}
.newsletter-form {
  display: flex;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid rgba(200,134,10,0.25);
}
.newsletter-form input {
  flex: 1;
  padding: 12px var(--sp-5);
  background: rgba(255,255,255,0.04);
  border: none;
  outline: none;
  color: #f0e0c8;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(176,154,134,0.5); }
.newsletter-form button {
  padding: 0 var(--sp-5);
  background: var(--clr-gold);
  border: none;
  color: var(--clr-earth-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.newsletter-form button:hover { background: var(--clr-gold-light); }

.footer-bottom {
  margin-top: var(--sp-10);
  padding: var(--sp-5) var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(176,154,134,0.5); }
.footer-bottom a { color: rgba(176,154,134,0.5); transition: color var(--dur-fast); }
.footer-bottom a:hover { color: var(--clr-gold); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.96);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.search-overlay.open { display: flex; }

.search-modal {
  width: 90%;
  max-width: 680px;
  animation: searchSlideIn 0.3s var(--ease-spring);
}
@keyframes searchSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,134,10,0.3);
  border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.search-input-wrap i { color: var(--clr-gold); font-size: 1.2rem; }
#searchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #f0e0c8;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
}
#searchInput::placeholder { color: rgba(240,224,200,0.35); }
.close-search {
  color: rgba(240,224,200,0.4);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color var(--dur-fast);
  padding: var(--sp-1);
  flex-shrink: 0;
}
.close-search:hover { color: var(--clr-gold-light); }

#searchResults {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-gold) transparent;
}
.search-result-item {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  margin-bottom: var(--sp-2);
  transition: all var(--dur-fast);
}
.search-result-item:hover {
  background: rgba(200,134,10,0.1);
  border-color: rgba(200,134,10,0.3);
}
.search-result-item strong {
  display: block;
  color: #f0e0c8;
  font-size: 0.95rem;
  margin-bottom: var(--sp-1);
}
.search-result-item span {
  font-size: 0.75rem;
  color: var(--clr-gold);
  font-weight: 600;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,17,10,0.98);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease-smooth);
  overflow-y: auto;
  padding: var(--sp-16) var(--sp-8);
}
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #f0e0c8;
  font-weight: 700;
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.mobile-nav-overlay a i {
  font-size: 1.1rem;
  color: var(--clr-gold);
  width: 28px;
  text-align: center;
}
.mobile-nav-overlay a:hover { color: var(--clr-gold-light); }
.mobile-nav-close {
  position: absolute;
  top: var(--sp-6);
  left: var(--sp-6);
  font-size: 1.8rem;
  color: var(--clr-gold);
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== ADMIN PAGE ===== */
.admin-panel {
  max-width: 1200px;
  margin: var(--sp-8) auto;
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}
.login-container {
  max-width: 460px;
  margin: 12vh auto;
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-xl);
  text-align: center;
  border: 1px solid var(--clr-border-gold);
}

/* ===== UTILITY CLASSES ===== */
.text-gold    { color: var(--clr-gold); }
.text-muted   { color: var(--clr-text-muted); }
.font-display { font-family: var(--font-display); }

/* ===== READING TIME BADGE ===== */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--clr-surface-2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 800px) {
  :root {
    --navbar-h: 60px;
    --strip-h: 44px;
  }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card-large .post-img { height: 280px; }
  .featured-card-small .post-img { width: 110px; min-height: 110px; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .container { padding: 0 var(--sp-5); }
  .strip-container { padding: 0 var(--sp-5); }
  #mainPosts { padding: var(--sp-10) 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { height: 80vh; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-btn { width: 100%; max-width: 280px; justify-content: center; }
  .article-container { padding: 0 var(--sp-4); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card-small { flex-direction: column; }
  .featured-card-small .post-img { width: 100%; height: 180px; }
}

/* ===== AOS ANIMATIONS ===== */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* ================================================================
   INDIGENA — تحسينات بصرية شاملة v3.0
   ================================================================ */

/* ===== ناف بار — أنماط الروابط المحسّنة ===== */
.nav-container {
  max-width: 100%;
  height: 100%;
  padding: 0 var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.nav-links {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
  flex-wrap: nowrap;
}

/* ===== نبضة حية في الـ hero ===== */
.hero-eyebrow i.fa-circle {
  animation: pulse-dot 1.8s ease-in-out infinite;
  color: var(--clr-gold-light);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ===== تحسين بطاقات المقالات ===== */
.post-card {
  transition: all var(--dur-slow) var(--ease-smooth);
}
.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--clr-gold-glow), transparent);
  opacity: 0;
  transition: opacity var(--dur-mid);
  pointer-events: none;
}
.post-card:hover::before { opacity: 1; }
.post-card { position: relative; }

/* ===== رقم الصفحة / شارة القسم ===== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: rgba(200,134,10,0.12);
  color: var(--clr-gold);
  border: 1px solid rgba(200,134,10,0.25);
  margin-bottom: var(--sp-3);
}

/* ===== زر "عرض الكل" ===== */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--clr-gold);
  border: 1.5px solid var(--clr-border-gold);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-spring);
  text-decoration: none;
}
.view-all-btn:hover {
  background: var(--clr-gold);
  color: var(--clr-earth-dark);
  border-color: var(--clr-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ===== شريط التقدم بقراءة المقال ===== */
#reading-progress {
  top: calc(var(--navbar-h) + var(--strip-h, 0px));
}

/* ===== صفحة المقال — تحسين ===== */
.article-page-wrap .navbar {
  background: rgba(26,17,10,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 134, 10, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.article-page-wrap .navbar .nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  justify-content: space-between;
}
.article-page-wrap .navbar .nav-links {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
}

.article-page-wrap .nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  justify-content: space-between;
}

/* ===== تحسين قسم الأقسام الخمسة ===== */
.category-card {
  min-height: 160px;
}

/* إضافة خط فاصل لوني أسفل كل بطاقة قسم */
.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--section-color, var(--clr-gold));
  border-radius: 2px;
  opacity: 0.6;
  transition: opacity var(--dur-mid), left var(--dur-mid), right var(--dur-mid);
}
.category-card:hover::after {
  opacity: 1;
  left: 10%;
  right: 10%;
}

/* ===== تحسين الـ footer ===== */
.footer-col ul li a::before {
  content: '›';
  color: var(--clr-gold);
  font-size: 1.1rem;
  margin-left: var(--sp-1);
}

/* ===== بطاقة مقال الـ hero — تمييز أول مقال ===== */
.featured-card-large .post-category {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-light));
  font-size: 0.72rem;
  padding: 5px 16px;
  box-shadow: 0 4px 12px rgba(200,134,10,0.35);
}

/* ===== نص عداد المقالات في بطاقات الأقسام ===== */
.category-card p {
  font-size: 0.75rem;
  color: rgba(200, 170, 130, 0.8);
  position: relative;
  z-index: 1;
  margin-top: var(--sp-1);
}

/* ===== تحسين شريط التصفية السريعة ===== */
.cat-chip i {
  margin-left: 4px;
  font-size: 0.75rem;
}

/* ===== قسم الـ featured في الـ index - تحسين الـ hover ===== */
.featured-card-large .post-img {
  overflow: hidden;
}
.featured-card-large .post-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(26,17,10,0.65) 100%);
  z-index: 1;
}

/* ===== تحسين مظهر صفحة التصنيف ===== */
.category-hero {
  padding: calc(var(--navbar-h) + var(--strip-h) + var(--sp-12)) var(--sp-8) var(--sp-16);
}

/* ===== خط فاصل مزخرف بين الأقسام ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border-gold), transparent);
  margin: var(--sp-4) 0;
}

/* ===== إشارة "جديد" على المقالات الحديثة ===== */
.post-card[data-new="true"] .post-category::before {
  content: '● ';
  font-size: 0.5rem;
  vertical-align: middle;
  animation: pulse-dot 1.5s infinite;
}

/* ===== Responsive — تحسينات إضافية ===== */
@media (max-width: 1200px) {
  .nav-links a {
    font-size: 0.78rem;
    padding: var(--sp-2) var(--sp-1);
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .article-page-wrap .nav-container {
    padding: 0 var(--sp-4);
  }
}

/* ===== تحسين قراءة المقالات على الموبايل ===== */
@media (max-width: 600px) {
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
  .share-buttons {
    gap: var(--sp-2);
  }
  .share-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

/* ===== تحسين الـ search overlay ===== */
.search-overlay .search-modal {
  max-height: 80vh;
  overflow-y: auto;
}

/* ===== تأثير scroll على الـ unified header ===== */
.unified-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.7);
}

/* ===== Post card — إضافة تأثير حد ذهبي متحرك ===== */
@keyframes borderGlow {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50%       { box-shadow: 0 0 0 2px rgba(200,134,10,0.15), var(--shadow-md); }
}
.post-card:hover {
  animation: none;
}

/* ===== تحسين زر "العودة للأعلى" ===== */
#back-to-top {
  border-radius: var(--radius-pill);
  width: 44px;
  height: 44px;
}

/* ===== تمييز الروابط النشطة في شريط الـ Strip ===== */
.cat-chip.active {
  position: relative;
}
.cat-chip.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--clr-earth-dark);
  border-radius: 1px;
}

/* ===== تأثير ظهور سلس لعناصر القائمة ===== */
.nav-links a {
  opacity: 0;
  animation: navLinkFade 0.4s forwards;
}
.nav-links a:nth-child(1) { animation-delay: 0.05s; }
.nav-links a:nth-child(2) { animation-delay: 0.10s; }
.nav-links a:nth-child(3) { animation-delay: 0.15s; }
.nav-links a:nth-child(4) { animation-delay: 0.20s; }
.nav-links a:nth-child(5) { animation-delay: 0.25s; }
@keyframes navLinkFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

