/* =========================================
   BLOG DETAIL PAGE
========================================= */

.blog-detail-page {
    background: #f7f9fc;
    padding-bottom: 80px;
}

/* ---------- HERO ---------- */

.blog-detail-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #063b70;
}

.blog-detail-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(4, 28, 52, 0.94) 0%,
            rgba(4, 28, 52, 0.70) 42%,
            rgba(4, 28, 52, 0.20) 100%
        );
}

.blog-detail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 90px 0 70px;
    color: #fff;
}

.blog-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 50px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.blog-detail-title {
    max-width: 900px;
    margin: 18px 0 18px;

    font-size: clamp(38px, 5.2vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #fff;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    font-size: 13px;
    color: rgba(255,255,255,.82);
}

.blog-detail-meta .separator {
    opacity: .5;
}

/* ---------- MAIN CONTENT ---------- */

.blog-detail-content {
    padding: 80px 0;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 55px;
    align-items: start;
}

/* ---------- ARTICLE ---------- */

.blog-article {
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 10px 35px rgba(20, 49, 79, .05);
}

.blog-featured-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 35px;
    background: #edf2f6;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* ---------- ARTICLE TYPOGRAPHY ---------- */

.blog-article-content {
    color: #4f6174;
    font-size: 16px;
    line-height: 1.9;
}

.blog-article-content > *:first-child {
    margin-top: 0;
}

.blog-article-content h2 {
    color: #073b70;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin: 42px 0 15px;
}

.blog-article-content h3 {
    color: #103f70;
    font-size: 24px;
    line-height: 1.3;
    margin: 32px 0 12px;
}

.blog-article-content h4 {
    color: #183b5f;
    font-size: 20px;
    margin: 28px 0 10px;
}

.blog-article-content p {
    margin: 0 0 20px;
    color: #58697b;
}

.blog-article-content strong {
    color: #243c54;
    font-weight: 700;
}

.blog-article-content em {
    color: #546e83;
}

.blog-article-content a {
    color: #0864ae;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 25px;
    padding-left: 24px;
}

.blog-article-content li {
    margin-bottom: 9px;
    color: #58697b;
}

.blog-article-content blockquote {
    margin: 30px 0;
    padding: 20px 24px;

    background: #f3f7fb;
    border-left: 4px solid #f3a10b;
    border-radius: 0 10px 10px 0;

    color: #38546d;
    font-family: "Playfair Display", serif;
    font-size: 21px;
    line-height: 1.5;
}

.blog-article-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 28px 0;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.blog-article-content th,
.blog-article-content td {
    padding: 12px 14px;
    border: 1px solid #dfe6ed;
    text-align: left;
}

.blog-article-content th {
    background: #f3f6f9;
    color: #073b70;
}

/* ---------- SIDEBAR ---------- */

.blog-sidebar {
    position: sticky;
    top: 105px;
}

.blog-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8ef;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(15, 48, 79, .04);
}

.blog-sidebar-title {
    margin: 0 0 18px;
    color: #073b70;

    font-size: 18px;
    font-weight: 700;
}

.blog-sidebar-card p {
    margin: 0;
    color: #718094;
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- AUTHOR ---------- */

.blog-author {
    display: flex;
    align-items: center;
    gap: 13px;
}

.blog-author-avatar {
    width: 46px;
    height: 46px;

    border-radius: 50%;
    background: #e7eef5;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #073b70;
    font-weight: 700;
}

.blog-author-info strong {
    display: block;
    color: #193850;
    font-size: 13px;
}

.blog-author-info span {
    display: block;
    color: #8794a4;
    font-size: 11px;
    margin-top: 2px;
}

/* ---------- RELATED POSTS ---------- */

.related-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;

    border-bottom: 1px solid #edf0f3;
}

.related-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.related-post-image {
    width: 72px;
    height: 60px;

    flex: 0 0 72px;
    border-radius: 8px;

    overflow: hidden;
    background: #edf2f6;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-post-content h4 {
    margin: 0;

    color: #23415d;
    font-size: 12px;
    line-height: 1.35;
}

.related-post-content span {
    display: block;

    margin-top: 5px;
    color: #8a97a6;
    font-size: 10px;
}

/* ---------- SHARE ---------- */

.blog-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-share a {
    width: 35px;
    height: 35px;

    border-radius: 50%;
    border: 1px solid #dbe3ea;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #31526f;
    font-size: 12px;

    transition: .2s ease;
}

.blog-share a:hover {
    background: #073b70;
    border-color: #073b70;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- BACK BUTTON ---------- */

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 20px;

    color: #073b70;
    font-size: 12px;
    font-weight: 700;
}

.blog-back:hover {
    color: #f3a10b;
}

/* ---------- MOBILE ---------- */

@media (max-width: 1000px) {

    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .blog-sidebar-card {
        margin-bottom: 0;
    }

}

@media (max-width: 700px) {

    .blog-detail-hero {
        min-height: 470px;
    }

    .blog-detail-hero-content {
        padding: 70px 0 45px;
    }

    .blog-detail-title {
        font-size: 40px;
    }

    .blog-detail-content {
        padding: 55px 0;
    }

    .blog-article {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .blog-article-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-article-content h2 {
        font-size: 28px;
    }

    .blog-article-content h3 {
        font-size: 22px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        margin-bottom: 25px;
    }

}

@media (max-width: 480px) {

    .blog-detail-hero {
        min-height: 430px;
    }

    .blog-detail-title {
        font-size: 34px;
    }

    .blog-detail-meta {
        font-size: 11px;
        gap: 8px;
    }

    .blog-article {
        padding: 20px 15px;
    }

    .blog-article-content {
        font-size: 14px;
    }

}