.blog-page {
    background:
        radial-gradient(circle at top, rgba(126, 44, 200, 0.09), transparent 30%),
        linear-gradient(180deg, #fcfbfe 0%, #f2edf9 100%);
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 1001;
    transition: width 50ms linear;
}

.breadcrumb {
    margin-top: 6px;
    padding: var(--space-5) 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--neutral-500);
    font-size: var(--fs-small);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li::after {
    content: "/";
    color: var(--neutral-400);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb .current {
    color: var(--neutral-500);
}

.blog-hero {
    padding: calc(var(--header-height) + 32px) 0 52px;
}

.blog-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: stretch;
}

.blog-hero-copy,
.blog-featured-card,
.article-shell,
.toc,
.related-card,
.blog-card {
    border-radius: var(--radius-xl);
    border: var(--border-soft);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.blog-hero-copy {
    padding: 40px;
    background: rgba(255, 255, 255, 0.74);
}

.blog-hero-copy h1 {
    margin-bottom: 16px;
    max-width: 12ch;
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.blog-hero-copy p {
    color: var(--neutral-600);
    max-width: 56ch;
    line-height: 1.78;
}

.blog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.blog-featured-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 20px;
    padding: 40px;
    overflow: hidden;
    background: linear-gradient(180deg, #181023, #2c1844);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    text-decoration: none;
}

.blog-featured-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: var(--border-contrast);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-featured-card h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.3vw, 2.15rem);
    line-height: 1.14;
}

.blog-featured-card p,
.blog-featured-meta {
    color: rgba(255, 255, 255, 0.78);
}

.blog-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-self: end;
    font-size: var(--fs-small);
}

.blog-overview {
    padding-bottom: var(--space-20);
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-10);
}

.filter-btn {
    padding: 10px 16px;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.86);
    color: var(--neutral-700);
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--duration-fast) ease, background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
}

.blog-card:hover,
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}

.blog-card-category,
.related-card-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(73, 3, 86, 0.08);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-card-title,
.related-card-title {
    margin-bottom: 12px;
    color: var(--neutral-900);
    font-size: 1.05rem;
    line-height: 1.42;
}

.blog-card-excerpt {
    color: var(--neutral-600);
    line-height: 1.75;
    flex: 1;
}

.blog-card-meta,
.related-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    color: var(--neutral-500);
    font-size: var(--fs-xs);
}

.blog-empty-state {
    display: none;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    border: var(--border-soft);
    color: var(--neutral-600);
}

.blog-empty-state.visible {
    display: block;
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: var(--space-24);
}

.toc {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    padding: 24px;
    background: rgba(255, 255, 255, 0.82);
}

.toc-title {
    margin: 0 0 14px;
    color: var(--neutral-900);
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-list li + li {
    margin-top: 8px;
}

.toc-list a {
    display: block;
    padding: 10px 0 10px 14px;
    border-left: 2px solid rgba(73, 3, 86, 0.08);
    color: var(--neutral-600);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.toc-toggle {
    display: none;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: var(--border-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--neutral-900);
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.article-shell {
    padding: 38px;
    background: rgba(255, 255, 255, 0.8);
}

.article-header {
    margin-bottom: var(--space-10);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--neutral-500);
    font-size: var(--fs-small);
}

.article-category {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(73, 3, 86, 0.08);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-h1 {
    margin-bottom: 16px;
    max-width: 16ch;
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.article-intro {
    max-width: 760px;
    color: var(--neutral-600);
    font-size: 1.04rem;
    line-height: 1.9;
}

.article-body {
    color: var(--neutral-700);
    font-size: 1.04rem;
    line-height: 1.95;
}

.article-body h2 {
    margin: var(--space-12) 0 var(--space-4);
    color: var(--neutral-900);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.22;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-body h3 {
    margin: var(--space-8) 0 var(--space-3);
    color: var(--neutral-900);
    font-size: 1.16rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body blockquote {
    margin-bottom: var(--space-5);
}

.article-body ul,
.article-body ol {
    padding-left: var(--space-6);
}

.article-body li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--neutral-900);
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    padding: 18px 20px;
    border-left: 3px solid rgba(73, 3, 86, 0.28);
    border-radius: 0 18px 18px 0;
    background: rgba(73, 3, 86, 0.05);
    color: var(--neutral-700);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    border: var(--border-soft);
}

.article-body th,
.article-body td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(73, 3, 86, 0.08);
    text-align: left;
}

.article-body th {
    background: rgba(73, 3, 86, 0.06);
    color: var(--neutral-900);
}

.cta-box {
    margin: var(--space-10) 0;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(73, 3, 86, 0.08), rgba(126, 44, 200, 0.05));
    border: var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.cta-box h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.cta-box p {
    color: var(--neutral-600);
}

a.btn-cta-blog,
.btn-cta-blog {
    display: inline-flex;
    margin-top: 16px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--primary-color, #490356);
    color: #fff !important;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(73, 3, 86, 0.2);
    transition: all 0.25s;
}

a.btn-cta-blog:hover {
    background: var(--primary-light, #6a1a8b);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(73, 3, 86, 0.28);
}

.blog-faq {
    margin: var(--space-12) 0;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.74);
    border: var(--border-soft);
}

.related-posts {
    margin-top: var(--space-14);
    padding-top: var(--space-10);
    border-top: 1px solid rgba(73, 3, 86, 0.08);
}

.related-posts h2 {
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

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

.related-card {
    display: block;
    padding: 28px;
    background: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
}

@media (max-width: 1100px) {
    .blog-hero-shell,
    .blog-layout {
        grid-template-columns: 1fr;
    }

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

    .toc {
        position: static;
    }
}

@media (max-width: 860px) {
    .toc-toggle {
        display: block;
    }

    .toc-list {
        display: none;
    }

    .toc.open .toc-list {
        display: block;
    }

    .article-shell,
    .blog-hero-copy,
    .blog-featured-card,
    .toc {
        padding: 26px;
    }

    .blog-hero-copy h1 {
        max-width: 13ch;
        font-size: clamp(1.95rem, 6vw, 2.9rem);
        line-height: 1.08;
    }

    .blog-featured-card h2 {
        font-size: clamp(1.35rem, 4vw, 1.8rem);
    }

    .article-h1 {
        max-width: none;
        font-size: clamp(1.7rem, 5vw, 2.35rem);
        line-height: 1.12;
    }
}

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