.guide-detail-banner {
    background-image: url("../../images/guide_detail_bnr.png");
    background-size: cover;
    background-position: center bottom;
    position: relative;
}

/* Layout */
.guide-detail-content {
    background-color: #fff;
    padding: 80px 200px;
}

.blog-detail-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 50px;
    color: #283593;
    text-align: start;
}

.blog-detail-title-second {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 50px;
    color: #27368b;
    text-align: start;
    margin-bottom: 0;
}

.blog-detail-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.updated-on {
    font-size: 16px;
    color: #888;
    font-style: italic;
}

.blog-meta-info {
    display: flex;
    justify-content: flex-end;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 10;
}

/* TOC Card */
.toc-card {
    background: #f3f3f3;
    border-radius: 24px;
    padding: 32px;
    position: relative;
}

.toc-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.toc-list li {
    margin-bottom: 16px;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-link {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    padding-left: 24px;
    position: relative;
}

.toc-link::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: #2e3ea8;
    transition: all 0.3s ease;
    z-index: 2;
}

.toc-link.active {
    color: #2e3ea8;
    font-weight: 700;
}

.toc-link.active::before {
    height: 100%;
}

/* Reading Progress Bar */
.progress-bar-container {
    position: absolute;
    left: 32px;
    top: 88px; /* Adjust based on title height and padding */
    bottom: 32px;
    width: 2px;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.reading-progress-bar {
    width: 100%;
    height: 0;
    background-color: #2e3ea8;
    transition: height 0.1s linear;
}

/* Related Posts */
.related-posts-section {
    margin-top: 48px;
}

.related-posts-section h2 {
    font-size: 30px;
    font-weight: 700;
    color: #333;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.related-post-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-info {
    flex-grow: 1;
}

.related-post-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-post-meta i {
    font-size: 16px;
}

/* Article Content Styling */
.blog-main-content h2 {
    line-height: 36px;
    font-size: 28px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #333;
}

.blog-main-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 24px;
}

.blog-main-content img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 24px;
    margin: 32px 0;
    display: block;
}

/* Responsive */
@media (min-width: 1400px) {
    .guide-detail-content {
        padding: 50px  100px;
    }
}
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
        margin-top: 48px;
    }

    .guide-detail-content {
        padding-top: 40px;
    }

    .related-posts-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .toc-card {
        margin-bottom: 32px;
        order: -1;
    }

    .row {
        display: flex;
        flex-direction: column;
    }

    .col-lg-8 {
        order: 2;
    }

    .col-lg-4 {
        order: 1;
    }
}

html {
    scroll-behavior: smooth;
}

.card-title a {
    color: #444444;
    font-family: "Manrope";
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: bottom;
}
