/* =====================================================================
   AEGON TOOLS - ULTRA PREMIUM BLOG STYLES (blog.php & blog-post.php)
   ===================================================================== */

/* ---- GLOBALS ---- */
.bp-grad {
  color: var(--violet);
}


/* ---- 1. BLOG LISTING HERO ---- */
.bp-hero { position: relative; padding: clamp(140px, 14vw, 180px) 0 clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.bp-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(124, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  z-index: 0;
}
.bp-hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.15), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.bp-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.bp-masthead-left {
  flex: 1;
  max-width: 600px;
}
.bp-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  margin-bottom: 24px;
}
.bp-title {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink-strong);
}
.bp-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.bp-masthead-right {
  display: flex;
  gap: 30px;
  background: var(--surface);
  padding: 30px 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}
[data-theme="dark"] .bp-masthead-right {
  background: rgba(25, 23, 40, 0.6);
  backdrop-filter: blur(20px);
}
.bp-stat {
  display: flex;
  flex-direction: column;
}
.bp-stat strong {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-strong);
}
.bp-stat span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 5px;
}

@media (max-width: 900px) {
  .bp-masthead { flex-direction: column; align-items: flex-start; }
  .bp-masthead-right { width: 100%; justify-content: space-between; padding: 25px; }
}

/* ---- 2. TOOLBAR ---- */
.bp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.bp-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bp-cat-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.3s;
  text-decoration: none;
}
.bp-cat-btn:hover {
  background: var(--line);
  color: var(--ink-strong);
}
.bp-cat-btn.on {
  background: var(--ink-strong);
  color: var(--bg);
  border-color: var(--ink-strong);
}

.bp-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  height: 44px;
  width: 300px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.bp-search:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}
.bp-search svg {
  color: var(--muted);
}
.bp-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0 10px;
  color: var(--ink-strong);
  font-size: 14px;
}

/* ---- 3. LEAD STORY ---- */
.bp-lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--surface);
  border-radius: 32px;
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 60px;
  transition: transform 0.4s, box-shadow 0.4s;
}
.bp-lead:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
}
[data-theme="dark"] .bp-lead:hover {
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
}
.bp-lead-img {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.bp-lead-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0) 50%, var(--surface) 100%);
}
.bp-lead-img:hover {
  transform: scale(1.02);
  transition: transform 10s ease;
}
.bp-lead-body {
  padding: 50px 50px 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bp-lead-kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-lead-title {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-strong);
  margin-bottom: 16px;
}
.bp-lead-exc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.bp-lead-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.bp-lead-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), #38bdf8);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.bp-lead-auth strong {
  display: block;
  font-size: 14px;
  color: var(--ink-strong);
}
.bp-lead-auth span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .bp-lead { grid-template-columns: 1fr; }
  .bp-lead-img { min-height: 250px; }
  .bp-lead-img::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, var(--surface) 100%); }
  .bp-lead-body { padding: 30px; }
  .bp-lead-title { font-size: 28px; }
}

/* ---- 4. POST GRID ---- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.bp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s, box-shadow 0.4s;
}
.bp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
}
[data-theme="dark"] .bp-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.bpc-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.bpc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.bp-card:hover .bpc-img::after { opacity: 1; }
.bpc-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.bpc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bpc-title {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.3;
  margin-bottom: 12px;
}
.bpc-exc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.bpc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.bpc-auth-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bpc-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.bpc-auth-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
}
.bpc-date {
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================================
   5. ULTRA LUXURY BLOG POST EDITORIAL READING EXPERIENCE
   ===================================================================== */

/* Fixed Reading Progress Bar */
.ar-reading-bar {
  position: fixed;
  top: 54px; /* Sits right beneath fixed site header/ticker */
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #7c5cff 0%, #38bdf8 50%, #10b981 100%);
  z-index: 99999;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.7);
  pointer-events: none;
}

/* Article Hero Header */
.ar-hero {
  position: relative;
  padding: clamp(130px, 13vw, 160px) 0 30px 0;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}

.ar-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(124, 92, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 92, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.ar-glow-orb {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ar-hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumb Navigation */
.ar-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.ar-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ar-breadcrumb a:hover {
  color: var(--violet);
}
.ar-breadcrumb-sep {
  opacity: 0.5;
  font-size: 11px;
}

/* Category & Meta Badge Bar */
.ar-meta-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.ar-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.25);
  transition: transform 0.2s;
}
.ar-cat-badge:hover {
  transform: translateY(-1px);
}

.ar-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.ar-meta-chip svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* Article Main Headline */
.ar-title {
  font-family: var(--font-display, 'Outfit', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink-strong);
  letter-spacing: -0.025em;
  margin: 0 auto 20px auto;
  text-wrap: balance;
}

/* Excerpt / Subtitle */
.ar-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 32px auto;
}

/* Integrated Author & Sharing Capsule Bar */
.ar-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 24px;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
[data-theme="dark"] .ar-author-bar {
  background: rgba(22, 26, 40, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.ar-author-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ar-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #a855f7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.35);
  flex-shrink: 0;
}

.ar-author-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ar-author-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ar-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-strong);
}

.ar-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.ar-author-date {
  font-size: 12.5px;
  color: var(--muted);
}

.ar-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ar-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ar-share-btn:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.3);
}

/* Featured Cover Showcase Media Frame */
.ar-cover-frame {
  max-width: 1060px;
  margin: 36px auto 0 auto;
  aspect-ratio: 21/9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.18);
  position: relative;
  background: var(--surface);
}
[data-theme="dark"] .ar-cover-frame {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.6);
}

.ar-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ar-cover-frame:hover img {
  transform: scale(1.02);
}

.ar-cover-badge {
  position: absolute;
  bottom: 18px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 13, 22, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* =====================================================================
   MAIN TWO-COLUMN ARTICLE LAYOUT
   ===================================================================== */
.ar-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 60px auto 100px auto;
  padding: 0 20px;
  align-items: start;
}

/* ---------------------------------------------------------------------
   ANIMATED STICKY TABLE OF CONTENTS (TOC)
   --------------------------------------------------------------------- */
.ar-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ar-toc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  position: relative;
}
[data-theme="dark"] .ar-toc-card {
  background: rgba(20, 24, 38, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.ar-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ar-toc-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ar-toc-title svg {
  width: 14px;
  height: 14px;
  color: var(--violet);
}

.ar-toc-pct {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--violet);
}

/* Mini Reading Progress Track */
.ar-toc-meter {
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ar-toc-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c5cff, #38bdf8);
  border-radius: 999px;
  transition: width 0.1s ease-out;
}

/* Nav list with sliding glider */
.ar-toc-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Sliding active glider indicator */
.ar-toc-glider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 38px;
  top: 0;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.1);
  border-left: 3px solid var(--violet);
  transition: top 0.28s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.ar-toc-glider.visible {
  opacity: 1;
}

.ar-toc-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.45;
}
.ar-toc-link:hover {
  color: var(--ink-strong);
  background: rgba(124, 92, 255, 0.04);
}
.ar-toc-link.active {
  color: var(--violet);
  font-weight: 700;
  transform: translateX(4px);
}
.ar-toc-link.sub {
  padding-left: 24px;
  font-size: 12.5px;
}

.ar-toc-idx {
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Sidebar Tool Promo Box */
.ar-side-promo {
  border-radius: 20px;
  padding: 22px 20px;
  text-align: center;
}
html:not([data-theme="dark"]) .ar-side-promo {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(56, 189, 248, 0.03));
  border: 1px solid rgba(124, 92, 255, 0.18);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.05);
}
html:not([data-theme="dark"]) .ar-side-promo-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e1b4b !important;
  margin-bottom: 6px;
}
html:not([data-theme="dark"]) .ar-side-promo-desc {
  font-size: 12.5px;
  color: #64748b !important;
  line-height: 1.45;
  margin-bottom: 16px;
}
html:not([data-theme="dark"]) .ar-side-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #5b4bcf);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.3);
  transition: all 0.2s;
}
html:not([data-theme="dark"]) .ar-side-promo-btn:hover {
  background: linear-gradient(135deg, #6c47ff, #4e3ecb);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.45);
}

html[data-theme="dark"] .ar-side-promo {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.25);
}
html[data-theme="dark"] .ar-side-promo-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
html[data-theme="dark"] .ar-side-promo-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 16px;
}
html[data-theme="dark"] .ar-side-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0f19;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
html[data-theme="dark"] .ar-side-promo-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------------------
   ARTICLE BODY & PROSE TYPOGRAPHY
   --------------------------------------------------------------------- */
.ar-prose {
  max-width: 820px;
  font-size: 18.5px;
  line-height: 1.85;
  color: var(--ink);
  word-break: break-word;
}

.ar-prose p {
  margin-bottom: 26px;
}

.ar-prose strong {
  color: var(--ink-strong);
  font-weight: 700;
}

.ar-prose h2 {
  font-family: var(--font-display, 'Outfit', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink-strong);
  margin: 54px 0 20px 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
  scroll-margin-top: 110px;
  position: relative;
}

.ar-prose h3 {
  font-family: var(--font-display, 'Outfit', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--ink-strong);
  margin: 38px 0 16px 0;
  line-height: 1.35;
  scroll-margin-top: 110px;
}

.ar-prose ul,
.ar-prose ol {
  margin: 0 0 26px 0;
  padding-left: 28px;
}

.ar-prose li {
  margin-bottom: 10px;
  line-height: 1.75;
}

.ar-prose blockquote {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.07), rgba(56, 189, 248, 0.03));
  border-left: 4px solid var(--violet);
  border-radius: 0 18px 18px 0;
  padding: 28px 36px;
  margin: 38px 0;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-strong);
}

.ar-prose img {
  max-width: 100%;
  border-radius: 18px;
  margin: 36px 0;
  border: 1px solid var(--line);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Callout Box inside content */
.ar-callout {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 36px 0;
}
.ar-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.15);
  color: var(--violet);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ar-callout-content {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

/* Tags Cloud at End of Article */
.ar-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.ar-tags-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 6px;
}
.ar-tag-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s;
}
.ar-tag-chip:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-1px);
}

/* Author Bio Card at Bottom */
.ar-author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  margin-top: 40px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .ar-author-box {
  background: rgba(22, 26, 40, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}
.ar-ab-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #38bdf8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.35);
}
.ar-ab-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 6px;
}
.ar-ab-bio {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* In-Article Conversion Banner */
.ar-cta-box {
  border-radius: 28px;
  padding: 48px 40px;
  margin-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Light Theme: Frosted luxury card with vibrant violet glow */
html:not([data-theme="dark"]) .ar-cta-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 243, 255, 0.92));
  border: 1px solid rgba(124, 92, 255, 0.22);
  box-shadow: 0 20px 50px -15px rgba(124, 92, 255, 0.12), 0 0 35px rgba(124, 92, 255, 0.05);
}
html:not([data-theme="dark"]) .ar-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 260px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.14) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
html:not([data-theme="dark"]) .ar-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: #7c5cff;
  display: grid;
  place-items: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.15);
}
html:not([data-theme="dark"]) .ar-cta-title {
  font-family: var(--font-display, 'Outfit', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #1e1b4b !important;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
html:not([data-theme="dark"]) .ar-cta-desc {
  font-size: 16px;
  color: #64748b !important;
  max-width: 600px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}
html:not([data-theme="dark"]) .ar-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
html:not([data-theme="dark"]) .ar-cta-primary {
  padding: 13px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #5b4bcf);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.32);
  transition: all 0.25s;
}
html:not([data-theme="dark"]) .ar-cta-primary:hover {
  background: linear-gradient(135deg, #6c47ff, #4e3ecb);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 92, 255, 0.45);
}
html:not([data-theme="dark"]) .ar-cta-sec {
  padding: 13px 26px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: #1e1b4b !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(44, 37, 94, 0.05);
  transition: all 0.25s;
}
html:not([data-theme="dark"]) .ar-cta-sec:hover {
  background: #f8fafc;
  border-color: #7c5cff;
  color: #7c5cff !important;
  transform: translateY(-2px);
}
html:not([data-theme="dark"]) .ar-cta-sec svg {
  color: #10b981;
}

/* Dark Theme */
html[data-theme="dark"] .ar-cta-box {
  background: linear-gradient(135deg, rgba(18, 22, 34, 0.98), rgba(11, 14, 24, 0.98));
  border: 1px solid rgba(124, 92, 255, 0.3);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 50px rgba(124, 92, 255, 0.1);
}
html[data-theme="dark"] .ar-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
html[data-theme="dark"] .ar-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.2);
  border: 1px solid rgba(124, 92, 255, 0.4);
  color: #c4b5fd;
  display: grid;
  place-items: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
}
html[data-theme="dark"] .ar-cta-title {
  font-family: var(--font-display, 'Outfit', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
html[data-theme="dark"] .ar-cta-desc {
  font-size: 16px;
  color: #94a3b8 !important;
  max-width: 600px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}
html[data-theme="dark"] .ar-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
html[data-theme="dark"] .ar-cta-primary {
  padding: 13px 30px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0f19 !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  transition: all 0.25s;
}
html[data-theme="dark"] .ar-cta-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35);
}
html[data-theme="dark"] .ar-cta-sec {
  padding: 13px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}
html[data-theme="dark"] .ar-cta-sec:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* =====================================================================
   PREV / NEXT ARTICLE NAVIGATION
   ===================================================================== */
.ar-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
}
.ar-nav-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ar-nav-card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -10px rgba(124, 92, 255, 0.12);
}
.ar-nav-dir {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.ar-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-strong);
  line-height: 1.4;
}

/* =====================================================================
   RESPONSIVE STYLES
   ===================================================================== */
@media (max-width: 1024px) {
  .ar-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ar-sidebar {
    display: none;
  }
  .ar-cover-frame {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 680px) {
  .ar-hero {
    padding: 120px 0 20px 0;
  }
  .ar-title {
    font-size: 28px;
  }
  .ar-author-bar {
    flex-direction: column;
    border-radius: 24px;
    padding: 18px;
    align-items: flex-start;
  }
  .ar-share-group {
    width: 100%;
    justify-content: flex-end;
  }
  .ar-cover-frame {
    border-radius: 16px;
    aspect-ratio: 16/10;
  }
  .ar-prose {
    font-size: 17px;
    line-height: 1.8;
  }
  .ar-author-box {
    flex-direction: column;
    text-align: center;
  }
  .ar-nav-row {
    grid-template-columns: 1fr;
  }
  .ar-cta-box {
    padding: 34px 20px;
  }
}
