/* assets/css/artikel.css */
/* Versi Modern & Profesional */

/* === HERO SECTION === */
.article-hero {
    padding: 5rem 1rem;
    background-color: var(--bg-secondary-color, #f8f9fa);
    text-align: center;
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.article-hero .post-category {
    display: inline-block;
    margin-bottom: 1.5rem;
    background-color: var(--accent-color-light, #e0ebff);
    color: var(--accent-color, #0d6efd);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-hero .post-category:hover {
    background-color: var(--accent-color, #0d6efd);
    color: #fff;
    transform: translateY(-2px);
}

.article-hero .article-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem); /* Ukuran font responsif */
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary-color, #212529);
}

.article-hero .article-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary-color, #6c757d);
    font-size: 1rem;
    margin-top: 1.5rem;
}

.article-hero .article-meta-info .separator {
    color: var(--border-color, #ced4da);
}

/* === KONTEN UTAMA ARTIKEL === */
.article-page {
    background-color: var(--bg-color, #fff);
}

.article-container {
    max-width: 800px; /* Lebar ideal untuk membaca */
    margin: 4rem auto;
    padding: 0 1rem;
}

.article-content .featured-image {
    margin: 0 0 3rem 0;
}

.article-content .featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px; /* Sudut lebih tumpul */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-body {
    line-height: 1.9; /* Jarak antar baris lebih nyaman */
    font-size: 1.15rem; /* Ukuran font sedikit lebih besar */
    color: #343a40; /* Warna teks tidak terlalu hitam pekat */
}

.article-body img,
.article-body iframe,
.article-body video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary-color, #212529);
}
.article-body h2 { font-size: 1.8rem; border-bottom: 2px solid var(--border-color, #e9ecef); padding-bottom: 0.5rem; }
.article-body h3 { font-size: 1.5rem; }
.article-body h4 { font-size: 1.25rem; }

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.8rem;
}
.article-body li {
    margin-bottom: 0.75rem;
}

.article-body a {
    color: var(--accent-color, #0d6efd);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color-light, #e0ebff);
    transition: all 0.3s ease;
}
.article-body a:hover {
    background-color: var(--accent-color-light, #e0ebff);
}

.article-body blockquote {
    border-left: 5px solid var(--accent-color, #0d6efd);
    padding: 1rem 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    background-color: var(--bg-secondary-color, #f8f9fa);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary-color, #6c757d);
}
.article-body blockquote p {
    margin-bottom: 0;
}


/* === BAGIAN ARTIKEL TERKAIT === */
.related-posts-section {
    padding: 5rem 1rem;
    background-color: var(--bg-secondary-color, #f8f9fa);
    border-top: 1px solid var(--border-color, #e9ecef);
}

.related-posts-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-posts-section .widget-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-primary-color);
}

.recent-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.recent-post-item {
    background-color: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.recent-post-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.recent-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recent-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.recent-post-title a {
    color: var(--text-primary-color, #212529);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-color), var(--accent-color));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.recent-post-title a:hover {
    background-size: 100% 2px;
}

.recent-post-date {
    font-size: 0.9rem;
    color: var(--text-secondary-color, #6c757d);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e9ecef);
}


/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .article-body {
        font-size: 1.1rem;
    }
    .recent-posts-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 3rem 1rem;
    }
    .article-body {
        font-size: 1.05rem;
    }
    .related-posts-section {
        padding: 3rem 1rem;
    }
    .recent-posts-list {
        gap: 1.5rem;
    }
}
