/**
 * Single Blog Post Styles
 */

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background: transparent;
}

#reading-progress-bar {
    height: 100%;
    background: var(--brand-blue, #00255A);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Hero Section */
.blog-hero {
    padding: 140px 0 60px;
    background: #f8faff;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: var(--brand-blue);
    text-decoration: none;
}

.blog-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 30px;
    font-weight: 700;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    display: none;
}

.author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-info {
    display: flex;
    gap: 20px;
    color: #666;
}

.post-info span i {
    margin-right: 5px;
    color: var(--brand-blue);
}

/* Featured Image */
.blog-featured-image {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Layout */
.blog-container {
    display: grid;
    grid-template-columns: 80px 1fr 300px;
    gap: 40px;
    position: relative;
}

@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 1fr 280px;
    }
    .social-share-sticky {
        display: none;
    }
}

@media (max-width: 991px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    .blog-toc {
        display: none;
    }
}

/* Social Share */
.social-share-sticky {
    position: fixed;
    top: 120px;
    height: fit-content;
    text-align: center;
    margin-left:-80px; 
    z-index: 3; 
}

.social-share-sticky p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #999;
}

.share-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    color: #666;
    transition: all 0.3s ease;
}

.share-links a:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
}

/* TOC */
.blog-toc {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.toc-inner {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 15px;
}

.toc-inner h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.toc-inner ul {
    list-style: none;
    padding: 0;
}

.toc-inner ul li {
    margin-bottom: 12px;
}

.toc-inner ul li.h3 {
    padding-left: 15px;
    font-size: 14px;
}

.toc-inner ul li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
    line-height: 1.4;
    display: block;
}

.toc-inner ul li a:hover,
.toc-inner ul li a.active {
    color: var(--brand-blue);
}

/* Blog Content */
.blog-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.blog-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--brand-blue);
}

.blog-body h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.blog-body p {
    margin-bottom: 25px;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.related-card {
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.related-card h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

/* CTA Card */
.blog-cta {
    margin-top: 60px;
}

.cta-card {
    background: var(--brand-blue);
    color: #fff;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.cta-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-card p {
    margin-bottom: 30px;
    opacity: 0.9;
}
