/* ================================================================
   BLOG-POST.CSS — Quranic Path
   New modern article template — v1.0
   Design: Clean Editorial Premium
   Colors inherit from style.css root variables:
     --primary: #18463c  |  --secondary: #d4af37
   Layout: CSS Grid (zero Bootstrap dependency for article)
================================================================ */

/* ── Reading Progress Bar ── */
#readBar {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width .08s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Article Hero ── */
.art-hero {
  background: linear-gradient(150deg, #0a1a14 0%, #0f2a20 40%, var(--primary-dark) 100%);
  min-height: var(--hero-min-h-md, 380px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.art-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpolygon points='32,3 61,18 61,46 32,61 3,46 3,18' fill='none' stroke='%23d4af37' stroke-width='.4' opacity='.15'/%3E%3C/svg%3E");
  background-size: 64px;
  pointer-events: none;
}

.art-hero-inner {
  position: relative; z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--hero-pad-y, 56px) 24px var(--hero-pad-y-sm, 48px);
  box-sizing: border-box;
}

/* Breadcrumb */
.art-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.art-crumb a {
  font-size: .78rem; color: rgba(212,175,55,.7);
  text-decoration: none; transition: color .2s;
}
.art-crumb a:hover { color: var(--secondary); }
.art-crumb .sep { color: rgba(255,255,255,.2); font-size: .65rem; }
.art-crumb .cur { font-size: .78rem; color: rgba(255,255,255,.35); }

/* Category + meta row */
.art-meta-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.art-cat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.06));
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 20px; padding: 4px 14px;
  font-size: .72rem; font-weight: 700; color: var(--secondary);
  text-transform: uppercase; letter-spacing: .07em;
}
.art-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .76rem; color: rgba(255,255,255,.4);
}
.art-meta-item i { color: var(--secondary); font-size: .65rem; }

/* Main title */
.art-title {
  font-family: var(--hero-title-font, 'Poppins', sans-serif);
  font-size: var(--hero-title-size-md, clamp(1.8rem, 4vw, 2.6rem));
  font-weight: var(--hero-title-weight, 800);
  color: #fff;
  line-height: var(--hero-title-lh, 1.2);
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.art-title mark {
  background: linear-gradient(135deg, var(--secondary), #f0c747);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* Lead paragraph */
.art-lead {
  font-size: var(--hero-lead-size, .95rem); line-height: var(--hero-lead-lh, 1.75);
  color: rgba(255,255,255,.78); max-width: 680px;
  margin-bottom: 28px;
}

/* Tags */
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.art-tag {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 4px 13px;
  font-size: .72rem; color: rgba(255,255,255,.4);
  transition: all .2s;
}
.art-tag:hover { color: var(--secondary); border-color: rgba(212,175,55,.4); }

/* Author bar */
.art-author-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.art-author { display: flex; align-items: center; gap: 12px; }
.art-avi {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; font-weight: 600;
  border: 2px solid rgba(212,175,55,.3);
}
.art-avi-name { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.art-avi-cred { font-size: .7rem; color: rgba(212,175,55,.65); margin-top: 1px; }

/* Share buttons */
.art-share { display: flex; align-items: center; gap: 8px; }
.art-share-lbl { font-size: .72rem; color: rgba(255,255,255,.3); }
.art-share-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .75rem;
  text-decoration: none; transition: all .2s;
}
.art-share-btn:hover {
  background: rgba(212,175,55,.15); color: var(--secondary);
  border-color: rgba(212,175,55,.4);
}

/* ── Hero featured image — framed photo card ──
   Previously this was a full-bleed 100vw strip with independent
   min/max-height values. On wide monitors that created a very wide,
   short box (e.g. 3:1) that didn't match any real photo's shape —
   with object-fit:contain the actual photo shrank into the middle
   with huge empty space either side (looked like content "hiding").
   Fix: constrain the wrapper to the same width as the article column,
  let the image drive its height so every source ratio remains fully
  visible on desktop and mobile. */
.art-feat-img-wrap {
  max-width: 1140px;
  width: calc(100% - 48px);
  margin: 32px auto 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg,#18463c,#0f2e26);
  box-shadow: 0 24px 60px -16px rgba(24,70,60,.35), 0 0 0 1px rgba(24,70,60,.06);
}
.art-feat-img {
  width: 100%; height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
  filter: brightness(.94) saturate(1.03);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.art-feat-img-wrap:hover .art-feat-img {
  transform: none;
  filter: brightness(1) saturate(1.08);
}
/* Soft inner frame + gentle bottom shading for a premium finish —
   replaces the old plain brightness-flip hover, which looked flat */
.art-feat-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), inset 0 -70px 90px -50px rgba(0,0,0,.30);
  pointer-events: none;
}

/* Image caption — aligned under the framed card, not full-bleed */
.art-img-caption {
  max-width: 1140px;
  width: calc(100% - 48px);
  margin: 0 auto;
  text-align: center; font-size: .78rem; color: #6b6b66;
  padding: 12px 4px 0;
  font-style: italic;
}

/* ── MAIN LAYOUT — CSS Grid ── */
.art-body {
  background: #f4f3ef;
  padding: 60px 0 80px;
}

.art-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* ── ARTICLE CONTENT CARD ── */
.art-content {
  background: #fff;
  border-radius: 18px;
  padding: 56px 60px;
  border: 1px solid #e8e5dc;
  min-width: 0;
}

/* Typography */
.art-content h2 {
  font-family:var(--font-display);
  font-size: 1.95rem; font-weight: 700;
  color: var(--primary); line-height: 1.25;
  margin: 56px 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(212,175,55,.18);
  position: relative;
}
.art-content h2::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}
.art-content h2:first-child { margin-top: 0; }

.art-content h3 {
  font-family:var(--font-display);
  font-size: 1.42rem; font-weight: 700;
  color: var(--primary-light); margin: 36px 0 14px;
}

.art-content h4 {
  font-size: .9rem; font-weight: 700;
  color: var(--primary); margin: 24px 0 10px;
  text-transform: uppercase; letter-spacing: .06em;
}

.art-content p {
  font-size: 1.03rem; line-height: 1.92;
  color: #3a3a3a; margin-bottom: 20px;
}

.art-content ul, .art-content ol {
  padding-left: 24px; margin-bottom: 20px;
}
.art-content li {
  font-size: 1rem; line-height: 1.85;
  color: #444; margin-bottom: 10px;
}
.art-content ul li::marker { color: var(--secondary); }
.art-content ol li::marker { color: var(--primary); font-weight: 700; }

.art-content strong { color: var(--primary-dark); }
.art-content a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(24,70,60,.3); }
.art-content a:hover { color: var(--secondary); text-decoration-color: var(--secondary); }

/* Horizontal rule */
.art-content hr {
  border: none;
  border-top: 1px solid rgba(212,175,55,.2);
  margin: 40px 0;
}

/* ── AEO Quick Answer Box ── */
.aeo-box {
  background: linear-gradient(135deg, #fffbee, #fff8e1);
  border: 1px solid rgba(212,175,55,.4);
  border-left: 4px solid var(--secondary);
  border-radius: 12px; padding: 24px 28px;
  margin: 32px 0;
  position: relative;
}
.aeo-box::before {
  content: 'Quick Answer';
  position: absolute; top: -11px; left: 20px;
  background: var(--secondary);
  color: #1a1a1a; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 12px; border-radius: 20px;
}
.aeo-box p {
  margin: 0; font-size: 1rem; line-height: 1.8;
  color: #2a2a2a;
}

/* ── Key Insight Box ── */
.insight-box {
  background: linear-gradient(135deg, #eef6f3, #e4f0eb);
  border: 1px solid rgba(24,70,60,.15);
  border-left: 4px solid var(--primary);
  border-radius: 12px; padding: 22px 26px;
  margin: 28px 0;
  display: flex; gap: 16px; align-items: flex-start;
}
.insight-box .insight-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary); font-size: .9rem;
}
.insight-box p { margin: 0; font-size: .97rem; line-height: 1.78; color: #2d4a3e; }
.insight-box strong { color: var(--primary); }

/* ── Warning / Note Box ── */
.note-box {
  background: #fff8f0;
  border: 1px solid rgba(212,100,40,.2);
  border-left: 4px solid #e07030;
  border-radius: 12px; padding: 20px 24px;
  margin: 28px 0;
}
.note-box .note-title {
  font-size: .8rem; font-weight: 800; color: #c05020;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.note-box p { margin: 0; font-size: .96rem; line-height: 1.75; color: #4a3020; }

/* ── Step Cards ── */
.steps-grid {
  display: flex; flex-direction: column; gap: 20px;
  margin: 32px 0;
}
.step-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff;
  border: 1px solid #e8e5dc;
  border-radius: 14px; padding: 24px 28px;
  transition: box-shadow .25s, transform .25s;
}
.step-card:hover {
  box-shadow: 0 8px 28px rgba(24,70,60,.1);
  transform: translateY(-2px);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(24,70,60,.25);
}
.step-body h4 {
  font-size: 1.05rem; font-weight: 700; color: var(--primary);
  margin: 0 0 8px; text-transform: none; letter-spacing: 0;
}
.step-body p { margin: 0; font-size: .95rem; line-height: 1.78; color: #555; }
.step-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  background: rgba(212,175,55,.12); color: #7d6300;
  border: 1px solid rgba(212,175,55,.25); border-radius: 20px;
  padding: 2px 10px; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ── Stat Highlight Strip ── */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin: 36px 0; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(212,175,55,.2);
}
.stat-item {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 28px 20px; text-align: center;
}
.stat-num {
  font-family:var(--font-display);
  font-size: 2.2rem; font-weight: 700; color: var(--secondary);
  line-height: 1; display: block; margin-bottom: 6px;
}
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.4; }

/* ── Pull Quote ── */
.pull-quote {
  border-left: 4px solid var(--secondary);
  margin: 36px 0; padding: 20px 28px;
  background: linear-gradient(135deg, #fafaf7, #f5f4f0);
  border-radius: 0 12px 12px 0;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  font-family:var(--font-display);
  font-size: 5rem; color: rgba(212,175,55,.2);
  position: absolute; top: -10px; left: 16px;
  line-height: 1;
}
.pull-quote p {
  font-family:var(--font-display);
  font-size: 1.25rem; color: var(--primary);
  font-style: italic; line-height: 1.7;
  margin: 0 0 10px; position: relative; z-index: 1;
}
.pull-quote cite {
  font-size: .8rem; color: #888; font-style: normal;
}

/* ── Comparison Table ── */
.art-table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: .92rem;
  border-radius: 12px; overflow: hidden;
  border: 1px solid #e0ddd4;
}
.art-table thead tr {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.art-table thead th {
  padding: 14px 18px; text-align: left;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.art-table tbody tr:nth-child(odd) { background: #fafaf7; }
.art-table tbody tr:nth-child(even) { background: #fff; }
.art-table tbody tr:hover { background: #f0ede4; }
.art-table td { padding: 13px 18px; color: #3a3a3a; border-bottom: 1px solid #eee; vertical-align: top; }
.art-table td:first-child { font-weight: 600; color: var(--primary); }
.art-table .check { color: #157a37; font-weight: 700; }
.art-table .cross { color: #c0392b; }

/* ── Inline CTA Block ── */
.art-cta-inline {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1f6b5a 100%);
  border-radius: 16px; padding: 36px 40px;
  margin: 48px 0; text-align: center;
  position: relative; overflow: hidden;
}
.art-cta-inline::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpolygon points='32,3 61,18 61,46 32,61 3,46 3,18' fill='none' stroke='%23d4af37' stroke-width='.4' opacity='.1'/%3E%3C/svg%3E");
  background-size: 64px;
}
.art-cta-inline .cta-arabic {
  font-family:var(--font-display); font-size: 1.6rem;
  color: rgba(212,175,55,.5); margin-bottom: 8px; display: block;
}
.art-cta-inline h3 {
  font-family:var(--font-display);
  font-size: 1.55rem; color: #fff; font-weight: 700;
  margin: 0 0 10px;
}
.art-cta-inline p {
  font-size: .95rem; color: rgba(255,255,255,.72);
  margin: 0 0 22px; line-height: 1.7;
}
.art-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #1a1a1a; padding: 14px 34px; border-radius: 30px;
  font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: all .3s;
  box-shadow: 0 8px 24px rgba(212,175,55,.35);
  position: relative; z-index: 1;
}
.art-cta-btn:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 14px 36px rgba(212,175,55,.5);
  color: var(--primary);
}
.art-cta-btn:focus-visible,
.sc-btn:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}
.art-cta-note {
  font-size: .75rem; color: rgba(255,255,255,.45);
  margin-top: 14px; display: block;
}

/* ── Checklist ──
   Defined once, later in this file (search "Checklist" again) as a plain
   block li with an absolutely-positioned checkmark. A duplicate flex-based
   version used to live here too; CSS was merging the two per-property
   (display:flex from this block survived even though padding/position were
   overridden below), and flexbox splits mixed inline content — a <strong>
   label, running text, a link, and trailing punctuation — into separate
   flex items with no wrap. That's what caused labels and links to garble
   into broken fake columns with orphaned punctuation on their own line. */

/* ── Mistake Cards ── */
.mistake-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.mistake-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: 12px;
  background: #fff9f9; border: 1px solid rgba(192,57,43,.15);
  border-left: 4px solid #c0392b;
}
.mistake-x {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(192,57,43,.1);
  display: flex; align-items: center; justify-content: center;
  color: #c0392b; font-size: .85rem;
}
.mistake-card h5 {
  margin: 0 0 5px; font-size: .95rem; font-weight: 700; color: #8b2020;
}
.mistake-card p { margin: 0; font-size: .9rem; color: #555; line-height: 1.65; }

/* ── FAQ Section ── */
.art-faq { margin: 40px 0; }
.faq-item {
  border: 1px solid #e8e5dc;
  border-radius: 12px; margin-bottom: 12px;
  overflow: hidden; transition: box-shadow .2s;
}
.faq-item.open { box-shadow: 0 4px 20px rgba(24,70,60,.08); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer;
  background: #fff; user-select: none;
  transition: background .2s;
}
.faq-q:hover { background: #fafaf7; }
.faq-q span {
  font-size: 1rem; font-weight: 600; color: var(--primary); line-height: 1.5;
}
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(24,70,60,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .8rem;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); color: var(--secondary); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  background: #fafaf7;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: .97rem; color: #444; line-height: 1.82;
}
.faq-a-inner p { margin: 0 0 12px; }
.faq-a-inner p:last-child { margin: 0; }
.faq-a-inner strong { color: var(--primary); }

/* ── Author Bio Card ── */
.art-author-bio {
  margin: 56px 0 0;
  background: linear-gradient(135deg, #f5f4f0, #edeae0);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 16px; padding: 32px 36px;
  display: flex; gap: 24px; align-items: flex-start;
}
.bio-avi {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-family:var(--font-display); font-size: 1.6rem; color: #fff;
  border: 3px solid rgba(212,175,55,.3);
}
.bio-name {
  font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 2px;
}
.bio-title {
  font-size: .78rem; color: var(--secondary); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.bio-text {
  font-size: .92rem; color: #555; line-height: 1.75; margin: 0;
}

/* ── Related Articles ── */
.art-related { margin-top: 56px; }
.art-related h3 {
  font-family:var(--font-display); font-size: 1.5rem;
  color: var(--primary); margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(212,175,55,.2);
}
.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.related-card {
  background: #fff; border: 1px solid #e8e5dc;
  border-radius: 12px; padding: 20px 22px;
  text-decoration: none; display: block;
  transition: all .25s;
}
.related-card:hover {
  border-color: rgba(212,175,55,.4);
  box-shadow: 0 6px 20px rgba(24,70,60,.1);
  transform: translateY(-2px);
}
.related-cat {
  font-size: .68rem; font-weight: 700; color: #7d6300;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px;
}
.related-title {
  font-size: .97rem; font-weight: 600; color: var(--primary);
  line-height: 1.45; margin-bottom: 8px;
}
.related-card:hover .related-title { color: var(--secondary); }
.related-meta { font-size: .75rem; color: #6f6f6f; }

/* ── SIDEBAR ── */
.art-sidebar { position: sticky; top: 150px; }

/* TOC Card */
.toc-card {
  background: #fff; border: 1px solid #e8e5dc;
  border-radius: 14px; padding: 24px;
  margin-bottom: 24px;
}
.toc-title {
  font-size: .75rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.toc-title::before {
  content: ''; width: 18px; height: 2px;
  background: var(--secondary); flex-shrink: 0;
}
/* ── Visual scroll timeline ──
   .toc-list becomes a vertical rail: a static gray track (::before) plus
   a colored fill (::after) whose height is driven by the CSS variable
   --toc-progress, which js/blog-timeline.js updates on scroll to reflect
   how far the reader has moved through the article. Each entry gets a
   dot marker on the rail that lights up via the existing .active class
   (already applied by the IntersectionObserver scrollspy). */
.toc-list {
  list-style: none; padding: 0 0 0 22px; margin: 0;
  position: relative;
}
.toc-list::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: #e7e3d8; border-radius: 2px;
}
.toc-list::after {
  content: ''; position: absolute; left: 5px; top: 6px;
  width: 2px; height: var(--toc-progress, 0%);
  max-height: calc(100% - 12px);
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  border-radius: 2px;
  transition: height .2s ease-out;
}
.toc-list li { margin-bottom: 2px; position: relative; }
.toc-list li::before {
  content: ''; position: absolute; left: -17px; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid #d8d3c4;
  transform: translateY(-50%);
  transition: all .25s ease; z-index: 2;
}
.toc-list li:has(a.active)::before {
  background: var(--secondary); border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(212,175,55,.22);
  transform: translateY(-50%) scale(1.2);
}
.toc-list li.toc-sub::before { width: 6px; height: 6px; left: -16px; opacity: .85; }
.toc-list a {
  display: block; padding: 7px 10px;
  font-size: .82rem; color: #666; text-decoration: none;
  border-radius: 7px;
  transition: all .2s; line-height: 1.45;
}
.toc-list a:hover {
  background: #f5f4f0; color: var(--primary);
}
.toc-list a.active {
  background: linear-gradient(135deg, rgba(24,70,60,.07), rgba(24,70,60,.03));
  color: var(--primary); font-weight: 600;
}
.toc-list .toc-sub a {
  padding-left: 12px; font-size: .78rem; color: #6b6b6b;
}
/* Browsers without :has() support (very old) still get a fully functional
   TOC — they just miss the dot-lighting flourish, degrading gracefully. */

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 14px; padding: 28px 24px;
  text-align: center; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpolygon points='32,3 61,18 61,46 32,61 3,46 3,18' fill='none' stroke='%23d4af37' stroke-width='.4' opacity='.12'/%3E%3C/svg%3E");
  background-size: 64px;
}
.sidebar-cta .sc-arabic {
  font-family:var(--font-display); font-size: 1.4rem;
  color: rgba(212,175,55,.4); display: block; margin-bottom: 6px;
}
.sidebar-cta h4 {
  font-family:var(--font-display); font-size: 1.2rem; color: #fff;
  font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1;
}
.sidebar-cta p {
  font-size: .82rem; color: rgba(255,255,255,.65);
  line-height: 1.65; margin-bottom: 18px; position: relative; z-index: 1;
}
.sc-btn {
  display: block; width: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #1a1a1a; padding: 12px 20px; border-radius: 25px;
  font-weight: 700; font-size: .88rem;
  text-decoration: none; transition: all .3s;
  box-shadow: 0 6px 18px rgba(212,175,55,.3);
  position: relative; z-index: 1;
}
.sc-btn:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--secondary-light), #ffe38a); box-shadow: 0 10px 28px rgba(212,175,55,.5); color: #1a1a1a; }
.sc-note { font-size: .7rem; color: rgba(255,255,255,.35); margin-top: 10px; display: block; position: relative; z-index: 1; }

/* Sidebar quick links */
.sidebar-links {
  background: #fff; border: 1px solid #e8e5dc;
  border-radius: 14px; padding: 20px 22px;
}
.sidebar-links h5 {
  font-size: .72rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px;
}
.sidebar-links ul { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 4px; }
.sidebar-links a {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; color: #555; text-decoration: none;
  padding: 7px 8px; border-radius: 7px; transition: all .2s;
}
.sidebar-links a i { color: var(--secondary); font-size: .75rem; flex-shrink: 0; }
.sidebar-links a:hover { background: #f5f4f0; color: var(--primary); }

/* ── Bottom CTA Banner ── */
.art-bottom-cta {
  background: linear-gradient(135deg, #0a1a14 0%, var(--primary) 50%, #1a5a48 100%);
  padding: 80px 24px;
  text-align: center; position: relative; overflow: hidden;
}
.art-bottom-cta::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpolygon points='40,4 76,22 76,58 40,76 4,58 4,22' fill='none' stroke='%23d4af37' stroke-width='.5' opacity='.1'/%3E%3C/svg%3E");
  background-size: 80px;
}
.art-bottom-cta .arabic-deco {
  font-family:var(--font-display); font-size: 2rem;
  color: rgba(212,175,55,.3); display: block; margin-bottom: 10px;
}
.art-bottom-cta h2 {
  font-family:var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; font-weight: 700; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.art-bottom-cta h2 span {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.art-bottom-cta p {
  font-size: 1.05rem; color: rgba(255,255,255,.65);
  max-width: 580px; margin: 0 auto 32px; line-height: 1.75;
  position: relative; z-index: 1;
}
.cta-btn-pair {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: #1a1a1a; padding: 15px 36px; border-radius: 30px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: all .3s; box-shadow: 0 8px 28px rgba(212,175,55,.4);
}
.cta-primary:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--secondary-light), #ffe38a); box-shadow: 0 16px 40px rgba(212,175,55,.55); color: #1a1a1a; }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.16);
  border: 2px solid rgba(255,255,255,.6);
  color: #fff; padding: 15px 36px; border-radius: 30px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: all .3s; letter-spacing: .02em;
}
.cta-secondary:hover { background: var(--secondary); border-color: var(--secondary); color: #1a1a1a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212,175,55,.3); }
.cta-trust {
  margin: 20px auto 0 !important; padding: 0 12px;
  max-width: 760px; font-size: .78rem; line-height: 2.2;
  color: rgba(255,255,255,.72); position: relative; z-index: 1;
  text-wrap: balance;
}
.cta-trust i { color: var(--secondary); margin: 0 7px 0 10px; }

/* ── Responsive ── */

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Full coverage: 1280px → 320px
   Hero banner uses min-height so it never collapses;
   no text is ever hidden or overflowed at any viewport.
═══════════════════════════════════════════════════════════ */

/* ── Hero image: framed card, consistent at all sizes ──
  This is the authoritative block (loaded after the base rule above,
  so it wins). The image controls the wrapper height, preventing
  responsive crops for portrait and landscape source images. */
.art-feat-img-wrap {
  max-width: 1140px;
  width: calc(100% - 48px);
  margin: 32px auto 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg,#18463c,#0f2e26);
  border-radius: 22px;
  box-shadow: 0 24px 60px -16px rgba(24,70,60,.35), 0 0 0 1px rgba(24,70,60,.06);
}
.art-feat-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
  filter: brightness(.94) saturate(1.03);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.art-feat-img-wrap:hover .art-feat-img {
  transform: none;
  filter: brightness(1) saturate(1.08);
}

/* ── Hero min-height: proper presence per hero design system ── */
.art-hero {
  min-height: var(--hero-min-h-md, 380px);
  display: flex;
  align-items: center;
}
.art-hero-inner {
  min-height: unset; /* let content drive height within the flex parent */
  width: 100%;
}

/* ── Art-title: prevent overflow at all sizes ── */
.art-title {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ── Art-tags: wrap cleanly, never overflow ── */
.art-tags {
  flex-wrap: wrap;
  row-gap: 6px;
}

/* ── Author bar: wrap on small screens ── */
.art-author-bar {
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Tables: scroll on small screens ──
   .art-table-wrap is the scroll container; the fade + hint below only
   render below 992px, where .art-table's min-width (next rule) actually
   exceeds the viewport and scrolling is needed — on desktop the table
   already fits, so no fade/hint appears. */
.art-table-wrap, .comparison-table, .letter-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  width: 100%;
  max-width: 100%;
  position: relative;
}
.art-table {
  min-width: 480px; /* forces scroll rather than squash */
}
/* Below ~992px the 480px min-width above means the table virtually always
   needs horizontal scrolling, so the hint is unconditional here rather
   than JS-gated — simpler and more reliable than detecting overflow at
   exactly the moment fonts/layout settle. */
@media (max-width: 992px) {
  .art-table-wrap, .comparison-table, .letter-table {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent 100%);
  }
  .art-table-wrap::after, .comparison-table::after, .letter-table::after {
    content: '\2194 swipe to see more';
    display: block;
    text-align: right;
    font-size: .68rem;
    color: #999;
    padding: 6px 4px 0;
    font-style: italic;
  }
}

/* ═══ 1200px — large laptops ═══ */
@media (max-width: 1200px) {
  .art-grid {
    max-width: 96vw;
    gap: 32px;
  }
}

/* ═══ 960px — tablets landscape / small laptops ═══ */
@media (max-width: 960px) {
  .art-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .art-sidebar { position: static; width: 100%; }
  .toc-card { display: none; } /* TOC hidden on tablet — it follows inline reading */
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .art-feat-img-wrap { width: calc(100% - 32px); margin: 24px auto 0; border-radius: 18px; }
  .art-hero-inner { padding: 52px 24px 44px; }
}

/* ═══ 768px — tablets portrait ═══ */
@media (max-width: 768px) {
  .art-hero-inner { padding: 44px 20px 36px; }
  .art-title { font-size: 2rem; line-height: 1.25; }
  .art-lead { font-size: .94rem; }
  .art-feat-img-wrap { width: calc(100% - 24px); margin: 20px auto 0; border-radius: 16px; }
  .art-grid { padding: 0 20px; }
  .art-body { padding: 32px 0 60px; }
  .stat-strip { grid-template-columns: 1fr; gap: 1px; }
  .related-grid { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr !important; }
  .art-author-bio { flex-direction: column; }
  .art-cta-inline { padding: 28px 20px; }
  .art-bottom-cta { padding: 52px 20px; }
  .step-card { flex-direction: column; gap: 14px; }
  .steps-grid { grid-template-columns: 1fr !important; }
  .benefits-grid { grid-template-columns: 1fr !important; }
  .day-plan-grid { grid-template-columns: 1fr !important; }
  /* Tables scroll instead of squash */
  .art-table { min-width: 440px; font-size: .78rem; }
  .letter-table { min-width: 520px; font-size: .75rem; }
  .comparison-table { min-width: 500px; font-size: .76rem; }
  /* Wrap art-tags */
  .art-tags { gap: 6px; }
  .art-tag { font-size: .68rem; padding: 3px 10px; }
  /* Author bar stacks */
  .art-author-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .art-share { align-self: flex-start; }
  /* Image caption */
  .art-img-caption { font-size: .7rem; }
  /* Sidebar CTA full width */
  .sidebar-cta, .sidebar-links { width: 100%; }
  /* Bottom CTA buttons stack */
  .cta-btn-pair { flex-direction: column; align-items: center; gap: 12px; }
  .cta-secondary { width: 100%; text-align: center; justify-content: center; }
}

/* ═══ 576px — large phones ═══ */
@media (max-width: 576px) {
  .art-hero-inner { padding: 36px 16px 28px; }
  .art-title { font-size: 1.75rem; line-height: 1.28; }
  .art-content h2 { font-size: 1.45rem; }
  .art-content h3 { font-size: 1.15rem; }
  .art-lead { font-size: .88rem; line-height: 1.7; }
  .art-feat-img-wrap { width: calc(100% - 16px); margin: 16px auto 0; border-radius: 14px; }
  .art-grid { padding: 0 16px; }
  .art-content { padding: 28px 20px; }
  .art-bottom-cta { padding: 40px 16px; }
  .art-bottom-cta h2 { font-size: 1.6rem; }
  .art-cta-inline h3 { font-size: 1.05rem; }
  .art-cta-inline { padding: 24px 16px; }
  .stat-strip .stat-num { font-size: 2rem; }
  /* Hide mark highlight overflow on smallest hero */
  .art-title mark { white-space: normal; }
  /* Prevent meta row from overflowing */
  .art-meta-row { flex-wrap: wrap; gap: 6px; }
  .art-meta-item { font-size: .7rem; }
  .art-cat-tag { font-size: .68rem; }
  /* Tables */
  .art-table { min-width: 400px; font-size: .75rem; }
  table th, table td { padding: 8px 10px; }
  /* FAQ */
  .faq-q { font-size: .88rem; }
  /* Breadcrumb wrap */
  .art-crumb { flex-wrap: wrap; row-gap: 4px; }
}

/* ═══ 400px — small phones ═══ */
@media (max-width: 400px) {
  .art-hero-inner { padding: 28px 14px 24px; }
  .art-title { font-size: 1.5rem; line-height: 1.3; }
  .art-content h2 { font-size: 1.3rem; }
  .art-lead { font-size: .85rem; }
  .art-feat-img-wrap { width: calc(100% - 12px); margin: 14px auto 0; border-radius: 12px; }
  .art-grid { padding: 0 12px; }
  .art-content { padding: 24px 16px; }
  .art-bottom-cta h2 { font-size: 1.4rem; }
  /* Bottom CTA primary button full width */
  .cta-primary { width: 100%; text-align: center; justify-content: center; padding: 14px 20px; }
  /* Inline CTA arabic text smaller */
  .cta-arabic { font-size: 1.1rem; }
  /* Stats strip on tiny screens */
  .stat-num { font-size: 1.75rem; }
  .stat-lbl { font-size: .72rem; }
  /* Share buttons */
  .art-share-btn { width: 32px; height: 32px; font-size: .75rem; }
  /* No horizontal overflow ever */
  body { overflow-x: hidden; }
  * { max-width: 100%; }
  img { max-width: 100%; height: auto; }
}

/* ── Ensure no element ever causes horizontal scroll ── */
@media (max-width: 768px) {
  body { overflow-x: clip; }
  .art-hero { overflow: hidden; }
}

/* ══ Existing topic-specific overrides (preserved) ══ */
.art-cat-tag.worship-tag  { background: linear-gradient(135deg,#6b3a00,#a05a00); }
.art-cat-tag.memory-tag   { background: linear-gradient(135deg,#1a2c5e,#274080); }

/* ══ Anti-aliasing for CTA buttons ══ */
.art-cta-btn, .sc-btn, .cta-primary {
  -webkit-font-smoothing: antialiased;
}

/* ══ Note box ══ */
.note-box {
  background: linear-gradient(135deg,#fff8e1,#fffbee);
  border: 1px solid rgba(212,175,55,.35);
  border-left: 4px solid var(--secondary);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  overflow-x: auto;
}
.note-title {
  font-size: .82rem; font-weight: 800; color: #8a6a00;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em;
}
.note-title i { margin-right: 6px; }
.note-box p { margin: 0; font-size: .88rem; color: #555; line-height: 1.7; }

/* ══ Checklist ══ */
.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: .94rem; color: #333; line-height: 1.65;
  border-bottom: 1px solid rgba(24,70,60,.06);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--primary); font-weight: 900; font-size: .9rem;
}

/* ═══════════════════════════════════════════════════════════
   REUSABLE IN-ARTICLE IMAGE PLACEHOLDER COMPONENT
   Added for step-by-step guides (e.g. the Salah blog) so authors
   can drop a photo in later just by changing the <img src="">.
   Follows the same card language as .salah-pos-card (rounded
   corners, soft shadow, brand-green fallback state) so it looks
   native to the site rather than a bolted-on block.
   Does NOT touch any existing rule — additive only.
═══════════════════════════════════════════════════════════ */
.step-img-block { margin: 18px 0 30px; }
.step-img-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 800; color: #18463c;
  margin: 0 0 10px; letter-spacing: .01em;
}
.step-img-heading i { color: #d4af37; font-size: .85rem; }
.step-img-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg,#f0f8f5,#dceee9);
  border: 1px solid rgba(24,70,60,.12);
  box-shadow: 0 2px 14px rgba(24,70,60,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.step-img-frame img {
  width: 100%; height: 100%;
  /* contain — always shows the full image (Arabic text / full figure),
     never crops it, regardless of the photo's native aspect ratio */
  object-fit: contain;
  object-position: center;
  display: block;
}
.step-img-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; height: 100%; padding: 16px; text-align: center;
  color: #18463c; opacity: .42;
}
.step-img-fallback i { font-size: 2.5rem; }
.step-img-fallback span { font-size: .74rem; font-weight: 600; line-height: 1.55; }
.step-img-caption {
  text-align: center; font-size: .72rem; color: #999; font-style: italic;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .step-img-frame { aspect-ratio: 1 / 1; }
}
