/* ================================
   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;
}

.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.35rem 0 0.35rem 2rem;
    margin-bottom: 0.45rem;
    line-height: 1.7;
}
.blog-page .blog-post__body ul > li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.85rem;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, #e63946, #b91220);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(230,57,70,0.3);
}
.blog-page .blog-post__body ul > li::after {
    content: "";
    position: absolute;
    left: 5px; top: 1.05rem;
    width: 8px; height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* 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, decimal-leading-zero);
    position: absolute;
    left: 1rem; top: 1rem;
    width: 2rem; height: 2rem;
    background: linear-gradient(135deg, #e63946, #b91220);
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(230,57,70,0.3);
    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: 14px; height: 14px; top: 0.55rem; }
.blog-page .callout--takeaways ul > li::after { width: 6px; height: 4px; left: 4px; top: 0.7rem; border-width: 1.5px; }
.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: 1rem 1.4rem;
    background: linear-gradient(135deg, #fef0f1 0%, #fff5f6 100%);
    border: 1px solid rgba(230,57,70,0.15);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 1.1rem;
    align-items: center;
    box-shadow: 0 1px 6px rgba(230,57,70,0.04);
}
.blog-page .cta-feature-box__icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #ffd1d6 0%, #ff8a96 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(230,57,70,0.22);
    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.16rem 0.55rem;
    background: rgba(230,57,70,0.1);
    color: var(--primary);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    margin-bottom: 0.3rem;
}
.blog-page .cta-feature-box__eyebrow::before {
    content: "";
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(230,57,70,0.55);
}
.blog-page .cta-feature-box__title {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0d1117;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.blog-page .cta-feature-box__title .accent {
    background: linear-gradient(135deg, #e63946, #b91220);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.blog-page .cta-feature-box__desc {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 600px;
}
.blog-page .cta-feature-box__desc strong {
    color: #0d1117;
    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.5rem 0.95rem;
    font-size: 0.8rem;
    border-radius: 7px;
    white-space: nowrap;
    justify-content: center;
}

/* ---------- 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-100);
    color: var(--gray-500);
    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.93rem;
    color: var(--gray-600);
    line-height: 1.55;
    text-align: center;
}
.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; }
}
