.berita-section {
    background-color: #f5f6f8;
    padding: 3rem 0;
    font-family: 'Gilroy', sans-serif;
}

/* Search */
.berita-search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
}

.search-input {
    width: 100%;
    border: 2px solid #d6d6d6;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    padding-right: 40px;
    outline: none;
    font-size: 16px;
}

.search-btn {
    position: absolute;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #6381a8;
    cursor: pointer;
}

/* Filter Buttons */
.berita-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    border: 2px solid #6381a8;
    background-color: #fff;
    color: #6381a8;
    border-radius: 25px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #6381a8;
    color: #fff;
}

/* Grid Layout */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.berita-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.berita-card:hover {
    transform: translateY(-5px);
}

.berita-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.berita-content {
    padding: 1rem;
}

.berita-title {
    font-weight: 700;
    color: #2e4368;
    font-size: 18px;
    margin-bottom: 0.5rem;
}

.berita-meta {
    font-size: 14px;
    color: #777;
}

.berita-category {
    display: inline-block;
    background-color: #e3ebf5;
    color: #2e4368;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 8px;
    margin-right: 6px;
}

/* Pagination */
.berita-pagination {
    text-align: center;
    margin-top: 2rem;
}

.page-btn {
    border: none;
    background-color: transparent;
    color: #6381a8;
    font-weight: 700;
    font-size: 16px;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.page-btn.active {
    background-color: #d1a361;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
}

.page-btn:hover {
    color: #d1a361;
}

.page-btn.next {
    font-size: 18px;
}
