/* =========================================================
   News Filter — tampilan disamakan dengan halaman kategori tema
   Ubah warna/font di sini saja bila tema berubah:
   - Font      : 'Montserrat'
   - Judul     : #284a9a (biru tua)
   - Kategori  : #f51700 (merah)
   - Teks      : #000000
   - Pagination: #e3001b (aktif), #7d7d7d (lainnya)
   Nilai diambil langsung dari halaman kategori tema (Nomina).
   ========================================================= */

#news-filter-form,
#news-results {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

/* ---------- Form filter ---------- */
#news-filter-form {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#news-filter-form label {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
}

#news-filter-form select,
#news-filter-form input[type="date"] {
    font-family: inherit;
    font-size: 14px;
    color: #333;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 150px;
    box-sizing: border-box;
    background-color: #fff;
}

#news-filter-form input[type="submit"] {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    background-color: #e3001b;
    color: #fff;
    padding: 12px 30px;
    border: 1px solid #e3001b;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

#news-filter-form input[type="submit"]:hover {
    background-color: #b80016;
    border-color: #b80016;
}

/* ---------- Daftar berita ---------- */
.news-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 13px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
}

.news-thumbnail {
    flex: 0 0 150px;
}

.news-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-content {
    flex: 1;
    min-width: 0;
}

/* Judul */
.news-content h2.news-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.news-content h2.news-title a {
    color: #284a9a;
    text-decoration: none;
}

.news-content h2.news-title a:hover {
    color: #000;
    text-decoration: none;
}

/* Meta: Kategori | Hari, tanggal - jam WIB */
.news-meta {
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #000;
}

.news-meta .news-cat a {
    color: #f51700;
    text-decoration: none;
}

.news-meta .news-cat a:hover {
    text-decoration: underline;
}

/* Ringkasan */
#news-results .news-content p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
}

.news-empty {
    font-size: 14px;
    color: #333;
}

/* ---------- Pagination ---------- */
.news-filter-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.news-filter-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 3px;
    border: none;
    border-radius: 50%;
    background: #7d7d7d;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 40px;
    letter-spacing: 0;
    text-decoration: none;
}

.news-filter-pagination .page-numbers.current,
.news-filter-pagination a.page-numbers:hover {
    background: #e3001b;
    color: #fff !important;
}

.news-filter-pagination .page-numbers.prev,
.news-filter-pagination .page-numbers.next {
    width: auto;
    padding: 0 18px;
    border-radius: 20px;
}

.news-filter-pagination .page-numbers.dots {
    background: transparent;
    color: #7d7d7d !important;
}

/* ---------- Layar kecil (HP) ---------- */
@media (max-width: 600px) {
    .news-item {
        flex-direction: column;
    }
    .news-thumbnail {
        flex: none;
        width: 100%;
    }
    .news-thumbnail img {
        width: 100%;
    }
    #news-filter-form .filter-group,
    #news-filter-form select,
    #news-filter-form input[type="date"],
    #news-filter-form input[type="submit"] {
        width: 100%;
    }
}
