/* =====================================
BLOG SYSTEM
===================================== */

.blog-container,
.single-blog-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px;
}

/* =====================================
BLOG ARCHIVE / BLOG PAGE HERO
===================================== */

.blog-archive-hero {
    margin-bottom: 40px;
}

.blog-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 800;
}

.blog-archive-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.blog-archive-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 18px;
    line-height: 1.75;
}

/* =====================================
BLOG GRID
===================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* =====================================
BLOG CARD
===================================== */

.blog-card {
    display: block;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #c7d2fe;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.blog-card-thumb {
    height: 190px;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, .16), transparent 34%),
        linear-gradient(135deg, #f8fafc, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 42px;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 22px;
}

.blog-card-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.blog-card h2,
.blog-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-card p {
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.65;
}

.blog-card-meta {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

/* =====================================
BLOG PAGINATION
===================================== */

.blog-pagination {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

/* =====================================
BLOG EMPTY / STARTER
===================================== */

.blog-empty-state {
    padding: 50px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    background: #f8fafc;
    text-align: center;
}

.blog-empty-state h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.2;
}

.blog-empty-state p {
    margin: 0;
    color: #64748b;
}

.blog-starter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.blog-starter-card {
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.blog-starter-card span {
    display: inline-flex;
    margin-bottom: 16px;
    font-size: 34px;
}

.blog-starter-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-starter-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

/* =====================================
SINGLE BLOG LAYOUT
===================================== */

.single-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 360px;
    gap: 42px;
    align-items: start;
}

.single-blog-main {
    min-width: 0;
}

.single-blog-article {
    width: 100%;
    padding: 44px;
    border: 1px solid #f1f5f9;
    border-radius: 28px;
    background: #fff;
}

.single-blog-hero {
    margin-bottom: 32px;
}

.single-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.single-blog-meta a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 900;
}

.single-blog-meta a:hover {
    text-decoration: underline;
}

.single-blog-hero h1 {
    margin: 0 0 24px;
    color: #0f172a;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.single-blog-hero p {
    max-width: 680px;
    margin: 0;
    color: #334155;
    font-size: 20px;
    line-height: 1.75;
}

.single-blog-thumb {
    margin: 32px 0;
    border-radius: 24px;
    overflow: hidden;
    background: #f1f5f9;
}

.single-blog-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.single-blog-content {
    color: #0f172a;
    font-size: 19px;
    line-height: 1.9;
}

.single-blog-content p {
    margin: 0 0 24px;
}

.single-blog-content h2,
.single-blog-content h3,
.single-blog-content h4 {
    margin-top: 44px;
    margin-bottom: 14px;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.single-blog-content h2 {
    font-size: 34px;
}

.single-blog-content h3 {
    font-size: 27px;
}

.single-blog-content h4 {
    font-size: 22px;
}

.single-blog-content ul,
.single-blog-content ol {
    margin: 0 0 26px 24px;
    padding: 0;
}

.single-blog-content li {
    margin-bottom: 10px;
}

.single-blog-content a {
    color: #4f46e5;
    font-weight: 800;
}

.single-blog-content blockquote {
    margin: 32px 0;
    padding: 22px 24px;
    border-left: 4px solid #4f46e5;
    border-radius: 18px;
    background: #f8fafc;
    color: #334155;
}

.single-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.single-blog-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

.single-blog-content th,
.single-blog-content td {
    padding: 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.single-blog-content th {
    background: #f8fafc;
    font-weight: 800;
}

/* =====================================
SINGLE BLOG SIDEBAR
===================================== */

.single-blog-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-sidebar-card {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.blog-sidebar-head {
    margin-bottom: 16px;
}

.blog-sidebar-head span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.blog-sidebar-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-sidebar-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-sidebar-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.blog-sidebar-tool:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    background: #fff;
}

.blog-sidebar-tool-logo {
    width: 46px;
    height: 46px;
    min-width: 46px;
    max-width: 46px;
    flex: 0 0 46px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-sidebar-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.blog-sidebar-tool-logo span {
    color: #4f46e5;
    font-size: 20px;
    font-weight: 900;
}

.blog-sidebar-tool-info {
    min-width: 0;
}

.blog-sidebar-tool-info strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.25;
}

.blog-sidebar-tool-info small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.blog-sidebar-link {
    display: inline-flex;
    margin-top: 16px;
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.blog-sidebar-link:hover {
    text-decoration: underline;
}

.blog-sidebar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-sidebar-categories a {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.blog-sidebar-categories a:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.blog-sidebar-cta {
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, .18), transparent 38%),
        #0f172a;
    color: #fff;
}

.blog-sidebar-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-sidebar-cta p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.65;
}

.blog-sidebar-cta a {
    display: inline-flex;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.blog-sidebar-cta a:hover {
    text-decoration: underline;
}

/* =====================================
RELATED ARTICLES
===================================== */

.blog-related-section {
    margin-top: 64px;
    padding-top: 42px;
    border-top: 1px solid #e5e7eb;
}

.blog-related-head {
    margin-bottom: 26px;
}

.blog-related-head h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.blog-related-head p {
    max-width: 620px;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.blog-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 1024px) {
    .single-blog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-sidebar-cta {
        grid-column: 1 / -1;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-starter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-container,
    .single-blog-page {
        padding: 34px 16px;
    }

    .blog-grid,
    .blog-starter-grid,
    .blog-related-grid,
    .single-blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-card-thumb {
        height: 180px;
    }

    .blog-card-content,
    .single-blog-article {
        padding: 24px;
    }

    .single-blog-hero h1 {
        font-size: 36px;
    }

    .single-blog-hero p,
    .single-blog-content {
        font-size: 17px;
    }

    .single-blog-content h2 {
        font-size: 28px;
    }

    .single-blog-content h3 {
        font-size: 24px;
    }
}
/* =====================================
SINGLE BLOG POLISH FIX
===================================== */

.single-blog-page {
    padding-top: 40px;
    padding-bottom: 70px;
}

.single-blog-layout {
    grid-template-columns: minmax(0, 720px) 360px;
    gap: 46px;
}

/* Article Card */

.single-blog-article {
    padding: 38px 42px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.035);
}

/* Meta */

.single-blog-meta {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
}

.single-blog-meta,
.single-blog-meta span,
.single-blog-meta a {
    letter-spacing: 0;
}

/* Title */

.single-blog-hero h1 {
    max-width: 650px;
    margin-bottom: 28px;
    font-size: clamp(40px, 4.4vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

/* Article Text */

.single-blog-content {
    max-width: 650px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.85;
    letter-spacing: 0;
    word-spacing: 0;
}

.single-blog-content p,
.single-blog-content li,
.single-blog-content span,
.single-blog-content div {
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
}

.single-blog-content p {
    margin-bottom: 24px;
}

/* Fix weird stretched text */

.single-blog-content,
.single-blog-content * {
    text-align: left;
    text-transform: none;
    font-kerning: normal;
}

/* Sidebar */

.single-blog-sidebar {
    top: 88px;
}

.blog-sidebar-card {
    padding: 22px;
    border-radius: 24px;
}

/* Sidebar Tool Rows */

.blog-sidebar-tool {
    min-height: 74px;
}

.blog-sidebar-tool-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
}

.blog-sidebar-tool-info strong {
    font-size: 15px;
}

.blog-sidebar-tool-info small {
    font-size: 12px;
}

/* Footer Spacing */

.site-footer,
footer {
    margin-top: 40px;
}

/* Responsive */

@media (max-width: 1024px) {
    .single-blog-layout {
        grid-template-columns: 1fr;
    }

    .single-blog-content,
    .single-blog-hero h1 {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .single-blog-page {
        padding-top: 28px;
    }

    .single-blog-article {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .single-blog-hero h1 {
        font-size: 36px;
        line-height: 1.08;
    }

    .single-blog-content {
        font-size: 17px;
        line-height: 1.8;
    }
}
/* =====================================
BLOG BREADCRUMBS
===================================== */

.blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.blog-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.blog-breadcrumbs span {
    color: #94a3b8;
}

.blog-breadcrumbs .current {
    max-width: 320px;
    overflow: hidden;
    color: #475569;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .blog-breadcrumbs .current {
        max-width: 220px;
    }
}
/* =====================================
BLOG TABLE OF CONTENTS
===================================== */

.blog-toc-card {
    padding-bottom: 18px;
}

.blog-toc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-toc-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.blog-toc-list a:hover {
    transform: translateX(2px);
    background: #f1f5f9;
    color: #4f46e5;
}

.blog-toc-list .toc-level-3 {
    margin-left: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.single-blog-content h2[id],
.single-blog-content h3[id] {
    scroll-margin-top: 110px;
}
/* =====================================
BLOG INLINE CTA
===================================== */

.blog-inline-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin: 34px 0;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, .16), transparent 36%),
        #0f172a;
    color: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.blog-inline-cta-content span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.blog-inline-cta-content h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-inline-cta-content p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    line-height: 1.65;
}

.blog-inline-cta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.blog-inline-cta > a:hover {
    background: #eef2ff;
    color: #4f46e5;
}

@media (max-width: 640px) {
    .blog-inline-cta {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .blog-inline-cta > a {
        width: 100%;
    }
}
/* =====================================
BLOG CATEGORY PAGE
===================================== */

.blog-category-page {
    padding-top: 52px;
}

.blog-category-hero {
    padding: 42px;
    border: 1px solid #eef2f7;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, .12), transparent 36%),
        #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}

.blog-category-hero h1 {
    max-width: 860px;
}

.blog-category-hero p {
    max-width: 760px;
}

@media (max-width: 640px) {
    .blog-category-hero {
        padding: 28px 22px;
        border-radius: 24px;
    }
}
/* =====================================
BLOG CATEGORY PAGE POLISH
===================================== */

.blog-category-page .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    justify-content: start;
}

.blog-category-page .blog-card {
    width: 100%;
}

.blog-category-page .blog-card-thumb {
    height: 210px;
}

@media (max-width: 640px) {
    .blog-category-page .blog-grid {
        grid-template-columns: 1fr;
    }
}
/* =====================================
BLOG AUTO VISUAL
===================================== */

.blog-auto-visual {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, .18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, .16), transparent 34%),
        linear-gradient(135deg, #f8fafc, #eef2ff);
}

.blog-auto-visual-inner {
    text-align: center;
}

.blog-auto-visual-icon {
    display: block;
    margin-bottom: 12px;
    font-size: 48px;
    line-height: 1;
}

.blog-auto-visual-label {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.blog-card-thumb .blog-auto-visual {
    min-height: 100%;
}

.blog-feature-card .blog-auto-visual {
    min-height: 100%;
}

@media (max-width: 640px) {
    .blog-auto-visual-icon {
        font-size: 42px;
    }
}