/* ============================================
   Blog Post Styles
   ============================================ */

.page-wrapper {
    overflow: visible;
    overflow-x: hidden;
}

/* ---- Back Navigation (reuses case study pattern) ---- */
.blog-nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-back {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: var(--thm-font);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.blog-back:hover {
    color: #fff;
}

.blog-back i {
    margin-right: 8px;
}

/* ---- Hero ---- */
.blog-hero {
    background: var(--thm-black);
    padding: 140px 0 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-hero__category {
    display: inline-block;
    font-family: var(--thm-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--thm-base);
    margin-bottom: 24px;
}

.blog-hero__title {
    font-family: var(--thm-font-2);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 24px;
    max-width: 800px;
}

.blog-hero__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.blog-hero__meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.blog-hero__meta a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-hero__meta a:hover {
    color: #fff;
}

/* ---- Article Body ---- */
.blog-article {
    background: #111111;
    padding: 80px 0;
}

.blog-article__inner {
    max-width: 760px;
    margin: 0 auto;
}

/* Typography */
.blog-article h2 {
    font-family: var(--thm-font-2);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 56px 0 24px;
}

.blog-article h2:first-child {
    margin-top: 0;
}

.blog-article h3 {
    font-family: var(--thm-font-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    margin: 40px 0 16px;
}

.blog-article p {
    font-family: var(--thm-font);
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.blog-article strong {
    color: #fff;
    font-weight: 600;
}

.blog-article a {
    color: var(--thm-base);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.blog-article a:hover {
    border-bottom-color: var(--thm-base);
}

/* Lead paragraph */
.blog-article__lead {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Lists */
.blog-article ul,
.blog-article ol {
    padding-left: 0;
    margin-bottom: 24px;
    list-style: none;
}

.blog-article ul li,
.blog-article ol li {
    font-family: var(--thm-font);
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0 8px 28px;
    position: relative;
}

.blog-article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--thm-base);
}

.blog-article ol {
    counter-reset: list-counter;
}

.blog-article ol li {
    counter-increment: list-counter;
}

.blog-article ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 8px;
    font-weight: 700;
    color: var(--thm-base);
    font-size: 16px;
}

/* Code blocks */
.blog-code {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin: 32px 0;
    overflow: hidden;
}

.blog-code__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-code__lang {
    font-family: var(--thm-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.blog-code__copy {
    font-family: var(--thm-font);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.blog-code__copy:hover {
    color: #fff;
}

.blog-code pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.blog-code code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* Inline code */
.blog-article code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.85);
}

/* Callout / Tip box */
.blog-callout {
    border-left: 3px solid var(--thm-base);
    background: rgba(255, 255, 255, 0.02);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 6px 6px 0;
}

.blog-callout__label {
    font-family: var(--thm-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--thm-base);
    margin-bottom: 8px;
}

.blog-callout p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Image / Figure */
.blog-figure {
    margin: 40px 0;
}

.blog-figure img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-figure figcaption {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 12px;
    text-align: center;
}

/* Download / CTA box */
.blog-download {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 40px;
    margin: 48px 0;
    text-align: center;
}

.blog-download__icon {
    font-size: 32px;
    color: var(--thm-base);
    margin-bottom: 16px;
}

.blog-download__title {
    font-family: var(--thm-font-2);
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.blog-download__desc {
    font-family: var(--thm-font);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.blog-download .thm-btn {
    display: inline-block;
}

/* Horizontal rule */
.blog-article hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 48px 0;
}

/* Blockquote */
.blog-article blockquote {
    border-left: 3px solid var(--thm-base);
    padding: 8px 0 8px 28px;
    margin: 32px 0;
}

.blog-article blockquote p {
    font-family: var(--thm-font-2);
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Table of Contents ---- */
.blog-toc {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 32px;
    margin-bottom: 48px;
}

.blog-toc__title {
    font-family: var(--thm-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.blog-toc ol {
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
    list-style: none;
}

.blog-toc ol li {
    counter-increment: toc-counter;
    padding: 6px 0 6px 24px;
    position: relative;
}

.blog-toc ol li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    font-size: 14px;
}

.blog-toc ol li a {
    font-family: var(--thm-font);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: none;
}

.blog-toc ol li a:hover {
    color: #fff;
}

/* ---- Tags ---- */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-tag {
    font-family: var(--thm-font);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 16px;
    border-radius: 3px;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
}

.blog-tag:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Author Box ---- */
.blog-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-author__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.blog-author__name {
    font-family: var(--thm-font-2);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.blog-author__bio {
    font-family: var(--thm-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ---- CTA Section ---- */
.blog-cta {
    background: var(--thm-black);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-cta__title {
    font-family: var(--thm-font-2);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.blog-cta__desc {
    font-family: var(--thm-font);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Footer (reuses case study footer) ---- */

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .blog-hero__title {
        font-size: 36px;
    }

    .blog-article h2 {
        font-size: 28px;
    }

    .blog-article h3 {
        font-size: 20px;
    }

    .blog-download {
        padding: 32px 24px;
    }
}

@media (max-width: 575px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-hero__title {
        font-size: 28px;
    }

    .blog-hero__meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .blog-hero__meta-sep {
        display: none;
    }

    .blog-article {
        padding: 60px 0;
    }

    .blog-article h2 {
        font-size: 24px;
        margin: 40px 0 20px;
    }

    .blog-article p,
    .blog-article ul li,
    .blog-article ol li {
        font-size: 16px;
    }

    .blog-code code {
        font-size: 13px;
    }

    .blog-toc {
        padding: 24px;
    }

    .blog-download {
        padding: 28px 20px;
    }

    .blog-cta__title {
        font-size: 28px;
    }
}
