/* ══════════════════════════════════════════════
   CSS VARIABLES — Site Identity
══════════════════════════════════════════════ */
:root {
  --bg:          #faf8f5;
  --bg-white:    #ffffff;
  --gold:        #C8A45D;
  --gold-light:  #DFC07A;
  --gold-dark:   #A8863D;
  --gold-muted:  rgba(200,164,93,0.12);
  --ink:         #112233;
  --ink-soft:    #2A3444;
  --muted:       #6B7385;
  --muted-light: #9AA0AE;
  --border:      rgba(200,164,93,0.18);
  --shadow-sm:   0 2px 16px rgba(17,34,51,0.06);
  --shadow-md:   0 8px 40px rgba(17,34,51,0.10);
  --shadow-gold: 0 8px 32px rgba(200,164,93,0.18);
  --radius:      12px;
  --radius-lg:   20px;
  --ease:        cubic-bezier(.16,1,.3,1);
  --font-ar:     'Tajawal', 'Segoe UI', sans-serif;
  --font-display:'Playfair Display', Georgia, serif;
}

/* ══════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ══════════════════════════════════════════════
   READING PROGRESS BAR
══════════════════════════════════════════════ */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(46, 33, 6, 0.55);
}

/* ══════════════════════════════════════════════
   BREADCRUMB BAR
══════════════════════════════════════════════ */


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */



/* Breadcrumb */
.breadcrumb{
  display:flex;align-items:center;gap:10px;
  font-size:.75rem;font-weight:500;
  letter-spacing:.06em;
  color:rgba(255,255,255,.6);
  margin-bottom:20px;
  text-transform:uppercase;
}
.breadcrumb a{color:rgba(255,255,255,.6);transition:color .3s;}
.breadcrumb a:hover{color:var(--gold-light);}
.breadcrumb .sep{color:var(--gold);font-size:.6rem;}
.breadcrumb .current{color:rgba(255,255,255,.9);}

/* Hero Title */
.hero-title{
  font-family:var(--font-display);
  font-size:clamp(2rem,4.5vw,3.2rem);
  font-weight:900;
  color:var(--white);
  line-height:1.25;
  max-width:820px;
  margin-bottom:18px;
  text-shadow:0 2px 20px rgba(0,0,0,.3);
}
.hero-gold-line{
  width:80px;height:3px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
  margin-bottom:28px;
  border-radius:2px;
}

/* Meta Glass Card */

.meta-item{
  display:flex;align-items:center;gap:8px;
  font-size:.78rem;font-weight:500;
  color:rgba(255,255,255,.85);
}
.meta-item .icon{
  width:28px;height:28px;
  background:rgba(200,164,93,.2);
  border:1px solid rgba(200,164,93,.35);
  border-radius:50%;
  display:grid;place-items:center;
  font-size:.7rem;color:var(--gold-light);
  flex-shrink:0;
}
.meta-divider{width:1px;height:28px;background:rgba(255,255,255,.15);}

/* bottom wave */
.hero-wave{
  position:absolute;bottom:-1px;left:0;right:0;
  height:60px;
  background:var(--bg);
  clip-path:ellipse(60% 100% at 50% 100%);
  z-index:3;
}


.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 2px clamp(5px, 3vw, 20px);
}


/* ══════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════ */
.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 60px) 80px;
}

/* ══════════════════════════════════════════════
   TOP TWO-COLUMN SECTION
   Right: Main Image  |  Left: Related Articles
══════════════════════════════════════════════ */
.top-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  margin-bottom: 48px;
  align-items: start;
}

/* ── Main Image Block (Right) ─────────────── */
.main-image-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  background: #0d0d0d;
  aspect-ratio: 16/10;
}
.main-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
  object-position: 60% center;
}
.main-image-block:hover img { transform: scale(1.03); }
.main-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17,34,51,.70) 0%,
    rgba(17,34,51,.22) 55%,
    transparent 100%
  );
  z-index: 1;
}
.main-image-caption {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  z-index: 2;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.main-img-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dark);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
}
.main-img-date {
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ── Related Articles Block (Left) ─────────── */
.related-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.related-aside-title {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-aside-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(200,164,93,0.10);
  cursor: pointer;
  transition: background .25s;
  border-radius: 8px;
}
.rel-card:last-child { border-bottom: none; }
.rel-card:hover .rel-card-thumb img { transform: scale(1.07); }
.rel-card:hover .rel-card-title { color: var(--gold-dark); }

.rel-card-thumb {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1206, #2d2010);
  box-shadow: var(--shadow-sm);
}
.rel-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

/* Placeholder thumb when no image */
.rel-card-thumb-placeholder {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-muted) 0%, rgba(200,164,93,0.06) 100%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.rel-card-content { flex: 1; min-width: 0; }
.rel-card-tag {
  font-size: .60rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: .85;
}
.rel-card-title {
  font-size: .60rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 5px;
  transition: color .25s;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-card-date {
  font-size: .7rem;
  color: var(--muted-light);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   ARTICLE HEADER (below the top-grid)
══════════════════════════════════════════════ */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-muted);
  border: 1px solid var(--border);
  color: var(--gold-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
}
.article-meta-date,
.article-meta-read {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.article-meta-icon { color: var(--gold); font-size: .8rem; }

.article-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-gold-rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  margin-bottom: 20px;
}
.article-subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 780px;
  font-weight: 400;
}
.article-subtitle p::first-letter {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--gold-dark);
  float: right;
  line-height: .82;
  margin-left: 12px;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════
   ARTICLE BODY
══════════════════════════════════════════════ */
.article-body {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 860px;
}
.article-body p { margin-bottom: 22px; }

/* Section headings */
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  margin: 52px 0 18px;
  line-height: 1.3;
}
.article-body h2::before {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: 12px;
  border-radius: 2px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
}

/* ══════════════════════════════════════════════
   STATS ROW
══════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0;
}
.stat-card {
  text-align: center;
  padding: 26px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-dark);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ══════════════════════════════════════════════
   QUOTE BOX
══════════════════════════════════════════════ */
.quote-box {
  position: relative;
  padding: 34px 34px 34px 44px;
  margin: 44px 0;
  background: rgba(200,164,93,.04);
  border: 1px solid rgba(200,164,93,.2);
  border-right: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}
.quote-icon {
  position: absolute;
  top: 12px; left: 18px;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(200,164,93,.08);
  font-family: var(--font-display);
  pointer-events: none;
  user-select: none;
}
.quote-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.75;
  position: relative; z-index: 1;
  margin-bottom: 14px;
}
.quote-attr {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
}
.quote-attr::before { content: ''; width: 24px; height: 2px; background: var(--gold); }

/* ══════════════════════════════════════════════
   HIGHLIGHT BOX
══════════════════════════════════════════════ */
.highlight-section {
  padding: 30px;
  background: var(--ink);
  border-radius: var(--radius);
  margin: 44px 0;
  position: relative;
  overflow: hidden;
}
.highlight-section::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(200,164,93,.18) 0%, transparent 70%);
  pointer-events: none;
}
.highlight-section h3 {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.highlight-section p { color: rgba(255,255,255,.8); font-size: .93rem; line-height: 1.85; }

/* ══════════════════════════════════════════════
   INLINE IMAGE / GALLERY
══════════════════════════════════════════════ */
.gallery-block { margin: 44px 0; }
.gallery-main-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}
.gallery-main-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.gallery-main-wrap:hover img { transform: scale(1.02); }
.gallery-caption {
  font-size: .73rem;
  color: var(--muted-light);
  text-align: center;
  margin-top: 8px;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════
   FLOATING SHARE BUTTONS
══════════════════════════════════════════════ */
.share-float {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  animation: fadeInLeft .8s var(--ease) 1.2s forwards;
}
.share-label {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
  color: var(--muted-light);
  text-align: center;
  text-transform: uppercase;
}
.share-divider { width: 1px; height: 18px; background: var(--border); margin: 0 auto; }
.share-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(250,248,245,.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .3s var(--ease);
  font-size: .88rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.share-btn:hover {
  background: var(--gold-dark);
  color: #fff;
  border-color: var(--gold-dark);
  transform: scale(1.12);
  box-shadow: var(--shadow-gold);
}
.copy-toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  padding: 10px 22px;
  border-radius: 50px;
  opacity: 0;
  transition: all .4s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateY(-50%) translateX(-18px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: .1s; }
.fade-up-d2 { transition-delay: .2s; }
.fade-up-d3 { transition-delay: .3s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .top-grid { grid-template-columns: 1fr 300px; gap: 20px; }
}
@media (max-width: 768px) {
  .top-grid {
    grid-template-columns: 1fr;
  }
  /* On mobile: image on top, related below */
  .main-image-block { aspect-ratio: 16/9; }
  .related-aside { order: 2; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .share-float { display: none; }
  .gallery-main-wrap img { height: 240px; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .article-main-title { font-size: 1.6rem; }
}