/* =========================================================
   Keep classes as-is, but with consistent spacing, typography,
   sticky sidebar and sticky-until-footer CTA.
   ========================================================= */

/* ---------- Variables & Fonts ---------- */

:root {
    --heading-serif: 'Playfair Display', 'Georgia', 'Spectral', serif;
    --body-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --content-max: 720px;
  
    --accent-color: #7ec8e3;
    --accent-color-dark: #7fb9cf;
  
    --text-primary: #111827;
    --text-secondary: #6b7280;
  
    --bg-base: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
  
    /* Spacing scale (12px rhythm) */
    --space-xxl: 56px;
    --space-xl: 48px;
    --space-lg: 40px;
    --space-md: 32px;
    --space-sm: 20px;
    --space-xs: 12px;
  }
  
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap');
  
  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }
  
  /* Skip to Content Link (Accessibility) */
  .skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-color);
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
  }
  
  .skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent-color-dark);
    outline-offset: 2px;
  }
  
  /* Reading Progress Bar */
  .reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 9998;
    pointer-events: none;
  }
  
  .reading-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  }
  
  /* Toast Notification */
  .toast-notification {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: #111827;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: var(--body-sans);
    font-size: 14px;
    max-width: 300px;
  }
  
  .toast-notification.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Newsletter Form Error State */
  .cta-banner-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
  }
  
  .cta-banner-input.error:focus {
    outline-color: #ef4444;
  }
  
  /* Focus Indicators for Better Accessibility */
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px;
  }
  
  /* Print Styles */
  @media print {
    .blog-nav,
    .s_breadcrumbs_wrap,
    .blog-sidebar,
    .cta-banner_wrap,
    .back-to-top,
    .reading-progress,
    .related-posts-section,
    footer {
      display: none !important;
    }
    
    .blog-post-wrapper {
      max-width: 100%;
      margin: 0;
      padding: 0;
    }
    
    .blog-post-main {
      max-width: 100%;
      padding: 0;
    }
    
    .blog-post-content {
      font-size: 12pt;
      line-height: 1.6;
    }
    
    .blog-post-content a {
      color: #000;
      text-decoration: underline;
    }
    
    .blog-post-content a[href^="http"]:after {
      content: " (" attr(href) ")";
      font-size: 10pt;
      color: #666;
    }
    
    .blog-post-hero {
      max-width: 100%;
      height: auto;
    }
    
    @page {
      margin: 2cm;
    }
  }
  
  
  /* ---------- Layout: Wrapper & Columns ---------- */
  
  .blog-post-wrapper {
    display: flex;
    justify-content: flex-start;
    position: relative;
    max-width: 1400px;
    margin: var(--space-xl) auto var(--space-xxl) auto;
    padding: 0 var(--space-md);
    gap: var(--space-xl);
    background: var(--bg-base);
    box-sizing: border-box;
  }
  
  .blog-post-main {
    max-width: var(--content-max);
    width: 100%;
    padding: 0 var(--space-sm);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Left sidebar wrapper - NOT sticky, just a container */
  .blog-sidebar {
    width: 240px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    
    flex-shrink: 0;
    position: relative; /* Needed for absolute positioning of latest posts */
  }
  
  /* Metadata container - scrolls normally (no sticky positioning) */
  
  /* Latest posts container - Appears on scroll, stops above Related Posts */
  .sidebar-latest-posts {
    position: fixed;
    top: 100px; /* Adjust based on your header height */
    left: auto;
    width: 240px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 0;
    border-top: none;
    margin-top: 0;
    margin-left: var(--space-md); /* Add left padding */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
  }
  
  .sidebar-latest-posts.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Margin-top will be calculated and set via JavaScript to align with Article Content */
  
  /* ---------- Breadcrumbs ---------- */
  
  .s_breadcrumbs_wrap {
    background: var(--bg-base);
    padding: var(--space-sm) 0;
  }
  
  .blog-breadcrumbs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .blog-breadcrumbs-container a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .blog-breadcrumbs-container a:hover {
    color: var(--accent-color);
  }
  
  .blog-breadcrumbs-container span {
    opacity: 0.6;
  }
  
  .blog-breadcrumbs-container .breadcrumb-title {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }
  
  /* Back link above article */
  .blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: color 0.2s ease;
  }
  
  .blog-back-link:hover {
    color: var(--accent-color);
  }
  
  
  /* ---------- Sidebar: Meta, Tags, Share, Latest Posts ---------- */
  
  .sidebar-meta-container {
    margin-top: 0;
  }
  
  .sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-secondary);
  }
  
  .sidebar-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .sidebar-meta-label {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
  }
  
  .sidebar-meta-value,
  .sidebar-meta-value a {
    color: var(--text-secondary);
  }
  
  .sidebar-meta-value a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
  }
  
  .sidebar-meta-value a:hover {
    color: var(--accent-color);
  }
  
  .sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-xs);
  }
  
  .sidebar-tag {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    background: #fff;
    font-family: var(--body-sans);
  }
  
  .sidebar-share {
    border-top: 1px solid var(--border-color);
    position: relative;
  }
  
  .sidebar-share-link {
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
  }
  
  .sidebar-share-link:hover {
    color: var(--accent-color);
  }
  
  .sidebar-share-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-xs);
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    z-index: 100;
  }
  
  .sidebar-share-dropdown.active {
    display: flex;
  }
  
  .sidebar-share-dropdown a {
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
  }
  
  .sidebar-share-dropdown a:hover {
    background: var(--bg-light);
  }
  
  .sidebar-share-dropdown a i {
    width: 18px;
    text-align: center;
  }
  
  /* Latest posts block in sidebar - inherits sticky from parent */
  /* Latest posts styling - sticky positioning defined above */
  
  .sidebar-latest-title {
    font-family: var(--heading-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-left: 0;
  }
  
  .sidebar-latest-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .sidebar-latest-item {
    padding: 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
  }
  
  .sidebar-latest-item:last-child {
    border-bottom: none;
    padding-bottom: var(--space-md);
  }
  
  .sidebar-latest-link {
    font-family: var(--body-sans);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.5;
    display: block;
    margin-bottom: 0;
    transition: color 0.2s ease;
  }
  
  
  
  .sidebar-latest-meta {
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-secondary);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: relative;
    margin-top: var(--space-xs);
    display: block;
    min-height: 20px; /* Maintain height for Read more */
    z-index: 1;
  }
  
  .sidebar-latest-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .sidebar-latest-meta a:hover {
    color: var(--accent-color);
  }
  
  .sidebar-latest-readmore {
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: block;
    line-height: 1.4;
    /* Position will be calculated dynamically via JavaScript */
    top: 0;
  }
  
  .sidebar-latest-item:hover .sidebar-latest-readmore {
    opacity: 1;
    visibility: visible;
  }
  
  .sidebar-latest-item:hover .sidebar-latest-meta {
    opacity: 0;
    visibility: hidden;
  }
  
  
  /* ---------- Blog Header, Intro & Hero ---------- */
  
  .blog-post-header {
    margin-bottom: var(--space-lg);
  }
  
  .blog-post-meta-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-secondary);
  }
  
  .blog-post-title {
    font-family: var(--heading-serif);
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
  }
  
  .blog-post-intro {
    font-family: var(--body-sans);
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 620px;
    margin-top: var(--space-sm);
  }
  
  .blog-post-hero,
  .img-cover {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    margin: var(--space-lg) 0;
    border-radius: 12px;
  }
  
  
  /* ---------- Featured Block (promo block under intro) ---------- */
  
  .featured-block,
  .affiliate-cta {
    background: #f3efff;
    padding: var(--space-lg);
    border-radius: 24px;
    margin: var(--space-lg) 0;
    font-family: var(--body-sans);
  }
  
  .featured-block h3,
  .affiliate-cta h3 {
    font-family: var(--heading-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
  }
  
  .featured-block p,
  .affiliate-cta p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    max-width: 100%;
  }
  
  .featured-block a,
  .affiliate-cta a {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
  }
  
  .featured-block a:hover,
  .affiliate-cta a:hover {
    background: var(--accent-color-dark);
  }
  
  
  /* ---------- Table of Contents ---------- */
  
  .toc-container {
    margin: var(--space-sm) 0;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }
  
  .toc-container h2 {
    font-family: var(--heading-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
  }
  
  .toc-container ol {
    list-style: none;
    padding-left: 0;
    counter-reset: toc-item;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .toc-container li {
    font-family: var(--body-sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    counter-increment: toc-item;
  }
  
  .toc-container li::before {
    content: counter(toc-item, decimal-leading-zero) ". ";
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
  }
  
  .toc-container a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .toc-container a:hover {
    color: var(--accent-color);
  }
  
  
  /* ---------- Article Body Typography ---------- */
  
  .blog-post-content {
    font-family: var(--body-sans);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
  }
  
  .blog-post-content h2 {
    font-family: var(--heading-serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
  }
  
  .blog-post-content h2:first-of-type {
    margin-top: 0;
  }
  
  .blog-post-content h3 {
    font-family: var(--heading-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
  }
  
  /* Spacing when h3 follows h2 */
  .blog-post-content h2 + h3 {
    margin-top: var(--space-sm);
  }
  
  /* Spacing when h2 follows h3 */
  .blog-post-content h3 + h2 {
    margin-top: var(--space-sm);
  }
  
  .blog-post-content p {
    max-width: 680px;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
  }
  
  .blog-post-content ul,
  .blog-post-content ol {
    max-width: 680px;
    margin-bottom: var(--space-sm);
    padding-left: 24px;
  }
  
  .blog-post-content li {
    margin-bottom: 10px;
  }
  
  .blog-post-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
  }
  
  .blog-post-content a:hover {
    color: var(--accent-color-dark);
  }
  
  
  /* ---------- Pull Quotes & Checklist Items ---------- */
  
  .pull-quote {
    border-left: 4px solid var(--accent-color);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    font-family: var(--heading-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    font-style: italic;
    max-width: 680px;
  }
  
  .checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--space-xs);
    max-width: 680px;
  }
  
  .checklist-item i {
    color: var(--accent-color);
    margin-top: 4px;
    flex-shrink: 0;
  }
  
  .checklist-item p {
    margin: 0;
  }
  
  
  /* ---------- Bottom CTA Block ---------- */
  
  .blog-cta-block {
    background: var(--bg-light);
    padding: var(--space-xl) var(--space-lg);
    border-radius: 24px;
    margin: var(--space-xl) 0;
    text-align: center;
    font-family: var(--body-sans);
  }
  
  .blog-cta-block h3 {
    font-family: var(--heading-serif);
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
  }
  
  .blog-cta-block p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .blog-cta-block a {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s ease;
  }
  
  .blog-cta-block a:hover {
    background: var(--accent-color-dark);
  }
  
  
  /* ---------- Share Section Under Article ---------- */
  
  .blog-share-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
  }
  
  .blog-share-section h3 {
    font-family: var(--heading-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
  }
  
  .share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-family: var(--body-sans);
    transition: all 0.2s ease;
  }
  
  .share-btn:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
  }
  
  
  /* ---------- Sticky Newsletter CTA Banner (bottom, stops before footer) ---------- */
  
  /*
   Place this banner directly ABOVE the footer in your HTML.
   Optional: wrap main content + banner + footer in .page-wrapper if you want tighter control.
  */
  
  .page-wrapper {
    position: relative;
    min-height: 100vh;
  }
  
  /* Wrap blog content and footer for sticky-until-footer behavior */
  body.blog-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  /* Main content wrapper - allows banner to stick until footer */
  .blog-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .cta-banner_wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111827;
    padding: 20px 0;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Add padding to footer so content isn't hidden behind banner */
  body.blog-page footer.container {
    margin-bottom: 80px;
  }
  
  /* ---------- Related Posts Section ---------- */
  
  .related-posts-section {
    background: var(--bg-base);
    padding: var(--space-xxl) 0;
    margin-top: 0;
  }
  
  .related-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg);
  }
  
  .related-posts-title {
    font-family: var(--heading-serif);
    font-size: 36px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
  }
  
  .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  
  .related-post-card {
    background: var(--bg-base);
    border-radius: 0;
    overflow: hidden;
    border: none;
  }
  
  .related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0;
  }
  
  .related-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
  }
  
  .related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .related-post-content {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
  }
  
  .related-post-card {
    padding: 0 !important;
  }
  
  .related-post-title {
    font-family: var(--heading-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .related-post-excerpt {
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .related-post-meta {
    font-family: var(--body-sans);
    font-size: 12px;
    color: var(--text-secondary);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: relative;
    margin-top: var(--space-xs);
    display: block;
    min-height: 18px;
  }
  
  .related-post-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .related-post-meta a:hover {
    color: var(--accent-color);
  }
  
  .related-post-readmore {
    font-family: var(--body-sans);
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: block;
    line-height: 1.4;
    /* Position will be calculated dynamically via JavaScript */
    top: 0;
  }
  
  .related-post-card:hover .related-post-readmore {
    opacity: 1;
    visibility: visible;
  }
  
  .related-post-card:hover .related-post-meta {
    opacity: 0;
    visibility: hidden;
  }
  
  .related-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .related-post-title a:hover {
    color: var(--accent-color);
  }
  
  @media (max-width: 1024px) {
    .related-posts-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .related-posts-section {
      padding: var(--space-xl) 0;
    }
    
    .related-posts-container {
      padding: var(--space-md) var(--space-md);
    }
    
    .related-posts-title {
      font-size: 28px;
      margin-bottom: var(--space-lg);
    }
    
    .related-posts-grid {
      grid-template-columns: 1fr;
      gap: var(--space-md);
    }
    
    .related-post-image {
      height: 180px;
    }
  }
  
  .cta-banner-container {
    max-width: 600px;
    width: 100%;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
  }
  
  .cta-banner-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
  }
  
  .cta-banner-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: var(--body-sans);
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
  }
  
  .cta-banner-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .cta-banner-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  .cta-banner-submit {
    background: #ffffff;
    color: #111827;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: var(--body-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
  }
  
  .cta-banner-submit:hover {
    background: #f3f4f6;
  }
  
  .cta-banner-close {
    position: fixed;
    right: 24px;
    bottom: 20px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 10001;
    width: 32px;
    height: 32px;
  }
  
  .cta-banner-close:hover {
    opacity: 0.7;
  }
  
  .cta-banner_wrap[data-banner-dismissable="true"] {
    display: flex;
  }
  
  .cta-banner_wrap.hidden {
    display: none;
  }
  
  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 100px;
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  .back-to-top:hover {
    background: #1f2937;
    transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
    .back-to-top {
      right: var(--space-sm);
      bottom: 90px;
      width: 44px;
      height: 44px;
      font-size: 18px;
    }
  }
  
  
  /* ---------- Responsive ---------- */
  
  @media (max-width: 1024px) {
    .blog-breadcrumbs-container {
      padding: 0 var(--space-md);
    }
  
    .blog-post-wrapper {
      padding: 0 var(--space-md) var(--space-xl) var(--space-md);
      gap: 0;
      flex-direction: column;
    }
  
    .blog-sidebar {
      display: none;
    }
    
    .sidebar-latest-posts {
      display: none !important;
    }
  
    .blog-post-main {
      max-width: 100%;
      padding: 0;
    }
  
    .blog-post-title {
      font-size: 42px;
    }
  
    .blog-post-content h2 {
      font-size: 28px;
    }
  
    /* TOC comes before content on mobile */
    .toc-container {
      margin: var(--space-lg) 0;
      order: -1;
    }
  
    .cta-banner-container {
      padding: 0 var(--space-md);
    }
  
    .cta-banner-close {
      right: var(--space-md);
    }
    
    .back-to-top {
      right: var(--space-md);
    }
  }
  
  @media (max-width: 768px) {
    .blog-breadcrumbs-container {
      padding: 0 var(--space-sm);
      font-size: 12px;
    }
  
    .blog-post-wrapper {
      margin-top: var(--space-lg);
      padding: 0 var(--space-sm) var(--space-lg) var(--space-sm);
    }
  
    .blog-post-title {
      font-size: 34px;
    }
  
    .blog-post-intro {
      font-size: 18px;
    }
  
    .blog-post-content {
      font-size: 16px;
    }
  
    .blog-post-content h2 {
      font-size: 24px;
      margin-top: var(--space-lg);
    }
  
    .featured-block,
    .affiliate-cta {
      padding: var(--space-md);
    }
  
    .blog-cta-block {
      padding: var(--space-lg) var(--space-md);
    }
  
    .blog-post-hero {
      height: 300px;
    }
  
    .cta-banner-container {
      padding: 0 var(--space-sm);
      flex-wrap: wrap;
      gap: 12px;
    }
  
    .cta-banner-button {
      flex: 1;
      min-width: 120px;
    }
  
    .cta-banner-close {
      right: var(--space-sm);
      top: 50%;
      transform: translateY(-50%);
    }
  }