/* ==========================================================================
  BANGGANESIA BATUI THEMES - PAGE CSS
   Halaman Statis: Menu Kiri + Konten Kanan + Filter Bar + Tag/Category List
   Layout: Breadcrumb → Judul → Featured Image → Menu (Kiri) + Konten (Kanan)
   ========================================================================== */

/* ==========================================================================
   1. PAGE MAIN (di dalam .wrapper)
   ========================================================================== */
.page-main {
    min-width: 0;
}

.page-article {
    background: #ffffff;
}

/* ==========================================================================
   2. PAGE HEADER (Breadcrumb + Judul)
   ========================================================================== */
.page-header {
    margin-bottom: 24px;
}

/* Breadcrumb */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--batui-font, sans-serif);
    font-size: 13px;
    color: var(--batui-text-muted, #888);
}

.page-breadcrumb .bc-link {
    color: var(--batui-primary, #8B0000);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-breadcrumb .bc-link:hover {
    color: var(--batui-primary-dark, #6b0000);
    text-decoration: underline;
}

.page-breadcrumb .bc-sep {
    color: var(--batui-text-muted, #888);
    font-size: 16px;
}

.page-breadcrumb .bc-current {
    color: var(--batui-text, #1a1a1a);
    font-weight: 600;
}

/* Judul Halaman */
.page-title {
    font-family: var(--batui-font, sans-serif);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--batui-text, #1a1a1a);
    margin: 0;
}

/* ==========================================================================
   3. PAGE FEATURED IMAGE (Opsional)
   ========================================================================== */
.page-featured-image {
    margin-bottom: 24px;
    border-radius: var(--batui-radius, 8px);
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.page-featured-caption {
    font-family: var(--batui-font, sans-serif);
    font-size: 13px;
    color: var(--batui-text-muted, #888);
    margin-top: 8px;
    font-style: italic;
}

/* ==========================================================================
   4. PAGE BODY: 2 KOLOM (Menu Kiri + Konten Kanan)
   ========================================================================== */
.page-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* ==========================================================================
   5. KOLOM KIRI: MENU NAVIGASI
   ========================================================================== */
.page-sidebar {
    width: 220px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.page-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.page-menu-list li:last-child {
    border-bottom: none;
}

.page-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-menu-list a::after {
    content: '›';
    font-size: 22px;
    color: #999;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.page-menu-list a:hover,
.page-menu-list li.current-menu-item a,
.page-menu-list a.active {
    color: var(--batui-primary, #8B0000);
}

.page-menu-list a:hover::after,
.page-menu-list li.current-menu-item a::after,
.page-menu-list a.active::after {
    color: var(--batui-primary, #8B0000);
    transform: translateX(3px);
}

/* ==========================================================================
   6. KOLOM KANAN: KONTEN
   ========================================================================== */
.page-content {
    min-width: 0;
    font-family: var(--batui-font, sans-serif);
    color: #333;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: var(--batui-font, sans-serif);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 24px 0 12px 0;
}

.page-content h2 { font-size: 22px; }
.page-content h3 { font-size: 18px; }
.page-content h4 { font-size: 16px; }

.page-content p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px 0;
    color: #444;
}

.page-content ul,
.page-content ol {
    margin: 0 0 16px 24px;
    padding: 0;
}

.page-content li {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.page-content a {
    color: var(--batui-primary, #8B0000);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: var(--batui-primary-dark, #6b0000);
}

.page-content strong,
.page-content b {
    font-weight: 700;
    color: #1a1a1a;
}

.page-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid var(--batui-primary, #8B0000);
    margin: 20px 0;
    padding: 16px 20px;
    font-style: italic;
    color: #555;
}

.page-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.page-content figure {
    margin: 24px 0;
}

.page-content figcaption {
    font-size: 13px;
    color: var(--batui-text-muted, #888);
    margin-top: 8px;
    font-style: italic;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.page-content th,
.page-content td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: left;
}

.page-content th {
    background: #f5f5f5;
    font-weight: 700;
}

.page-content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 24px 0;
}

.page-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.page-content pre code {
    background: transparent;
    padding: 0;
}

/* Page Pagination (nextpage) */
.page-pagination {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--batui-font, sans-serif);
    font-size: 14px;
}

.page-pagination .page-links-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 8px;
}

.page-pagination a,
.page-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-pagination a:hover {
    background: var(--batui-primary, #8B0000);
    color: #fff;
}

.page-pagination span.current {
    background: var(--batui-primary, #8B0000);
    color: #fff;
}

/* ==========================================================================
   7. FILTER BAR (Indeks Berita) - RASIO 60:40
   ========================================================================== */
.bgn-list-filter {
    background: #f5f5f5;
    padding: 14px 20px;
    margin-bottom: 24px;
    border-radius: 6px;
}

.bgn-list-filter-inner {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.bgn-list-filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

/* Grup dasar */
.bgn-filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* ✅ KUNCI RASIO: 60% vs 40% */
.bgn-filter-group--date { flex: 3; }
.bgn-filter-group--cat { flex: 2; }

.bgn-filter-label {
    font-family: var(--batui-font, sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

/* Input & Select mengisi sisa ruang di dalam grup */
.bgn-filter-date,
.bgn-filter-select {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--batui-font, sans-serif);
    background: #ffffff;
    color: #333;
    height: 40px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    flex: 1;
    min-width: 0;
}

.bgn-filter-date:focus,
.bgn-filter-select:focus {
    outline: none;
    border-color: var(--batui-primary, #8B0000);
}

.bgn-filter-select { cursor: pointer; }

.bgn-filter-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.bgn-filter-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.bgn-filter-search-btn {
    padding: 0 22px;
    background: var(--batui-primary, #8B0000);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--batui-font, sans-serif);
    cursor: pointer;
    transition: background 0.2s ease;
    height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
}

.bgn-filter-search-btn:hover {
    background: var(--batui-primary-dark, #6b0000);
}

.bgn-filter-reset {
    color: var(--batui-primary, #8B0000);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--batui-font, sans-serif);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.bgn-filter-reset:hover {
    color: var(--batui-primary-dark, #6b0000);
    text-decoration: underline;
}

.bgn-list-filter-info {
    padding: 12px 16px;
    background: #f9f9f9;
    border-left: 3px solid var(--batui-primary, #8B0000);
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
    font-family: var(--batui-font, sans-serif);
}

.bgn-list-filter-info strong {
    color: #1a1a1a;
    margin-right: 8px;
    font-weight: 700;
}

/* ==========================================================================
   8. TAG LIST & CATEGORY LIST
   ========================================================================== */
.bgn-tag-list,
.bgn-category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 24px;
}

/* --- MOBILE (< 1000px) --- */
.bgn-tag-list .bgn-category-item,
.bgn-category-list .bgn-category-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.bgn-tag-list .bgn-category-item:last-child,
.bgn-category-list .bgn-category-item:last-child {
    border-bottom: none;
}

.bgn-tag-list .bgn-category-item:hover,
.bgn-category-list .bgn-category-item:hover {
    box-shadow: none;
}

.bgn-tag-list .bgn-category-link,
.bgn-category-list .bgn-category-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* ✅ FIX: Hilangkan underline dari CSS global tema */
.bgn-category-link,
.bgn-tag-list .bgn-category-link,
.bgn-category-list .bgn-category-link,
.bgn-category-link *,
.bgn-tag-list .bgn-category-link *,
.bgn-category-list .bgn-category-link * {
    text-decoration: none !important;
}

.bgn-tag-list .bgn-category-thumb,
.bgn-category-list .bgn-category-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0;
    flex-shrink: 0;
    background: #f0f0f0;
}

.bgn-tag-list .bgn-category-thumb img,
.bgn-category-list .bgn-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bgn-tag-list .bgn-category-item:hover .bgn-category-thumb img,
.bgn-category-list .bgn-category-item:hover .bgn-category-thumb img {
    transform: scale(1.05);
}

.bgn-tag-list .bgn-category-content,
.bgn-category-list .bgn-category-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2px;
}

.bgn-tag-list .bgn-category-title-post,
.bgn-category-list .bgn-category-title-post {
    font-family: var(--batui-font, sans-serif);
    font-size: 15px;
    font-weight: 800;
    color: #2a2a2a;
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -0.2px;
    text-shadow: 0 0.5px 0.5px rgba(0, 0, 0, 0.08);
}

.bgn-tag-list .bgn-category-link:hover .bgn-category-title-post,
.bgn-category-list .bgn-category-link:hover .bgn-category-title-post {
    color: var(--batui-primary, #8B0000);
}

.bgn-tag-list .bgn-category-meta,
.bgn-category-list .bgn-category-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.bgn-tag-list .bgn-category-cat,
.bgn-category-list .bgn-category-cat,
.bgn-tag-list .bgn-category-separator,
.bgn-category-list .bgn-category-separator {
    display: none;
}

.bgn-tag-list .bgn-category-date,
.bgn-category-list .bgn-category-date {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

.bgn-tag-list .bgn-category-excerpt,
.bgn-category-list .bgn-category-excerpt {
    display: none;
}

/* --- DESKTOP (≥ 1000px) --- */
@media (min-width: 1000px) {
    .bgn-tag-list .bgn-category-item,
    .bgn-category-list .bgn-category-item {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }
    
    .bgn-tag-list .bgn-category-link,
    .bgn-category-list .bgn-category-link {
        align-items: center;
        gap: 20px;
    }
    
    .bgn-tag-list .bgn-category-thumb,
    .bgn-category-list .bgn-category-thumb {
        width: 210px;
        height: 140px;
    }
    
    .bgn-tag-list .bgn-category-thumb img,
    .bgn-category-list .bgn-category-thumb img {
        transition: transform 0.4s ease;
    }
    
    .bgn-tag-list .bgn-category-content,
    .bgn-category-list .bgn-category-content {
        justify-content: center;
        padding-top: 0;
    }
    
    .bgn-tag-list .bgn-category-title-post,
    .bgn-category-list .bgn-category-title-post {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 8px 0;
        -webkit-line-clamp: 2;
        text-shadow: none;
    }
    
    .bgn-tag-list .bgn-category-meta,
    .bgn-category-list .bgn-category-meta {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .bgn-tag-list .bgn-category-cat,
    .bgn-category-list .bgn-category-cat {
        display: block;
        font-size: 13px;
        color: #555;
        font-weight: 600;
    }
    
    .bgn-tag-list .bgn-category-separator,
    .bgn-category-list .bgn-category-separator {
        display: inline;
        margin: 0 6px;
        color: #ccc;
    }
    
    .bgn-tag-list .bgn-category-date,
    .bgn-category-list .bgn-category-date {
        font-size: 12px;
        color: #888;
        font-weight: 400;
    }
}

/* --- SMALL MOBILE (< 360px) --- */
@media (max-width: 360px) {
    .bgn-tag-list .bgn-category-thumb,
    .bgn-category-list .bgn-category-thumb {
        width: 80px;
        height: 80px;
    }
    
    .bgn-tag-list .bgn-category-title-post,
    .bgn-category-list .bgn-category-title-post {
        font-size: 14px;
    }
    
    .bgn-tag-list .bgn-category-date,
    .bgn-category-list .bgn-category-date {
        font-size: 10px;
    }
}

/* ==========================================================================
   9. EMPTY STATE
   ========================================================================== */
.bgn-tag-empty,
.bgn-category-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 14px;
    font-family: var(--batui-font, sans-serif);
}

.bgn-tag-empty svg,
.bgn-category-empty svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ==========================================================================
   10. LIST PAGINATION
   ========================================================================== */
.list-pagination {
    width: 100%;
    text-align: center;
    margin: 40px 0 20px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.list-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
}

.list-pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

/* Reset semua pseudo-element agar TIDAK ADA PANAH */
.list-pagination .page-numbers::before,
.list-pagination .page-numbers::after,
.list-pagination .list-page-prev::before,
.list-pagination .list-page-prev::after,
.list-pagination .list-page-next::before,
.list-pagination .list-page-next::after {
    content: none !important;
    display: none !important;
}

/* Item dasar (Angka) - POLOS */
.list-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    color: #1a1a1a;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--batui-font, sans-serif);
    text-decoration: none;
    transition: color 0.2s ease;
    border: none;
    line-height: 1;
}

.list-pagination .page-numbers:hover {
    background: transparent;
    color: var(--batui-primary, #8B0000);
}

/* Current/Active page - MERAH SOLID */
.list-pagination .page-numbers.current {
    background: var(--batui-primary, #8B0000);
    color: #ffffff;
    font-weight: 700;
    cursor: default;
    min-width: 32px;
    height: 32px;
    border-radius: 4px;
}

.list-pagination .page-numbers.current:hover {
    background: var(--batui-primary, #8B0000);
    color: #ffffff;
}

/* Prev & Next Button - Teks Polos Bold */
.list-pagination .list-page-prev,
.list-pagination .list-page-next {
    min-width: auto;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
}

.list-pagination .list-page-prev:hover,
.list-pagination .list-page-next:hover {
    color: var(--batui-primary, #8B0000);
    background: transparent;
}

/* Dots (...) */
.list-pagination .page-numbers.dots {
    background: transparent;
    color: #1a1a1a;
    cursor: default;
    border: none;
    min-width: auto;
    padding: 0;
}

.list-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #1a1a1a;
}

/* ==========================================================================
   11. RESPONSIVE: TABLET (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .page-title {
        font-size: 26px;
    }

    .page-body {
        grid-template-columns: 200px 1fr;
        gap: 32px;
    }

    .page-sidebar {
        width: 200px;
    }
}

/* ==========================================================================
   12. RESPONSIVE: MOBILE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .page-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Sembunyikan menu sidebar di mobile */
    .page-sidebar {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Content Typography */
    .page-content p,
    .page-content li {
        font-size: 14px;
    }

    .page-content h2 { font-size: 20px; }
    .page-content h3 { font-size: 17px; }

    /* Filter Bar Mobile */
    .bgn-list-filter {
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .bgn-list-filter-form {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
    }

    /* Reset rasio 60:40 di mobile → full width */
    .bgn-filter-group,
    .bgn-filter-group--date,
    .bgn-filter-group--cat {
        width: 100%;
        flex: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bgn-filter-label {
        width: 100%;
        margin-bottom: 2px;
    }

    .bgn-filter-date,
    .bgn-filter-select,
    .bgn-filter-search-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .bgn-filter-search-btn {
        margin-top: 4px;
    }

    .bgn-filter-reset {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .bgn-list-filter-info {
        font-size: 12px;
        padding: 10px 12px;
    }

    /* Pagination Mobile */
    .list-pagination {
        margin: 30px 0 16px 0;
        padding: 16px 0;
    }

    .list-pagination ul {
        gap: 16px;
    }

    .list-pagination .page-numbers {
        font-size: 15px;
    }

    .list-pagination .page-numbers.current {
        min-width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .list-pagination .list-page-prev,
    .list-pagination .list-page-next {
        display: none;
    }
}

/* ==========================================================================
   13. RESPONSIVE: SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }

    .page-breadcrumb {
        font-size: 12px;
    }

    .page-content h2 { font-size: 18px; }
    .page-content h3 { font-size: 16px; }

    .list-pagination ul {
        gap: 12px;
    }

    .list-pagination .page-numbers {
        font-size: 14px;
    }

    .list-pagination .page-numbers.current {
        min-width: 26px;
        height: 26px;
        font-size: 13px;
    }
}
/* ==========================================================================
   404 PAGE - FULL WIDTH (Tanpa Sidebar)
   Prefix: batui-* (sinkron dengan 404.php)
   Warna: Merah tua #8B0000 (sinkron dengan tema)
   ========================================================================== */

/* --- 1. WRAPPER & MAIN --- */
.wrapper-404 {
    max-width: 1024px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    box-sizing: border-box;
}

.wrapper-404 .site-main {
    grid-column: 1 / -1; /* Full width, tanpa sidebar */
}

.batui-404-article {
    background: #ffffff;
}

/* --- 2. 404 HEADER (Judul Besar "404") --- */
.page-header {
    margin-bottom: 24px;
}

.batui-404-title {
    font-family: var(--batui-font, sans-serif);
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: #f0f0f0;
    margin: 0 0 20px 0;
    letter-spacing: -4px;
    text-align: center;
}

/* --- 3. 404 CONTENT (Heading + Description) --- */
.batui-404-content {
    text-align: center;
    padding: 0 0 50px;
}

.batui-404-heading {
    font-family: var(--batui-font, sans-serif);
    font-size: 32px;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.batui-404-description {
    font-family: var(--batui-font, sans-serif);
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin: 0 auto 32px;
    max-width: 600px;
}

/* --- 4. LATEST ARTICLES SECTION --- */
.batui-404-latest {
    margin-bottom: 20px;
}

.batui-404-latest .batui-section-header-title {
    font-family: var(--batui-font, sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #2a2a2a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.batui-404-latest .batui-section-header-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--batui-primary, #8B0000);
}

/* --- 5. LATEST GRID (3 Kolom) --- */
.batui-404-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.batui-404-latest-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.batui-404-latest-item:hover {
    border-color: var(--batui-primary, #8B0000);
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.1);
    transform: translateY(-2px);
}

.batui-404-latest-thumb {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.batui-404-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.batui-404-latest-item:hover .batui-404-latest-thumb img {
    transform: scale(1.05);
}

.batui-404-latest-content {
    padding: 14px;
}

.batui-404-latest-category {
    font-family: var(--batui-font, sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--batui-primary, #8B0000);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.batui-404-latest-title {
    font-family: var(--batui-font, sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.batui-404-latest-title a {
    color: #2a2a2a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.batui-404-latest-title a:hover {
    color: var(--batui-primary, #8B0000);
    text-decoration: none;
}

.batui-404-latest-date {
    font-family: var(--batui-font, sans-serif);
    font-size: 12px;
    color: #888;
}

.batui-404-no-data {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 20px;
    font-family: var(--batui-font, sans-serif);
}

/* ==========================================================================
   RESPONSIVE: MOBILE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    .wrapper-404 {
        padding: 24px 16px 40px;
    }

    .batui-404-title {
        font-size: 80px;
        letter-spacing: -2px;
    }

    .batui-404-heading {
        font-size: 24px;
    }

    .batui-404-description {
        font-size: 14px;
    }

    .batui-404-content {
        padding: 0 0 32px;
    }

    /* Latest grid mobile */
    .batui-404-latest-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .batui-404-latest-item {
        display: flex;
        flex-direction: row;
    }

    .batui-404-latest-thumb {
        width: 120px;
        height: auto;
        aspect-ratio: 1;
        flex-shrink: 0;
    }

    .batui-404-latest-content {
        flex: 1;
        min-width: 0;
        padding: 12px;
    }

    .batui-404-latest-title {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }
}

/* ==========================================================================
   RESPONSIVE: SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .wrapper-404 {
        padding: 16px 12px 32px;
    }

    .batui-404-title {
        font-size: 60px;
    }

    .batui-404-heading {
        font-size: 20px;
    }

    .batui-404-description {
        font-size: 13px;
    }

    .batui-404-latest .batui-section-header-title {
        font-size: 18px;
    }
}