/* ================================
   Blog Styles
   ================================ */

/* Blog Hero - sits below the standard fixed header */
.blog-hero {
    padding: 7rem 0 4rem;
    background: var(--gradient-dark);
    text-align: center;
}

.blog-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero__title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.blog-hero__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Blog Filter */
.blog-filter {
    padding: var(--space-xl) 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.blog-filter__tabs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    background: var(--gray-200);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Featured Post */
.blog-featured {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-post__image {
    position: relative;
    min-height: 400px;
}

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

.post-category {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.featured-post__content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.post-date,
.post-read-time {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.featured-post__title {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.featured-post__title a {
    color: var(--dark);
    transition: color var(--transition-fast);
}

.featured-post__title a:hover {
    color: var(--primary);
}

.featured-post__excerpt {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.post-author .author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
}

.post-author .author-info {
    display: flex;
    flex-direction: column;
}

.post-author .author-name {
    font-weight: 600;
    color: var(--dark);
}

.post-author .author-role {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Blog Grid */
.blog-grid-section {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.blog-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card__thumb {
    width: 100%;
    height: 100%;
    border-radius: 0;
    transition: transform var(--transition-slow);
}

.blog-card__thumb--featured {
    border-radius: 0;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__image .post-category {
    top: var(--space-md);
    left: var(--space-md);
}

.blog-card__content {
    padding: var(--space-lg);
}

.blog-card__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-card__title a {
    color: var(--dark);
    transition: color var(--transition-fast);
}

.blog-card__title a:hover {
    color: var(--primary);
}

.blog-card__excerpt {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: var(--space-sm);
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-number:hover {
    background: var(--gray-100);
}

.page-number.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Newsletter */
.blog-newsletter {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
}

.newsletter-form input {
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 1rem;
    width: 300px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

/* Blog Post Page Styles */
.blog-post {
    padding-top: 0;
    background: var(--white);
    width: 100%;
}

/* Ensure blog page body has white background */
.blog-page {
    background: var(--white);
    overflow-x: hidden;
}

.blog-post__header {
    padding: 10rem 0 var(--space-3xl);
    background: var(--gradient-dark);
    text-align: center;
    width: 100%;
}

.blog-post__header .container {
    max-width: 1000px;
    padding: 0 var(--container-padding);
}

.blog-post__category {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.blog-post__title {
    color: var(--white);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.blog-post__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.blog-post__meta .post-author {
    color: var(--white);
}

.blog-post__meta .author-avatar {
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.blog-post__meta .author-name {
    color: var(--white);
}

.blog-post__meta .author-role {
    color: rgba(255, 255, 255, 0.7);
}

.blog-post__meta .post-date,
.blog-post__meta .post-read-time {
    color: rgba(255, 255, 255, 0.7);
}

.blog-post__content {
    padding: var(--space-3xl) 0;
    background: var(--white);
    width: 100%;
}

.blog-post__content .container {
    max-width: 900px;
    padding: 0 var(--container-padding);
}

/* ============================================================
   BLOG POST BODY TYPOGRAPHY — readable, well-spaced article rhythm
   ============================================================ */

.blog-post__body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

/* Headings — plain hierarchy without accent bars */
.blog-post__body h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-md);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.blog-post__body h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.blog-post__body h4 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

/* Paragraphs */
.blog-post__body p {
    margin: 0 0 var(--space-lg);
    line-height: 1.8;
}

.blog-post__body p:last-child {
    margin-bottom: 0;
}

/* Inline emphasis */
.blog-post__body strong,
.blog-post__body b {
    color: var(--dark);
    font-weight: 700;
}

/* ===== Quick Takeaway / Key Takeaways aside =====
   Left-floated callout box. Body text wraps around it on desktop; on
   smaller screens it stacks above the content as a regular block. */
.blog-post__body .blog-key-takeaways {
    float: left;
    width: 320px;
    max-width: 100%;
    margin: 0 32px 24px 0;
    padding: 24px 26px;
    background: #f8fafc;
    border-left: 4px solid #E63946;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.blog-post__body .blog-key-takeaways__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.blog-post__body .blog-key-takeaways__list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}
.blog-post__body .blog-key-takeaways__list li {
    margin: 0 0 10px;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1f2937;
}
.blog-post__body .blog-key-takeaways__list li:last-child { margin-bottom: 0; }

/* Image figure wrapper — centers the image and gives consistent spacing.
   Replaces the old <p><img></p> pattern carried over from Odoo. */
.blog-post__body .blog-figure {
    margin: 28px auto;
    text-align: center;
}
.blog-post__body .blog-figure img,
.blog-post__body .blog-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 10px;
}

/* On narrow screens the floated aside becomes a stacked block so the
   takeaways aren't squeezed and the body text doesn't get crammed. */
@media (max-width: 768px) {
    .blog-post__body .blog-key-takeaways {
        float: none;
        width: 100%;
        margin: 0 0 24px;
    }
}

.blog-post__body em,
.blog-post__body i {
    color: var(--gray-800, #374151);
}

/* Inline links */
.blog-post__body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(228, 57, 70, 0.4);
    transition: color 0.2s, text-decoration-color 0.2s;
}
.blog-post__body a:hover {
    color: #b91220;
    text-decoration-color: #b91220;
}

/* ----------------------------------------------------------------
   LISTS — restore bullets (defeats the global ul {list-style:none})
   and add brand-colored markers + breathing room
   ---------------------------------------------------------------- */
.blog-post__body ul,
.blog-post__body ol {
    margin: 0 0 var(--space-xl) 0;
    padding-left: 1.6rem;
    list-style-position: outside;
}

.blog-post__body ul {
    list-style: none;  /* we render custom markers via ::marker on li */
    padding-left: 0;
}

.blog-post__body ul > li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.75;
}
.blog-post__body ul > li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #b91220);
    box-shadow: 0 1px 4px rgba(228, 57, 70, 0.35);
}

.blog-post__body ol {
    list-style: none;
    padding-left: 0;
    counter-reset: blog-ol;
}

.blog-post__body ol > li {
    counter-increment: blog-ol;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.75;
}
.blog-post__body ol > li::before {
    content: counter(blog-ol);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, var(--primary), #b91220);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(228, 57, 70, 0.25);
    line-height: 1;
}

/* Nested lists — indent and use lighter markers */
.blog-post__body li ul,
.blog-post__body li ol {
    margin: 0.65rem 0 0;
}

.blog-post__body li ul > li::before {
    background: var(--gray-400);
    box-shadow: none;
    width: 6px;
    height: 6px;
    top: 0.78em;
}

/* ----------------------------------------------------------------
   BLOCKQUOTE — branded callout with decorative quote mark
   ---------------------------------------------------------------- */
.blog-post__body blockquote {
    position: relative;
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) var(--space-2xl) var(--space-xl) calc(var(--space-2xl) + 1.25rem);
    background: linear-gradient(135deg, #fef9f9, #fff);
    border-left: 5px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 1.18rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--gray-700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.blog-post__body blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.15em;
    left: 0.65rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-style: normal;
    color: rgba(228, 57, 70, 0.18);
    line-height: 1;
    pointer-events: none;
}
.blog-post__body blockquote p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   CODE blocks
   ---------------------------------------------------------------- */
.blog-post__body code {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    background: var(--gray-100);
    color: var(--primary);
    padding: 0.15em 0.45em;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.blog-post__body pre {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    line-height: 1.6;
    font-size: 0.9rem;
}

.blog-post__body pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #e5e7eb;
    font-size: inherit;
}

/* ----------------------------------------------------------------
   IMAGES — consistent rounded display, optional captions via <figure>
   ---------------------------------------------------------------- */
.blog-post__body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blog-post__body figure {
    margin: var(--space-2xl) 0;
    text-align: center;
}
.blog-post__body figure img {
    margin: 0 auto var(--space-sm);
}
.blog-post__body figcaption {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-style: italic;
}

/* ----------------------------------------------------------------
   TABLES
   ---------------------------------------------------------------- */
.blog-post__body table {
    width: 100%;
    margin: var(--space-xl) 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.blog-post__body thead {
    background: linear-gradient(135deg, var(--dark), #1a2233);
    color: var(--white);
}
.blog-post__body th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-post__body td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}
.blog-post__body tbody tr:nth-child(even) {
    background: var(--gray-50, #fafafa);
}
.blog-post__body tbody tr:last-child td {
    border-bottom: none;
}

/* ----------------------------------------------------------------
   HR — section divider
   ---------------------------------------------------------------- */
.blog-post__body hr {
    margin: var(--space-2xl) auto;
    width: 100px;
    height: 3px;
    border: none;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), #4361ee);
    opacity: 0.5;
}

/* ----------------------------------------------------------------
   FIRST PARAGRAPH — subtle lead style for the article opening
   ---------------------------------------------------------------- */
.blog-post__body > p:first-child {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--gray-800, #1f2937);
    font-weight: 500;
}

/* ----------------------------------------------------------------
   MOBILE refinements
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .blog-post__body { font-size: 1.02rem; line-height: 1.75; }
    .blog-post__body h2 { padding-left: 0.85rem; }
    .blog-post__body h2::before { width: 3px; }
    .blog-post__body ul > li,
    .blog-post__body ol > li { padding-left: 1.5rem; }
    .blog-post__body ol > li::before { width: 1.5rem; height: 1.5rem; font-size: 0.8rem; }
    .blog-post__body blockquote {
        padding: var(--space-lg);
        font-size: 1.05rem;
    }
    .blog-post__body blockquote::before { font-size: 3rem; }
}

/* Related Posts */
.related-posts {
    padding: var(--space-3xl) 0;
    background: var(--gray-100);
}

.related-posts__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Responsive Blog Styles */

/* Large screens - full width usage */
@media (min-width: 1200px) {
    .blog-post__header .container {
        max-width: 1100px;
    }

    .blog-post__content .container {
        max-width: 960px;
    }

    .related-posts .container {
        max-width: var(--container-max);
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-post__header {
        padding: 9rem 0 var(--space-2xl);
    }

    .blog-post__content .container {
        max-width: 100%;
        padding: 0 var(--space-xl);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 8rem 0 3rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-post__image {
        min-height: 250px;
    }

    .featured-post__content {
        padding: var(--space-lg);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content p {
        max-width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

    .blog-pagination {
        flex-wrap: wrap;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .blog-filter__tabs {
        justify-content: flex-start;
    }

    /* Blog Post Page - Tablet */
    .blog-post__header {
        padding: 8rem 0 var(--space-xl);
    }

    .blog-post__header .container {
        padding: 0 var(--space-lg);
    }

    .blog-post__title {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
    }

    .blog-post__meta {
        flex-direction: column;
        gap: var(--space-md);
    }

    .blog-post__meta .post-author {
        margin-bottom: var(--space-sm);
    }

    .blog-post__content {
        padding: var(--space-2xl) 0;
    }

    .blog-post__content .container {
        padding: 0 var(--space-lg);
    }

    .blog-post__body {
        font-size: 1rem;
    }

    .blog-post__body h2 {
        font-size: 1.5rem;
    }

    .blog-post__body h3 {
        font-size: 1.25rem;
    }

    .blog-post__body blockquote {
        padding: var(--space-md) var(--space-lg);
        margin: var(--space-lg) 0;
    }

    .blog-post__body ul,
    .blog-post__body ol {
        padding-left: var(--space-lg);
    }

    .related-posts {
        padding: var(--space-2xl) 0;
    }

    .related-posts__header {
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 6rem 0 2rem;
    }

    .blog-hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    /* Blog Post Page - Mobile */
    .blog-post__header {
        padding: 7rem 0 var(--space-lg);
    }

    .blog-post__header .container {
        padding: 0 var(--space-md);
    }

    .blog-post__category {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .blog-post__title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        margin-bottom: var(--space-md);
    }

    .blog-post__meta {
        gap: var(--space-sm);
    }

    .blog-post__meta .author-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.875rem;
    }

    .blog-post__meta .author-name {
        font-size: 0.9375rem;
    }

    .blog-post__meta .author-role {
        font-size: 0.8125rem;
    }

    .blog-post__meta .post-date,
    .blog-post__meta .post-read-time {
        font-size: 0.8125rem;
    }

    .blog-post__content {
        padding: var(--space-xl) 0;
    }

    .blog-post__content .container {
        padding: 0 var(--space-md);
    }

    .blog-post__body {
        font-size: 0.9375rem;
        line-height: 1.75;
    }

    .blog-post__body h2 {
        font-size: 1.25rem;
        margin-top: var(--space-xl);
    }

    .blog-post__body h3 {
        font-size: 1.125rem;
        margin-top: var(--space-lg);
    }

    .blog-post__body p {
        margin-bottom: var(--space-md);
    }

    .blog-post__body blockquote {
        padding: var(--space-sm) var(--space-md);
        margin: var(--space-md) 0;
        font-size: 0.9375rem;
    }

    .blog-post__body ul,
    .blog-post__body ol {
        padding-left: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .blog-post__body li {
        margin-bottom: var(--space-xs);
    }

    .pagination-numbers {
        display: none;
    }

    .related-posts {
        padding: var(--space-xl) 0;
    }

    .related-posts .container {
        padding: 0 var(--space-md);
    }

    .related-posts__header h2 {
        font-size: 1.5rem;
    }

    .blog-card__content {
        padding: var(--space-md);
    }

    .blog-card__title {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .blog-post__header {
        padding: 6rem 0 var(--space-md);
    }

    .blog-post__title {
        font-size: 1.25rem;
    }

    .blog-post__body {
        font-size: 0.875rem;
    }

    .blog-post__body h2 {
        font-size: 1.125rem;
    }

    .blog-post__body h3 {
        font-size: 1rem;
    }
}

/* =================================================================
   GLOBAL BLOG POST REDESIGN — applies to every blog post page
   (Scoped via .blog-page so blog list + cards remain unaffected)
   ================================================================= */

/* Reading progress bar */
.blog-page .reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #ff5e6c, #e63946 50%, #4361ee);
    z-index: 9999;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.6);
    pointer-events: none;
}

/* ---------- COMPACT HERO ---------- */
.blog-page .blog-post__header {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 2.5rem;
    background:
        radial-gradient(900px 400px at 85% -20%, rgba(230, 57, 70, 0.18), transparent 60%),
        linear-gradient(135deg, #0a0d14 0%, #161b22 100%);
    text-align: left;
    width: 100%;
}
.blog-page .blog-post__header .container {
    position: relative;
    z-index: 2;
    max-width: 1360px;
    padding: 0 var(--container-padding);
}

.blog-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.825rem;
    color: rgba(255,255,255,0.5);
}
.blog-page .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.blog-page .breadcrumb a:hover { color: #fff; }
.blog-page .breadcrumb .sep { opacity: 0.35; }
.blog-page .breadcrumb .current { color: rgba(255,255,255,0.92); font-weight: 500; }

.blog-page .blog-post__category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    background: rgba(230,57,70,0.12);
    border: 1px solid rgba(230,57,70,0.35);
    border-radius: 999px;
    color: #ffd9dd;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.blog-page .blog-post__category::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff5e6c;
}

.blog-page .blog-post__title {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.85rem;
    max-width: 880px;
}
.blog-page .blog-post__title .accent {
    background: linear-gradient(135deg, #ff5e6c 0%, #e63946 50%, #b91220 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.blog-page .hero-subtitle {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.blog-page .blog-post__meta {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    align-items: center;
    margin-bottom: 0;
}
.blog-page .blog-post__meta .post-author { gap: 0.65rem; }
.blog-page .blog-post__meta .author-avatar {
    background: linear-gradient(135deg, #e63946, #b91220);
    width: 36px; height: 36px; min-width: 36px;
    font-size: 0.8rem;
    border: 1.5px solid rgba(255,255,255,0.12);
}
.blog-page .blog-post__meta .author-name { font-size: 0.9rem; }
.blog-page .blog-post__meta .author-role { font-size: 0.78rem; }
.blog-page .blog-post__meta .post-date,
.blog-page .blog-post__meta .post-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.62);
    font-size: 0.85rem;
}
.blog-page .blog-post__meta .post-date::before {
    content: ""; width: 13px; height: 13px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") no-repeat center / contain;
}
.blog-page .blog-post__meta .post-read-time::before {
    content: ""; width: 13px; height: 13px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") no-repeat center / contain;
}

/* ---------- WIDER LAYOUT ---------- */
.blog-page .blog-post__content {
    background: linear-gradient(to bottom, #fff 0%, #fafbfc 100%);
    padding: 4rem 0 5rem;
}
.blog-page .blog-post__content .container {
    max-width: 1500px;
    padding: 0 var(--container-padding);
}
.blog-page .post-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 80px;
    gap: 3.5rem;
    align-items: start;
}
.blog-page .post-layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr) 80px;
}

/* Sidebar TOC */
.blog-page .post-sidebar { position: sticky; top: 100px; }
.blog-page .toc-card {
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.blog-page .toc-card__title {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}
.blog-page .toc-card__title::before {
    content: ""; width: 14px; height: 14px; background: var(--primary);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'><line x1='8' y1='6' x2='21' y2='6'/><line x1='8' y1='12' x2='21' y2='12'/><line x1='8' y1='18' x2='21' y2='18'/><line x1='3' y1='6' x2='3.01' y2='6'/><line x1='3' y1='12' x2='3.01' y2='12'/><line x1='3' y1='18' x2='3.01' y2='18'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'><line x1='8' y1='6' x2='21' y2='6'/><line x1='8' y1='12' x2='21' y2='12'/><line x1='8' y1='18' x2='21' y2='18'/><line x1='3' y1='6' x2='3.01' y2='6'/><line x1='3' y1='12' x2='3.01' y2='12'/><line x1='3' y1='18' x2='3.01' y2='18'/></svg>") no-repeat center / contain;
}
.blog-page .toc-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.blog-page .toc-card a {
    display: block; padding: 0.55rem 0.75rem;
    font-size: 0.9rem; line-height: 1.45;
    color: var(--gray-600);
    border-left: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s;
}
.blog-page .toc-card a:hover {
    color: var(--primary); background: rgba(230,57,70,0.05); border-left-color: var(--primary);
}
.blog-page .toc-card a.is-active {
    color: var(--primary); font-weight: 600;
    background: rgba(230,57,70,0.06); border-left-color: var(--primary);
}

/* Share rail */
.blog-page .share-rail {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
.blog-page .share-rail__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}
.blog-page .share-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    color: var(--gray-500);
    transition: all 0.2s ease;
    cursor: pointer;
}
.blog-page .share-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230,57,70,0.15);
}
.blog-page .share-btn svg { width: 16px; height: 16px; }

/* ---------- ARTICLE BODY TYPOGRAPHY ---------- */
.blog-page .blog-post__body {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.18rem;
    line-height: 1.85;
    color: #2a2f3a;
}
.blog-page .blog-post__body > p:first-of-type {
    font-size: 1.22rem;
    line-height: 1.7;
    color: #1a1f2e;
    font-weight: 400;
}

.blog-page .blog-post__body h2 {
    margin-top: 4rem;
    margin-bottom: 1.25rem;
    padding-left: 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0d1117;
}

.blog-page .blog-post__body h3 {
    margin-top: 2.75rem;
    margin-bottom: 0.85rem;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #161b22;
    letter-spacing: -0.01em;
}

.blog-page .blog-post__body p { margin-bottom: 1.35rem; }
.blog-page .blog-post__body strong { color: #0d1117; font-weight: 700; }

/* Lists with checkmark bullets */
.blog-page .blog-post__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.blog-page .blog-post__body ul > li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.6rem;
    margin-bottom: 0.45rem;
    line-height: 1.7;
}
/* Clean, perfectly centered red disc bullet — vertically aligned with first text line */
.blog-page .blog-post__body ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 8px;
    height: 8px;
    background: #e63946;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: none;
}
.blog-page .blog-post__body ul > li::after { content: none; }

/* OL as cards */
.blog-page .blog-post__body ol {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    counter-reset: blog-ol;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.blog-page .blog-post__body ol > li {
    counter-increment: blog-ol;
    position: relative;
    padding: 1rem 1.25rem 1rem 4rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    line-height: 1.7;
    transition: all 0.2s ease;
}
.blog-page .blog-post__body ol > li:hover {
    border-color: rgba(230,57,70,0.4);
    box-shadow: 0 8px 24px rgba(230,57,70,0.08);
    transform: translateX(2px);
}
.blog-page .blog-post__body ol > li::before {
    content: counter(blog-ol);
    position: absolute;
    left: 1rem; top: 1rem;
    width: 1.85rem; height: 1.85rem;
    background: #e63946;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: none;
    line-height: 1;
}

/* Pull-quote */
.blog-page .blog-post__body blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2rem 2rem 4rem;
    background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
    border: none;
    border-left: 4px solid #e63946;
    border-radius: 0 14px 14px 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    line-height: 1.55;
    font-style: italic;
    color: #2a2f3a;
    box-shadow: 0 8px 24px rgba(230,57,70,0.06);
}
.blog-page .blog-post__body blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.3em;
    left: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    font-style: normal;
    color: rgba(230, 57, 70, 0.18);
    line-height: 1;
    pointer-events: none;
}

.blog-page .blog-post__body ::selection {
    background: rgba(230,57,70,0.2);
    color: #0d1117;
}

/* Anchor offset */
.blog-page .blog-post__body h2[id],
.blog-page .blog-post__body h3[id] { scroll-margin-top: 100px; }

/* ---------- CALLOUT BOXES (used by pages that include them) ---------- */
.blog-page .callout {
    margin: 2.5rem 0;
    padding: 1.5rem 1.75rem;
    border-radius: 14px;
    border: 1px solid;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.blog-page .callout__icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 800;
}
.blog-page .callout__body p { margin: 0.4rem 0; line-height: 1.7; font-size: 1.02rem; }
.blog-page .callout__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d1117;
    letter-spacing: -0.01em;
}
.blog-page .callout--takeaways {
    background: linear-gradient(135deg, #fff5f6 0%, #fff 100%);
    border-color: rgba(230,57,70,0.25);
}
.blog-page .callout--takeaways .callout__icon {
    background: linear-gradient(135deg, #e63946, #b91220);
    color: #fff;
}
.blog-page .callout--takeaways ul { margin: 0.5rem 0 0 0; }
.blog-page .callout--takeaways ul > li {
    padding-left: 1.6rem;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1.65;
}
.blog-page .callout--takeaways ul > li::before { width: 7px; height: 7px; top: 0.85em; }
.blog-page .callout--takeaways ul > li::after { content: none; }
.blog-page .callout--info {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
    border-color: rgba(67, 97, 238, 0.25);
}
.blog-page .callout--info .callout__icon {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: #fff;
}

/* Stat strip */
.blog-page .stat-strip {
    margin: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.blog-page .stat-strip__item {
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    text-align: center;
    transition: all 0.25s ease;
}
.blog-page .stat-strip__item:hover {
    transform: translateY(-3px);
    border-color: rgba(230,57,70,0.35);
    box-shadow: 0 12px 28px rgba(230,57,70,0.1);
}
.blog-page .stat-strip__num {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #e63946, #b91220);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
    font-family: 'Playfair Display', Georgia, serif;
}
.blog-page .stat-strip__label { font-size: 0.875rem; color: var(--gray-600); line-height: 1.45; }

/* Tags */
.blog-page .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.blog-page .post-tags__label {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-right: 0.5rem;
}
.blog-page .tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}
.blog-page .tag-chip:hover {
    background: rgba(230,57,70,0.1);
    color: var(--primary);
}

/* CTA card — dark with subtle isometric grid-flow background */
.blog-page .post-cta {
    margin: 2.5rem 0 1rem;
    padding: 2.5rem;
    background:
        url('/images/blog/cta/grid-flow.svg') right center / auto 100% no-repeat,
        radial-gradient(800px 400px at 100% 0%, rgba(230,57,70,0.18), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(67,97,238,0.15), transparent 60%),
        linear-gradient(135deg, #0d1117 0%, #1a1320 100%);
    border-radius: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.blog-page .post-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13,17,23,0.92) 0%, rgba(13,17,23,0.6) 45%, transparent 75%);
    pointer-events: none;
}
.blog-page .post-cta__content { position: relative; z-index: 1; }
.blog-page .post-cta__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}
.blog-page .post-cta__title {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

/* Reset article-body H2/paragraph styling that bleeds into CTAs (counter
   prefix, dark color, flex layout, paragraph margins). High-specificity
   override scoped to .post-cta so any CTA dropped into the body renders
   correctly. */
.blog-page .blog-post__body .post-cta h2,
.blog-page .blog-post__body .post-cta .post-cta__title {
    counter-increment: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: block;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-align: left;
    gap: 0;
}
.blog-page .blog-post__body .post-cta h2::before { content: none; }
.blog-page .blog-post__body .post-cta p { margin: 0; }
.blog-page .blog-post__body .post-cta .post-cta__desc {
    color: rgba(255,255,255,0.72);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 1.5rem;
}
.blog-page .blog-post__body .post-cta .post-cta__inline-title,
.blog-page .blog-post__body .post-cta .post-cta__inline-desc {
    color: inherit;
}
.blog-page .blog-post__body .post-cta .post-cta__inline-title {
    color: #0d1117;
}
.blog-page .blog-post__body .post-cta .post-cta__inline-desc {
    color: var(--gray-600);
}
.blog-page .post-cta__desc {
    color: rgba(255,255,255,0.72);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 1.5rem;
}
.blog-page .post-cta__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.blog-page .post-cta .cta-btn {
    padding: 0.68rem 1.2rem;
    font-size: 0.88rem;
    border-radius: 9px;
}
.blog-page .post-cta__desc strong { color: #fff; }
.blog-page .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.blog-page .cta-btn--primary {
    background: linear-gradient(135deg, #ff5e6c, #e63946);
    color: #fff;
    box-shadow: 0 8px 20px rgba(230,57,70,0.4);
}
.blog-page .cta-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(230,57,70,0.55);
}
.blog-page .cta-btn--ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}
.blog-page .cta-btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}

/* CTA variant: inline banner — light, compact, horizontal */
.blog-page .post-cta--inline {
    padding: 1.4rem 1.75rem;
    background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
    border: 1px solid rgba(230,57,70,0.2);
    border-left: 4px solid #e63946;
    border-radius: 12px;
    color: #1a1f2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 14px rgba(230,57,70,0.06);
    margin: 2.5rem 0;
}
.blog-page .post-cta--inline::before { display: none; }
.blog-page .post-cta__inline-text { flex: 1; min-width: 240px; }
.blog-page .post-cta__inline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d1117;
    margin: 0 0 0.3rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.blog-page .post-cta__inline-desc {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.55;
    margin: 0;
}
.blog-page .post-cta--inline .cta-btn--primary { flex-shrink: 0; }

/* CTA variant: accent — vibrant red gradient with blockchain network motif */
.blog-page .post-cta--accent {
    background:
        url('/images/blog/cta/network-mesh.svg') right center / auto 100% no-repeat,
        radial-gradient(800px 400px at 100% 0%, rgba(255,255,255,0.18), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(255,255,255,0.08), transparent 60%),
        linear-gradient(135deg, #b91220 0%, #e63946 60%, #ff5e6c 100%);
}
.blog-page .post-cta--accent::before {
    background:
        linear-gradient(90deg, rgba(185,18,32,0.85) 0%, rgba(185,18,32,0.45) 45%, transparent 75%);
}
.blog-page .post-cta--accent .post-cta__eyebrow {
    background: rgba(0,0,0,0.22);
    border-color: rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.95);
}
.blog-page .post-cta--accent .cta-btn--primary {
    background: #fff;
    color: #b91220;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.blog-page .post-cta--accent .cta-btn--primary:hover {
    transform: translateY(-2px);
    color: #e63946;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.blog-page .post-cta--accent .cta-btn--ghost {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.35);
}
.blog-page .post-cta--accent .cta-btn--ghost:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
}

/* Mobile tightening for inline banner */
@media (max-width: 768px) {
    .blog-page .post-cta--inline {
        padding: 1.2rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .blog-page .post-cta--inline .cta-btn--primary { width: 100%; justify-content: center; }
}

/* ---------- RESPONSIVE OVERRIDES ---------- */
@media (max-width: 1280px) {
    .blog-page .post-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 3rem;
    }
    .blog-page .post-layout--no-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .blog-page .share-rail { display: none; }
}

@media (max-width: 1024px) {
    .blog-page .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .blog-page .post-sidebar { position: static; order: -1; }
    .blog-page .toc-card { padding: 1.1rem 1.25rem; }
    .blog-page .blog-post__body { font-size: 1.08rem; }
    .blog-page .blog-post__content .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    .blog-page .blog-post__header { padding: 6rem 0 2rem; }
    .blog-page .breadcrumb { font-size: 0.78rem; margin-bottom: 1rem; }
    .blog-page .blog-post__title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .blog-page .hero-subtitle { font-size: 0.92rem; margin-bottom: 1.25rem; }
    .blog-page .blog-post__meta { flex-direction: row; gap: 0.75rem 1.25rem; }
    .blog-page .blog-post__body { font-size: 1rem; line-height: 1.75; }
    .blog-page .blog-post__body > p:first-of-type { font-size: 1.08rem; }
    .blog-page .stat-strip { grid-template-columns: 1fr; }
    .blog-page .post-cta { padding: 1.75rem; }
    .blog-page .blog-post__body ol > li { padding: 1rem 1rem 1rem 3.5rem; }
    .blog-page .blog-post__body blockquote { padding: 1.5rem 1.25rem 1.5rem 2.5rem; font-size: 1.15rem; }
    .blog-page .callout { flex-direction: column; padding: 1.25rem; }
}

@media (max-width: 480px) {
    .blog-page .blog-post__header { padding: 5.5rem 0 1.75rem; }
    .blog-page .breadcrumb .crumb-mid { display: none; }
}

/* =================================================================
   RELATED POSTS — refined card styling on blog post pages
   ================================================================= */
.blog-page .related-posts {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(to bottom, #fafbfc 0%, #f3f4f6 100%);
    border-top: 1px solid var(--gray-200);
}
.blog-page .related-posts .container { max-width: 1500px; }

.blog-page .related-posts__header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.blog-page .related-posts__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    background: rgba(230,57,70,0.08);
    border: 1px solid rgba(230,57,70,0.2);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}
.blog-page .related-posts__eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.blog-page .related-posts .section__title {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0d1117;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.blog-page .related-posts__sub {
    font-size: 0.95rem;
    color: var(--gray-600);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Polished card — image, gradient overlay, category pill, meta, hover lift */
.blog-page .related-posts .blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.blog-page .related-posts .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(13,17,23,0.12);
    border-color: rgba(230,57,70,0.35);
}

.blog-page .related-posts .blog-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1117;
}
.blog-page .related-posts .blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
}
.blog-page .related-posts .blog-card:hover .blog-card__image img {
    transform: scale(1.04);
}

.blog-page .related-posts .blog-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.5rem;
}
.blog-page .related-posts .blog-card .post-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    color: var(--gray-500);
}
.blog-page .related-posts .blog-card .post-meta .post-read-time::before {
    content: "•";
    margin-right: 0.85rem;
    color: var(--gray-400);
}
.blog-page .related-posts .blog-card__title {
    flex: 1;
    margin: 0 0 1rem;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: #0d1117;
}
.blog-page .related-posts .blog-card__title a {
    color: inherit;
    transition: color 0.2s;
}
.blog-page .related-posts .blog-card:hover .blog-card__title a {
    color: var(--primary);
}
.blog-page .related-posts .blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}
.blog-page .related-posts .blog-card__cta::after {
    content: "→";
    transition: transform 0.25s ease;
}
.blog-page .related-posts .blog-card:hover .blog-card__cta::after {
    transform: translateX(4px);
}

/* Whole-card click target — link stays in normal flow so the title text
   renders correctly; pseudo-element stretches across the card to capture
   clicks anywhere. */
.blog-page .related-posts .blog-card__link {
    color: inherit;
    text-decoration: none;
}
.blog-page .related-posts .blog-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .blog-page .related-posts { padding: 3rem 0 3.5rem; }
    .blog-page .related-posts__grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* =================================================================
   ADDITIONAL CTA COMPONENTS
   ================================================================= */

/* Outline-red button variant (used in feature box) */
.blog-page .cta-btn--outline-red {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.blog-page .cta-btn--outline-red:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- TOP FEATURE-BOX CTA (compact horizontal banner) ---------- */
.blog-page .cta-feature-box {
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #0f1729 0%, #1e293b 100%);
    border: 1px solid rgba(230, 57, 70, 0.30);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 1.1rem;
    align-items: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.blog-page .cta-feature-box__icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
    color: #fff;
}
.blog-page .cta-feature-box__icon svg { width: 24px; height: 24px; }
.blog-page .cta-feature-box__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.20rem 0.65rem;
    background: rgba(230, 57, 70, 0.14);
    border: 1px solid rgba(230, 57, 70, 0.35);
    color: #FF6B6B;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}
.blog-page .cta-feature-box__eyebrow::before {
    content: "";
    width: 5px; height: 5px;
    background: #FF6B6B;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 107, 107, 0.75);
}
.blog-page .cta-feature-box__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.blog-page .cta-feature-box__title .accent {
    background: linear-gradient(135deg, #FF6B6B 0%, #E63946 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.blog-page .cta-feature-box__desc {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 600px;
}
.blog-page .cta-feature-box__desc strong {
    color: #ffffff;
    font-weight: 700;
}
.blog-page .cta-feature-box__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}
.blog-page .cta-feature-box .cta-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    justify-content: center;
    background: #E63946;
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 22px rgba(230, 57, 70, 0.32);
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}
.blog-page .cta-feature-box .cta-btn:hover {
    background: #C1121F;
    transform: translateY(-2px);
}
.blog-page .cta-feature-box .cta-btn--outline-red {
    /* Legacy class — kept in case some older posts still emit it.
       Style identically to the primary so removed CTA still looks clean. */
    background: transparent;
    border: 1.5px solid #E63946;
    color: #FF6B6B;
    box-shadow: none;
}
.blog-page .cta-feature-box .cta-btn--outline-red:hover {
    background: rgba(230, 57, 70, 0.10);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---------- DARK SIDEBAR CTA CARD ---------- */
.blog-page .cta-sidebar-card {
    margin-top: 1rem;
    padding: 1.4rem 1.25rem;
    background: linear-gradient(135deg, #0d1117 0%, #1a1320 100%);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.blog-page .cta-sidebar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 100% 0%, rgba(230,57,70,0.22), transparent 60%);
    pointer-events: none;
}
.blog-page .cta-sidebar-card__content { position: relative; z-index: 1; }
.blog-page .cta-sidebar-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}
.blog-page .cta-sidebar-card__eyebrow::before {
    content: "";
    width: 5px; height: 5px;
    background: #ff5e6c;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff5e6c;
}
.blog-page .cta-sidebar-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.28rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.blog-page .cta-sidebar-card__desc {
    margin: 0 0 1.1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
}
.blog-page .cta-sidebar-card__desc strong { color: #fff; }
.blog-page .cta-sidebar-card .cta-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.15rem;
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
}
.blog-page .cta-sidebar-card__bullets {
    list-style: none;
    padding: 1rem 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.blog-page .cta-sidebar-card__bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
}
.blog-page .cta-sidebar-card__bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 16px; height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    background: rgba(230,57,70,0.18);
    border: 1px solid rgba(230,57,70,0.45);
}
.blog-page .cta-sidebar-card__bullets li::after {
    content: "";
    position: absolute;
    left: 4px; top: 50%;
    width: 6px; height: 4px;
    margin-top: -2px;
    border-left: 1.5px solid #ff8a96;
    border-bottom: 1.5px solid #ff8a96;
    transform: rotate(-45deg);
}

/* ---------- FLOATING POPUP — centered modal with backdrop ---------- */
.blog-page .cta-floating-popup {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(13, 17, 23, 0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.blog-page .cta-floating-popup.is-visible {
    opacity: 1;
    visibility: visible;
}
.blog-page .cta-floating-popup__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2rem 1.85rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(13,17,23,0.4), 0 10px 24px rgba(13,17,23,0.12);
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.blog-page .cta-floating-popup.is-visible .cta-floating-popup__card {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.blog-page .cta-floating-popup__close {
    position: absolute;
    top: 0.85rem; right: 0.85rem;
    width: 32px; height: 32px;
    border: none;
    background: var(--gray-200);
    color: var(--gray-800);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.blog-page .cta-floating-popup__close:hover {
    background: var(--gray-200);
    color: var(--primary);
    transform: rotate(90deg);
}
.blog-page .cta-floating-popup__icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #fef0f1, #ffd6db);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #e63946;
    margin: 0 auto 1.1rem;
    box-shadow: 0 8px 20px rgba(230,57,70,0.22);
}
.blog-page .cta-floating-popup__icon svg { width: 36px; height: 36px; }
.blog-page .cta-floating-popup__title {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0d1117;
    line-height: 1.25;
    text-align: center;
    letter-spacing: -0.025em;
}
.blog-page .cta-floating-popup__title .accent {
    color: var(--primary);
}
.blog-page .cta-floating-popup__desc {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--gray-800);
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
}
.blog-page .cta-floating-popup .cta-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.78rem 1.25rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
}
.blog-page .cta-floating-popup__warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}
.blog-page .cta-floating-popup__warning::before {
    content: "";
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(230,57,70,0.7);
    animation: ctaPulse 1.6s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.7); opacity: 0.55; }
}
/* Body scroll-lock while popup is open */
body.cta-popup-open { overflow: hidden; }

/* CTA components — responsive */
@media (max-width: 720px) {
    .blog-page .cta-feature-box {
        grid-template-columns: 44px 1fr;
        padding: 0.95rem 1.1rem;
        gap: 0.9rem;
    }
    .blog-page .cta-feature-box__icon { width: 44px; height: 44px; }
    .blog-page .cta-feature-box__icon svg { width: 20px; height: 20px; }
    .blog-page .cta-feature-box__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
}
@media (max-width: 480px) {
    .blog-page .cta-feature-box__actions .cta-btn { flex: 1; }
    .blog-page .cta-floating-popup { padding: 1rem; }
    .blog-page .cta-floating-popup__card { padding: 2rem 1.4rem 1.5rem; }
    .blog-page .cta-floating-popup__title { font-size: 1.2rem; }
    .blog-page .cta-floating-popup__icon { width: 60px; height: 60px; }
    .blog-page .cta-floating-popup__icon svg { width: 30px; height: 30px; }
}

/* ============================================================================
   DARK-THEME OVERRIDE — matches the homepage's dark palette.
   Loaded last → wins. Flips light backgrounds + text site-wide for blogs.
   ============================================================================ */

/* Body + main page surfaces ---------------------------------------------- */
body.blog-page,
.blog-page .blog-post,
.blog-page .blog-post__content {
    background: #070b18 !important;
    color: #e2e8f0;
}

/* Article header — already dark gradient, keep but tweak */
.blog-page .blog-post__header {
    background: linear-gradient(180deg, #0f1729 0%, #070b18 100%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.blog-page .blog-post__category {
    background: rgba(230, 57, 70, 0.14);
    border-color: rgba(230, 57, 70, 0.40);
    color: #FF6B6B;
}
.blog-page .blog-post__title { color: #fff; }
.blog-page .blog-post__meta .author-name { color: #fff; }
.blog-page .blog-post__meta .author-role,
.blog-page .blog-post__meta .post-date,
.blog-page .blog-post__meta .post-read-time { color: #94a3b8; }

/* ---- Article body content -------------------------------------------- */
.blog-page .blog-post__body {
    color: #e2e8f0;
}
.blog-page .blog-post__body h2,
.blog-page .blog-post__body h3,
.blog-page .blog-post__body h4,
.blog-page .blog-post__body h5,
.blog-page .blog-post__body h6 {
    color: #ffffff;
}
.blog-page .blog-post__body p,
.blog-page .blog-post__body li,
.blog-page .blog-post__body td {
    color: #e2e8f0;
}
.blog-page .blog-post__body strong,
.blog-page .blog-post__body b { color: #ffffff; }
.blog-page .blog-post__body em,
.blog-page .blog-post__body i { color: #cbd5e1; }
.blog-page .blog-post__body a {
    color: #FF6B6B;
    text-decoration-color: rgba(255, 107, 107, 0.4);
}
.blog-page .blog-post__body a:hover {
    color: #E63946;
    text-decoration-color: #E63946;
}
.blog-page .blog-post__body blockquote {
    background: #0f1729;
    border-left: 4px solid #E63946;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}
.blog-page .blog-post__body code {
    background: #1e293b;
    color: #f8fafc;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
}
.blog-page .blog-post__body pre {
    background: #0a0f1c;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}
.blog-page .blog-post__body pre code {
    background: transparent;
    padding: 0;
}
.blog-page .blog-post__body table {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: #0f1729;
}
.blog-page .blog-post__body table th {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.15);
}
.blog-page .blog-post__body table td {
    border-color: rgba(148, 163, 184, 0.10);
}
.blog-page .blog-post__body hr {
    border-color: rgba(148, 163, 184, 0.12);
}
.blog-page .blog-post__body img,
.blog-page .blog-post__body figure img {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.08);
}

/* Inline CTA boxes inside the body (Empower Your Digital Vision, etc.) */
.blog-page .blog-post__body .digital-vision-section {
    background: linear-gradient(135deg, #0f1729 0%, #1e293b 100%) !important;
    border: 1px solid rgba(230, 57, 70, 0.30);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}
.blog-page .blog-post__body .digital-vision-section h2,
.blog-page .blog-post__body .digital-vision-section h3 { color: #fff; }
.blog-page .blog-post__body .digital-vision-section p,
.blog-page .blog-post__body .digital-vision-section li { color: #cbd5e1; }
.blog-page .blog-post__body .digital-vision-section .cta-button {
    display: inline-block;
    background: #E63946;
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.28);
    transition: background 0.2s, transform 0.2s;
}
.blog-page .blog-post__body .digital-vision-section .cta-button:hover {
    background: #C1121F;
    transform: translateY(-2px);
}

/* Blog filter bar ------------------------------------------------------ */
.blog-page .blog-filter {
    background: rgba(7, 11, 24, 0.92) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}
.blog-page .filter-tab {
    background: #0f1729;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.10);
}
.blog-page .filter-tab:hover {
    background: #1e293b;
    color: #fff;
    border-color: rgba(230, 57, 70, 0.40);
}
.blog-page .filter-tab.active {
    background: linear-gradient(135deg, #E63946, #C1121F);
    color: #fff;
    border-color: transparent;
}

/* Featured + standard blog cards (the index grid) --------------------- */
.blog-page .blog-featured { background: transparent !important; }
.blog-page .blog-grid     { background: transparent !important; }

.blog-page .featured-post,
.blog-page .blog-card {
    background: #0f1729 !important;
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.blog-page .blog-card:hover,
.blog-page .featured-post:hover {
    border-color: rgba(230, 57, 70, 0.40);
    box-shadow: 0 14px 32px rgba(230, 57, 70, 0.18);
    transform: translateY(-4px);
}
.blog-page .blog-card__title,
.blog-page .featured-post__title { color: #fff; }
.blog-page .blog-card__excerpt,
.blog-page .featured-post__excerpt { color: #94a3b8; }
.blog-page .blog-card__author,
.blog-page .blog-card__date,
.blog-page .featured-post__author { color: #94a3b8; }
.blog-page .blog-card__link,
.blog-page .featured-post__link { color: #FF6B6B; }
.blog-page .blog-card__link:hover,
.blog-page .featured-post__link:hover { color: #E63946; }

/* Related posts section ------------------------------------------------- */
.blog-page .related-posts {
    background: #050816 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding: 4rem 0;
}
.blog-page .related-posts__eyebrow { color: #FF6B6B; }
.blog-page .related-posts .section__title { color: #fff; }
.blog-page .related-posts__sub { color: #94a3b8; }
.blog-page .related-posts .blog-card { background: #0f1729 !important; }

/* Newsletter / subscribe section --------------------------------------- */
.blog-page .blog-newsletter,
.blog-page .blog-subscribe {
    background: linear-gradient(135deg, #0f1729 0%, #1e293b 100%) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.blog-page .blog-newsletter h2,
.blog-page .blog-subscribe h2 { color: #fff; }
.blog-page .blog-newsletter p,
.blog-page .blog-subscribe p { color: #cbd5e1; }
.blog-page .blog-newsletter input,
.blog-page .blog-subscribe input {
    background: #070b18;
    border: 1px solid rgba(148, 163, 184, 0.20);
    color: #fff;
}
.blog-page .blog-newsletter input::placeholder,
.blog-page .blog-subscribe input::placeholder { color: #64748b; }

/* Hero on the blog index page ------------------------------------------ */
.blog-page .blog-hero {
    background: linear-gradient(180deg, #0f1729 0%, #070b18 100%) !important;
}
.blog-page .blog-hero__title { color: #fff; }
.blog-page .blog-hero__description { color: #cbd5e1; }

/* Sidebar TOC (the JS-generated one on blog post pages) --------------- */
.blog-page .toc-sidebar,
.blog-page .blog-toc-sidebar {
    background: #0f1729;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 12px;
    color: #cbd5e1;
}
.blog-page .toc-sidebar h4,
.blog-page .blog-toc-sidebar h4 { color: #fff; }
.blog-page .toc-sidebar a,
.blog-page .blog-toc-sidebar a { color: #cbd5e1; }
.blog-page .toc-sidebar a:hover,
.blog-page .blog-toc-sidebar a.active,
.blog-page .blog-toc-sidebar a:hover { color: #FF6B6B; }

/* ===== Fix remaining invisible-text areas on dark blog theme ===== */

/* Callouts (info / takeaways / quote inside body) — re-theme to dark */
.blog-page .callout,
.blog-page .callout--info,
.blog-page .callout--takeaways,
.blog-page .callout--note,
.blog-page .callout--quote {
    background: linear-gradient(135deg, #0f1729 0%, #1e293b 100%) !important;
    border: 1px solid rgba(230, 57, 70, 0.30) !important;
    border-radius: 14px;
    color: #e2e8f0 !important;
}
.blog-page .callout__title {
    color: #ffffff !important;
}
.blog-page .callout__body,
.blog-page .callout__body p {
    color: #cbd5e1 !important;
}
.blog-page .callout__body strong,
.blog-page .callout__body b {
    color: #ffffff !important;
}
.blog-page .callout--takeaways ul > li {
    color: #e2e8f0 !important;
}
.blog-page .callout--takeaways ul > li::before {
    background: #E63946 !important;
}

/* Mid-article post-cta INLINE variant — title/desc were dark on dark */
.blog-page .blog-post__body .post-cta .post-cta__inline-title,
.blog-page .post-cta__inline-title {
    color: #ffffff !important;
}
.blog-page .blog-post__body .post-cta .post-cta__inline-desc,
.blog-page .post-cta__inline-desc {
    color: #cbd5e1 !important;
}

/* Related-posts header + card titles */
.blog-page .related-posts__title,
.blog-page .related-posts h2,
.blog-page .related-posts .section__title { color: #ffffff !important; }
.blog-page .related-posts__sub { color: #94a3b8 !important; }
.blog-page .related-posts .blog-card__title,
.blog-page .related-posts .blog-card__title a { color: #ffffff !important; }
.blog-page .related-posts .blog-card:hover .blog-card__title a { color: #FF6B6B !important; }
.blog-page .related-posts .blog-card__excerpt,
.blog-page .related-posts .blog-card__author,
.blog-page .related-posts .blog-card__date,
.blog-page .related-posts .blog-card__meta { color: #94a3b8 !important; }

/* Selection highlight on dark theme */
.blog-page .blog-post__body ::selection {
    background: rgba(230, 57, 70, 0.30);
    color: #ffffff;
}

/* Author block / bio at the bottom of articles */
.blog-page .author-block,
.blog-page .author-card,
.blog-page .author-bio,
.blog-page .post-author-card {
    background: #0f1729 !important;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    color: #e2e8f0 !important;
}
.blog-page .author-block h3,
.blog-page .author-card h3,
.blog-page .author-block .author-name,
.blog-page .author-card .author-name { color: #ffffff !important; }
.blog-page .author-block p,
.blog-page .author-card p,
.blog-page .author-bio p { color: #94a3b8 !important; }

/* Anything with a fixed light bg + dark text inside .blog-page that's still
   visible: force the dark text to white so it survives the theme flip */
.blog-page .blog-post__body [style*="background:#fff"] *,
.blog-page .blog-post__body [style*="background: #fff"] *,
.blog-page .blog-post__body [style*="background:white"] *,
.blog-page .blog-post__body [style*="background: white"] * {
    /* Keep dark text on these specifically light-styled boxes */
    color: inherit;
}

/* Catch-all: anything inside .blog-post__body that's explicitly set to
   dark slate / near-black colors via leftover blog.css rules → force light */
.blog-page .blog-post__body [class*="-title"]:not(.cta-feature-box__title):not([class*="inline"]),
.blog-page .blog-post__body [class*="__title"]:not(.cta-feature-box__title):not([class*="inline"]) {
    color: #ffffff !important;
}
.blog-page .blog-post__body [class*="-desc"],
.blog-page .blog-post__body [class*="__desc"]:not(.cta-feature-box__desc):not([class*="inline"]) {
    color: #cbd5e1 !important;
}

/* CRITICAL: high-specificity overrides for the legacy dark-on-dark colors
   that were making the FIRST PARAGRAPH and body text invisible on the dark
   theme. The original blog.css set these for white-card light-theme reading;
   we now force WHITE / LIGHT GREY on the dark background. */
.blog-page .blog-post__body,
.blog-page .blog-post__body > p,
.blog-page .blog-post__body > p:first-of-type,
.blog-page .blog-post__body p,
.blog-page .blog-post__body p:first-of-type {
    color: #e2e8f0 !important;
}
.blog-page .blog-post__body h2,
.blog-page .blog-post__body > h2,
.blog-page .blog-post__body h3,
.blog-page .blog-post__body > h3,
.blog-page .blog-post__body h4,
.blog-page .blog-post__body > h4,
.blog-page .blog-post__body h5,
.blog-page .blog-post__body h6 {
    color: #ffffff !important;
}
.blog-page .blog-post__body strong,
.blog-page .blog-post__body b,
.blog-page .blog-post__body > p strong,
.blog-page .blog-post__body > p b {
    color: #ffffff !important;
}
.blog-page .blog-post__body em,
.blog-page .blog-post__body i {
    color: #cbd5e1 !important;
}
.blog-page .blog-post__body li,
.blog-page .blog-post__body ul li,
.blog-page .blog-post__body ol li,
.blog-page .blog-post__body td {
    color: #e2e8f0 !important;
}

/* ===== TABLE RE-THEME — comparison/data tables in blog posts =====
   Override the legacy striped table styles that gave even rows a
   #fafafa (near-white) background — which on the dark theme made
   alternating rows pop out as bright white panels and text appear
   weirdly contrasted. Goal: clean, modern dark table that matches
   the rest of the dark theme. */

.blog-page .blog-post__body table,
.blog-page .blog-post__body .table,
.blog-page .blog-post__body .table-bordered {
    width: 100% !important;
    margin: 2rem 0 !important;
    background: #0f1729 !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30) !important;
    color: #e2e8f0 !important;
    font-size: 0.96rem !important;
}

/* Wrapper around scrollable tables (Odoo emits .tableWrapper for these) */
.blog-page .blog-post__body .tableWrapper,
.blog-page .blog-post__body .tableWrapperScroll,
.blog-page .blog-post__body .table-responsive {
    background: transparent !important;
    margin: 2rem 0 !important;
    border-radius: 14px;
    overflow-x: auto;
}

/* Header cells (<th>) */
.blog-page .blog-post__body table th,
.blog-page .blog-post__body .table th,
.blog-page .blog-post__body .table-bordered th {
    background: linear-gradient(135deg, #1e293b 0%, #15202e 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 14px 18px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(230, 57, 70, 0.30) !important;
    border-right: 1px solid rgba(148, 163, 184, 0.10) !important;
}
.blog-page .blog-post__body table th:last-child,
.blog-page .blog-post__body .table-bordered th:last-child {
    border-right: none !important;
}

/* Data cells (<td>) */
.blog-page .blog-post__body table td,
.blog-page .blog-post__body .table td,
.blog-page .blog-post__body .table-bordered td {
    color: #e2e8f0 !important;
    background: transparent !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
    border-right: 1px solid rgba(148, 163, 184, 0.05) !important;
    vertical-align: top !important;
}
.blog-page .blog-post__body table td:last-child,
.blog-page .blog-post__body .table-bordered td:last-child {
    border-right: none !important;
}

/* Striped rows — subtle alternating dark shades, NOT white. */
.blog-page .blog-post__body tbody tr:nth-child(odd) {
    background: #0f1729 !important;
}
.blog-page .blog-post__body tbody tr:nth-child(even) {
    background: #131c30 !important;
}

/* If the table has no <thead> (most Odoo tables don't — first row is just
   <tr><td>headers</td></tr>), promote the first row visually */
.blog-page .blog-post__body table:not(:has(thead)) tbody tr:first-child {
    background: linear-gradient(135deg, #1e293b 0%, #15202e 100%) !important;
}
.blog-page .blog-post__body table:not(:has(thead)) tbody tr:first-child td {
    color: #ffffff !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(230, 57, 70, 0.30) !important;
}
.blog-page .blog-post__body table:not(:has(thead)) tbody tr:first-child td p {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Last row — drop the bottom border to align with rounded table edge */
.blog-page .blog-post__body tbody tr:last-child td {
    border-bottom: none !important;
}

/* Row hover — subtle red tint */
.blog-page .blog-post__body tbody tr:hover {
    background: rgba(230, 57, 70, 0.06) !important;
}

/* <p> inside <td> — collapse default paragraph margins and inherit cell color */
.blog-page .blog-post__body table td p,
.blog-page .blog-post__body table th p,
.blog-page .blog-post__body .table td p,
.blog-page .blog-post__body .table-bordered td p {
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.55 !important;
    font-size: inherit !important;
}

/* <strong> and links inside cells */
.blog-page .blog-post__body table td strong,
.blog-page .blog-post__body table th strong { color: #ffffff !important; }
.blog-page .blog-post__body table td a,
.blog-page .blog-post__body table th a {
    color: #FF6B6B !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 107, 107, 0.4);
}
.blog-page .blog-post__body table td a:hover,
.blog-page .blog-post__body table th a:hover {
    color: #E63946 !important;
    text-decoration-color: #E63946;
}

/* Make tables scroll horizontally on small screens instead of breaking layout */
@media (max-width: 720px) {
    .blog-page .blog-post__body table,
    .blog-page .blog-post__body .table,
    .blog-page .blog-post__body .table-bordered {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}
/* ===== end table re-theme ===== */

/* ===== CTA BUTTON LABEL — keep WHITE on red, never inherit link color =====
   Without these overrides, the generic `.blog-page .blog-post__body a`
   text-color rule (coral) was beating `.cta-btn--primary { color: #fff }`
   and making "Schedule Free Call", "Talk to an Expert", "Book Free Strategy
   Call", etc. read as coral on coral — effectively invisible. */

.blog-page .cta-btn,
.blog-page .cta-btn--primary,
.blog-page .blog-post__body .cta-btn,
.blog-page .blog-post__body .cta-btn--primary,
.blog-page .blog-post__body a.cta-btn,
.blog-page .blog-post__body a.cta-btn--primary,
.blog-page .post-cta .cta-btn,
.blog-page .post-cta .cta-btn--primary,
.blog-page .blog-post__body .post-cta .cta-btn,
.blog-page .blog-post__body .post-cta .cta-btn--primary,
.blog-page .cta-feature-box .cta-btn,
.blog-page .cta-feature-box .cta-btn--primary,
.blog-page .blog-post__body .cta-feature-box .cta-btn,
.blog-page .blog-post__body .cta-feature-box .cta-btn--primary {
    color: #ffffff !important;
    text-decoration: none !important;
}
.blog-page .cta-btn--primary,
.blog-page .blog-post__body .cta-btn--primary,
.blog-page .blog-post__body a.cta-btn--primary {
    background: linear-gradient(135deg, #ff5e6c, #E63946) !important;
    box-shadow: 0 8px 22px rgba(230, 57, 70, 0.45) !important;
}
.blog-page .cta-btn--primary:hover,
.blog-page .blog-post__body .cta-btn--primary:hover {
    background: linear-gradient(135deg, #E63946, #C1121F) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(230, 57, 70, 0.55) !important;
}

/* Outline / ghost variants — coral text + red border, no underline */
.blog-page .cta-btn--ghost,
.blog-page .cta-btn--outline,
.blog-page .cta-btn--outline-red,
.blog-page .blog-post__body .cta-btn--ghost,
.blog-page .blog-post__body .cta-btn--outline,
.blog-page .blog-post__body .cta-btn--outline-red,
.blog-page .blog-post__body a.cta-btn--ghost,
.blog-page .blog-post__body a.cta-btn--outline,
.blog-page .blog-post__body a.cta-btn--outline-red {
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
.blog-page .cta-btn--ghost:hover,
.blog-page .cta-btn--outline:hover,
.blog-page .cta-btn--outline-red:hover {
    border-color: #E63946 !important;
    color: #FF6B6B !important;
    background: rgba(230, 57, 70, 0.10) !important;
}
/* ===== end cta button label fix ===== */
/* ===== end fix remaining invisible-text areas ===== */

/* ============================================================
   LIGHT THEME — scoped to body.blog-page--light only
   Migration target for blogs that should use a clean, light,
   readable surface (per the blog migration prompt §9). Applies
   ONLY when the body has the .blog-page--light modifier; other
   blog posts still pick up the dark theme above.
   ============================================================ */
body.blog-page--light {
    background: #ffffff !important;
    color: #1f2937 !important;
}
body.blog-page--light .blog-post {
    background: #ffffff !important;
}
body.blog-page--light .blog-post__header,
body.blog-page--light .blog-post__content,
body.blog-page--light .blog-post__body {
    background: #ffffff !important;
    color: #1f2937 !important;
}
/* Post header — eyebrow / title / meta */
body.blog-page--light .blog-post__category {
    color: #E63946 !important;
    background: rgba(230, 57, 70, 0.08) !important;
    border: 1px solid rgba(230, 57, 70, 0.18) !important;
}
body.blog-page--light .blog-post__title {
    color: #0f172a !important;
}
body.blog-page--light .blog-post__meta,
body.blog-page--light .blog-post__meta .post-author,
body.blog-page--light .blog-post__meta .author-info,
body.blog-page--light .blog-post__meta .author-name,
body.blog-page--light .blog-post__meta .author-role,
body.blog-page--light .blog-post__meta .post-date,
body.blog-page--light .blog-post__meta .post-read-time {
    color: #475569 !important;
}
body.blog-page--light .blog-post__meta .author-name { color: #0f172a !important; font-weight: 600 !important; }
body.blog-page--light .author-avatar {
    background: #E63946 !important;
    color: #ffffff !important;
}

/* Body text + headings */
body.blog-page--light .blog-post__body p,
body.blog-page--light .blog-post__body li,
body.blog-page--light .blog-post__body td,
body.blog-page--light .blog-post__body th {
    color: #1f2937 !important;
}
body.blog-page--light .blog-post__body h1,
body.blog-page--light .blog-post__body h2,
body.blog-page--light .blog-post__body h3,
body.blog-page--light .blog-post__body h4,
body.blog-page--light .blog-post__body h5,
body.blog-page--light .blog-post__body h6 {
    color: #0f172a !important;
}
body.blog-page--light .blog-post__body strong,
body.blog-page--light .blog-post__body b {
    color: #0f172a !important;
}
body.blog-page--light .blog-post__body em,
body.blog-page--light .blog-post__body i {
    color: #374151 !important;
}

/* Inline links — brand red */
body.blog-page--light .blog-post__body a {
    color: #E63946 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(230, 57, 70, 0.4) !important;
    text-underline-offset: 3px !important;
}
body.blog-page--light .blog-post__body a:hover {
    color: #b91c2c !important;
    text-decoration-color: #b91c2c !important;
}

/* Quick Takeaway aside — already styled light in earlier block,
   keep here to make sure the dark theme overrides don't leak in. */
body.blog-page--light .blog-post__body .blog-key-takeaways {
    background: #f8fafc !important;
    border-left: 4px solid #E63946 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}
body.blog-page--light .blog-post__body .blog-key-takeaways__title { color: #0f172a !important; }
body.blog-page--light .blog-post__body .blog-key-takeaways__list li { color: #1f2937 !important; }

/* Tables — clean light rows, brand header */
body.blog-page--light .blog-post__body table {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
body.blog-page--light .blog-post__body table thead,
body.blog-page--light .blog-post__body table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e5e7eb !important;
}
body.blog-page--light .blog-post__body table td {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
body.blog-page--light .blog-post__body table tr:nth-child(even) td {
    background: #fafafa !important;
}

/* Figures / images — subtle border, no dark frame */
body.blog-page--light .blog-post__body .blog-figure,
body.blog-page--light .blog-post__body figure {
    background: transparent !important;
}
body.blog-page--light .blog-post__body img {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
}

/* CTA panel — light card with red accent */
body.blog-page--light .blog-post__body .digital-vision-section,
body.blog-page--light .blog-post__body #qss-blog-cta {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-left: 4px solid #E63946 !important;
    border-radius: 12px !important;
    padding: 28px 32px !important;
    color: #1f2937 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}
body.blog-page--light .blog-post__body .digital-vision-section h2,
body.blog-page--light .blog-post__body #qss-blog-cta h2 {
    color: #0f172a !important;
}
body.blog-page--light .blog-post__body .digital-vision-section p,
body.blog-page--light .blog-post__body .digital-vision-section li,
body.blog-page--light .blog-post__body #qss-blog-cta p,
body.blog-page--light .blog-post__body #qss-blog-cta li {
    color: #1f2937 !important;
}
body.blog-page--light .blog-post__body .cta-bar {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
}
body.blog-page--light .blog-post__body .cta-button,
body.blog-page--light .blog-post__body a.cta-button {
    background: #E63946 !important;
    color: #ffffff !important;
    border: 1px solid #E63946 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25) !important;
}
body.blog-page--light .blog-post__body .cta-button:hover,
body.blog-page--light .blog-post__body a.cta-button:hover {
    background: #b91c2c !important;
    border-color: #b91c2c !important;
    color: #ffffff !important;
}

/* Bullet / numbered lists — clean dark markers on light */
body.blog-page--light .blog-post__body ul,
body.blog-page--light .blog-post__body ol {
    color: #1f2937 !important;
}
body.blog-page--light .blog-post__body ul li::marker,
body.blog-page--light .blog-post__body ol li::marker {
    color: #E63946 !important;
}

/* Related posts strip — light card grid */
body.blog-page--light .related-posts {
    background: #ffffff !important;
}
body.blog-page--light .related-posts .related-posts__eyebrow {
    color: #E63946 !important;
}
body.blog-page--light .related-posts .section__title,
body.blog-page--light .related-posts h2 {
    color: #0f172a !important;
}
body.blog-page--light .related-posts .related-posts__sub {
    color: #475569 !important;
}
body.blog-page--light .related-posts .blog-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
body.blog-page--light .related-posts .blog-card:hover {
    border-color: #E63946 !important;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.10) !important;
    transform: translateY(-2px);
}
body.blog-page--light .related-posts .blog-card__title a,
body.blog-page--light .related-posts .blog-card__link {
    color: #0f172a !important;
}
body.blog-page--light .related-posts .blog-card__title a:hover {
    color: #E63946 !important;
}
body.blog-page--light .related-posts .post-meta .post-date,
body.blog-page--light .related-posts .post-meta .post-read-time {
    color: #6b7280 !important;
}
body.blog-page--light .related-posts .blog-card__cta {
    color: #E63946 !important;
    text-decoration: none !important;
}
body.blog-page--light .related-posts .blog-card__image img {
    border: 0 !important;
    border-radius: 0 !important;
}

/* Comfortable reading width on big screens (rule 9: avoid overly
   stretched text). Keeps the container as-is but caps body line
   length for legibility. */
body.blog-page--light .blog-post__content .container {
    max-width: 1100px !important;
}
body.blog-page--light .blog-post__body {
    max-width: 100% !important;
}

/* Header / footer are NOT touched per rule 10 — they continue to
   render with whatever theme the global site styles provide. */
/* ===== end light theme overrides ===== */

/* ============================================================
   LIGHT THEME — additional overrides for JS-injected elements
   (auto-injected by blog-post.js: TOC sidebar, cta-feature-box,
   post-cta, cta-sidebar-card, share rail, floating popup) plus
   the blog-post__cover banner. All scoped to .blog-page--light.
   ============================================================ */

/* --- Banner / cover image at top of post --- */
body.blog-page--light .blog-post__cover {
    margin: 24px auto 0 !important;
    padding: 0 var(--container-padding) !important;
    max-width: 1100px !important;
}
body.blog-page--light .blog-post__cover-img {
    /* Force a strict 1200x675 (16:9) banner box on every blog post,
       regardless of the underlying file's native aspect ratio.
       object-fit:cover crops the source to fill the box; we never
       letterbox. To opt a single post out, override aspect-ratio in
       a page-scoped <style> in that post's <head>. */
    width: 100% !important;
    aspect-ratio: 1200 / 675 !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
    display: block !important;
    background: #fff !important;
}

/* --- Widen the container and tune the JS-injected 3-col layout
       (TOC sidebar | body | share rail). We keep the sidebar, share
       rail, and floating popup ALL working as the JS designed them,
       and only hide the .toc-card inside the sidebar so the Quick
       Takeaway aside isn't duplicated by the auto-built TOC. The
       cta-sidebar-card inside post-sidebar stays. --- */
body.blog-page--light .blog-post__content { padding: 32px 0 64px !important; }
body.blog-page--light .blog-post__content .container {
    max-width: 1320px !important;
    padding: 0 24px !important;
}
body.blog-page--light .post-layout {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 3rem !important;
}
/* Sidebar on the LEFT (column 1), body on the right (column 2).
   JS appends sidebar first in DOM order, so the natural grid order is
   already sidebar -> body; we just pin the columns explicitly. The
   share-rail is dropped entirely so the body uses the full right area. */
body.blog-page--light .post-sidebar  { grid-column: 1 !important; }
body.blog-page--light .blog-post__body { grid-column: 2 !important; }
body.blog-page--light .share-rail { display: none !important; }
/* Show the TOC, hide the Strategy-Call sidebar CTA — the TOC takes that
   slot per the user's screenshot. */
body.blog-page--light .post-sidebar .toc-card { display: block !important; }
body.blog-page--light .post-sidebar .cta-sidebar-card { display: none !important; }
/* Style the sidebar TOC for the light theme. */
body.blog-page--light .post-sidebar .toc-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    padding: 22px 22px !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}
body.blog-page--light .post-sidebar .toc-card__title {
    color: #b91c2c !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
body.blog-page--light .post-sidebar .toc-card ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.blog-page--light .post-sidebar .toc-card li { margin-bottom: 4px !important; }
body.blog-page--light .post-sidebar .toc-card li a {
    display: block !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border-left: 2px solid transparent !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body.blog-page--light .post-sidebar .toc-card li a:hover {
    background: #fff5f6 !important;
    color: #0f172a !important;
    border-left-color: #E63946 !important;
}
body.blog-page--light .post-sidebar .toc-card li a.is-active {
    background: #fff5f6 !important;
    color: #b91c2c !important;
    border-left-color: #E63946 !important;
    font-weight: 600 !important;
}
body.blog-page--light .blog-post__body {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
}
/* Quick Takeaway — HORIZONTAL top callout (not a floated sidebar).
   A tall floated aside next to 3 short lead paragraphs left a big
   empty gap below the body text and above the next H2, hurting UX.
   This lays the bullets out as a 2-column grid inside a full-width
   card pinned to the top of the article, with a strong red left
   border so the "left-anchored" feel is preserved. */
body.blog-page--light .blog-post__body .blog-key-takeaways {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 32px !important;
    padding: 22px 28px 18px !important;
    background: #fff5f6 !important;
    border: 1px solid rgba(230, 57, 70, 0.15) !important;
    border-left: 6px solid #E63946 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.08) !important;
}
body.blog-page--light .blog-post__body .blog-key-takeaways__title {
    color: #b91c2c !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed rgba(230, 57, 70, 0.25) !important;
}
body.blog-page--light .blog-post__body .blog-key-takeaways__list {
    list-style: none !important;
    columns: 2 !important;            /* two-column bullet grid */
    column-gap: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.blog-page--light .blog-post__body .blog-key-takeaways__list li {
    color: #0f172a !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin: 0 0 10px !important;
    padding-left: 22px !important;
    position: relative !important;
    break-inside: avoid !important;
}
body.blog-page--light .blog-post__body .blog-key-takeaways__list li::marker {
    content: "" !important;
}
body.blog-page--light .blog-post__body .blog-key-takeaways__list li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.55em !important;
    width: 7px !important;
    height: 7px !important;
    background: #E63946 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12) !important;
}
/* Stack to a single column on narrow viewports — easier to read. */
@media (max-width: 720px) {
    body.blog-page--light .blog-post__body .blog-key-takeaways__list {
        columns: 1 !important;
    }
}

/* --- Top CTA feature box (JS-injected) — make text visible --- */
body.blog-page--light .blog-post__body .cta-feature-box {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-left: 4px solid #E63946 !important;
    border-radius: 12px !important;
    padding: 22px 26px !important;
    margin: 0 0 28px !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
    color: #1f2937 !important;
}
body.blog-page--light .blog-post__body .cta-feature-box * {
    color: #1f2937 !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__icon {
    background: #E63946 !important;
    color: #ffffff !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__icon svg { color: #ffffff !important; stroke: #ffffff !important; }
body.blog-page--light .blog-post__body .cta-feature-box__eyebrow {
    color: #E63946 !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.78rem !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__title {
    color: #0f172a !important;
    font-weight: 800 !important;
    margin: 6px 0 10px !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__title .accent {
    color: #E63946 !important;
    background: none !important;
    -webkit-text-fill-color: #E63946 !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__desc {
    color: #374151 !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__desc strong { color: #0f172a !important; }

/* Primary cta button used by cta-feature-box, post-cta, etc. */
body.blog-page--light .blog-post__body .cta-btn--primary,
body.blog-page--light .blog-post__body a.cta-btn--primary {
    background: #E63946 !important;
    color: #ffffff !important;
    border: 1px solid #E63946 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25) !important;
}
body.blog-page--light .blog-post__body .cta-btn--primary:hover {
    background: #b91c2c !important;
    border-color: #b91c2c !important;
}
body.blog-page--light .blog-post__body .cta-btn--ghost,
body.blog-page--light .blog-post__body a.cta-btn--ghost {
    background: transparent !important;
    color: #E63946 !important;
    border: 1.5px solid #E63946 !important;
    text-decoration: none !important;
}
body.blog-page--light .blog-post__body .cta-btn--ghost:hover {
    background: rgba(230, 57, 70, 0.08) !important;
    color: #b91c2c !important;
    border-color: #b91c2c !important;
}

/* --- Mid-article CTA banner — modern redesign -----------------
   Dark premium card with a radial brand-red glow, large gradient
   title, generous spacing, and a strong red filled button. Sits
   between body H2s as a visual punctuation moment. --- */
body.blog-page--light .blog-post__body .post-cta {
    position: relative !important;
    overflow: hidden !important;
    background: radial-gradient(120% 140% at 0% 0%, #1e1b4b 0%, #0f172a 55%, #050816 100%) !important;
    border: 1px solid rgba(230, 57, 70, 0.35) !important;
    border-radius: 20px !important;
    padding: 44px 48px !important;
    margin: 40px 0 !important;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.30),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
    color: #f8fafc !important;
    isolation: isolate;
}
/* Decorative red glow blob in the top-right corner */
body.blog-page--light .blog-post__body .post-cta::before {
    content: "" !important;
    position: absolute !important;
    top: -120px !important;
    right: -120px !important;
    width: 360px !important;
    height: 360px !important;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.40) 0%, rgba(230, 57, 70, 0) 70%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
/* Subtle grid pattern on the dark surface */
body.blog-page--light .blog-post__body .post-cta::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    mask-image: radial-gradient(circle at 80% 30%, #000 0%, transparent 70%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
body.blog-page--light .blog-post__body .post-cta__content {
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
}
body.blog-page--light .blog-post__body .post-cta * { color: #f8fafc; }
body.blog-page--light .blog-post__body .post-cta__eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #fca5a5 !important;
    background: rgba(230, 57, 70, 0.15) !important;
    border: 1px solid rgba(230, 57, 70, 0.35) !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    margin-bottom: 18px !important;
}
body.blog-page--light .blog-post__body .post-cta__eyebrow::before {
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    background: #E63946 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px #E63946 !important;
    animation: post-cta-pulse 2s ease-in-out infinite !important;
}
@keyframes post-cta-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}
body.blog-page--light .blog-post__body .post-cta__title {
    color: #ffffff !important;
    font-size: clamp(1.75rem, 3.2vw, 2.4rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 14px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fca5a5 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.blog-page--light .blog-post__body .post-cta__desc {
    color: #cbd5e1 !important;
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    margin: 0 0 24px !important;
    max-width: 640px !important;
}
body.blog-page--light .blog-post__body .post-cta__desc strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}
body.blog-page--light .blog-post__body .post-cta__actions {
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
/* Primary button INSIDE the dark post-cta — solid brand red with glow */
body.blog-page--light .blog-post__body .post-cta .cta-btn--primary,
body.blog-page--light .blog-post__body .post-cta a.cta-btn--primary {
    background: linear-gradient(135deg, #E63946 0%, #b91c2c 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    box-shadow:
        0 10px 24px rgba(230, 57, 70, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
body.blog-page--light .blog-post__body .post-cta .cta-btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 14px 32px rgba(230, 57, 70, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
}
/* Ghost button INSIDE the dark post-cta — white outline */
body.blog-page--light .blog-post__body .post-cta .cta-btn--ghost,
body.blog-page--light .blog-post__body .post-cta a.cta-btn--ghost {
    background: transparent !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    padding: 13px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}
body.blog-page--light .blog-post__body .post-cta .cta-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

/* --- Strong heading visibility in light theme ----------------- */
body.blog-page--light .blog-post__body h2,
body.blog-page--light .blog-post__body h2 span,
body.blog-page--light .blog-post__body h3,
body.blog-page--light .blog-post__body h3 span,
body.blog-page--light .blog-post__body h4,
body.blog-page--light .blog-post__body h4 span {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
body.blog-page--light .blog-post__body h2 {
    clear: both !important;        /* never wrap around the Quick Takeaway float */
    font-size: clamp(1.7rem, 2.6vw, 2.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
    margin: 28px 0 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e5e7eb !important;
    scroll-margin-top: 100px !important;
}
body.blog-page--light .blog-post__body h2:first-child {
    margin-top: 16px !important;
}
body.blog-page--light .blog-post__body h3 {
    clear: both !important;
    font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 24px 0 10px !important;
}
/* Figures (banner images / inline diagrams) also clear the float so
   they start full-width directly under their preceding heading. */
body.blog-page--light .blog-post__body .blog-figure,
body.blog-page--light .blog-post__body figure {
    clear: both !important;
    margin: 18px auto 24px !important;
}

/* Lead paragraph — the first <p> after the Quick Takeaway aside.
   Styled as a dark, bold opening line so it reads like an intro hook. */
body.blog-page--light .blog-post__body .blog-key-takeaways + p {
    color: #0f172a !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.005em !important;
    margin-bottom: 20px !important;
}

/* --- Post tags (JS-injected) --- */
body.blog-page--light .blog-post__body .post-tags { border-top: 1px solid #e5e7eb !important; padding-top: 18px !important; margin-top: 28px !important; }
body.blog-page--light .blog-post__body .post-tags__label { color: #6b7280 !important; }
body.blog-page--light .blog-post__body .tag-chip {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e5e7eb !important;
    text-decoration: none !important;
}

/* --- Reading progress bar (JS-injected) — slim red bar at the top --- */
body.blog-page--light .reading-progress {
    background: transparent !important;
}
body.blog-page--light .reading-progress__bar { background: #E63946 !important; }

/* --- Breadcrumb (JS-injected) --- */
body.blog-page--light .post-breadcrumb,
body.blog-page--light .post-breadcrumb a {
    color: #475569 !important;
}
body.blog-page--light .post-breadcrumb a:hover { color: #E63946 !important; }

/* --- Aside takeaway aside on mobile: stop floating below 1024px so
       narrow desktops / tablets get a clean single-column flow.
       (the existing rule is at 768px; widen the breakpoint here
       because we removed the JS sidebar, giving the body extra room.) */
@media (max-width: 1024px) {
    body.blog-page--light .blog-post__body .blog-key-takeaways {
        float: none !important;
        width: 100% !important;
        margin: 0 0 24px !important;
    }
}
/* ===== end light theme JS-extras overrides ===== */

/* ============================================================
   LIGHT THEME — bulletproof table overrides
   The dark-theme rules above use `tbody tr:nth-child(odd/even)` and
   `:not(:has(thead)) tbody tr:first-child` with !important, which
   our earlier `body.blog-page--light .blog-post__body table td`
   override did NOT specifically target — so alternating zebra rows
   inherited dark navy backgrounds with white text (invisible on a
   light page). This block uses the SAME selectors at the same depth
   so the light theme cleanly wins. NEVER let a light-themed blog
   render text that the dark theme had styled white-on-dark.
   ============================================================ */
body.blog-page--light .blog-post__body table,
body.blog-page--light .blog-post__body .table,
body.blog-page--light .blog-post__body .table-bordered {
    background: #ffffff !important;
    color: #1f2937 !important;
}
/* Odoo's classic pattern: no <thead>, first <tr> is the header.
   Promote it to a brand-red filled bar with white text. */
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child,
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td p,
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td strong,
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td span,
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td * {
    color: #ffffff !important;
    font-weight: 700 !important;
}
/* Real <thead> when present */
body.blog-page--light .blog-post__body table thead,
body.blog-page--light .blog-post__body table thead tr,
body.blog-page--light .blog-post__body table thead th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
body.blog-page--light .blog-post__body table thead th *,
body.blog-page--light .blog-post__body table thead th p { color: #0f172a !important; font-weight: 700 !important; }
/* Zebra rows — white + very light gray, NOT the dark theme's #0f1729/#131c30 */
body.blog-page--light .blog-post__body tbody tr:nth-child(odd),
body.blog-page--light .blog-post__body tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}
body.blog-page--light .blog-post__body tbody tr:nth-child(even),
body.blog-page--light .blog-post__body tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}
/* When the first row is the header (Odoo no-thead pattern), the
   nth-child(odd) above would re-paint it white — pin it back to the
   dark header style with higher specificity. */
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:nth-child(odd):first-child,
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:nth-child(odd):first-child td {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%) !important;
}
/* All cell text — dark slate, including anything nested inside */
body.blog-page--light .blog-post__body table td,
body.blog-page--light .blog-post__body table th,
body.blog-page--light .blog-post__body .table td,
body.blog-page--light .blog-post__body .table-bordered td {
    color: #1f2937 !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-right: 1px solid #f1f5f9 !important;
}
body.blog-page--light .blog-post__body table td p,
body.blog-page--light .blog-post__body table th p,
body.blog-page--light .blog-post__body .table td p,
body.blog-page--light .blog-post__body .table-bordered td p {
    color: #1f2937 !important;
    margin: 0 !important;
}
body.blog-page--light .blog-post__body table td strong,
body.blog-page--light .blog-post__body table th strong { color: #0f172a !important; }
/* Hover — pale red tint, dark text stays dark */
body.blog-page--light .blog-post__body tbody tr:hover,
body.blog-page--light .blog-post__body tbody tr:hover td {
    background: #fff5f6 !important;
}
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child:hover,
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child:hover td {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%) !important;
}
/* Cell links — brand red, dark hover */
body.blog-page--light .blog-post__body table td a,
body.blog-page--light .blog-post__body table th a { color: #E63946 !important; }
body.blog-page--light .blog-post__body table td a:hover,
body.blog-page--light .blog-post__body table th a:hover { color: #b91c2c !important; }
/* ===== end light-theme table override ===== */

/* ============================================================
   LIGHT THEME — GLOBAL TEXT VISIBILITY GUARANTEE  (final block)
   This block MUST stay at the end of blog.css. It is the safety net
   that catches every dark-theme leak: any text-bearing element
   inside .blog-post__body that we haven't individually re-styled
   still gets dark-on-light by default. The few intentional dark
   sections (.post-cta, table header row) opt back in to light text
   on dark backgrounds — and only those.
   Pattern:
     1. Force every descendant to dark slate (#1f2937).
     2. Override -webkit-text-fill-color too (defeats gradient-text
        rules that would otherwise paint text transparent).
     3. Re-assert accent colors for headings, links, strong, em.
     4. Hand the dark CTA module + the table header row back their
        intentional white text — explicitly, nothing else stays dark.
   ============================================================ */

/* 1 — universal default: every descendant readable on white */
body.blog-page--light .blog-post__body,
body.blog-page--light .blog-post__body * {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}

/* 2 — headings near-black, including any nested wrappers */
body.blog-page--light .blog-post__body h1,
body.blog-page--light .blog-post__body h2,
body.blog-page--light .blog-post__body h3,
body.blog-page--light .blog-post__body h4,
body.blog-page--light .blog-post__body h5,
body.blog-page--light .blog-post__body h6,
body.blog-page--light .blog-post__body h1 *,
body.blog-page--light .blog-post__body h2 *,
body.blog-page--light .blog-post__body h3 *,
body.blog-page--light .blog-post__body h4 *,
body.blog-page--light .blog-post__body h5 *,
body.blog-page--light .blog-post__body h6 * {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* 3 — inline strong / b near-black */
body.blog-page--light .blog-post__body strong,
body.blog-page--light .blog-post__body b {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* 4 — italic / em slightly muted but still readable */
body.blog-page--light .blog-post__body em,
body.blog-page--light .blog-post__body i {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
}

/* 5 — links and link descendants brand red */
body.blog-page--light .blog-post__body a,
body.blog-page--light .blog-post__body a * {
    color: #E63946 !important;
    -webkit-text-fill-color: #E63946 !important;
}
body.blog-page--light .blog-post__body a:hover,
body.blog-page--light .blog-post__body a:hover * {
    color: #b91c2c !important;
    -webkit-text-fill-color: #b91c2c !important;
}

/* 6 — blockquote text dark, accent border red */
body.blog-page--light .blog-post__body blockquote,
body.blog-page--light .blog-post__body blockquote * {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    background: #f8fafc !important;
    border-left: 4px solid #E63946 !important;
}

/* 7 — inline code + pre code (light theme rendering) */
body.blog-page--light .blog-post__body code {
    color: #b91c2c !important;
    -webkit-text-fill-color: #b91c2c !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
}
body.blog-page--light .blog-post__body pre,
body.blog-page--light .blog-post__body pre * {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    background: #0f172a !important;
}

/* 8 — table cells: dark text on white/zebra (the zebra/bgs are set
   in the earlier block; here we lock the foreground) */
body.blog-page--light .blog-post__body table td,
body.blog-page--light .blog-post__body table th,
body.blog-page--light .blog-post__body table td *,
body.blog-page--light .blog-post__body table th * {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}
body.blog-page--light .blog-post__body table thead th,
body.blog-page--light .blog-post__body table thead th * {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700 !important;
}
/* Odoo no-thead pattern: first row is dark with white text */
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td,
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700 !important;
}
/* And links within table cells should still be brand red */
body.blog-page--light .blog-post__body table td a,
body.blog-page--light .blog-post__body table th a {
    color: #E63946 !important;
    -webkit-text-fill-color: #E63946 !important;
}
body.blog-page--light .blog-post__body table:not(:has(thead)) tbody tr:first-child td a {
    color: #fca5a5 !important;
    -webkit-text-fill-color: #fca5a5 !important;
}

/* 9 — INTENTIONAL DARK SECTIONS opt back in to light-on-dark.
   These have dark backgrounds by design and need white-ish text. */
body.blog-page--light .blog-post__body .post-cta,
body.blog-page--light .blog-post__body .post-cta * {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}
body.blog-page--light .blog-post__body .post-cta__title,
body.blog-page--light .blog-post__body .post-cta__title * {
    /* Gradient text — needs transparent fill, the background-clip rule
       in the earlier block paints the gradient. */
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
body.blog-page--light .blog-post__body .post-cta a,
body.blog-page--light .blog-post__body .post-cta a *,
body.blog-page--light .blog-post__body .post-cta .cta-btn--primary,
body.blog-page--light .blog-post__body .post-cta .cta-btn--ghost {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
body.blog-page--light .blog-post__body .post-cta strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
body.blog-page--light .blog-post__body .post-cta__eyebrow {
    color: #fca5a5 !important;
    -webkit-text-fill-color: #fca5a5 !important;
}
body.blog-page--light .blog-post__body .post-cta__desc,
body.blog-page--light .blog-post__body .post-cta__desc * {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

/* 10 — Quick Takeaway aside: dark text on pale-pink (already set
   in the earlier block; locked here so nothing leaks). */
body.blog-page--light .blog-post__body .blog-key-takeaways,
body.blog-page--light .blog-post__body .blog-key-takeaways * {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
body.blog-page--light .blog-post__body .blog-key-takeaways__title {
    color: #b91c2c !important;
    -webkit-text-fill-color: #b91c2c !important;
}

/* 11 — Top CTA feature box: dark text on light card */
body.blog-page--light .blog-post__body .cta-feature-box,
body.blog-page--light .blog-post__body .cta-feature-box * {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__title,
body.blog-page--light .blog-post__body .cta-feature-box__title * {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__eyebrow {
    color: #E63946 !important;
    -webkit-text-fill-color: #E63946 !important;
}
body.blog-page--light .blog-post__body .cta-feature-box__icon,
body.blog-page--light .blog-post__body .cta-feature-box__icon * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
body.blog-page--light .blog-post__body .cta-feature-box a.cta-btn--primary,
body.blog-page--light .blog-post__body .cta-feature-box .cta-btn--primary,
body.blog-page--light .blog-post__body .cta-feature-box .cta-btn--primary * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 12 — TOC sidebar (left column): slate links, red on active/hover */
body.blog-page--light .post-sidebar .toc-card,
body.blog-page--light .post-sidebar .toc-card * {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}
body.blog-page--light .post-sidebar .toc-card__title {
    color: #b91c2c !important;
    -webkit-text-fill-color: #b91c2c !important;
}
body.blog-page--light .post-sidebar .toc-card li a:hover,
body.blog-page--light .post-sidebar .toc-card li a.is-active {
    color: #b91c2c !important;
    -webkit-text-fill-color: #b91c2c !important;
}

/* 13 — Post tags + tag chips */
body.blog-page--light .blog-post__body .post-tags,
body.blog-page--light .blog-post__body .post-tags * {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
}
body.blog-page--light .blog-post__body .tag-chip {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* 14 — Breadcrumb (JS-injected) */
body.blog-page--light .post-breadcrumb,
body.blog-page--light .post-breadcrumb * {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}
body.blog-page--light .post-breadcrumb a:hover {
    color: #E63946 !important;
    -webkit-text-fill-color: #E63946 !important;
}

/* 15 — Floating popup — the modal CARD is WHITE by design, so its
   text must be DARK (not the off-white from the guarantee). Only
   the backdrop (.cta-floating-popup itself) is dark; the card,
   title, description, close button, and warning live ON the white
   card and need dark slate text. The button label stays white
   (it's on a red filled background). */
body.blog-page--light .cta-floating-popup__card,
body.blog-page--light .cta-floating-popup__card * {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}
body.blog-page--light .cta-floating-popup__title,
body.blog-page--light .cta-floating-popup__title * {
    color: #0d1117 !important;
    -webkit-text-fill-color: #0d1117 !important;
}
body.blog-page--light .cta-floating-popup__title .accent {
    color: #E63946 !important;
    -webkit-text-fill-color: #E63946 !important;
}
body.blog-page--light .cta-floating-popup__desc {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
}
body.blog-page--light .cta-floating-popup__close {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}
body.blog-page--light .cta-floating-popup__warning,
body.blog-page--light .cta-floating-popup__warning * {
    color: #E63946 !important;
    -webkit-text-fill-color: #E63946 !important;
}
body.blog-page--light .cta-floating-popup__icon,
body.blog-page--light .cta-floating-popup__icon * {
    color: #E63946 !important;
    -webkit-text-fill-color: #E63946 !important;
}
/* The CTA button on the popup keeps its red-filled / white-text look */
body.blog-page--light .cta-floating-popup .cta-btn--primary,
body.blog-page--light .cta-floating-popup .cta-btn--primary * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ===== end GLOBAL TEXT VISIBILITY GUARANTEE — DO NOT add color rules below this block ===== */
