/* ==========================================================================
   BLOG CONFIGURATION & FONTS (Mengisolasi Agar Tidak Merusak Index)
   ========================================================================== */
body.page-blog-index {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
}

body.page-artikel-detail {
    background-color: #fcfcfc;
    color: #2c3e50;
    line-height: 1.7;
}

/* Modifier Pembatas Lebar Container Blog */
.container.container-single-article { max-width: 800px; }
.container.container-blog-index { max-width: 1140px; }
body.page-blog-index .container.nav-container { max-width: 1140px; }

/* ==========================================================================
   1. BLOG INDEX STYLE (LIST KARTU)
   ========================================================================== */
.blog-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}
.blog-header h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -0.5px; }
.blog-header h1 span { color: #f1c40f; }
.blog-header p { font-size: 1.15rem; color: #94a3b8; max-width: 600px; margin: 0 auto; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05); border-color: #cbd5e1; }

.blog-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #cbd5e1;
    overflow: hidden;
}
.blog-card-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }

.blog-card-img-wrap .category {
    position: absolute; top: 15px; left: 15px; background: rgba(15, 23, 42, 0.85); color: #ffffff;
    padding: 4px 12px; font-size: 0.75rem; font-weight: 700; border-radius: 6px; text-transform: uppercase; z-index: 2;
}

.blog-card .blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card .blog-card-body small { font-size: 0.8rem; color: #64748b; font-weight: 500; margin-bottom: 10px; display: block; }
.blog-card .blog-card-body h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 12px 0; line-height: 1.4; }
.blog-card .blog-card-body h3 a { color: #0f172a; text-decoration: none; transition: color 0.2s ease; }
.blog-card .blog-card-body h3 a:hover { color: var(--secondary); }
.blog-card .blog-card-body p {
    font-size: 0.95rem; color: #475569; margin: 0 0 20px 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1;
}
.blog-card .read-more { font-size: 0.9rem; font-weight: 700; color: #0f172a; text-decoration: none; display: inline-flex; align-items: center; transition: color 0.2s ease; margin-top: auto; }
.blog-card .read-more:hover { color: var(--secondary); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 50px; }
.pagination a {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px;
    text-decoration: none; color: #475569; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 600; transition: all 0.2s ease;
}
.pagination a:hover, .pagination a.active { background: #0f172a; color: #ffffff; border-color: #0f172a; }
.pagination a.next { padding: 0 16px; }

/* ==========================================================================
   2. DETAIL ARTIKEL STYLE (SINGLE POST)
   ========================================================================== */
.article-header {
    background: linear-gradient(135deg, #1a2a4a 0%, #101c33 100%);
    color: #ffffff;
    padding: 60px 0 45px 0;
    text-align: left;
    margin-bottom: 40px;
}
.article-header h1 { font-size: 2.3rem; font-weight: 700; line-height: 1.3; margin: 15px 0; }

.badge { background: #f1c40f; color: #1a2a4a; padding: 5px 14px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; border-radius: 50px; display: inline-block; }
.meta-info { font-size: 0.9rem; color: #a0aec0; display: flex; gap: 15px; align-items: center; }
.meta-info i { color: #f1c40f; }

.article-main-content { padding: 10px 0; font-size: 1.1rem; color: #334155; }
.article-main-content p { margin-bottom: 25px; }
.article-main-content strong { color: #0f172a; }
.article-main-content a { color: #3182ce; text-decoration: none; font-weight: 600; border-bottom: 1px dashed #3182ce; }
.article-main-content a:hover { color: #2b6cb0; border-bottom-style: solid; }

.article-main-content h2 {
    font-size: 1.65rem; color: #1e293b; margin-top: 45px; margin-bottom: 20px; font-weight: 700;
    border-left: 4px solid #f1c40f; padding-left: 15px;
}
.blog-img-single { width: 100%; height: auto; border-radius: 12px; margin: 25px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.article-main-content ol { padding-left: 20px; margin-bottom: 30px; }
.article-main-content ol li { margin-bottom: 15px; padding-left: 5px; }
.article-main-content ol li::marker { font-weight: 700; color: #f1c40f; }

.highlight-box {
    background: #f8fafc; border: 1px solid #e2e8f0; border-left: 6px solid #25D366;
    border-radius: 8px; padding: 30px; margin: 40px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.highlight-box h3 { margin-top: 0; color: #1e293b; font-size: 1.4rem; font-weight: 700; }
.highlight-box .btn-wa-cta {
    background: #25D366; color: #ffffff !important; text-decoration: none !important; padding: 12px 30px;
    font-weight: 700; border-radius: 50px; display: inline-block; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); transition: all 0.3s ease;    
}
.highlight-box .btn-wa-cta:hover { background: #1ebd54; transform: translateY(-2px); }

/* ==========================================================================
   3. RESPONSIVE BLOG COMPONENTS
   ========================================================================== */
@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .blog-header h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .container.container-single-article, .container.container-blog-index { max-width: 100%; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-header { padding: 50px 20px; }
    .blog-header h1 { font-size: 1.8rem; }
    .blog-header p { font-size: 1rem; }
    
    .article-header { padding: 40px 0 30px 0; text-align: center; }
    .article-header h1 { font-size: 1.75rem; }
    .meta-info { justify-content: center; font-size: 0.8rem; }
    .article-main-content { font-size: 1rem; }
    .article-main-content h2 { font-size: 1.4rem; }

    .highlight-box { padding: 20px; }
    .highlight-box .btn-wa-cta { width: 100%; text-align: center; }
}
