/* ===================== Blog Detail Layout ===================== */
.article-section {
    margin-top: 0;
}

/* ===================== Article Content ===================== */
.article-content {
    background: var(--bg-white);
    line-height: 1.8;
}

.article-cat-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.article-content h1 {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta a {
    color: var(--accent-red);
    font-weight: 600;
}

.article-meta a:hover {
    text-decoration: underline;
}

.article-head-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 24px;
}

#content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-main);
}

#content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

#content h2,
#content h3,
#content h4 {
    font-family: Georgia, serif;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text-main);
}

#content h2 {
    font-size: 22px;
}

#content h3 {
    font-size: 18px;
}

#content p {
    margin: 0 0 16px;
}

#content ul,
#content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

#content ul {
    list-style: disc;
}

#content ol {
    list-style: decimal;
}

/* ===================== FAQ Section ===================== */
.faq-section {
    margin-top: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.faq-section h2 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================== Related Posts ===================== */
.related-posts {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.related-posts__title {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

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

.related-post-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-post-card__img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.related-post-card__cat {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.related-post-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-post-card__title a:hover {
    color: var(--primary);
}

/* ===================== Sidebar Detail ===================== */
.popular-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item__title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.popular-item__title a:hover {
    color: var(--primary);
}

.popular-item__img {
    flex-shrink: 0;
    width: 60px;
    height: 50px;
    overflow: hidden;
    border-radius: 3px;
}

.popular-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-list-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-main);
}

.category-list-item:last-child {
    border-bottom: none;
}

.category-list-item:hover {
    color: var(--primary);
}

/* ===================== Responsive ===================== */
@media (max-width: 600px) {
    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
