/* ================================================================
   BERITA LIST — standalone CSS
   Warna mengikuti CSS variable tema dari head.php
   ================================================================ */

/* ─── WRAPPER ────────────────────────────────────────────────── */
.ber-wrap {
    background: #f0f2f0;
    padding: 32px 0 52px;
    min-height: 60vh;
    overflow-x: hidden;
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.ber-bc-bar {
    background: #fff;
    border-bottom: 1px solid #e8ede9;
    padding: 10px 0;
    margin-bottom: 0;
}
.ber-bc {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #7a9487;
}
.ber-bc li + li::before { content: '/'; margin-right: 6px; color: #b0c4ba; }
.ber-bc li a { color: var(--green-main); text-decoration: none; }
.ber-bc li a:hover { text-decoration: underline; }
.ber-bc li.ber-bc-active { color: #4a6358; }
.ber-bc li i { margin-right: 4px; }

/* ─── FILTER BAR ─────────────────────────────────────────────── */
.ber-filter-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 14px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.ber-filter-label {
    font-size: 15px; font-weight: 700;
    color: var(--green-dark); margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.ber-filter-label::before {
    content: ''; display: block;
    width: 4px; height: 18px; border-radius: 2px;
    background: var(--green-main);
}
.ber-filter-form {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.ber-select {
    padding: 8px 14px;
    border: 1px solid #d0dbd4;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1a2b1f;
    background: #f4f7f4;
    font-family: inherit;
    outline: none;
    min-width: 200px;
    cursor: pointer;
    appearance: none;
    /* SVG chevron — warna hardcoded karena CSS var tidak bisa di data URL */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.ber-select:focus { border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(var(--primary-mid-rgb),.12); }
.ber-btn {
    padding: 8px 20px;
    background: var(--green-main); color: #fff;
    border: none; border-radius: 8px;
    font-size: 13.5px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background .2s;
    white-space: nowrap;
}
.ber-btn:hover { background: var(--green-dark); }

/* ─── CARD GRID ──────────────────────────────────────────────── */
.ber-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: 8px;
}
.ber-col {
    padding-left: 12px;
    padding-right: 12px;
    width: 33.3333%;
    margin-bottom: 24px;
    display: flex;
}

.ber-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.ber-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.ber-card-img {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #c8d8cc;
    flex-shrink: 0;
}
.ber-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .35s ease;
}
.ber-card:hover .ber-card-img img { transform: scale(1.06); }

.ber-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ber-card-title {
    font-size: 14.5px; font-weight: 700;
    color: #1a2b1f; line-height: 1.5;
    margin: 0; flex: 1;
}
.ber-card-title a { color: inherit; text-decoration: none; }
.ber-card-title a:hover { color: var(--green-main); }

.ber-card-meta {
    font-size: 12px; color: #7a9487;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ber-card-meta i { margin-right: 3px; color: var(--green-main); }

.ber-card-link {
    font-size: 13px; font-weight: 600;
    color: var(--green-main); text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: auto;
    padding-top: 4px;
}
.ber-card-link:hover { color: var(--green-dark); }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.ber-empty {
    text-align: center; padding: 60px 20px;
    color: #7a9487;
    background: #fff; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.ber-empty i { font-size: 48px; display: block; margin-bottom: 14px; }
.ber-empty p { font-size: 15px; margin: 0; }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.ber-pagination {
    display: flex; justify-content: center;
    padding-top: 16px;
}
.ber-pagination .pagination {
    display: flex; gap: 4px;
    list-style: none; margin: 0; padding: 0;
    flex-wrap: wrap;
}
.ber-pagination .pagination > li > a,
.ber-pagination .pagination > li > span {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border-radius: 8px; border: 1px solid #d0dbd4;
    font-size: 13px; font-weight: 600;
    color: #4a6358; background: #fff;
    text-decoration: none; transition: all .18s;
    float: none;
}
.ber-pagination .pagination > li > a:hover {
    background: var(--green-main); color: #fff; border-color: var(--green-main);
}
.ber-pagination .pagination > li.active > span {
    background: var(--green-main); color: #fff; border-color: var(--green-main);
}
.ber-pagination .pagination > li.disabled > span {
    opacity: .4; pointer-events: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .ber-col { width: 50%; }
}
@media (max-width: 767px) {
    .ber-wrap { padding: 20px 0 40px; }
    .ber-row { margin-left: 0; margin-right: 0; }
    .ber-col  { padding-left: 0; padding-right: 0; width: 100%; margin-bottom: 16px; }
    .ber-filter-wrap { flex-direction: column; align-items: stretch; padding: 14px 14px; gap: 10px; }
    .ber-filter-label { font-size: 14px; }
    .ber-filter-form { flex-direction: row; gap: 8px; }
    .ber-select { min-width: 0; flex: 1; }
    .ber-card { flex-direction: row; border-radius: 10px; }
    .ber-card-img { width: 110px; height: auto; min-height: 110px; flex-shrink: 0; border-radius: 10px 0 0 10px; }
    .ber-card-body { padding: 12px 14px 14px; gap: 6px; }
    .ber-card-title { font-size: 13.5px; }
    .ber-card-meta  { font-size: 11.5px; gap: 8px; }
}
@media (max-width: 480px) {
    .ber-card-img { width: 90px; min-height: 90px; }
    .ber-filter-form { flex-wrap: wrap; }
    .ber-select { width: 100%; flex: none; }
    .ber-btn    { width: 100%; justify-content: center; }
}
