/* ============================================================
   Gaya konten Artikel & Video Edukasi.
   Dipakai di DUA tempat sekaligus supaya tampilannya identik:
   1. Halaman publik  -> edukasi/detail.php
   2. Editor WYSIWYG   -> admin/articles.php (TinyMCE content_css)
   Kalau mengubah gaya di sini, otomatis mengikuti di kedua tempat.
   Daftar tag di bawah harus tetap sinkron dengan whitelist tag
   di sanitizeArticleHtml() (init.php) — kalau ada tag baru yang
   diizinkan sanitizer, tambahkan juga gaya untuk tag itu di sini.
   ============================================================ */

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}
.article-content h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--primary, #800000);
}
.article-content h3 {
    font-size: 1.15rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}
.article-content h4 {
    font-size: 1.05rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
    border-left: 4px solid var(--primary, #800000);
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    margin: 1rem 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.article-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
    margin: 1rem 0;
}
.article-content a { color: var(--primary, #800000); text-decoration: underline; }
.article-content hr { border: none; border-top: 1px solid #e0e0e0; margin: 1.5rem 0; }
.article-content figure { margin: 1rem 0; }
.article-content figcaption { font-size: 0.85rem; color: #888; text-align: center; margin-top: 0.4rem; }
.article-content code {
    background: #f1f1f1;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.article-content pre {
    background: #2d2d2d;
    color: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.article-content th, .article-content td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.article-content th { background: #f8f9fa; font-weight: 600; }
