/**
 * ============================================================================
 * YS PLUGINS - UNIFIED BLOG SINGLE POST DESIGN SYSTEM
 * ============================================================================
 * 
 * TABLE OF CONTENTS:
 * 1. DESIGN TOKENS (CSS Variables)
 * 2. MASTER LAYOUT & WRAPPER CONTAINERS
 * 3. HERO COMPONENT (Featured Image, Title, Author, Date, Read Time, CTAs)
 * 4. TWO-COLUMN GRID SYSTEM (Main Content & Sticky Sidebar)
 * 5. POST HIGHLIGHTS (Quick Answer & Key Takeaways)
 * 6. TABLE OF CONTENTS COMPONENT
 * 7. ARTICLE BODY TYPOGRAPHY, TABLES & ACCORDIONS
 * 8. DYNAMIC PRICING SIDEBAR CARD
 * 9. AUTHOR PROFILE & SOCIAL SHARE COMPONENT
 * 10. RELATED POSTS 3-COLUMN GRID
 * 11. UNIFIED RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
 * ============================================================================
 */

/* ============================================================================
   1. DESIGN TOKENS (CSS Variables)
   ============================================================================ */
:root {
    /* Brand Colors */
    --ys-primary: #FFA918;
    --ys-primary-hover: #e59613;
    --ys-primary-dark: #cc840c;
    --ys-primary-soft: #FFF9E6;
    --ys-primary-border: #FDE08B;
    --ys-primary-glow: rgba(255, 169, 24, 0.15);
    --ys-primary-shadow: rgba(255, 169, 24, 0.4);

    /* Neutral Typography & Surface Colors */
    --ys-text-heading: #1e293b;
    --ys-text-title-dark: #0f172a;
    --ys-text-body: #334155;
    --ys-text-muted: #64748b;
    --ys-text-light: #cbd5e1;
    --ys-bg-card: #f1f5f9;
    --ys-bg-white: #ffffff;
    --ys-border: #DBDEE2;
    --ys-border-light: #e2e8f0;

    /* Layout Dimensions */
    --ys-max-width: 1500px;
    --ys-max-width-wide: 1600px;
    --ys-sidebar-width: 400px;
    --ys-grid-gap: 40px;
    --ys-sticky-top: 100px;

    /* Border Radius Scale */
    --ys-radius-sm: 8px;
    --ys-radius-md: 12px;
    --ys-radius-lg: 16px;
    --ys-radius-full: 9999px;

    /* Typography */
    --ys-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --ys-font-size-base: 17px;
    --ys-line-height-base: 1.7;
}


/* ============================================================================
   2. MASTER LAYOUT & WRAPPER CONTAINERS
   ============================================================================ */

/* Universal Inter Font Enforcement on text elements (protects plugin icon fonts) */
.ys-modular-blog-layout,
.ys-modular-blog-layout h1,
.ys-modular-blog-layout h2,
.ys-modular-blog-layout h3,
.ys-modular-blog-layout h4,
.ys-modular-blog-layout h5,
.ys-modular-blog-layout h6,
.ys-modular-blog-layout p,
.ys-modular-blog-layout a:not([class*="icon"]):not([class*="fa"]),
.ys-modular-blog-layout li,
.ys-modular-blog-layout ul,
.ys-modular-blog-layout ol,
.ys-modular-blog-layout span:not([class*="icon"]):not([class*="fa"]):not([class*="sp-eab"]):not([class*="ea-"]),
.ys-modular-blog-layout strong,
.ys-modular-blog-layout b,
.ys-modular-blog-layout em,
.ys-modular-blog-layout blockquote,
.ys-modular-blog-layout button,
.ys-modular-blog-layout input,
.ys-modular-blog-layout select,
.ys-modular-blog-layout textarea,
.ys-modular-blog-layout time,
.ys-modular-blog-layout table,
.ys-modular-blog-layout th,
.ys-modular-blog-layout td,
.ys-modular-blog-layout nav,
.ys-modular-blog-layout aside,
.ys-hero-section,
.blog-content,
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6,
.blog-content p,
.blog-content a:not([class*="icon"]):not([class*="fa"]),
.blog-content li,
.blog-content ul,
.blog-content ol,
.custom-toc,
.custom-toc a,
.ys-pricing-card,
.ys-author-share-box,
.custom-related-posts {
    font-family: var(--ys-font-family) !important;
}


.ys-modular-blog-layout {
    font-family: var(--ys-font-family) !important;
    color: var(--ys-text-body);
    width: 98%;
    max-width: var(--ys-max-width);
    margin: 20px auto 60px auto;
    box-sizing: border-box;
}

.ys-modular-blog-layout *,
.ys-modular-blog-layout *::before,
.ys-modular-blog-layout *::after {
    box-sizing: border-box;
}

/* Ensure Parent Theme / Elementor Wrappers do not constrain or disrupt widths */
body:has(.ys-modular-blog-layout):not([class*=elementor-page-]) .site-main,
body:has(.ys-modular-blog-layout) .page-header .entry-title,
body:has(.ys-modular-blog-layout) .site-footer .footer-inner,
body:has(.ys-modular-blog-layout) .site-header .header-inner {
    width: 98%;
    max-width: var(--ys-max-width);
    margin: 0 auto;
}

.page-content,
.page-content .is-layout-constrained,
.page-content .main-wrapper,
.page-content .custom-grid-layout {
    max-width: 100%;
    width: 100%;
}

/* Bulletproof Reset: Prevent theme .alignwide from injecting -80px negative margins */
.ys-modular-blog-layout .alignwide,
.ys-modular-blog-layout .alignfull,
.ys-modular-blog-layout .custom-grid-layout,
.ys-modular-blog-layout .ys-hero-section,
.ys-modular-blog-layout .custom-related-posts {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ============================================================================
   3. HERO COMPONENT (Idea 1: 60/40 Inverted Power Layout with Ambient Glow)
   ============================================================================ */
.ys-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius-lg);
    padding: 48px 44px;
    margin-bottom: 50px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    align-items: center !important;
    gap: 48px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    font-family: var(--ys-font-family);
}

/* Subtle ambient gold radial glow in the top-right corner */
.ys-hero-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 169, 24, 0.12) 0%, rgba(255, 169, 24, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.ys-hero-content-col {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: center !important;
}

.ys-hero-image-col {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Breadcrumbs Navigation */
.ys-hero-breadcrumbs {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.4;
}

.ys-hero-breadcrumbs,
.ys-hero-breadcrumbs a,
.ys-hero-breadcrumbs span,
.ys-hero-breadcrumbs .ys-bc-sep,
.ys-hero-breadcrumbs .ys-bc-category {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.ys-hero-breadcrumbs a {
    color: var(--ys-text-muted) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

.ys-hero-breadcrumbs a:hover {
    color: var(--ys-text-heading) !important;
    text-decoration: underline !important;
}

.ys-hero-breadcrumbs .ys-bc-category {
    color: var(--ys-text-muted) !important;
    font-weight: 500 !important;
    cursor: default;
    pointer-events: none;
}

.ys-hero-breadcrumbs .ys-bc-sep {
    color: var(--ys-text-light) !important;
    font-size: 11px !important;
    user-select: none;
}

/* Category Badge & Reading Time Row */
.ys-hero-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ys-hero-section .wp-block-post-terms {
    margin: 0;
}

.ys-hero-section .wp-block-post-terms a {
    background-color: var(--ys-primary);
    color: #000000;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    pointer-events: none;
    border-radius: var(--ys-radius-full);
}

.ys-hero-read-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--ys-text-muted);
    background: var(--ys-border-light);
    padding: 3px 12px;
    border-radius: var(--ys-radius-full);
    display: inline-flex;
    align-items: center;
}

/* Post Title (H1) */
.ys-hero-section .wp-block-post-title {
    font-size: 2.45rem;
    font-weight: 700;
    color: var(--ys-text-heading);
    line-height: 1.22;
    margin: 0 0 22px 0;
    letter-spacing: -0.02em;
}

/* Author & Date Bar */
.ys-hero-author-row {
    display: flex;
    align-items: center;
    margin-bottom: 26px;
}

.ys-hero-section .wp-block-post-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.ys-hero-section .wp-block-post-author__avatar img.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ys-bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
}

.wp-block-post-author__meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.wp-block-post-author__by {
    font-size: 11px;
    color: var(--ys-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1;
}

.wp-block-post-author__name-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    line-height: 1;
}

.ys-hero-section .wp-block-post-author__name {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ys-text-heading);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.ys-hero-date-dot {
    color: var(--ys-text-light);
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-shrink: 0;
}

.ys-hero-section .wp-block-post-date {
    margin: 0;
    display: inline-flex;
    align-items: center;
    color: var(--ys-text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Actions & Trust Badge */
.ys-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ys-hero-section .wp-block-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    gap: 14px;
}

.ys-hero-section .wp-block-button {
    margin: 0;
}

.ys-hero-section .wp-block-button:first-child .wp-block-button__link {
    background-color: var(--ys-primary);
    color: #000000;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: var(--ys-radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.ys-hero-section .wp-block-button:first-child .wp-block-button__link:hover {
    background-color: var(--ys-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--ys-primary-glow);
}

.ys-hero-section .wp-block-button:last-child .wp-block-button__link {
    background-color: transparent;
    color: #000000;
    border: 2px solid var(--ys-primary);
    border-radius: var(--ys-radius-sm);
    font-weight: 600;
    padding: 10px 26px;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.ys-hero-section .wp-block-button:last-child .wp-block-button__link:hover {
    background-color: var(--ys-primary);
    transform: translateY(-2px);
}

.ys-hero-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ys-text-muted);
}

.ys-trust-stars {
    color: var(--ys-primary);
    font-size: 14px;
    letter-spacing: 2px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1;
}

.ys-trust-text {
    font-weight: 500;
    white-space: nowrap;
}

/* Floating Featured Image Card (Right 40%) */
.ys-hero-section .wp-block-post-featured-image {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ys-hero-section .wp-block-post-featured-image img {
    border-radius: var(--ys-radius-md);
    border: 4px solid #ffffff;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.ys-hero-section .wp-block-post-featured-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -18px rgba(15, 23, 42, 0.22);
}


/* ============================================================================
   4. TWO-COLUMN GRID SYSTEM (Main Content & Sticky Sidebar)
   ============================================================================ */
.custom-grid-layout {
    display: grid;
    grid-template-columns: 1fr var(--ys-sidebar-width);
    gap: var(--ys-grid-gap);
    align-items: start;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.blog-main-col {
    grid-column: 1;
    grid-row: 1;
    border-radius: var(--ys-radius-lg);
    border: 1px solid var(--ys-border);
    padding: 30px;
    min-width: 0;
    word-wrap: break-word;
    background: var(--ys-bg-white);
}

.blog-right {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: var(--ys-sticky-top);
    height: max-content;
    min-width: 0;
    word-wrap: break-word;
}


/* ============================================================================
   5. POST HIGHLIGHTS (Quick Answer & Key Takeaways)
   ============================================================================ */
.ys-highlights-container {
    margin-bottom: 40px;
}

/* Quick Answer */
.ys-quick-answer-wrapper {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--ys-primary, #FFA918);
}

.ys-quick-answer-wrapper p {
    font-size: var(--ys-font-size-base);
    line-height: var(--ys-line-height-base);
    color: var(--ys-text-body);
    margin: 0;
}

.ys-quick-answer-wrapper p strong {
    color: var(--ys-text-heading);
    font-weight: 700;
}

.ys-quick-answer-wrapper a {
    color: var(--ys-primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ys-quick-answer-wrapper a:hover {
    color: var(--ys-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Key Takeaways Styled Box */
.ys-key-takeaways {
    background-color: var(--ys-primary-soft);
    border: 1px solid var(--ys-primary-border);
    border-radius: var(--ys-radius-md);
    padding: 35px 35px 25px 35px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ys-key-takeaways h2,
.blog-content .ys-key-takeaways h2 {
    color: var(--ys-text-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 18px;
    line-height: 1.25em;
}

.ys-key-takeaways ul {
    margin: 0;
    padding-left: 20px;
}

.ys-key-takeaways li {
    color: var(--ys-text-body);
    font-size: var(--ys-font-size-base);
    line-height: var(--ys-line-height-base);
    margin-bottom: 12px;
}

.ys-key-takeaways li:last-child {
    margin-bottom: 0;
}

.ys-key-takeaways li a {
    color: var(--ys-primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ys-key-takeaways li a:hover {
    color: var(--ys-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================================
   6. TABLE OF CONTENTS COMPONENT
   ============================================================================ */
.custom-toc {
    font-size: 14px;
    overscroll-behavior: contain;
    border: 1px solid var(--ys-border);
    background: var(--ys-bg-card);
    padding: 24px;
    border-radius: var(--ys-radius-md);
    margin-bottom: 40px;
    width: 100%;
}

.custom-toc .toc-title {
    font-family: var(--ys-font-family);
    font-weight: 700;
    font-size: 24px;
    color: var(--ys-text-heading);
    margin-bottom: 18px;
}

.custom-toc .toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    max-height: 480px;
    overflow-y: auto;
}

.custom-toc .toc-h2 {
    font-family: var(--ys-font-family);
    margin-top: 12px;
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.custom-toc .toc-h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    background: var(--ys-primary);
    border-radius: 50%;
}

.custom-toc .toc-list li:first-child .toc-h2 {
    margin-top: 0;
}

.custom-toc .toc-list li:last-child,
.custom-toc .toc-list li:last-child .toc-h2 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.custom-toc a {
    text-decoration: none;
    font-weight: 500;
    color: var(--ys-text-heading);
    transition: color 0.2s ease;
}

.custom-toc a.active,
.custom-toc a:hover {
    color: var(--ys-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500 !important;
}

/* Custom Scrollbar */
.custom-toc .toc-list::-webkit-scrollbar {
    width: 5px;
}

.custom-toc .toc-list::-webkit-scrollbar-thumb {
    background: var(--ys-primary);
    border-radius: 6px;
}

.custom-toc .toc-list::-webkit-scrollbar-track {
    background: var(--ys-border-light);
    border-radius: 6px;
}


/* ============================================================================
   7. ARTICLE BODY TYPOGRAPHY, TABLES & ACCORDIONS
   ============================================================================ */
.blog-content {
    overflow: hidden;
    color: var(--ys-text-body);
    font-size: var(--ys-font-size-base);
    line-height: var(--ys-line-height-base);
}

/* Precise 100px offset for TOC jump scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px !important;
}

[id^="toc-heading-"],
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6,
.blog-content [id],
.blog-main-col [id] {
    scroll-margin-top: 100px !important;
}

.blog-content h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    color: var(--ys-text-heading);
    margin-top: 45px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.4rem; /* 22.4px */
    font-weight: 700;
    color: var(--ys-text-heading);
    margin-top: 35px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.blog-content h4 {
    font-size: 1.15rem; /* 18.4px */
    font-weight: 600;
    color: var(--ys-text-heading);
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.blog-content h5 {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: var(--ys-text-heading);
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content h6 {
    font-size: 0.9rem; /* 14.4px */
    font-weight: 600;
    color: var(--ys-text-muted);
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    font-size: var(--ys-font-size-base);
    line-height: var(--ys-line-height-base);
    margin-bottom: 24px;
}

.blog-content ul,
.blog-content ol {
    font-size: var(--ys-font-size-base);
    line-height: var(--ys-line-height-base);
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content strong,
.blog-content b {
    font-weight: 600;
    color: var(--ys-text-heading);
}

.blog-content a:not(.btn):not(.wp-block-button__link):not(.custom-related-link):not(.custom-toc a):not(.ys-author-share-box a) {
    color: var(--ys-primary-dark);
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.2s ease;
}

.blog-content a:not(.btn):not(.wp-block-button__link):not(.custom-related-link):not(.custom-toc a):not(.ys-author-share-box a):hover {
    color: var(--ys-primary-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: inherit;
}

.blog-content img {
    border-radius: var(--ys-radius-md);
    border: 1px solid var(--ys-border);
    max-width: 100%;
    height: auto;
}

/* Stacked CTA Component */
.ys-custom-cta-stacked {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                url('https://ysleadgen.com/wp-content/uploads/2026/05/ChatGPT-Image-Jul-14-2025-09_02_46-PM-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--ys-radius-md);
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    margin: 2rem auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ys-custom-cta-stacked .ys-cta-heading {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.ys-custom-cta-stacked .ys-cta-desc {
    color: var(--ys-border-light);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: center;
}

.ys-custom-cta-stacked .ys-cta-btn {
    margin-top: .8rem;
}

.blog-content .ys-custom-cta-stacked .ys-cta-btn .wp-block-button__link {
    background-color: #ffffff;
    color: #000000;
    border-radius: var(--ys-radius-sm);
    padding: 12px 32px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.blog-content .ys-custom-cta-stacked .ys-cta-btn .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px var(--ys-primary-shadow);
}

/* Tables Formatting */
.blog-content .wp-block-table {
    overflow-x: auto !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 30px !important;
    border-radius: var(--ys-radius-md) !important;
    border: 1px solid var(--ys-border-light) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02) !important;
    scrollbar-width: thin;
    scrollbar-color: var(--ys-primary) var(--ys-bg-card);
}

.blog-content .wp-block-table::-webkit-scrollbar {
    height: 6px;
}

.blog-content .wp-block-table::-webkit-scrollbar-track {
    background: var(--ys-bg-card);
    border-radius: 0 0 var(--ys-radius-md) var(--ys-radius-md);
}

.blog-content .wp-block-table::-webkit-scrollbar-thumb {
    background-color: var(--ys-primary);
    border-radius: 4px;
}

.blog-content .wp-block-table::-webkit-scrollbar-thumb:hover {
    background-color: var(--ys-primary-hover);
}

.blog-content table,
.blog-content table.has-fixed-layout {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 800px !important;
    border-collapse: collapse !important;
    font-size: 15px !important;
    background: var(--ys-bg-white) !important;
    margin: 0 !important;
    border: none !important;
}

.blog-content table th,
.blog-content table td {
    min-width: 180px !important;
    width: 180px !important;
    padding: 14px 18px !important;
    color: var(--ys-text-body) !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    border-top: none !important;
    border-bottom: 1px solid var(--ys-border-light) !important;
    border-right: 1px solid var(--ys-border-light) !important;
    border-left: none !important;
    vertical-align: middle !important;
    text-align: left !important;
}

.blog-content table th:last-child,
.blog-content table td:last-child {
    border-right: none !important;
}

.blog-content table thead tr th,
.blog-content table > tbody:first-child > tr:first-child th,
.blog-content table > tbody:first-child > tr:first-child td {
    background-color: var(--ys-primary) !important;
    color: #000000 !important;
    font-weight: 600 !important;
    border: none !important;
    white-space: nowrap !important;
    min-width: 180px !important;
}

.blog-content table thead tr strong,
.blog-content table > tbody:first-child > tr:first-child strong {
    color: #000000 !important;
}

.blog-content table tbody tr td {
    background-color: var(--ys-bg-white) !important;
}

.blog-content table tr:last-child td {
    border-bottom: none !important;
}

/* ============================================================================
   Accordion / FAQ Native Full Width Styles
   ============================================================================ */
.blog-content .sp-easy-accordion-block,
.blog-content .sp-eab-wrapper,
.blog-content .sp-eab-accordion,
.blog-content .sp-easy-accordion,
.blog-content [id^="sp_easy_accordion-"],
.blog-content [id^="sp-eab-"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.blog-content .sp-easy-accordion-block h3.sp-eab-accordion-heading {
    margin: 0 !important;
}

.blog-content .sp-eab-accordion-item {
    width: 100% !important;
    display: block !important;
    margin-bottom: 12px;
}

.blog-content .sp-easy-accordion .ea-header a,
.blog-content .sp-eab-accordion-title-text {
    color: var(--ys-text-heading) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.blog-content .sp-eab-accordion-body p {
    font-size: var(--ys-font-size-base);
    line-height: var(--ys-line-height-base);
    margin-bottom: 16px;
}

.blog-content .sp-eab-accordion-body p:last-child {
    margin-bottom: 0;
}

.comments-area,
.post-tags {
    display: none;
}


/* ============================================================================
   8. DYNAMIC PRICING SIDEBAR CARD (Option 3: Live Feature Matrix Switcher)
   ============================================================================ */
.ys-pricing-card.ys-pricing-matrix {
    font-family: var(--ys-font-family);
    background: var(--ys-bg-white);
    border-radius: var(--ys-radius-lg);
    padding: 26px 24px;
    box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--ys-border);
    color: var(--ys-text-body);
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* 1. Header */
.ys-matrix-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.ys-pricing-card .card-title {
    font-family: var(--ys-font-family);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--ys-text-title-dark);
    line-height: 1.3;
}

.ys-deal-pill {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--card-bg-selected, #eff6ff);
    color: var(--card-primary, #2563EB);
    padding: 3px 8px;
    border-radius: var(--ys-radius-full);
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

/* 2. Interactive Segmented Switcher Tabs */
.ys-matrix-tabs {
    display: grid;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--ys-radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--ys-border-light);
}

.ys-matrix-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 9px 4px;
    border: none;
    background: transparent;
    border-radius: var(--ys-radius-sm);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
    font-family: var(--ys-font-family);
}

.ys-matrix-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

.ys-matrix-tab.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.ys-matrix-tab .tab-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ys-text-heading);
    line-height: 1.1;
}

.ys-matrix-tab .tab-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--ys-text-muted);
    line-height: 1.1;
}

.ys-matrix-tab.active .tab-name {
    color: var(--card-primary, #2563EB);
}

.ys-matrix-tab.active .tab-price {
    color: var(--ys-text-title-dark);
}

.tab-popular-badge {
    position: absolute;
    top: -9px;
    right: 50%;
    transform: translateX(50%);
    background: var(--card-primary, #2563EB);
    color: var(--card-btn-text, #ffffff);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: var(--ys-radius-full);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* 3. Hero Price & License Container */
.ys-matrix-price-container {
    margin-bottom: 18px;
}

.ys-tier-price-panel {
    display: none;
}

.ys-tier-price-panel.active {
    display: block;
    animation: ysFadeIn 0.2s ease;
}

.ys-price-hero {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ys-hero-amount {
    font-size: 34px;
    font-weight: 800;
    color: var(--ys-text-title-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.ys-hero-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--ys-text-muted);
}

.ys-hero-license {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--card-primary, #2563EB);
    margin-top: 6px;
}

.ys-license-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* 4. Live Feature Checklist Matrix */
.ys-matrix-features-wrapper {
    margin-bottom: 22px;
    border-top: 1px dashed var(--ys-border-light);
    padding-top: 16px;
}

.ys-tier-features-panel {
    display: none;
}

.ys-tier-features-panel.active {
    display: block;
    animation: ysFadeIn 0.2s ease;
}

.ys-features-heading {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--ys-text-muted);
    margin-bottom: 12px;
}

.ys-matrix-checklist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ys-matrix-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ys-text-body);
    margin: 0 !important;
}

.ys-check-icon {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 5. Action Buttons */
.ys-pricing-card .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ys-pricing-card .btn {
    width: 100%;
    border-radius: var(--ys-radius-sm);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ys-matrix-buy-btn {
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    background-color: var(--card-primary, #2563EB);
    color: var(--card-btn-text, #ffffff) !important;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.12);
    gap: 8px;
}

.ys-matrix-buy-btn:hover {
    background-color: var(--card-primary-hover, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.16);
    color: var(--card-btn-text, #ffffff) !important;
}

.ys-btn-arrow {
    transition: transform 0.2s ease;
}

.ys-matrix-buy-btn:hover .ys-btn-arrow {
    transform: translateX(3px);
}

.ys-pricing-card .btn-outline {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    background-color: transparent;
    color: var(--ys-text-title-dark);
    border: 1px solid var(--ys-border);
}

.ys-pricing-card .btn-outline:hover {
    background-color: var(--ys-bg-card);
    border-color: var(--ys-text-muted);
}

/* 6. Helpful Links */
.ys-pricing-card .helpful-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 12px;
}

.ys-pricing-card .helpful-links a {
    font-size: 12px;
    color: var(--ys-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ys-pricing-card .helpful-links a:hover {
    color: var(--ys-text-heading);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ys-link-sep {
    color: var(--ys-border);
    user-select: none;
}

/* 7. Money-Back Guarantee */
.ys-matrix-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px dashed var(--ys-border-light);
    font-size: 12px;
    color: var(--ys-text-muted);
    text-align: center;
}

.ys-matrix-guarantee svg {
    color: var(--card-primary, #2563EB);
    flex-shrink: 0;
}

/* 8. Footer Help */
.ys-pricing-card .footer-help {
    margin-top: 12px !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--ys-text-muted) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.ys-pricing-card .footer-help span {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--ys-text-muted) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ys-pricing-card .footer-help a {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--card-primary, #2563EB) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    font-weight: 600 !important;
    display: inline !important;
    vertical-align: baseline !important;
    transition: color 0.2s ease !important;
}

.ys-pricing-card .footer-help a:hover {
    color: var(--card-primary-hover, #1d4ed8) !important;
    text-decoration: underline !important;
}

@keyframes ysFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================================
   9. AUTHOR PROFILE & SOCIAL SHARE (Concept C: Founder's Takeaway Card)
   ============================================================================ */
.ys-author-share-box.ys-author-takeaway-card {
    margin-top: 55px;
    padding: 34px 38px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius-lg);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    font-family: var(--ys-font-family);
    position: relative;
    overflow: hidden;
}

/* Ambient gradient top border */
.ys-author-share-box.ys-author-takeaway-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ys-primary) 0%, #fbbf24 50%, var(--ys-primary-hover) 100%);
}

/* 1. Top Section: Founder's Perspective Quote */
.ys-author-takeaway-header {
    margin-bottom: 0;
}

.ys-takeaway-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ys-primary-soft);
    color: var(--ys-primary-dark);
    border: 1px solid var(--ys-primary-border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--ys-radius-full);
    margin-bottom: 12px;
}

.ys-takeaway-badge svg {
    color: var(--ys-primary-dark);
}

.ys-takeaway-quote {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 16.5px;
    line-height: 1.6;
    font-style: italic;
    color: var(--ys-text-heading);
    font-weight: 500;
}

/* Subtle separator divider */
.ys-author-divider {
    height: 1px;
    background: var(--ys-border-light);
    margin: 22px 0;
    width: 100%;
}

/* 2. Bottom Row: Author Meta & Action Bar */
.ys-author-footer-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.ys-author-meta-block {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.ys-author-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.ys-author-avatar-ring img.avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--ys-primary-border);
    display: block;
    margin: 0;
}

.ys-author-credentials {
    flex: 1 1 auto;
    min-width: 0;
}

.ys-author-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.ys-author-name-row .ys-author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ys-text-heading);
    margin: 0;
}

.ys-author-name-row .ys-author-role-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--ys-border-light);
    color: var(--ys-text-muted);
    padding: 2px 9px;
    border-radius: var(--ys-radius-full);
    display: inline-block;
}

.ys-author-credentials .ys-author-bio-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ys-text-muted);
    margin: 0;
}

/* Actions Block (Share & Copy) placed below the author */
.ys-author-actions-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px dashed var(--ys-border-light);
    width: 100%;
}

.ys-share-hint {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--ys-text-muted);
    margin: 0;
}

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

/* 1-Click Copy Link Button (Fixed width 115px to prevent any layout shift) */
.ys-copy-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 115px;
    height: 38px;
    background: #ffffff !important;
    border: 1px solid var(--ys-border) !important;
    border-radius: var(--ys-radius-full) !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--ys-text-heading) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    outline: none !important;
    -webkit-appearance: none;
}

/* Neutralize WordPress/Elementor default pink or red focus outlines */
.ys-copy-link-btn:focus,
.ys-copy-link-btn:focus-visible,
.ys-copy-link-btn:active {
    outline: none !important;
    box-shadow: 0 0 0 2px var(--ys-primary-glow) !important;
    border-color: var(--ys-primary) !important;
    color: var(--ys-text-heading) !important;
    background: #ffffff !important;
}

.ys-copy-link-btn:hover {
    border-color: var(--ys-primary) !important;
    background: var(--ys-primary-soft) !important;
    color: var(--ys-primary-dark) !important;
    transform: translateY(-1px);
}

.ys-copy-link-btn.copied,
.ys-copy-link-btn.copied:focus,
.ys-copy-link-btn.copied:active {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #059669 !important;
    box-shadow: none !important;
}

.ys-share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 1px solid var(--ys-border) !important;
    color: var(--ys-text-heading) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    outline: none !important;
}

.ys-share-icon-btn:hover {
    background: var(--ys-primary) !important;
    border-color: var(--ys-primary) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--ys-primary-glow);
}


/* ============================================================================
   10. RELATED POSTS 3-COLUMN GRID
   ============================================================================ */
.custom-related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--ys-border-light);
}

.custom-related-title {
    font-family: var(--ys-font-family);
    font-size: 26px;
    margin-bottom: 28px;
    font-weight: 700;
    color: var(--ys-text-heading);
    position: relative;
    display: inline-block;
}

.custom-related-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background-color: var(--ys-primary);
    border-radius: 2px;
}

.custom-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-related-card {
    border-radius: var(--ys-radius-md);
    overflow: hidden;
    background: var(--ys-bg-white);
    border: 1px solid var(--ys-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px var(--ys-primary-glow);
    border-color: var(--ys-primary);
}

.custom-related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-related-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--ys-bg-card);
}

.custom-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.custom-related-card:hover .custom-related-image img {
    transform: scale(1.05);
}

.custom-related-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--ys-primary);
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--ys-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.custom-related-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.custom-related-date {
    font-size: 13px;
    color: var(--ys-text-muted);
    margin-bottom: 8px;
    display: block;
}

.custom-related-heading {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ys-text-heading);
    margin: 0;
    transition: color 0.2s ease;
}

.custom-related-card:hover .custom-related-heading {
    color: var(--ys-primary-dark);
}


/* ============================================================================
   11. UNIFIED RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ============================================================================ */

/* Large Desktop (> 1920px) */
@media (min-width: 1920px) {
    .ys-modular-blog-layout,
    body:has(.ys-modular-blog-layout):not([class*=elementor-page-]) .site-main,
    body:has(.ys-modular-blog-layout) .page-header .entry-title,
    body:has(.ys-modular-blog-layout) .site-footer .footer-inner,
    body:has(.ys-modular-blog-layout) .site-header .header-inner {
        max-width: var(--ys-max-width-wide);
    }

    .ys-hero-section .wp-block-post-title {
        font-size: 2.75rem;
        line-height: 1.2;
    }
}

/* Tablet & Mobile (< 1024px) */
@media (max-width: 1024px) {
    /* Two-column layout collapses to flex column: main content first, sticky sidebar drops below */
    .custom-grid-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
        width: 100% !important;
    }

    /* Content on top (Order 1) */
    .blog-main-col {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        padding: 26px 20px !important;
        box-sizing: border-box !important;
    }

    /* Sidebar drops below content (Order 2) */
    .blog-right {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
        position: static !important;
        top: auto !important;
        height: auto !important;
        margin-top: 20px !important;
        box-sizing: border-box !important;
    }

    /* Hero section: stacks to 1-column with editorial text first, featured image below */
    .ys-hero-section {
        display: flex !important;
        flex-direction: column !important;
        padding: 32px 22px !important;
        gap: 24px !important;
        width: 100% !important;
    }

    .ys-hero-content-col {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ys-hero-image-col {
        order: 2 !important;
        width: 100% !important;
        max-width: 600px;
        margin: 10px auto 0 auto !important;
    }

    .ys-hero-section .wp-block-post-title {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .blog-content h2 {
        font-size: 1.65rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }

    .ys-key-takeaways h2,
    .blog-content .ys-key-takeaways h2 {
        font-size: 1.35rem;
    }

    .ys-pricing-card {
        padding: 26px 22px;
    }

    /* Author Box Tablet Adjustments */
    .ys-author-share-box.ys-author-takeaway-card {
        padding: 26px 22px !important;
        margin-top: 45px !important;
    }

    .ys-author-footer-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 18px !important;
    }

    .ys-author-meta-block {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .ys-author-actions-block {
        width: 100% !important;
        align-items: flex-start !important;
        padding-top: 14px !important;
        border-top: 1px dashed var(--ys-border-light) !important;
    }

    .ys-share-button-group {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    /* Tablet: Exactly 2 cards in 1 row */
    .custom-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    .custom-related-card:nth-child(3) {
        display: none !important; /* Hide 3rd card on tablet for clean 2-card layout */
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
    .ys-modular-blog-layout {
        width: 100% !important;
        padding: 0 14px !important;
        margin: 15px auto 40px auto !important;
        box-sizing: border-box !important;
    }

    /* Hero Section Mobile */
    .ys-hero-section {
        padding: 22px 16px !important;
        border-radius: var(--ys-radius-md) !important;
        margin-bottom: 24px !important;
        gap: 18px !important;
    }

    .ys-hero-content-col {
        order: 1 !important;
    }

    .ys-hero-image-col {
        order: 2 !important;
        max-width: 100% !important;
        margin: 6px auto 0 auto !important;
    }

    .ys-hero-section .wp-block-post-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .ys-hero-author-row {
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    .ys-hero-section .wp-block-post-author__avatar img.avatar {
        width: 42px !important;
        height: 42px !important;
    }

    .wp-block-post-author__name-row {
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .ys-hero-section .wp-block-post-author__name {
        font-size: 12.5px !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
    }

    .ys-hero-section .wp-block-post-date {
        font-size: 12px !important;
        line-height: 1 !important;
    }

    .ys-hero-date-dot {
        font-size: 12px !important;
        line-height: 1 !important;
    }

    .ys-hero-actions {
        gap: 12px !important;
        width: 100% !important;
    }

    .ys-hero-section .wp-block-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .ys-hero-section .wp-block-button,
    .ys-hero-section .wp-block-button .wp-block-button__link {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .ys-hero-trust-badge {
        font-size: 11.5px !important;
        gap: 6px !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .ys-trust-stars {
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .ys-trust-text {
        white-space: nowrap !important;
    }

    /* Main Content Column Mobile */
    .blog-main-col {
        padding: 18px 14px !important;
        border-radius: var(--ys-radius-md) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .blog-right {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 24px !important;
    }

    .ys-key-takeaways {
        padding: 18px 14px !important;
        margin-bottom: 24px !important;
        border-radius: var(--ys-radius-md) !important;
    }

    .ys-key-takeaways h2,
    .blog-content .ys-key-takeaways h2 {
        font-size: 1.25rem !important;
    }

    .custom-toc {
        padding: 18px 14px !important;
        margin-bottom: 24px !important;
        border-radius: var(--ys-radius-md) !important;
    }

    .custom-toc .toc-title {
        font-size: 19px !important;
    }

    .custom-toc .toc-list {
        max-height: 300px !important;
    }

    .blog-content h2 {
        font-size: 1.4rem !important;
        margin-top: 28px !important;
        margin-bottom: 14px !important;
    }

    .blog-content h3 {
        font-size: 1.2rem !important;
        margin-top: 24px !important;
        margin-bottom: 12px !important;
    }

    .blog-content h4 {
        font-size: 1.08rem !important;
    }

    .blog-content p,
    .blog-content ul,
    .blog-content ol,
    .ys-key-takeaways li,
    .blog-content .sp-eab-accordion-body p {
        font-size: 15.5px !important;
        line-height: 1.65 !important;
    }

    .ys-pricing-card.ys-pricing-matrix {
        padding: 20px 16px !important;
        border-radius: var(--ys-radius-md) !important;
    }

    .ys-pricing-card .card-title {
        font-size: 18px !important;
        margin: 0 !important;
    }

    .ys-hero-amount {
        font-size: 28px !important;
    }

    .ys-matrix-checklist li {
        font-size: 13px !important;
    }

    /* Author Box Mobile */
    .ys-author-share-box.ys-author-takeaway-card {
        padding: 20px 14px !important;
        border-radius: var(--ys-radius-md) !important;
        margin-top: 35px !important;
    }

    .ys-takeaway-badge {
        font-size: 10.5px !important;
        padding: 3px 10px !important;
    }

    .ys-takeaway-quote {
        font-size: 14.5px !important;
        line-height: 1.55 !important;
    }

    .ys-author-footer-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .ys-author-meta-block {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .ys-author-avatar-ring img.avatar {
        width: 48px !important;
        height: 48px !important;
    }

    .ys-author-credentials {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .ys-author-name-row {
        gap: 6px !important;
        margin-bottom: 3px !important;
    }

    .ys-author-name-row .ys-author-name {
        font-size: 14.5px !important;
    }

    .ys-author-name-row .ys-author-role-pill {
        font-size: 10.5px !important;
        padding: 2px 7px !important;
    }

    .ys-author-credentials .ys-author-bio-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .ys-author-actions-block {
        width: 100% !important;
        align-items: flex-start !important;
        padding-top: 12px !important;
        border-top: 1px dashed var(--ys-border-light) !important;
    }

    .ys-share-hint {
        font-size: 10.5px !important;
    }

    .ys-share-button-group {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .ys-copy-link-btn {
        width: 105px !important;
        height: 36px !important;
        font-size: 12px !important;
    }

    .ys-share-icon-btn {
        width: 36px !important;
        height: 36px !important;
    }

    /* Related Posts Mobile */
    .custom-related-title {
        font-size: 20px !important;
        margin-bottom: 18px !important;
    }

    .custom-related-heading {
        font-size: 15px !important;
    }

    /* Mobile: 1 column, all 3 cards stacked in 3 rows */
    .custom-related-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .custom-related-card:nth-child(3) {
        display: flex !important; /* Show 3rd card on mobile in 3rd row */
    }

    .custom-related-image {
        height: 190px !important;
    }
}
