.blog-shell {
    --blog-ink: #102548;
    --blog-muted: #5f6f8f;
    --blog-brand: #224fc5;
    --blog-border: #d7e0f2;
    --blog-bg-soft: #f4f8ff;
    color: var(--blog-ink);
}

.blog-hero {
    margin-bottom: 1.1rem;
    border-radius: 18px;
    padding: 1.45rem 1.5rem;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 65%),
        linear-gradient(132deg, #122f7b 0%, #2153cf 52%, #179eb7 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 18px 34px rgba(16, 40, 110, 0.22);
}

.blog-kicker {
    margin: 0 0 .35rem;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.blog-hero h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    font-weight: 820;
    letter-spacing: -.01em;
}

.blog-sub {
    margin: .45rem 0 0;
    color: rgba(244, 249, 255, 0.92);
    max-width: 760px;
}

.blog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.blog-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .7rem;
    gap: .8rem;
}

.blog-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #15336f;
    font-weight: 760;
}

.blog-section-head a,
.blog-section-head span {
    font-size: .86rem;
    color: #4f6186;
    text-decoration: none;
}

.blog-featured-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: .9rem;
    margin-bottom: 1.1rem;
}

.blog-feature-card,
.blog-card,
.blog-sidebar-card,
.blog-post-body {
    border: 1px solid var(--blog-border);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(16, 35, 76, 0.06);
    overflow: hidden;
}

.blog-feature-card {
    display: flex;
    flex-direction: column;
}

.blog-feature-card img,
.blog-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.blog-feature-card:first-child img {
    height: 230px;
}

.blog-feature-card:not(:first-child) img {
    height: 150px;
}

.blog-card img {
    height: 165px;
}

.blog-feature-body,
.blog-card-body {
    padding: .92rem;
}

.blog-category {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--blog-brand);
    text-decoration: none;
    font-weight: 760;
}

.blog-feature-body h2,
.blog-card-body h3 {
    margin: .45rem 0;
    font-size: 1.04rem;
    line-height: 1.35;
}

.blog-feature-body h2 a,
.blog-card-body h3 a {
    color: #102548;
    text-decoration: none;
}

.blog-feature-body h2 a:hover,
.blog-card-body h3 a:hover,
.blog-sidebar-list a:hover {
    color: #1f4ec0;
}

.blog-feature-body p,
.blog-card-body p {
    color: var(--blog-muted);
    font-size: .92rem;
    margin-bottom: .55rem;
}

.blog-meta {
    display: flex;
    gap: .8rem;
    color: #6f7b98;
    font-size: .81rem;
    margin-bottom: .45rem;
}

.blog-read-link {
    display: inline-block;
    color: #2450bf;
    text-decoration: none;
    font-weight: 650;
    font-size: .87rem;
}

.blog-content-grid {
    display: grid;
    grid-template-columns: 1.75fr .92fr;
    gap: 1rem;
}

.blog-main-col {
    min-width: 0;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.blog-sidebar {
    display: grid;
    gap: .8rem;
    align-content: start;
}

.blog-sidebar-card {
    padding: .95rem;
}

.blog-sidebar-card h4 {
    margin: 0 0 .65rem;
    font-size: .95rem;
    color: #17336f;
}

.blog-excel-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .75rem;
    align-items: start;
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #eff6ff, #ffffff);
}

.blog-excel-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
}

.blog-excel-kicker {
    display: block;
    margin-bottom: .2rem;
    color: #2563eb;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.blog-sidebar-card .blog-excel-kicker + h4 { margin-bottom: .35rem; }

.blog-excel-card p {
    grid-column: 1 / -1;
    margin: 0;
    color: #516786;
    font-size: .87rem;
    line-height: 1.55;
}

.blog-excel-card .btn,
.blog-excel-guide { grid-column: 1 / -1; }

.blog-excel-guide {
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.blog-excel-guide:hover { text-decoration: underline; }

.blog-sidebar-card .form-control {
    border: 1px solid #c9d8f0;
    border-radius: 10px;
}

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

.blog-sidebar-list li {
    border-bottom: 1px solid #edf2fb;
}

.blog-sidebar-list li:last-child {
    border-bottom: 0;
}

.blog-sidebar-list a {
    display: flex;
    justify-content: space-between;
    gap: .7rem;
    padding: .48rem 0;
    color: #2f4774;
    text-decoration: none;
    font-size: .9rem;
}

.blog-pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d8e3f8;
    border-radius: 12px;
    padding: .65rem .82rem;
    background: #fff;
}

.blog-pagination a {
    color: #2351c2;
    text-decoration: none;
    font-weight: 630;
}

.blog-post-body {
    padding: 1.1rem;
}

.blog-post-hero {
    border: 1px solid #d9e3f4;
    border-radius: 12px;
    padding: .95rem 1rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    margin-bottom: .9rem;
}

.blog-post-breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .5rem;
    font-size: .82rem;
}

.blog-post-breadcrumb a {
    color: #2a4aa0;
    text-decoration: none;
    font-weight: 620;
}

.blog-post-breadcrumb span {
    color: #7c8baa;
}

.blog-post-title {
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    margin: 0 0 .6rem;
    color: #102345;
}

.blog-tags-top {
    margin-bottom: .9rem;
}

.blog-post-main {
    border: 1px solid #d8e3f6;
    border-radius: 12px;
    background: #fff;
    padding: .9rem;
}

.blog-post-featured {
    width: 100%;
    border-radius: 12px;
    margin-bottom: .95rem;
}

.blog-post-content {
    color: #20375e;
    line-height: 1.72;
    font-size: 1.01rem;
}

.blog-post-content h2,
.blog-post-content h3 {
    margin-top: 1.2rem;
    color: #10274f;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.blog-promo-block {
    margin: 1.2rem 0;
    border: 1px solid #cfe0fb;
    border-radius: 12px;
    background: linear-gradient(130deg, #f4f9ff, #ecf6ff);
    padding: .95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .9rem;
}

.blog-promo-block h3 {
    margin: 0 0 .4rem;
    font-size: 1.08rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .75rem;
}

.blog-tags span {
    border: 1px solid #c9d9f5;
    background: #f4f8ff;
    border-radius: 999px;
    padding: .28rem .58rem;
    font-size: .78rem;
}

.blog-related h3 {
    margin: .85rem 0;
}

.blog-tool-card p {
    color: #5d6f8f;
    font-size: .9rem;
    margin-bottom: .65rem;
}

@media (max-width: 1199.98px) {
    .blog-featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-feature-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .blog-card-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-feature-card:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 767.98px) {
    .blog-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.12rem;
    }

    .blog-promo-block {
        flex-direction: column;
        align-items: flex-start;
    }
}
