/* =============================================
   MODERN BLOG DETAIL PAGE STYLES
============================================== */

/* Main Wrapper */
.blog-detail-wrapper {
    background: var(--pure-white);
    padding: 0; /* Removed padding, handled by sections */
}

/* Featured Hero Image */
.blog-detail-hero {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.blog-detail-hero:hover img {
    transform: scale(1.02);
}

/* Meta Information */
.blog-detail-meta {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.meta-item strong {
    color: var(--charcoal);
}

.meta-divider {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Blog Title */
.blog-detail-title {
    font-family: var(--font-02);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Dynamic Content (WYSIWYG Styling) */
.blog-detail-content {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.9;
}

.blog-detail-content h2, 
.blog-detail-content h3, 
.blog-detail-content h4 {
    font-family: var(--font-02);
    color: var(--charcoal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-detail-content h2 { font-size: 2rem; }
.blog-detail-content h3 { font-size: 1.6rem; }

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content ul, 
.blog-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-detail-content li {
    margin-bottom: 0.75rem;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--coral);
    background: var(--warm-gray);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--charcoal);
    font-size: 1.15rem;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-detail-content a {
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.blog-detail-content a:hover {
    color: var(--primary-teal);
}

/* =============================================
   SIDEBAR & RELATED POSTS
============================================== */
.blog-sidebar {
    transition: all 0.3s ease;
}

.related-posts-widget {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.widget-header {
    margin-bottom: 1.5rem;
}

.widget-title {
    font-family: var(--font-02);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.widget-underline {
    width: 50px;
    height: 3px;
    background: var(--coral);
    border-radius: 2px;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.related-post-item {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1.25rem;
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-post-thumb {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-link:hover .related-post-thumb img {
    transform: scale(1.1);
}

.related-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.post-date i {
    color: var(--coral);
}

.post-title {
    font-family: var(--font-01);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-link:hover .post-title {
    color: var(--coral);
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
============================================== */
@media (max-width: 991px) {
    .blog-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-top: 3rem;
    }
    
    .blog-detail-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-detail-title {
        font-size: 1.8rem;
    }
    
    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .meta-divider {
        display: none;
    }
    
    .related-posts-widget {
        padding: 1.5rem;
    }
    
    .related-post-thumb {
        width: 80px;
        height: 80px;
    }
}