/* ==========================================================================
   AETHERBLOOM BLOG POST - COMPLETE DESIGN SYSTEM & STYLING
   ========================================================================== */
:root {
  --accent-color: #d84e28;
  --accent-hover: #c0411c;
}

.ab-blog {
  --coral: #C94B2C;
  --green: #303D2C;
  --orange: #C94B2C;
  
  /* Theme mapping (Light theme by default) */
  --cream: #FAF7F4;
  --ink: #223024;
  --border: rgba(48, 61, 44, 0.08);
  
  --hero-bg: radial-gradient(ellipse 90% 60% at 50% 50%, rgba(201, 75, 44, 0.05) 0%, transparent 65%),
             radial-gradient(ellipse 50% 50% at 90% 5%, rgba(48, 61, 44, 0.06) 0%, transparent 50%),
             #FAF7F4;
  --hero-border: rgba(48, 61, 44, 0.06);
  --hero-deck-color: rgba(48, 61, 44, 0.7);
  --hero-title-color: #303D2C;
  
  --author-name: #303D2C;
  --author-role: rgba(48, 61, 44, 0.6);
  --author-bio: rgba(48, 61, 44, 0.5);
  
  --pill-bg: rgba(48, 61, 44, 0.04);
  --pill-border: rgba(48, 61, 44, 0.08);
  --pill-color: rgba(48, 61, 44, 0.6);
  --pill-span-color: #C94B2C;
  
  --lead-color: #303D2C;
  --text-color: rgba(48, 61, 44, 0.82);
  --strong-color: #303D2C;
  --em-color: #fff;
  --em-bg: #C94B2C;
  --heading-color: #303D2C;
  --hr-color: rgba(48, 61, 44, 0.08);
  
  --quote-bg: #FFF7F2;
  --quote-text: #303D2C;
  --quote-cite: rgba(48, 61, 44, 0.5);
  
  --table-border: rgba(48, 61, 44, 0.12);
  --table-td-bg: rgba(48, 61, 44, 0.01);
  --table-td-border: rgba(48, 61, 44, 0.06);
  
  --callout-bg: rgba(48, 61, 44, 0.03);
  --callout-border: rgba(48, 61, 44, 0.08);
  --callout-text: rgba(48, 61, 44, 0.8);
  
  --code-bg: rgba(48, 61, 44, 0.06);
  --code-color: #C94B2C;
  --pre-bg: #FAF7F4;
  --pre-border: rgba(48, 61, 44, 0.08);
  
  --cta-bg: linear-gradient(135deg, #FFFDF9 0%, #FAF7F4 100%);
  --cta-border: rgba(48, 61, 44, 0.12);
  --cta-before: radial-gradient(ellipse at 50% 0%, rgba(201, 75, 44, 0.04) 0%, transparent 60%);
  --cta-title: #303D2C;
  --cta-title-em: #C94B2C;
  --cta-text: rgba(48, 61, 44, 0.7);
  --cta-btn-s-bg: rgba(48, 61, 44, 0.04);
  --cta-btn-s-border: rgba(48, 61, 44, 0.12);
  --cta-btn-s-color: rgba(48, 61, 44, 0.8);
  
  --footer-bg: #FAF7F4;
  --footer-border: rgba(48, 61, 44, 0.08);
  --footer-logo: rgba(48, 61, 44, 0.4);
  --footer-info: rgba(48, 61, 44, 0.35);
  
  /* Card vars for related posts */
  --card-bg: rgba(48, 61, 44, 0.04);
  --card-border: rgba(48, 61, 44, 0.08);
  --card-title: #303D2C;
  --card-excerpt: rgba(48, 61, 44, 0.75);

  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1;
  margin: 0;
  padding: 0;
}

.ab-blog * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================
   STANDALONE NAVBAR & BACK BAR (Light default)
   ========================================== */

.sp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(48, 61, 44, 0.08);
  padding: 0 48px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.sp-nav-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  color: #303D2C; letter-spacing: -.02em;
}

.sp-nav-logo span { color: #C94B2C; }

.sp-nav-links { display: flex; align-items: center; gap: 32px; }

.sp-nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem; font-weight: 400;
  color: rgba(48, 61, 44, 0.7);
  transition: color .2s; letter-spacing: .01em;
}

.sp-nav-links a:hover { color: #C94B2C; }

.sp-nav-cta {
  background: #C94B2C !important; color: #fff !important;
  padding: 9px 20px; border-radius: 50px;
  font-size: .82rem; font-weight: 600;
  transition: background .2s, transform .2s;
}

.sp-nav-cta:hover { background: #a83520 !important; transform: translateY(-1px); }

.sp-back-bar {
  background: #FAF7F4;
  padding: 22px 48px 28px;
  border-top: 1px solid rgba(48, 61, 44, 0.08);
  text-align: center;
}

.sp-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: .6rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(48, 61, 44, 0.45);
  transition: color .25s;
}

.sp-back-link:hover { color: #C94B2C; }

.sp-back-link svg { flex-shrink: 0; }

@media(max-width:768px){
  .sp-nav { padding: 0 20px; }
  .sp-nav-links { display: none; }
}

/* ==========================================
   HERO HEADER
   ========================================== */

.ab-hero {
  background: var(--hero-bg);
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hero-border);
}

.ab-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

.ab-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ab-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.ab-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C94B2C;
  box-shadow: 0 0 10px rgba(201, 75, 44, .6);
}

.ab-cat-text {
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #C94B2C;
}

.ab-hero h1,
.ab-post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--hero-title-color);
  margin: 0 0 24px;
}

.ab-hero h1 em,
.ab-post-title em {
  color: #C94B2C;
  font-style: italic;
}

.ab-hero-deck {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--hero-deck-color);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 0 40px;
}

.ab-author {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.ab-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C94B2C, #ff9340);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(201, 75, 44, .35);
  overflow: hidden;
}

.ab-author-meta {
  display: flex;
  flex-direction: column;
}

.ab-author-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--author-name);
  margin-bottom: 3px;
}

.ab-author-role {
  font-size: .7rem;
  color: var(--author-role);
  margin-bottom: 5px;
}

.ab-author-bio {
  font-size: .68rem;
  color: var(--author-bio);
  font-style: italic;
  line-height: 1.55;
  max-width: 360px;
}

.ab-meta-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ab-meta-pill {
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 50px;
  padding: 5px 13px;
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: 1px;
  color: var(--pill-color);
}

.ab-meta-pill span {
  color: var(--pill-span-color);
  font-weight: 500;
}

/* ==========================================
   FEATURED IMAGE
   ========================================== */

.ab-featured-img-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 40px;
}

.ab-featured-img-inner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}

.ab-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   BODY & CONTENT STYLING (REUSABLE)
   ========================================== */

.ab-body {
  background: var(--cream);
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 40px 100px;
}

.ab-post-content-inner {
  counter-reset: chapter;
}

/* Dynamic Lead Paragraph */
.ab-post-content-inner > p:first-of-type,
.ab-lead {
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  color: var(--lead-color) !important;
  line-height: 1.82 !important;
  border-left: 3px solid #C94B2C;
  padding-left: 22px;
  margin-bottom: 40px !important;
}

/* Standard Paragraphs */
.ab-body p,
.ab-post-content-inner p {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text-color);
  line-height: 1.85;
  margin: 0 0 22px;
}

.ab-body p strong,
.ab-post-content-inner p strong {
  color: var(--strong-color);
  font-weight: 600;
}

.ab-body p em,
.ab-post-content-inner p em {
  font-style: italic;
}

/* Dynamic Chapter Numbering for H2 - Restricted to explicit chapters */
.ab-post-content-inner .ab-chapter h2,
.ab-post-content-inner h2.ab-ch-title {
  counter-increment: chapter;
}

.ab-post-content-inner h2 {
  margin-top: 80px;
  margin-bottom: 28px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
  letter-spacing: -.5px;
  position: relative;
  display: block;
}

.ab-post-content-inner .ab-chapter h2::before,
.ab-post-content-inner h2.ab-ch-title::before {
  content: "CHAPTER " counter(chapter, decimal-leading-zero);
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C94B2C;
  margin-bottom: 10px;
}

.ab-post-content-inner h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: #C94B2C;
  transition: width .7s ease;
}

/* Elegant Subheadings */
.ab-post-content-inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--heading-color);
  margin-top: 48px;
  margin-bottom: 18px;
}

.ab-post-content-inner h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-top: 36px;
  margin-bottom: 12px;
}

/* Custom Dividers for HR */
.ab-post-content-inner hr {
  border: none;
  height: 1px;
  background: var(--hr-color);
  margin: 64px 0;
  position: relative;
  overflow: visible;
}

.ab-post-content-inner hr::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C94B2C;
  box-shadow: 0 0 12px rgba(201, 75, 44, .55);
}

/* Elegant Lists */
.ab-post-content-inner ul,
.ab-post-content-inner ol {
  margin: 20px 0 28px;
  padding-left: 24px;
  color: var(--text-color);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.85;
}

.ab-post-content-inner ul {
  list-style: none;
}

.ab-post-content-inner ul li {
  position: relative;
  margin-bottom: 10px;
}

.ab-post-content-inner ul li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 9px;
  width: 5px;
  height: 5px;
  background: #C94B2C;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(201, 75, 44, .7);
}

.ab-post-content-inner ol li {
  margin-bottom: 10px;
}

.ab-post-content-inner li strong {
  color: var(--strong-color);
  font-weight: 600;
}

/* Links */
.ab-post-content-inner a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ab-post-content-inner a:hover {
  color: #ff9340;
}

/* Blockquotes & Pullquotes */
.ab-post-content-inner blockquote,
.ab-pullquote {
  margin: 52px 0;
  padding: 40px 48px;
  background: var(--quote-bg);
  border-left: 4px solid #C94B2C;
  border-radius: 0 14px 14px 0;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.ab-post-content-inner blockquote::before,
.ab-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 12rem;
  font-weight: 900;
  color: #C94B2C;
  opacity: .07;
  line-height: 1;
}

.ab-post-content-inner blockquote p,
.ab-pullquote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
  font-style: italic;
  color: var(--quote-text);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
}

.ab-post-content-inner blockquote cite,
.ab-pullquote cite {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--quote-cite);
  font-style: normal;
  display: block;
  position: relative;
  z-index: 1;
}

/* Tables */
.ab-post-content-inner table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 40px 0;
  border-radius: 14px;
  border: 2px solid var(--table-border);
  overflow: hidden;
}

.ab-post-content-inner th {
  padding: 14px 16px;
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--green);
  color: rgba(255, 255, 255, .95);
  text-align: left;
}

.ab-post-content-inner td {
  padding: 14px 16px;
  background: var(--table-td-bg);
  border-bottom: 1px solid var(--table-td-border);
  color: var(--text-color);
  vertical-align: middle;
  line-height: 1.4;
}

.ab-post-content-inner tr:last-child td {
  border-bottom: none;
}

.ab-post-content-inner td strong {
  color: var(--strong-color);
}

/* Callouts */
.ab-callout {
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-left: 4px solid #C94B2C;
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 32px 0;
}

.ab-callout h4 {
  font-family: 'Playfair Display', serif;
  font-size: .97rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 8px;
}

.ab-callout p {
  margin: 0 !important;
  font-size: .88rem !important;
  color: var(--callout-text) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

/* Figures and Content Images */
.ab-post-content-inner figure {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ab-post-content-inner img {
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(48, 61, 44, 0.08);
  border: 1px solid var(--border);
  height: auto;
}

.ab-post-content-inner figcaption {
  font-size: 0.8rem;
  color: var(--quote-cite);
  margin-top: 12px;
  font-style: italic;
  text-align: center;
}

/* Code & Pre */
.ab-post-content-inner code {
  font-family: 'DM Mono', monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  color: var(--code-color);
  padding: 2px 6px;
  border-radius: 4px;
}

.ab-post-content-inner pre {
  background: var(--pre-bg);
  border: 1px solid var(--pre-border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 28px 0;
}

.ab-post-content-inner pre code {
  background: none;
  color: var(--ink);
  padding: 0;
  font-size: 0.85rem;
}

/* ==========================================
   FINAL CTA BLOCK
   ========================================== */

.ab-cta {
  margin: 64px 0 0;
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ab-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cta-before);
}

.ab-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 900;
  color: var(--cta-title);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.ab-cta h3 em {
  color: var(--cta-title-em);
  font-style: italic;
}

.ab-cta p {
  color: var(--cta-text) !important;
  font-size: .95rem !important;
  max-width: 440px;
  margin: 0 auto 30px !important;
  position: relative;
  z-index: 1;
}

.ab-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.ab-btn-p {
  background: #C94B2C;
  color: #fff !important;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(201, 75, 44, .35);
  transition: transform .25s, box-shadow .25s;
}

.ab-btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 75, 44, .5);
}

.ab-btn-s {
  background: var(--cta-btn-s-bg);
  border: 1px solid var(--cta-btn-s-border);
  color: var(--cta-btn-s-color) !important;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: .88rem;
  text-decoration: none !important;
  display: inline-block;
  transition: all .25s;
}

.ab-btn-s:hover {
  background: rgba(48, 61, 44, 0.08);
  transform: translateY(-2px);
}

/* ==========================================
   POST FOOTER
   ========================================== */

.ab-post-footer {
  border-top: 1px solid var(--footer-border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--footer-bg);
  max-width: 760px;
  margin: 0 auto;
}

.ab-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--footer-logo);
}

.ab-footer-logo span {
  color: #C94B2C;
}

.ab-footer-info {
  font-family: 'DM Mono', monospace;
  font-size: .55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--footer-info);
}

/* ==========================================
   SCROLL REVEAL & INTERACTIVITY
   ========================================== */

.ab-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.ab-reveal.ab-visible {
  opacity: 1;
  transform: translateY(0);
}

.ab-reveal.ab-delay-1 { transition-delay: .1s; }
.ab-reveal.ab-delay-2 { transition-delay: .2s; }
.ab-reveal.ab-delay-3 { transition-delay: .3s; }
.ab-reveal.ab-delay-4 { transition-delay: .4s; }

@keyframes abHeroDrop {
  from { opacity: 0; transform: translateY(-22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes abPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 75, 44, .5); }
  50% { box-shadow: 0 0 0 8px rgba(201, 75, 44, 0); }
}

@keyframes abShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.ab-hero-inner > * {
  opacity: 0;
  animation: abHeroDrop .8s ease forwards;
}

.ab-hero-inner > *:nth-child(1) { animation-delay: .1s; }
.ab-hero-inner > *:nth-child(2) { animation-delay: .25s; }
.ab-hero-inner > *:nth-child(3) { animation-delay: .4s; }
.ab-hero-inner > *:nth-child(4) { animation-delay: .55s; }
.ab-hero-inner > *:nth-child(5) { animation-delay: .7s; }

.ab-div-dot {
  animation: abPulse 2.5s ease infinite;
}

.ab-btn-p {
  background-size: 200% auto;
  animation: abShimmer 4s linear infinite;
  background-image: linear-gradient(135deg, #C94B2C 0%, #e05a35 40%, #ff9340 60%, #C94B2C 100%);
}

.ab-chapter.ab-visible .ab-ch-title::after {
  width: 2.5rem;
}

.ab-pullquote.ab-visible {
  border-left-width: 4px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media(max-width:768px) {
  .ab-hero { padding: 80px 24px 60px; }
  .ab-body { padding: 48px 20px 72px; }
  .ab-featured-img-wrap { padding: 0 20px 30px; }
  .ab-pullquote { padding: 28px 24px; }
  .ab-cta { padding: 40px 24px; }
  .ab-post-footer { padding: 24px 20px; }
  .ab-btn-row { flex-direction: column; align-items: stretch; }
  .ab-btn-p, .ab-btn-s { text-align: center; }
}

@media(max-width:480px) {
  .ab-hero h1,
  .ab-post-title { letter-spacing: -.5px; }
}

/* ==========================================================
   DARK THEME OVERRIDES (Backward compatibility for dark posts)
   ========================================================== */

.ab-dark-theme .ab-blog {
  --cream: #0b0b0b;
  --ink: #F9F4EE;
  --border: rgba(255, 255, 255, 0.08);
  
  --hero-bg: radial-gradient(ellipse 90% 60% at 50% 50%, rgba(201, 75, 44, .14) 0%, transparent 65%),
             radial-gradient(ellipse 50% 50% at 90% 5%, rgba(48, 61, 44, .5) 0%, transparent 50%),
             #0b0b0b;
  --hero-border: transparent;
  --hero-deck-color: rgba(249, 244, 238, 0.65);
  --hero-title-color: #fff;
  
  --author-name: rgba(249, 244, 238, 0.88);
  --author-role: rgba(249, 244, 238, 0.4);
  --author-bio: rgba(249, 244, 238, 0.33);
  
  --pill-bg: rgba(255, 255, 255, 0.06);
  --pill-border: rgba(255, 255, 255, 0.1);
  --pill-color: rgba(249, 244, 238, 0.42);
  --pill-span-color: #ff9340;
  
  --lead-color: rgba(249, 244, 238, 0.92);
  --text-color: rgba(249, 244, 238, 0.75);
  --strong-color: #fff;
  --em-color: #1a1208;
  --em-bg: #ff9340;
  --heading-color: #fff;
  --hr-color: rgba(255, 255, 255, 0.09);
  
  --quote-bg: #161008;
  --quote-text: #fff;
  --quote-cite: rgba(255, 255, 255, 0.32);
  
  --table-border: #303D2C;
  --table-td-bg: rgba(255, 255, 255, 0.03);
  --table-td-border: rgba(255, 255, 255, 0.08);
  
  --callout-bg: #fff;
  --callout-border: #e8e0d8;
  --callout-text: #2a1f0f;
  
  --code-bg: rgba(255, 255, 255, 0.08);
  --code-color: #ff9340;
  --pre-bg: #141414;
  --pre-border: rgba(255, 255, 255, 0.08);
  
  --cta-bg: linear-gradient(135deg, #303D2C 0%, #111 100%);
  --cta-border: #3d4f38;
  --cta-before: radial-gradient(ellipse at 50% 0%, rgba(201, 75, 44, 0.14) 0%, transparent 60%);
  --cta-title: #fff;
  --cta-title-em: #ff9340;
  --cta-text: rgba(249, 244, 238, 0.6);
  --cta-btn-s-bg: rgba(255, 255, 255, 0.08);
  --cta-btn-s-border: rgba(255, 255, 255, 0.15);
  --cta-btn-s-color: rgba(249, 244, 238, 0.78);
  
  --footer-bg: #090909;
  --footer-border: #1e1e1e;
  --footer-logo: rgba(255, 255, 255, 0.35);
  --footer-info: rgba(255, 255, 255, 0.25);

  /* Card vars for related posts (dark theme) */
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.15);
  --card-title: #ffffff;
  --card-excerpt: rgba(249, 244, 238, 0.7);
}

.ab-dark-theme .sp-nav {
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ab-dark-theme .sp-nav-logo {
  color: #fff;
}

.ab-dark-theme .sp-nav-links a {
  color: rgba(249, 244, 238, 0.65);
}

.ab-dark-theme .sp-nav-links a:hover {
  color: #fff;
}

.ab-dark-theme .sp-back-bar {
  background: #0b0b0b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ab-dark-theme .sp-back-link {
  color: rgba(249, 244, 238, 0.32);
}

.ab-dark-theme .sp-back-link:hover {
  color: #C94B2C;
}

/* ==========================================================
   STANDARD HEADER & FOOTER OVERRIDES FOR SINGLE POSTS
   ========================================================== */


/* 2. Standard Footer glassmorphism styling on light-themed single posts */
.ab-light-theme.single-post-fallback-layout .site-footer,
.ab-light-theme.single-post-custom-layout .site-footer {
  background: rgba(28, 61, 43, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
  z-index: 10 !important;
}

.ab-light-theme.single-post-fallback-layout .site-footer .column-title,
.ab-light-theme.single-post-custom-layout .site-footer .column-title,
.ab-light-theme.single-post-fallback-layout .site-footer .footer-link,
.ab-light-theme.single-post-custom-layout .site-footer .footer-link,
.ab-light-theme.single-post-fallback-layout .site-footer .footer-contact-link,
.ab-light-theme.single-post-custom-layout .site-footer .footer-contact-link,
.ab-light-theme.single-post-fallback-layout .site-footer .address-line,
.ab-light-theme.single-post-custom-layout .site-footer .address-line,
.ab-light-theme.single-post-fallback-layout .site-footer .brand-description,
.ab-light-theme.single-post-custom-layout .site-footer .brand-description,
.ab-light-theme.single-post-fallback-layout .site-footer .copyright p,
.ab-light-theme.single-post-custom-layout .site-footer .copyright p,
.ab-light-theme.single-post-fallback-layout .site-footer .footer-legal-details p,
.ab-light-theme.single-post-custom-layout .site-footer .footer-legal-details p {
  color: #ffffff !important;
}

.ab-light-theme.single-post-fallback-layout .site-footer .footer-link:hover,
.ab-light-theme.single-post-custom-layout .site-footer .footer-link:hover,
.ab-light-theme.single-post-fallback-layout .site-footer .footer-contact-link:hover,
.ab-light-theme.single-post-custom-layout .site-footer .footer-contact-link:hover {
  color: #ff9340 !important;
}

.ab-light-theme.single-post-fallback-layout .site-footer .logo-text,
.ab-light-theme.single-post-custom-layout .site-footer .logo-text {
  color: #ffffff !important;
}

.ab-light-theme.single-post-fallback-layout .site-footer .logo:hover .logo-text,
.ab-light-theme.single-post-custom-layout .site-footer .logo:hover .logo-text {
  color: #ff9340 !important;
}

/* 3. Robust styling override to protect light-themed blog layout from inline style clashes */
.ab-light-theme .ab-blog {
  background: #FAF7F4 !important;
  color: #223024 !important;
}

.ab-light-theme .ab-blog * {
  --cream: #FAF7F4 !important;
  --ink: #223024 !important;
  --border: rgba(48, 61, 44, 0.08) !important;
  --text-color: rgba(48, 61, 44, 0.82) !important;
  --heading-color: #303D2C !important;
  --hero-deck-color: rgba(48, 61, 44, 0.7) !important;
  --hero-title-color: #303D2C !important;
  --author-name: #303D2C !important;
  --author-role: rgba(48, 61, 44, 0.6) !important;
  --author-bio: rgba(48, 61, 44, 0.5) !important;
  --pill-bg: rgba(48, 61, 44, 0.04) !important;
  --pill-border: rgba(48, 61, 44, 0.08) !important;
  --pill-color: rgba(48, 61, 44, 0.6) !important;
  --lead-color: #303D2C !important;
  --strong-color: #303D2C !important;
  --quote-bg: #FFF7F2 !important;
  --quote-text: #303D2C !important;
  --cta-title: #303D2C !important;
  --cta-text: rgba(48, 61, 44, 0.7) !important;
}

/* ==========================================================
   DELLA BLOG POST (PEACH/LIGHT THEME) OVERRIDES & STYLES
   ========================================================== */

.della-blog {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 20px 60px !important;
  box-sizing: border-box !important;
}

.della-blog .db-hero {
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.della-blog .db-body {
  max-width: 900px !important;
  margin: 0 auto !important;
  background: var(--cream) !important;
  border-radius: 0 0 20px 20px !important;
  padding: 64px 48px 96px !important;
  box-sizing: border-box !important;
}

.della-blog .db-body > p,
.della-blog .db-sec,
.della-blog .db-divider,
.della-blog .db-callout,
.della-blog .db-pills {
  max-width: 740px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.della-blog .db-hl {
  max-width: 800px !important;
  margin: 36px auto !important;
}

.della-blog .db-bars {
  max-width: 800px !important;
  margin: 36px auto !important;
}

.della-blog .db-acc {
  max-width: 800px !important;
  margin: 36px auto !important;
}

.della-blog .db-table-wrap {
  max-width: 860px !important;
  margin: 36px auto !important;
}

.della-blog .db-pullquote {
  max-width: 800px !important;
  margin: 48px auto !important;
}

.della-blog .db-cta {
  max-width: 860px !important;
  margin: 64px auto 0 !important;
}

.della-blog .db-stat-grid,
.della-blog .db-impact-grid {
  max-width: 860px !important;
  margin: 36px auto !important;
}

@media (max-width: 760px) {
  .della-blog {
    padding: 0 !important;
  }
  .della-blog .db-hero {
    border-radius: 0 !important;
  }
  .della-blog .db-body {
    border-radius: 0 !important;
    padding: 48px 20px 72px !important;
  }
}

/* ==========================================================
   RELATED POSTS SECTION
   ========================================================== */
.sp-related-posts-section {
  padding: 60px 2rem 40px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.sp-related-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sp-related-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 2rem;
  text-align: left;
}

/* Horizontal scroll container */
.sp-related-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--coral) transparent;
}

/* For Webkit browsers (Chrome, Safari, Edge) */
.sp-related-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.sp-related-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.sp-related-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 10px;
}
.sp-related-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--coral);
}

.sp-related-posts-grid {
  display: flex;
  gap: 2rem;
  width: max-content;
  min-width: 100%;
}

/* Related card layout based on the blog listing page card */
.sp-related-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  width: 360px; /* Fixed width for horizontal scrolling list */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.sp-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--coral);
}

.sp-related-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(57, 86, 79, 0.1), rgba(57, 86, 79, 0.05));
  display: block;
  text-decoration: none;
}

.sp-related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sp-related-card:hover .sp-related-card-image img {
  transform: scale(1.04);
}

.sp-related-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-related-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.sp-related-category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: transparent;
  color: var(--coral);
  border: 1px solid var(--coral);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sp-related-category:hover {
  background: var(--coral);
  color: #fff !important;
}

.sp-related-date {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.8;
}

.sp-related-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--card-title);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.sp-related-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-related-card-title a:hover {
  color: var(--coral);
}

.sp-related-card-excerpt {
  font-size: 0.88rem;
  color: var(--card-excerpt);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}

.sp-related-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.sp-related-read-more:hover {
  gap: 0.6rem;
  color: var(--coral);
}

.sp-related-read-more svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .sp-related-posts-section {
    padding: 40px 1rem 30px;
  }
  .sp-related-card {
    width: 290px;
  }
}

/* ==========================================================
   ORANGE HERO SECTION & RELATED POSTS ORANGE CARDS
   ========================================================== */

/* Apply brand orange gradient background to top hero sections */
.ab-hero,
.della-blog .db-hero,
.sp-default-header {
  background-color: var(--accent-color) !important;
  background-image: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%) !important;
  border-bottom: 1px solid rgba(48, 61, 44, 0.1) !important;
  padding-top: 170px !important; /* Stretch background to the top under floating navbar */
  padding-bottom: 80px !important;
}

@media (max-width: 768px) {
  .ab-hero,
  .della-blog .db-hero,
  .sp-default-header {
    padding-top: 130px !important;
    padding-bottom: 60px !important;
  }
}

/* Ensure text inside the hero is styled correctly on the orange background */
.ab-hero h1,
.ab-hero .ab-post-title,
.della-blog .db-hero h1,
.sp-default-header h1,
.sp-default-title {
  color: #ffffff !important;
  text-shadow: none !important;
}

.ab-hero-deck,
.sp-default-meta span,
.della-blog .db-hero p,
.della-blog .db-hero .db-hero-desc {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ab-author-name,
.ab-author-role,
.della-blog .db-author-name,
.della-blog .db-author-role {
  color: #ffffff !important;
}

.ab-author-bio,
.della-blog .db-author-bio {
  color: rgba(255, 255, 255, 0.8) !important;
}

.ab-meta-pill,
.della-blog .db-meta-pill {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.ab-meta-pill span,
.della-blog .db-meta-pill span {
  color: #ffffff !important;
}

.della-blog .db-cat-text {
  color: #ffffff !important;
}

.della-blog .db-avatar {
  border-color: rgba(48, 61, 44, 0.3) !important;
}

/* Related Posts Heading and Card Enhancements */
.sp-related-title {
  color: #303D2C !important; /* Make heading text dark green */
}

.sp-related-card {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%) !important;
  border: 1px solid rgba(48, 61, 44, 0.15) !important;
}

.sp-related-card-title a {
  color: #ffffff !important;
}

.sp-related-card-title a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.sp-related-card-excerpt {
  color: rgba(255, 255, 255, 0.85) !important;
}

.sp-related-date {
  color: rgba(255, 255, 255, 0.7) !important;
}

.sp-related-read-more {
  color: #ffffff !important;
}

.sp-related-read-more:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.sp-related-category {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.sp-related-category:hover {
  background: #ffffff !important;
  color: var(--accent-color) !important;
}

/* Fix for green background strip on navbar on single posts */
body.single-post-custom-layout .navbar .nav-menu-content,
body.single-post-fallback-layout .navbar .nav-menu-content {
  background: transparent !important;
}

/* Keep the top bar (navbar) in orange theme on single posts always, even on scroll */
body.single-post-custom-layout .navbar,
body.single-post-fallback-layout .navbar {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

body.single-post-custom-layout .navbar .brand-name,
body.single-post-custom-layout .navbar .nav-link,
body.single-post-custom-layout .navbar .nav-links li a,
body.single-post-fallback-layout .navbar .brand-name,
body.single-post-fallback-layout .navbar .nav-link,
body.single-post-fallback-layout .navbar .nav-links li a {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.single-post-custom-layout .navbar .brand-name:hover,
body.single-post-custom-layout .navbar .nav-link:hover,
body.single-post-custom-layout .navbar .nav-links li a:hover,
body.single-post-fallback-layout .navbar .brand-name:hover,
body.single-post-fallback-layout .navbar .nav-link:hover,
body.single-post-fallback-layout .navbar .nav-links li a:hover {
  color: #fff !important;
}

body.single-post-custom-layout .navbar .brand-icon,
body.single-post-fallback-layout .navbar .brand-icon {
  filter: brightness(0) invert(1) !important;
}

body.single-post-custom-layout .navbar .pricing-btn,
body.single-post-fallback-layout .navbar .pricing-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

body.single-post-custom-layout .navbar .pricing-btn:hover,
body.single-post-fallback-layout .navbar .pricing-btn:hover {
  background: #fff !important;
  color: #1C3D2B !important; /* Brand dark green color */
  border-color: #fff !important;
}

body.single-post-custom-layout .navbar .mobile-menu-toggle span,
body.single-post-fallback-layout .navbar .mobile-menu-toggle span {
  background: #fff !important;
}

/* Fix for white subheadings and text inside light-themed post content (custom and fallback designs) */
body.ab-light-theme .ab-blog h1,
body.ab-light-theme .ab-blog h2,
body.ab-light-theme .ab-blog h3,
body.ab-light-theme .ab-blog h4,
body.ab-light-theme .ab-blog h5,
body.ab-light-theme .ab-blog h6,
body.ab-light-theme .della-blog h1,
body.ab-light-theme .della-blog h2,
body.ab-light-theme .della-blog h3,
body.ab-light-theme .della-blog h4,
body.ab-light-theme .della-blog h5,
body.ab-light-theme .della-blog h6,
body.ab-light-theme .post-content h1,
body.ab-light-theme .post-content h2,
body.ab-light-theme .post-content h3,
body.ab-light-theme .post-content h4,
body.ab-light-theme .post-content h5,
body.ab-light-theme .post-content h6 {
  color: #303D2C !important;
  text-shadow: none !important;
}

body.ab-light-theme .ab-blog p,
body.ab-light-theme .ab-blog li,
body.ab-light-theme .ab-blog td,
body.ab-light-theme .della-blog p,
body.ab-light-theme .della-blog li,
body.ab-light-theme .della-blog td,
body.ab-light-theme .post-content p,
body.ab-light-theme .post-content li,
body.ab-light-theme .post-content td {
  color: rgba(48, 61, 44, 0.82) !important;
}

body.ab-light-theme .ab-blog a:not(.pricing-btn):not(.sp-related-category):not(.sp-related-read-more),
body.ab-light-theme .della-blog a:not(.pricing-btn):not(.sp-related-category):not(.sp-related-read-more),
body.ab-light-theme .post-content a:not(.pricing-btn):not(.sp-related-category):not(.sp-related-read-more) {
  color: #C94B2C !important;
  text-decoration: underline !important;
}

body.ab-light-theme .ab-blog a:not(.pricing-btn):not(.sp-related-category):not(.sp-related-read-more):hover,
body.ab-light-theme .della-blog a:not(.pricing-btn):not(.sp-related-category):not(.sp-related-read-more):hover,
body.ab-light-theme .post-content a:not(.pricing-btn):not(.sp-related-category):not(.sp-related-read-more):hover {
  color: #ff9340 !important;
}

