/*
 * ═══════════════════════════════════════════════════════
 * VLUX SOLAR — Single Post Stylesheet
 * File: /wp-content/themes/your-theme/css/single-post.css
 *
 * Enqueued via functions.php vlux_enqueue_single_styles()
 * Only loads on single post pages (is_single())
 *
 * Fonts loaded via functions.php wp_enqueue_style():
 * Cormorant Garamond + Outfit from Google Fonts
 * ═══════════════════════════════════════════════════════
 */

/* ══════════════════════════════
   DESIGN TOKENS
══════════════════════════════ */
:root {
  --blue:        #223D94;
  --blue-deep:   #141f52;
  --blue-darker: #0c1435;
  --blue-mid:    #2d4db8;
  --blue-light:  #3a5fd4;
  --gold:        #E0AC25;
  --gold-bright: #f5c842;
  --gold-dim:    #b88a18;
  --gold-pale:   rgba(224,172,37,0.08);
  --white:       #ffffff;
  --off:         #f8f7f4;
  --cream:       #fdfcf8;
  --ink:         #0f1530;
  --slate:       #3d4e7a;
  --mist:        #8591b8;
  --border:      rgba(34,61,148,0.08);
  --shadow-sm:   0 2px 16px rgba(14,22,60,0.07);
  --shadow-md:   0 8px 40px rgba(14,22,60,0.12);
  --shadow-lg:   0 24px 80px rgba(14,22,60,0.18);
}

/* ══════════════════════════════
   READING PROGRESS BAR
══════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(224,172,37,0.15);
  z-index: 9999;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transition: width 0.1s linear;
}

/* ══════════════════════════════
   ARTICLE HERO
══════════════════════════════ */
.article-hero {
  background: linear-gradient(150deg, var(--blue-darker) 0%, var(--blue-deep) 50%, #1e2d6e 100%);
  padding: 100px 80px 0;
  position: relative;
  overflow: hidden;
}
.ah-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(224,172,37,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,172,37,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.ah-glow {
  position: absolute; top: -100px; right: -60px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,172,37,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.ah-inner {
  position: relative; z-index: 2;
  max-width: 820px; margin: 0 auto;
  padding-bottom: 60px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb-sep { font-size: 10px; opacity: .4; }
.breadcrumb-cur { color: rgba(255,255,255,0.6); }

/* ── Meta row ── */
.ah-meta-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.post-cat {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(224,172,37,0.12);
  border: 1px solid rgba(224,172,37,0.28);
  padding: 6px 16px; border-radius: 40px;
}
.ah-meta-divider {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.ah-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 500;
}
.ah-meta-item svg { width: 14px; height: 14px; opacity: .7; }

/* ── Title ── */
.ah-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700; line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}

/* ── Excerpt ── */
.ah-excerpt {
  font-size: 18px; line-height: 1.8;
  color: rgba(255,255,255,0.62);
  max-width: 720px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

/* ── Author row ── */
.ah-author {
  display: flex; align-items: center; gap: 16px;
}
.ah-author-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(224,172,37,0.3);
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ah-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ah-author-avatar-initials {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; font-weight: 700; color: var(--gold-bright);
}
.ah-author-name { font-size: 14px; font-weight: 700; color: var(--white); }
.ah-author-role { font-size: 11.5px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── Share buttons (hero) ── */
.ah-share { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ah-share-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.3); margin-right: 4px;
}
.share-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { background: rgba(224,172,37,0.12); border-color: rgba(224,172,37,0.3); }
.share-btn svg { width: 15px; height: 15px; color: rgba(255,255,255,0.5); transition: color .25s; }
.share-btn:hover svg { color: var(--gold-bright); }

/* ══════════════════════════════
   FEATURED IMAGE
══════════════════════════════ */
.article-featured-img {
  width: 100%;
  max-width: 820px;
  margin: -60px auto 0;
  position: relative;
  z-index: 5;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-featured-img img {
  width: 100% !important;
  height: 460px !important;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) saturate(0.92);
}
.article-featured-img-caption {
  padding: 12px 20px;
  background: var(--white);
  font-size: 12px; color: var(--mist);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.article-featured-img-caption svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .5; }

/* ══════════════════════════════
   ARTICLE LAYOUT — 2 COLUMNS
   Content | Sidebar
══════════════════════════════ */
.article-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 80px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: flex-start;
}
.article-content { min-width: 0; }

/* ══════════════════════════════
   TABLE OF CONTENTS (inline)
══════════════════════════════ */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.toc-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.toc-title svg { width: 14px; height: 14px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  font-size: 13.5px; color: var(--slate);
  display: flex; align-items: center; gap: 8px;
  transition: color .2s, padding-left .2s;
  padding: 2px 0; text-decoration: none;
}
.toc-list a:hover { color: var(--blue); padding-left: 4px; }
.toc-list a::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; opacity: .5;
  transition: opacity .2s;
}
.toc-list a:hover::before { opacity: 1; }

/* ══════════════════════════════
   ARTICLE BODY TYPOGRAPHY
══════════════════════════════ */
.article-body {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--slate);
}
.article-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; color: var(--ink); line-height: 1.2;
  margin: 52px 0 20px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; border-top: none; }
.article-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700; color: var(--ink); line-height: 1.25;
  margin: 36px 0 14px;
}
.article-body h4 {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 28px 0 10px; letter-spacing: .2px;
}
.article-body p { margin-bottom: 22px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--blue); font-weight: 600;
  border-bottom: 1px solid rgba(34,61,148,0.2);
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.article-body a:hover { color: var(--blue-mid); border-color: var(--blue); }

/* ── Lists ── */
.article-body ul,
.article-body ol {
  padding-left: 0; margin: 24px 0;
  display: flex; flex-direction: column; gap: 10px;
  list-style: none;
}
.article-body ul li,
.article-body ol li {
  font-size: 16px; color: var(--slate); line-height: 1.75;
  padding-left: 26px; position: relative;
}
.article-body ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  color: var(--white); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Blockquote ── */
.article-body blockquote {
  margin: 36px 0; padding: 28px 32px;
  background: linear-gradient(135deg, rgba(34,61,148,0.04), rgba(34,61,148,0.02));
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  position: relative;
}
.article-body blockquote::before {
  content: '\201C';
  position: absolute; top: -10px; left: 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 80px; font-weight: 700;
  color: rgba(224,172,37,0.15);
  line-height: 1; pointer-events: none;
}
.article-body blockquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-style: italic; font-weight: 600;
  color: var(--ink); line-height: 1.5;
  margin-bottom: 0; position: relative; z-index: 1;
}
.article-body blockquote cite {
  display: block; margin-top: 12px;
  font-size: 12px; font-style: normal;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--mist); position: relative; z-index: 1;
}

/* ── Spec rows ── */
.article-body .spec-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: 8px;
  margin: 6px 0; transition: background .2s;
}
.article-body .spec-row:hover { background: var(--gold-pale); }
.article-body .spec-key {
  font-size: 13px; font-weight: 700; color: var(--ink);
  min-width: 180px; flex-shrink: 0;
}
.article-body .spec-val { font-size: 13.5px; color: var(--slate); }

/* ── Highlight / callout box ── */
.article-body .highlight-box {
  background: linear-gradient(135deg, rgba(224,172,37,0.08), rgba(224,172,37,0.03));
  border: 1px solid rgba(224,172,37,0.22);
  border-radius: 14px; padding: 28px 30px; margin: 36px 0;
}
.article-body .highlight-box-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 12px;
}
.article-body .highlight-box p {
  font-size: 15px; color: var(--slate); line-height: 1.8; margin-bottom: 0;
}

/* ── Article images ── */
.article-body figure { margin: 40px 0; }
.article-body figure img {
  width: 100%; border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.article-body figcaption {
  text-align: center; font-size: 12.5px;
  color: var(--mist); margin-top: 10px; font-style: italic;
}

/* ══════════════════════════════
   ARTICLE FOOTER
══════════════════════════════ */
.article-footer {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ── Tags ── */
.article-tags {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.article-tags-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--mist); flex-shrink: 0;
}
.article-tag {
  font-size: 12px; font-weight: 600; color: var(--slate);
  padding: 5px 14px; border-radius: 40px;
  border: 1px solid var(--border); background: var(--white);
  transition: all .2s; text-decoration: none;
}
.article-tag:hover {
  border-color: rgba(34,61,148,0.2); color: var(--blue);
  background: rgba(34,61,148,0.04);
}

/* ── Author card ── */
.author-card {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border);
  padding: 32px;
  display: flex; align-items: flex-start; gap: 24px;
  margin-bottom: 40px;
}
.author-card-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(224,172,37,0.25);
}
.author-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card-avatar-initials {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; font-weight: 700; color: var(--gold-bright);
}
.author-card-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-dim); margin-bottom: 6px;
}
.author-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px; display: block; text-decoration: none;
}
.author-card-role { font-size: 13px; color: var(--mist); margin-bottom: 12px; }
.author-card-bio { font-size: 14px; color: var(--slate); line-height: 1.75; }

/* ── Prev / Next navigation ── */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 56px;
}
.article-nav-card {
  background: var(--white); border-radius: 14px;
  border: 1px solid var(--border);
  padding: 22px 24px; text-decoration: none;
  display: block;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.article-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(224,172,37,0.2);
}
.article-nav-dir {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--mist);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.article-nav-dir svg { width: 14px; height: 14px; }
.article-nav-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.article-nav-card.next { text-align: right; }
.article-nav-card.next .article-nav-dir { justify-content: flex-end; }

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.article-sidebar {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 24px;
}

/* Sidebar widget base */
.sb-widget {
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); overflow: hidden;
}
.sb-widget-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-dim);
  display: flex; align-items: center; gap: 8px;
}
.sb-widget-head svg { width: 14px; height: 14px; color: var(--gold); }
.sb-widget-body { padding: 16px; }

/* Sidebar TOC */
.sb-toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sb-toc-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; color: var(--slate);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.sb-toc-list a:hover,
.sb-toc-list a.active { background: rgba(34,61,148,0.05); color: var(--blue); }
.sb-toc-list a.active { font-weight: 600; }
.sb-toc-num {
  font-size: 10px; font-weight: 700; color: var(--mist);
  min-width: 18px; flex-shrink: 0;
}

/* Sidebar share */
.sb-share-list { display: flex; flex-direction: column; gap: 8px; }
.sb-share-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: background .2s; cursor: pointer;
  text-decoration: none; background: transparent; border: none;
  width: 100%; text-align: left;
}
.sb-share-btn:hover { background: var(--off); }
.sb-share-btn-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-share-btn svg { width: 16px; height: 16px; }
.sb-share-wa .sb-share-btn-icon { background: rgba(37,211,102,0.1); }
.sb-share-wa .sb-share-btn-icon svg,
.sb-share-wa { color: #25d366; }
.sb-share-li .sb-share-btn-icon { background: rgba(10,102,194,0.1); }
.sb-share-li .sb-share-btn-icon svg,
.sb-share-li { color: #0a66c2; }
.sb-share-tw .sb-share-btn-icon { background: rgba(29,161,242,0.1); }
.sb-share-tw .sb-share-btn-icon svg,
.sb-share-tw { color: #1da1f2; }
.sb-share-copy .sb-share-btn-icon { background: var(--gold-pale); }
.sb-share-copy .sb-share-btn-icon svg,
.sb-share-copy { color: var(--slate); }

/* Sidebar CTA */
.sb-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border: none !important;
  padding: 28px 22px; text-align: center;
}
.sb-cta-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(224,172,37,0.15); border: 1px solid rgba(224,172,37,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.sb-cta-icon svg { width: 24px; height: 24px; color: var(--gold-bright); }
.sb-cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-weight: 700; color: var(--white);
  margin-bottom: 10px; line-height: 1.25;
}
.sb-cta-text {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.7; margin-bottom: 20px;
}
.sb-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--blue-darker);
  padding: 12px 20px; border-radius: 40px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(224,172,37,0.3);
}
.sb-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224,172,37,0.45); }
.sb-cta-btn svg { width: 14px; height: 14px; }

/* ══════════════════════════════
   RELATED POSTS SECTION
══════════════════════════════ */
.related-section { background: var(--off); padding: 80px; }
.related-inner { max-width: 1140px; margin: 0 auto; }
.related-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; flex-wrap: wrap; gap: 20px;
}
.related-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 700;
  color: var(--ink); line-height: 1.15;
}
.related-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.view-all {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--blue);
  transition: gap .25s; text-decoration: none;
}
.view-all:hover { gap: 12px; }
.view-all svg { width: 15px; height: 15px; }

/* Related grid */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: var(--white); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.8,.4,1), box-shadow .35s, border-color .35s;
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 52px rgba(34,61,148,0.1);
  border-color: rgba(224,172,37,0.2);
}
.related-img { height: 180px; overflow: hidden; }
.related-img img {
  width: 100% !important; height: 100% !important;
  object-fit: cover;
  filter: brightness(.78) saturate(.88);
  transition: transform .6s ease, filter .5s;
}
.related-card:hover .related-img img { transform: scale(1.05); filter: brightness(.65); }
.related-body { padding: 22px; flex: 1; }
.related-body .post-cat {
  color: var(--gold-dim); background: var(--gold-pale);
  border: 1px solid rgba(224,172,37,0.2);
  margin-bottom: 10px; display: inline-flex;
}
.related-body h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; line-height: 1.3;
}
.related-body h4 a { text-decoration: none; color: inherit; }
.related-body h4 a:hover { color: var(--blue); }
.related-body p { font-size: 13px; color: var(--slate); line-height: 1.65; }
.related-footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.read-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--blue);
  transition: gap .25s; text-decoration: none;
}
.read-link:hover { gap: 10px; }
.read-link svg { width: 14px; height: 14px; }
.related-date { font-size: 12px; color: var(--mist); }

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.2,.8,.4,1), transform .75s cubic-bezier(.2,.8,.4,1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .article-hero { padding: 80px 40px 0; }
  .article-layout { padding: 48px 40px 64px; grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; top: auto; }
  .related-section { padding: 64px 40px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .article-featured-img { max-width: 100%; border-radius: 0; }
  .article-featured-img img { height: 360px !important; }
}
@media (max-width: 767px) {
  .article-hero { padding: 94px 20px 0; }
  .article-layout { padding: 32px 20px 56px; }
  .ah-share { display: none; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-card.next { text-align: left; }
  .article-nav-card.next .article-nav-dir { justify-content: flex-start; }
  .related-section { padding: 56px 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 26px; }
  .article-body h3 { font-size: 22px; }
  .article-featured-img img { height: 240px !important; }
  .author-card { flex-direction: column; gap: 16px; }
  .article-nav { margin-bottom: 32px; }
  .ah-author{margin-bottom: 20px;}
}
