/* Mở rộng không gian hiển thị rộng rãi hơn */
.page-layout-container {
    display: flex;
    gap: 30px;
    max-width: 1400px; /* Tăng từ 1200px lên 1400px giúp bài viết rộng và tối ưu */
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

/* Tăng tỷ lệ cho cột hiển thị nội dung chính */
.forum-post-detail {
    flex: 3.8; /* Tăng độ rộng để tối ưu không gian hiển thị văn bản */
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: #1552a3;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.main-post-title {
    font-size: 32px; /* Tăng font tiêu đề cho cân xứng với khung rộng */
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 18px 0;
    font-weight: 800;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13.5px;
    color: #64748b;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}
.post-meta a {
    color: #0f172a;
    text-decoration: none;
}
.badge-cat {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Nội dung bài viết hiển thị thoáng đãng */
.post-body-content {
    font-size: 17px; /* Tăng kích cỡ chữ nhẹ đọc rõ ràng hơn */
    line-height: 1.9;
    color: #334155;
}
.post-body-content p {
    margin-bottom: 20px;
}
.post-body-content h2, .post-body-content h3 {
    color: #0f172a;
    margin: 32px 0 16px 0;
    font-weight: 700;
}
.post-body-content ul, .post-body-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

/* Định dạng khối ảnh chèn trong bài */
.post-content-image {
    margin: 28px 0;
    text-align: center;
}
.post-content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.img-caption {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* Khu vực hiển thị Tags (Labels) */
.post-tags-area {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Khu vực bình luận */
.post-comments-section {
    margin-top: 45px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}
.post-comments-section h4 {
    font-size: 18px;
    color: #0f172a;
    margin: 0 0 14px 0;
}
.comment-alert-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
.comment-alert-box a {
    color: #1552a3;
    text-decoration: none;
    font-weight: bold;
}

/* ================= SIDEBAR CỘT PHẢI BÀI VIẾT LIÊN QUAN ================= */
.forum-sidebar-related {
    flex: 1.2; /* Tỷ lệ thu nhỏ vừa phải so với cột content bài viết */
    min-width: 300px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1552a3;
}
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.related-card {
    display: flex;
    gap: 14px;
    align-items: center;
}
.related-thumb-box {
    width: 80px;  /* Tăng nhẹ size ảnh sidebar nhìn rõ hơn */
    height: 55px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.related-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.related-link {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-link:hover {
    color: #1552a3;
}
.related-date {
    font-size: 11px;
    color: #94a3b8;
}
.empty-text {
    font-size: 14px;
    color: #94a3b8;
    font-style: italic;
}

/* Tối ưu responsive trên màn hình mobile di động */
@media (max-width: 992px) {
    .page-layout-container {
        flex-direction: column;
    }
    .forum-post-detail {
        padding: 24px;
    }
}

