/* ================================================================
   BERITA LIHAT SEMUA SECTION CSS
   Font      : Plus Jakarta Sans
   BG Header : #004F3B
   Primary   : #004F3B
   Accent    : #009966
   Radius    : Card Luar 1px, Card Dalam 3px
 ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.berita-page-wrapper {
    width: 100%;
    min-height: 100vh;
    background-color: #F9FAFB;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
    padding-top: 103px; /* Avoid overlapping fixed navbar */
}

/* ── Header Banner ──────────────────────────────────────────── */
.berita-header {
    background-color: #004F3B;
    padding: 64px 0;
    text-align: left;
    box-sizing: border-box;
}

.berita-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.berita-header-title {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.berita-header-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
}

/* ── Main Content Section ────────────────────────────────────── */
.berita-content {
    padding: 48px 0 64px;
    box-sizing: border-box;
}

.berita-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ── Filter Bar ─────────────────────────────────────────────── */
.berita-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05);
}

.berita-filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #004F3B;
    margin: 0 0 10px 0;
}

.berita-search-section {
    width: 49%;
}

.berita-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 3px !important;
    overflow: hidden;
    background-color: #FFFFFF;
}

.berita-search-icon {
    width: 18px;
    height: 18px;
    margin-left: 14px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.berita-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1F2937;
    background: transparent;
}

.berita-search-input::placeholder {
    color: #9CA3AF;
}

.berita-search-btn {
    background-color: #009966;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.berita-search-btn:hover {
    background-color: #007D53;
}

.berita-filter-section {
    width: 49%;
}

/* ── Custom Select Dropdown ───────────────────────────────────── */
.berita-filter-wrap {
    position: relative;
    overflow: visible;
}

.berita-custom-select {
    position: relative;
    width: 100%;
}

.berita-custom-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #D1D5DB;
    border-radius: 3px;
    background: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #332C2B;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.berita-custom-select-btn:focus,
.berita-custom-select.open .berita-custom-select-btn {
    border-color: #009966;
    outline: none;
}

.berita-custom-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.berita-custom-select-icon {
    width: 10px;
    height: 6px;
    flex-shrink: 0;
    fill: none;
    stroke: #A3A3A3;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.berita-custom-select.open .berita-custom-select-icon {
    transform: rotate(180deg);
}

.berita-custom-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
}

.berita-custom-select.open .berita-custom-select-list {
    display: block;
}

.berita-custom-option {
    padding: 10px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #332C2B;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.berita-custom-option:hover {
    background: rgba(0, 153, 102, 0.08);
    color: #009966;
}

.berita-custom-option.selected {
    color: #009966;
    font-weight: 700;
    background: rgba(0, 153, 102, 0.06);
}

/* ── Featured Section (Row 1) ────────────────────────────────── */
.berita-featured-section {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 24px;
    margin-bottom: 32px;
}

.berita-featured-left {
    height: 100%;
}

.featured-large-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    transition: all 0.25s ease;
}

.featured-large-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
}

.featured-large-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.berita-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #009966;
    color: #FFFFFF;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}

.featured-large-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.featured-large-title {
    font-size: 24px;
    font-weight: 700;
    color: #004F3B;
    margin: 0;
    line-height: 1.3;
}

/* Featured Right Column */
.berita-featured-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.featured-small-card {
    display: flex;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 16px;
    gap: 16px;
    flex: 1;
    transition: all 0.25s ease;
}

.featured-small-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.small-card-image-wrap {
    width: 140px;
    height: 100%;
    min-height: 100px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.small-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-card-date {
    font-size: 13px;
    font-weight: 600;
    color: #009966;
    margin-bottom: 8px;
}

.small-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── News Grid Section ───────────────────────────────────────── */
.berita-grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.berita-grid-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.berita-grid-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.grid-card-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.grid-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.berita-grid-card:hover .grid-card-image-wrap img {
    transform: scale(1.03);
}

.grid-card-content {
    padding: 20px;
}

.grid-card-date {
    font-size: 13px;
    font-weight: 600;
    color: #009966;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.grid-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Pagination ─────────────────────────────────────────────── */
.berita-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

.berita-pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.berita-page-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid #D1D5DB;
    border-radius: 3px;
    background-color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0 10px;
}

.berita-page-btn svg {
    width: 18px;
    height: 18px;
}

.berita-page-btn:hover:not(.active):not(.disabled) {
    background-color: #F3F4F6;
    border-color: #9CA3AF;
    color: #1F2937;
}

.berita-page-btn.active {
    background-color: #004F3B;
    border-color: #004F3B;
    color: #FFFFFF;
    cursor: default;
}

.berita-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.berita-page-dots {
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    padding: 0 4px;
    display: flex;
    align-items: center;
    height: 40px;
}

/* ── Responsive Design ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .berita-featured-section {
        grid-template-columns: 1fr;
    }
    .berita-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .berita-page-wrapper {
        padding-top: 80px;
    }
    .berita-header {
        padding: 40px 20px;
    }
    .berita-header-title {
        font-size: 32px;
    }
    .berita-content {
        padding: 32px 20px;
    }
    .berita-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    .berita-search-section,
    .berita-filter-section {
        width: 100%;
    }
    .featured-small-card {
        flex-direction: column;
    }
    .small-card-image-wrap {
        width: 100%;
        height: 180px;
    }
    .berita-grid-section {
        grid-template-columns: 1fr;
    }
}
