/* 
 * Berita & Pagination Custom CSS 
 * Theme Color: #00A67D
 */

/* ==========================================================================
   Search & Filter Section
   ========================================================================== */
.search-filter-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 166, 125, 0.08);
    border: 1px solid rgba(0, 166, 125, 0.1);
    z-index: 10;
    padding: 1.5rem;
}

.search-input-group {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #00A67D;
    box-shadow: 0 0 0 0.25rem rgba(0, 166, 125, 0.25);
}

.search-input-group .input-group-text,
.search-input-group .form-control {
    background-color: transparent;
}

.search-input-group .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.btn-search {
    background-color: #00A67D;
    border-color: #00A67D;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover,
.btn-search:focus {
    background-color: #008f6b;
    border-color: #008f6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 125, 0.3) !important;
}

.category-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-select:focus {
    border-color: #00A67D;
    box-shadow: 0 0 0 0.25rem rgba(0, 166, 125, 0.25);
}

/* ==========================================================================
   Berita Cards
   ========================================================================== */
.berita-card-custom {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.berita-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 166, 125, 0.12) !important;
}

.berita-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.berita-card-img-wrap img {
    transition: transform 0.5s ease;
}

.berita-card-custom:hover .berita-card-img-wrap img {
    transform: scale(1.05);
}

.berita-meta-badge {
    background-color: rgba(0, 166, 125, 0.1);
    color: #00A67D;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ==========================================================================
   Custom Pagination
   ========================================================================== */
.custom-pagination-wrapper .pagination {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-pagination-wrapper .page-item .page-link {
    border-radius: 10px;
    border: 1px solid transparent;
    color: #475569;
    background-color: #f8fafc;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.custom-pagination-wrapper .page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: rgba(0, 166, 125, 0.1);
    color: #00A67D;
    border-color: transparent;
    transform: translateY(-2px);
}

.custom-pagination-wrapper .page-item.active .page-link {
    background-color: #00A67D;
    border-color: #00A67D;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 166, 125, 0.3);
}

.custom-pagination-wrapper .page-item.disabled .page-link {
    color: #cbd5e1;
    background-color: #f8fafc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Navigation items (prev/next) can be slightly wider if text is used, but icon is fine */
.custom-pagination-wrapper .page-item.nav-item .page-link {
    width: auto;
    padding: 0 16px;
}

/* ==========================================================================
   Responsive Spacing (UI Fixes)
   ========================================================================== */
.section-berita-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-berita-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 992px) {
    .section-berita-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1200px) {
    .section-berita-padding {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* Very large screens (1440px, 1600px, 1920px) */
@media (min-width: 1400px) {
    .berita-container {
        max-width: 1320px;
    }
}

@media (min-width: 1600px) {
    .berita-container {
        max-width: 1440px;
    }
}

/* Dropdown Custom */
.dropdown-item.active, .dropdown-item:active {
    background-color: #00A67D !important;
    color: #ffffff !important;
}
.dropdown-item:hover {
    background-color: rgba(0, 166, 125, 0.1);
    color: #00A67D;
}

/* Custom Radio Checkbox Style for Sidebar */
.custom-check input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1.15em;
    height: 1.15em;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px !important; /* Square look */
    background-color: transparent;
    cursor: pointer;
    margin-right: 0.5rem;
    position: relative;
    top: 3px;
    transition: all 0.2s ease-in-out;
}

.custom-check input[type="radio"]:checked {
    background-color: #00A67D;
    border-color: #00A67D;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
}

.custom-check input[type="radio"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 166, 125, 0.25);
    outline: none;
}

/* Re-add hover-card for old card style */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 153, 102, 0.15) !important;
}
