.sj-page-hero--blog-post {
    padding: 48px 0 40px;
}

.sj-page-hero--blog-post h1 {
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    text-transform: none;
    letter-spacing: .02em;
    line-height: 1.3;
}

.sj-blog-post-kicker {
    margin: 0 0 10px;
    color: #63d0f5;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sj-blog-post-meta {
    margin: 12px auto 0;
    color: #d4dcf0;
    font-size: .95rem;
    max-width: 720px;
}

.sj-blog-post {
    max-width: 1040px;
    margin: -28px auto 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border: 1px solid rgba(0, 119, 200, .22);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(3, 27, 64, .14);
}

.sj-blog-post-cover {
    position: relative;
    margin: 0;
    padding: 28px 28px 12px;
    min-height: min(78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(99, 208, 245, .18), transparent 45%),
        linear-gradient(160deg, #031b40 0%, #0e2f6e 55%, #1a4f8c 100%);
    cursor: zoom-in;
}

.sj-blog-post-cover-img {
    display: block;
    width: 100%;
    max-width: 980px;
    max-height: min(72vh, 760px);
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
    animation: blogCoverReveal .85s cubic-bezier(.22, 1, .36, 1) both;
    transition: transform .45s ease, box-shadow .45s ease;
}

.sj-blog-post-cover:hover .sj-blog-post-cover-img {
    transform: scale(1.04);
    box-shadow: 0 24px 56px rgba(0, 119, 200, .35);
}

@keyframes blogCoverReveal {
    from {
        opacity: 0;
        transform: scale(.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sj-blog-zoom-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .95);
    color: #031b40;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(3, 27, 64, .25);
    transition: transform .25s ease, background .25s ease;
}

.sj-blog-zoom-btn:hover {
    transform: translateY(-2px) scale(1.04);
    background: #ffffff;
}

.sj-blog-post-content {
    padding: 28px 36px;
    color: #243447;
    line-height: 1.8;
    font-size: 1.02rem;
}

.sj-blog-post-content p {
    margin: 0 0 14px;
}

.sj-blog-post-content p:last-child {
    margin-bottom: 0;
}

.sj-blog-post-actions {
    padding: 0 36px 32px;
}

.sj-blog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(3, 27, 64, .92);
    backdrop-filter: blur(8px);
    animation: blogLightboxIn .3s ease;
}

.sj-blog-lightbox[hidden] {
    display: none;
}

.sj-blog-lightbox img {
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
    animation: blogCoverReveal .45s cubic-bezier(.22, 1, .36, 1) both;
}

.sj-blog-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.sj-blog-lightbox-close:hover {
    background: rgba(255, 255, 255, .28);
}

@keyframes blogLightboxIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .sj-blog-post {
        margin-top: -16px;
    }

    .sj-blog-post-cover {
        min-height: 52vh;
        padding: 16px 16px 10px;
    }

    .sj-blog-post-cover-img {
        max-height: 48vh;
    }

    .sj-blog-zoom-btn {
        right: 14px;
        bottom: 14px;
        padding: 8px 12px;
        font-size: .8rem;
    }

    .sj-blog-post-content,
    .sj-blog-post-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sj-blog-post-cover-img,
    .sj-blog-lightbox,
    .sj-blog-lightbox img {
        animation: none !important;
    }

    .sj-blog-post-cover:hover .sj-blog-post-cover-img {
        transform: none;
    }
}
