:root {
    --link-color: #0196FF;
    --text-color: #616161;
    --bg-color: #DEF1FF;
    --primary-color: #242424;
    --white-color: #ffffff;
    --gradiant-color: linear-gradient(90deg, rgb(1, 150, 255) 0%, rgb(0, 87, 134) 100%);
}

/* .blog-detail-page,
.blog-sidebar,
.row,
.container-fluid {
    overflow: visible !important;
} */

/* Blog Detail Page Styles */
.blog-hero-section{
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-detail-page {
    padding: 0;
}

.back-link {
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #007bff;
}

.author_profile_info {
    display: flex;
    align-items: center;
    flex: 1;
    padding-right: 16px;
    flex-wrap: wrap;
}
.author_profile_info .author-avatar{
    margin-bottom: 10px;
}
.author_profile_info .author-details {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.author_profile_info .author-name a{
    color: var(--link-color);
    font-size: 18px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}
.author_profile_info .author-name span{
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}
.author_profile_info .post-meta-info{
    margin-bottom: 10px;
}
.author_profile_info .post-meta{
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}
.author_profile_info .post-meta span.dot_span{
    color: var(--link-color);
    font-family: 'Poppins', sans-serif;
}
.post-meta-info .category-badge{
    background-color: var(--bg-color);
    color: var(--link-color);
    font-size: 18px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}
.post-stats {
    display: flex;
    align-items: flex-start;
    column-gap: 40px;
}
.post-stats .stat-item {
    text-align: center;
}
.post-stats .stat-label-div {
    display: flex;
    align-items: center;
    column-gap: 8px;
}
.post-stats .stat-number{
    font-size: 30px;
    font-weight: 700;
    color: var(--link-color);
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.post-stats .stat-label-div .stat-label{
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.blog-detail-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .blog-detail-title {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .blog-detail-title {
        font-size: 32px;
    }
    .author_profile_info .author-name a, .author_profile_info .post-meta{
        font-size: 16px;
    }
    .post-stats .stat-number{
        font-size: 24px;
    }
    .post-stats .stat-label-div .stat-label{
        font-size: 16px;
    }
}
@media (max-width: 575px){
    .author_profile_info .author-details{
        margin-right: 0 !important;
    }
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    /* margin-top: 2rem; */
    margin-bottom: 1rem !important;
}
.post-content .uagb-buttons__wrap{
    margin-bottom: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.post-content p, .post-content li{
    font-size: 16px !important;
    font-family: 'Poppins', sans-serif;
}
.post-content a{
    font-size: 16px !important;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.blog-sidebar {
    padding-right: 2rem;
}

.toc-section {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--link-color);
}

.toc-title {
    color: var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.toc-list {
    max-height: 400px;
    overflow-y: auto;
}

.toc-link {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-left: 22px;
    position: relative;
}

.toc-link:hover {
    color: var(--link-color);
}
.toc-link::before{
    content: '';
    position: absolute;
    background: linear-gradient(90deg, rgb(1, 150, 255) 0%, rgb(0, 87, 134) 100%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.251);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.toc-link.active{
    color: var(--link-color);
}
.toc-link span{
    display: none;
}

.author-bio-section {
    border: 1px solid #e9ecef;
}

.related-posts-section {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-post-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.related-post-title a:hover {
    color: #007bff !important;
}

.related-posts-full-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts-full-section{
    border-top: 1px solid #D9D9D9;
}

.related-posts-full-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.related-posts-full-section .related-post-title{
    font-size: 40px;
    font-weight: 700;
}

@media (max-width: 991px){
    .related-posts-full-section .related-post-title{
        font-size: 30px;
    }
}
@media (max-width: 767px){
    .related-posts-full-section .related-post-title{
        font-size: 26px;
    }
}

.card-title a {
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #007bff !important;
}

/* Custom scrollbar for TOC */
.toc-list::-webkit-scrollbar {
    width: 4px;
}

.toc-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.toc-list::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 2px;
}

.toc-list::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Featured Image Styling */
.featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Post Tags */
.post-tags .btn {
    transition: all 0.3s ease;
}

.post-tags .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Author Info in Related Posts */
.author-info .author-avatar img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1023px){
    .author-meta-section .author-meta-section-wrapper{
        flex-direction: column;
    }
    .author_profile_info{
        margin-right: auto;
    }
    .post-stats{
        margin-left: auto;
    }
    .blog-sidebar{
        padding: 0;
    }
}
/* @media (max-width: 576px) {
    .blog-hero-section {
        padding: 40px 0 30px;
    }
    
    .post-stats-section {
        margin: 0 15px;
    }
    
    .blog-content-section {
        padding: 40px 0;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .d-flex.gap-4 {
        flex-direction: column;
        gap: 1rem !important;
    }
} */