/* ============================================
   CATEGORY PAGE HEADER STYLING
   ============================================ */

.category-header {
     padding-bottom: 16px;
   
}

/* Menggunakan style .section-latest yang sudah ada agar konsisten */
.category-header .section-latest {
    margin-bottom: 12px;
}

.category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
    padding: 12px;
    background: #f9f9f9;
    border-left: 3px solid #d32f2f;
    border-radius: 4px;
}

/* Styling Pagination agar rapi */
.category-pagination {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.category-pagination .pagination-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f0f0f1;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-pagination .page-numbers.current,
.category-pagination .page-numbers:hover {
    background: #d32f2f;
    color: #fff;
}

/* Responsive Pagination untuk Mobile */
@media (max-width: 768px) {
    .category-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ============================================
   CATEGORY LAYOUT: SIDEBAR DI KANAN
   ============================================ */

/* Desktop: Grid 2 Kolom (Konten Fleksibel + Sidebar 300px) */
@media (min-width: 769px) {
    .main-layout {
        display: grid !important;
        grid-template-columns: 1fr 300px !important; /* KUNCI: 1fr untuk konten, 300px untuk sidebar */
        gap: 30px !important;
        align-items: start !important; /* Mencegah sidebar meregang tinggi */
        width: 100% !important;
    }

    .content-area {
        width: 100% !important;
        min-width: 0 !important; /* Mencegah konten "meledak" dan mendorong sidebar ke bawah */
    }

    .sidebar {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }
}

/* Mobile: Stack Vertikal (Sidebar di bawah konten) */
@media (max-width: 768px) {
    .main-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .content-area,
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Sembunyikan sidebar desktop di mobile */
    .sidebar {
        display: none !important;
    }
}

