/* =========================================================
   ARCHIVE PAGE: GRID 3 (DESKTOP) & LIST (MOBILE)
   ========================================================= */

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.desktop-only { display: block; }
.mobile-only { display: none; }

/* 1. ARCHIVE HEADER (CENTERED ON DESKTOP) */
.archive-header-box { padding: 40px 0; margin-bottom: 30px; text-align: left; }

@media screen and (min-width: 1024px) {
    .archive-header-box { text-align: center; padding: 60px 0 40px; }
    .archive-title { font-size: 36px; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; }
    .archive-description { max-width: 700px; margin: 15px auto 0; color: #777; line-height: 1.6; font-size: 16px; }
    
    /* Garis merah kecil di bawah judul kategori */
    .header-line-center { width: 50px; height: 3px; background: #2222; margin: 25px auto 0; }
}

/* 2. DESKTOP GRID (3 KOLOM) */
@media screen and (min-width: 1024px) {
    .archive-content-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
    }
    .desktop-card { background: #fff; transition: transform 0.3s; }
    .desktop-card:hover { transform: translateY(-5px); }
    .d-img-box { position: relative; height: 210px; overflow: hidden; border-radius: 8px; }
    .d-img-box img { width: 100%; height: 100%; object-fit: cover; }
    .d-cat-badge { position: absolute; bottom: 10px; left: 10px; background: #2222; color: #fff; font-size: 10px; padding: 4px 10px; font-weight: 800; text-transform: uppercase; }
    .d-info { padding: 15px 0; }
    .d-title { font-size: 19px; line-height: 1.4; margin-bottom: 10px; font-weight: 800; }
    .d-title a { color: #111; text-decoration: none; }
    .d-meta { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
}

/* 3. MOBILE LIST STYLE */
@media screen and (max-width: 1023px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .archive-header-box { padding: 30px 0 10px; }
    .archive-title { font-size: 24px; font-weight: 800; }
    
    .mobile-style-card {
        padding: 15px 0;
        border-bottom: 1px solid #f2f2f2;
        display: flex;
        width: 100%;
    }
    .m-cat-col { display: flex; align-items: center; width: 35px; position: relative; }
    .m-cat-text { writing-mode: vertical-lr; transform: rotate(180deg); font-size: 10px; font-weight: 800; color: #232424; text-transform: uppercase; white-space: nowrap; }
    .m-cat-line { width: 1px; height: 70%; background: #ddd; margin-left: 8px; }
    .m-thumb-col { flex: 0 0 90px; height: 90px; }
    .m-square-img { width: 100%; height: 100%; object-fit: cover; }
    .m-content-col { flex: 1; padding-left: 15px; }
    .m-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 5px 0; }
    .m-title a { color: #111; text-decoration: none; }
    .m-meta { font-size: 11px; color: #888; display: flex; gap: 5px; }
    .m-author { color: #2222; font-weight: 700; }
}

/* 4. PAGINATION (TANPA GARIS) */
.pagination-wrap { border-top: none !important; margin-top: 40px; text-align: center; padding-bottom: 40px; }
.pagination-wrap .nav-links { display: flex; justify-content: center; gap: 10px; }
.pagination-wrap .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #eee; text-decoration: none; color: #111; font-weight: 700; border-radius: 4px; }
.pagination-wrap .page-numbers.current { background: #111; color: #fff; border-color: #111; }
.pagination-wrap a.page-numbers:hover { background: #2222; color: #fff; border-color: #2222; }