body[data-page="blog"] {
    background:
        linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
}

.blog-detail-main {
    padding: 4.5rem 2rem 5rem;
    margin-bottom: 2rem;
    overflow: visible;
    background: transparent;
}

.blog-detail-shell {
    width: min(1280px, calc(100% - 4rem));
    margin: 0 auto;
    display: flex;
    gap: 34px;
    padding-right: 2rem;
    box-sizing: border-box;
    align-items: flex-start;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
}

.blog-detail-content-column {
    flex: 0 0 calc(70% - 17px);
    max-width: calc(70% - 17px);
    min-width: 0;
    overflow: visible;
    padding-right: 0;
}

.blog-detail-sidebar {
    flex: 0 0 calc(30% - 17px);
    width: calc(30% - 17px);
    min-width: 0;
    max-width: calc(30% - 17px);
    margin-right: 0;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    z-index: 1;
    overflow: visible;
}

.blog-detail-sidebar-inner {
    position: static;
}

body[data-page="blog"] .site-footer {
    position: relative;
    z-index: 3;
}

.blog-detail-container {
    width: 100%;
    margin: 0;
    padding: clamp(1.6rem, 3vw, 2.7rem);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    overflow: visible;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    color: #1f5ed7;
    font-weight: 600;
}

.blog-back-link:hover,
.blog-back-link:focus-visible {
    color: #163f97;
}

.blog-header {
    margin-bottom: 1.65rem;
    text-align: left;
}

.blog-header h1 {
    max-width: 820px;
    margin: 0 0 1rem;
    color: #142033;
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.blog-meta {
    color: #1f5ed7;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.5;
}

.blog-meta strong {
    color: inherit;
    font-weight: 600;
}

.blog-featured-image {
    width: 100%;
    margin: 0 0 2rem;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 0;
}

.blog-featured-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.blog-content {
    color: #243247;
    font-size: 1rem;
    line-height: 1.9;
    overflow: visible;
}

.blog-content>div {
    display: block;
}

.blog-content p {
    margin: 0 0 1.25rem;
}

.blog-content a {
    color: #1f5ed7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content h2 {
    margin: 2.4rem 0 1rem;
    color: #142033;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-content h3 {
    margin: 1.9rem 0 0.85rem;
    color: #142033;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.35;
}

.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin: 1.5rem 0 0.75rem;
    color: #142033;
    font-weight: 700;
    line-height: 1.4;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 1.35rem 1.4rem;
    padding: 0;
}

.blog-content ul {
    list-style: disc !important;
}

.blog-content li {
    display: list-item;
    margin-bottom: 0.45rem;
    padding-left: 0.1rem;
}

.blog-content table {
    width: 100%;
    margin: 1.35rem 0 1.6rem;
    border-collapse: collapse;
    color: #111827;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #d9dde7;
}

.blog-content th,
.blog-content td {
    padding: 0.85rem 0.95rem;
    border: 1px solid #d9dde7;
    text-align: left;
    vertical-align: top;
}

.blog-content th {
    background: #f4f6fb;
    color: #142033;
    font-weight: 700;
}

.blog-after-area {
    width: 100%;
    margin: 1.5rem 0 0;
    overflow: visible;
}

.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.6rem;
    color: #142033;
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.blog-post-nav-divider {
    width: 1px;
    min-height: 38px;
    background: #dfe3ec;
}

.blog-post-nav a {
    display: grid;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
}

.blog-post-nav-label {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1f5ed7;
}

.blog-post-nav-title {
    overflow: hidden;
    color: #18243a;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-post-nav-next {
    text-align: right;
}

.blog-contact-card {
    padding: 1.85rem 1.9rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    border: 1px solid rgba(31, 94, 215, 0.1);
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.blog-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #1f5ed7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-contact-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

.blog-contact-card h2 {
    margin: 0 0 1.35rem;
    color: #142033;
    font-size: 1.85rem;
    line-height: 1.15;
}

.blog-contact-card p {
    margin: 0 0 1.25rem;
    color: #516074;
    line-height: 1.75;
}

.blog-contact-form {
    display: grid;
    gap: 1.15rem;
}

.blog-contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.blog-contact-form label {
    display: grid;
    gap: 0.5rem;
    color: #142033;
    font-size: 0.98rem;
    font-weight: 600;
}

.blog-contact-form input,
.blog-contact-form textarea {
    width: 100%;
    min-height: 66px;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(20, 32, 51, 0.12);
    border-radius: 0;
    background: #ffffff;
    color: #142033;
    font: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-contact-form textarea {
    min-height: 174px;
    resize: vertical;
}

.blog-contact-form input:focus,
.blog-contact-form textarea:focus {
    outline: none;
    border-color: rgba(31, 94, 215, 0.45);
    box-shadow: 0 0 0 4px rgba(31, 94, 215, 0.1);
}

.blog-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #1f5ed7, #163f97);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-contact-submit:hover,
.blog-contact-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(31, 94, 215, 0.22);
}

@media (max-width: 1180px) {
    .blog-detail-shell {
        width: min(1180px, calc(100% - 3rem));
        gap: 26px;
        padding-right: 1.5rem;
    }

    .blog-detail-content-column {
        flex-basis: calc(68% - 13px);
        max-width: calc(68% - 13px);
    }

    .blog-detail-sidebar {
        flex-basis: calc(32% - 13px);
        width: calc(32% - 13px);
        min-width: 0;
        max-width: calc(32% - 13px);
    }

    .blog-contact-card {
        padding: 1.6rem;
    }
}

@media (max-width: 980px) {
    .blog-detail-main {
        padding: 2rem 1rem 3rem;
    }

    .blog-detail-shell {
        flex-direction: column;
        gap: 1.5rem;
        width: min(100%, calc(100% - 1rem));
        padding-right: 0;
    }

    .blog-detail-content-column,
    .blog-detail-sidebar {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-right: 0;
    }

    .blog-detail-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 760px) {
    .blog-detail-main {
        padding: 1.2rem 0.85rem 2.3rem;
    }

    .blog-detail-container,
    .blog-contact-card,
    .blog-post-nav {
        padding: 1.35rem;
        border-radius: 0;
    }

    .blog-header h1 {
        font-size: 1.85rem;
        line-height: 1.3;
    }

    .blog-content {
        line-height: 1.8;
    }

    .blog-contact-form-row {
        grid-template-columns: 1fr;
    }

    .blog-post-nav {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .blog-post-nav-divider {
        width: 100%;
        min-height: 1px;
    }

    .blog-post-nav-next {
        text-align: left;
    }

    .blog-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}