.post-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.post-main {
    flex: 1 1 65%;
}
.post-sidebar {
    flex: 1 1 30%;
}

/* --- TOC --- */
.toc-container {
    border: 1px solid #ddd;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    max-height: 300px;
    overflow-y: auto;
}
.toc-container h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.toc-container ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc-container a {
    display: block;
    color: var(--primary-color, #1e88e5);
    text-decoration: none;
    padding: 4px 0;
    transition: color .3s;
}
.toc-container a:hover {
    color: var(--primary-color-hover, #1565c0);
}

/* --- Post --- */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}
.post-content h2, .post-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--heading-color, #111);
}
.related-post-swiper .swiper-slide {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
.related-post-swiper img {
    height: 160px;
    object-fit: cover;
    width: 100%;
}
.related-post-swiper h6 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 10px;
    line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 991.98px){
    .post-detail { flex-direction: column; }
    .post-main, .post-sidebar { flex: 1 1 100%; }
}