/* =========================================================
   BLOG DETAILS PAGE
========================================================= */

.blog-detail-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #07111f 0%, #10243a 55%, #132d47 100%);
}

.blog-detail-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    right: -160px;
    top: -220px;
    background: rgba(220, 38, 38, 0.14);
}

.blog-detail-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    left: -120px;
    bottom: -180px;
    background: rgba(255, 255, 255, 0.04);
}

.blog-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 13, 25, 0.95),
        rgba(7, 20, 35, 0.78),
        rgba(10, 30, 50, 0.65)
    );
}

.blog-detail-hero .container {
    position: relative;
    z-index: 2;
}

.blog-detail-hero-content {
    max-width: 950px;
    padding: 85px 0 75px;
}

.blog-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.blog-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: 0.3s ease;
}

.blog-detail-breadcrumb a:hover {
    color: #ef4444;
}

.blog-detail-breadcrumb span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
}

.blog-detail-breadcrumb strong {
    color: #fff;
    font-weight: 600;
}

.detail-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.detail-category i {
    color: #ef4444;
}

.blog-detail-hero h1 {
    max-width: 900px;
    color: #fff;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -1.7px;
    font-weight: 800;
    margin: 0 0 25px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-meta i {
    color: #ef4444;
}

/* =========================================================
   MAIN SECTION
========================================================= */

.blog-detail-section {
    padding: 80px 0 100px;
    background: #f6f8fb;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 38px;
    align-items: start;
}

/* =========================================================
   ARTICLE
========================================================= */

.blog-detail-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(15, 23, 42, 0.06);
}

.blog-detail-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #edf1f5;
}

.blog-detail-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-detail-card:hover .blog-detail-featured-image img {
    transform: scale(1.025);
}

.blog-detail-body {
    padding: 42px 45px 48px;
}

.article-top-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.article-top-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    background: #f4f6f8;
    border-radius: 7px;
    color: #687385;
    font-size: 12px;
    font-weight: 600;
}

.article-top-meta i {
    color: #ef4444;
}

.blog-intro {
    position: relative;
    margin: 0 0 35px;
    padding: 25px 28px;
    border-left: 4px solid #ef4444;
    border-radius: 0 14px 14px 0;
    background: #f8fafc;
    color: #465365;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 500;
}

/* =========================================================
   BLOG CONTENT
========================================================= */

.blog-content-area {
    color: #46515f;
    font-size: 16px;
    line-height: 1.9;
}

.blog-content-area > *:first-child {
    margin-top: 0;
}

.blog-content-area h1,
.blog-content-area h2,
.blog-content-area h3,
.blog-content-area h4,
.blog-content-area h5,
.blog-content-area h6 {
    color: #142033;
    line-height: 1.3;
    font-weight: 750;
    margin: 38px 0 16px;
}

.blog-content-area h2 {
    font-size: 30px;
}

.blog-content-area h3 {
    font-size: 24px;
}

.blog-content-area h4 {
    font-size: 20px;
}

.blog-content-area p {
    margin: 0 0 20px;
}

.blog-content-area ul,
.blog-content-area ol {
    margin: 20px 0 25px;
    padding-left: 25px;
}

.blog-content-area li {
    margin-bottom: 10px;
}

.blog-content-area a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: underline;
}

.blog-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
}

.blog-content-area blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: #f8fafc;
    border-left: 4px solid #ef4444;
    border-radius: 0 14px 14px 0;
    color: #334155;
    font-size: 18px;
}

/* =========================================================
   SHARE BOX
========================================================= */

.article-share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 45px;
    padding-top: 28px;
    border-top: 1px solid #e7ebef;
}

.article-tags,
.article-share {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.article-tags strong,
.article-share strong {
    margin-right: 5px;
    color: #182235;
    font-size: 13px;
}

.article-tags strong i {
    color: #ef4444;
}

.article-tags a {
    padding: 8px 13px;
    background: #f5f7f9;
    color: #566273;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.article-tags a:hover {
    background: #ef4444;
    color: #fff;
}

.article-share a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f4f7;
    color: #465365;
    text-decoration: none;
    transition: 0.3s ease;
}

.article-share a:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-3px);
}

/* =========================================================
   PREVIOUS NEXT
========================================================= */

.blog-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 25px;
}

.blog-nav-card {
    display: block;
    min-height: 115px;
    padding: 22px;
    border: 1px solid #e4e9ef;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

.blog-nav-card:hover {
    transform: translateY(-4px);
    border-color: #ef4444;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.07);
}

.blog-nav-card.next {
    text-align: right;
}

.blog-nav-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-nav-card.next .blog-nav-label {
    justify-content: flex-end;
}

.blog-nav-card strong {
    display: block;
    color: #172235;
    font-size: 15px;
    line-height: 1.45;
}

/* =========================================================
   STICKY SIDEBAR
========================================================= */

.blog-detail-sidebar {
    min-width: 0;
}

.blog-sidebar-sticky {
    position: sticky;
    top: 25px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-widget {
    padding: 25px;
    border: 1px solid #e6ebf0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.sidebar-widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 19px;
}

.sidebar-widget-title span {
    color: #172235;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.9px;
}

.sidebar-widget-title i {
    color: #ef4444;
}

/* SEARCH */

.blog-search-form {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 5px;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
    background: #f8fafc;
}

.blog-search-form input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #253044;
    font-size: 13px;
}

.blog-search-form button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
}

/* =========================================================
   CONSULTATION CARD
========================================================= */

.sidebar-consultation {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 22px;
    background: linear-gradient(145deg, #111c2e, #1c334b);
    color: #fff;
    box-shadow: 0 18px 40px rgba(10, 20, 35, 0.15);
}

.sidebar-consultation::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -70px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
}

.consultation-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: #ff5a5f;
    font-size: 19px;
}

.sidebar-consultation > span {
    color: #ff6970;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-consultation h3 {
    position: relative;
    z-index: 1;
    margin: 8px 0 12px;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
}

.sidebar-consultation p {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.7;
}

.sidebar-consultation > a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 17px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.sidebar-consultation > a:hover {
    background: #fff;
    color: #172235;
}

/* =========================================================
   SIDEBAR POSTS
========================================================= */

.sidebar-post-list {
    display: flex;
    flex-direction: column;
}

.sidebar-post {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3;
    text-decoration: none;
}

.sidebar-post:first-child {
    padding-top: 0;
}

.sidebar-post:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-post-image {
    width: 76px;
    height: 70px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef2f5;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.sidebar-post:hover img {
    transform: scale(1.08);
}

.sidebar-post-image > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ba5b1;
}

.sidebar-post-content {
    min-width: 0;
}

.sidebar-post-content span {
    display: block;
    margin-bottom: 5px;
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
}

.sidebar-post-content h4 {
    margin: 0;
    color: #202c3d;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    transition: 0.3s ease;
}

.sidebar-post:hover h4 {
    color: #ef4444;
}

/* =========================================================
   CATEGORIES
========================================================= */

.sidebar-category-list {
    display: flex;
    flex-direction: column;
}

.sidebar-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
    color: #536071;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s ease;
}

.sidebar-category-list a:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-category-list a:first-child {
    padding-top: 0;
}

.sidebar-category-list a span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-category-list a i {
    color: #ef4444;
    font-size: 10px;
}

.sidebar-category-list a b {
    min-width: 27px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f3f5f7;
    color: #6c7684;
    font-size: 11px;
}

.sidebar-category-list a:hover {
    color: #ef4444;
}

/* =========================================================
   CONTACT CARD
========================================================= */

.sidebar-contact-card {
    padding: 25px;
    border: 1px solid #e6ebf0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.sidebar-contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #fff1f2;
    color: #ef4444;
}

.sidebar-contact-card > div:nth-child(2) span {
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.sidebar-contact-card h4 {
    margin: 5px 0 20px;
    color: #172235;
    font-size: 20px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #596575;
    font-size: 13px;
    text-decoration: none;
}

.sidebar-contact-item i {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5f6f8;
    color: #ef4444;
    font-size: 11px;
}

.sidebar-contact-item:hover {
    color: #ef4444;
}

.sidebar-contact-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    background: #172235;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.sidebar-contact-button:hover {
    background: #ef4444;
}

/* =========================================================
   RELATED ARTICLES
========================================================= */

.related-blog-section {
    margin-top: 60px;
}

.related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.related-heading span {
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.related-heading h2 {
    margin: 7px 0 0;
    color: #172235;
    font-size: 30px;
}

.related-heading h2 b {
    color: #ef4444;
}

.related-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.related-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-blog-card {
    overflow: hidden;
    border: 1px solid #e4e9ef;
    border-radius: 17px;
    background: #fff;
    transition: 0.35s ease;
}

.related-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.related-image {
    display: block;
    height: 175px;
    overflow: hidden;
    background: #edf1f5;
}

.related-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: 0.5s ease;
}

.related-blog-card:hover .related-image img {
    transform: scale(1.06);
}

.related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a4adb8;
}

.related-content {
    padding: 19px;
}

.related-content > span {
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.related-content h3 {
    margin: 8px 0 17px;
    font-size: 15px;
    line-height: 1.45;
}

.related-content h3 a {
    color: #1c293b;
    text-decoration: none;
}

.related-content h3 a:hover {
    color: #ef4444;
}

.related-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #687585;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.related-read:hover {
    color: #ef4444;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .blog-detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 28px;
    }

    .blog-detail-featured-image {
        height: 430px;
    }

    .blog-detail-body {
        padding: 35px;
    }

    .related-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .blog-detail-hero {
        min-height: 390px;
    }

    .blog-detail-hero-content {
        padding: 70px 0 60px;
    }

    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-detail-sidebar {
        width: 100%;
    }

    .blog-sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .sidebar-consultation {
        grid-column: span 2;
    }

    .sidebar-contact-card {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .blog-detail-section {
        padding: 50px 0 70px;
    }

    .blog-detail-hero-content {
        padding: 55px 0;
    }

    .blog-detail-hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .blog-detail-breadcrumb {
        font-size: 11px;
    }

    .detail-meta {
        gap: 12px 18px;
        font-size: 12px;
    }

    .blog-detail-featured-image {
        height: 320px;
    }

    .blog-detail-body {
        padding: 28px 22px 32px;
    }

    .blog-intro {
        padding: 20px;
        font-size: 16px;
    }

    .blog-content-area {
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-content-area h2 {
        font-size: 25px;
    }

    .blog-content-area h3 {
        font-size: 21px;
    }

    .article-share-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-navigation {
        grid-template-columns: 1fr;
    }

    .blog-nav-card.next {
        text-align: left;
    }

    .blog-nav-card.next .blog-nav-label {
        justify-content: flex-start;
    }

    .blog-sidebar-sticky {
        display: flex;
    }

    .related-blog-grid {
        grid-template-columns: 1fr;
    }

    .related-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .blog-detail-hero h1 {
        font-size: 30px;
    }

    .blog-detail-featured-image {
        height: 245px;
    }

    .blog-detail-body {
        padding: 23px 17px 28px;
    }

    .article-top-meta span {
        font-size: 10px;
    }

    .sidebar-widget,
    .sidebar-contact-card {
        padding: 20px;
    }

    .sidebar-consultation {
        padding: 24px;
    }

    .related-heading h2 {
        font-size: 25px;
    }
}
