/* ================================================================ */
/* Berita — styles khusus halaman berita.html                       */
/* ================================================================ */

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.berita-section {
    padding: 32px 0 80px;
    background: #fff;
    flex: 1;
}

/* Accordion */
.berita-list { display: flex; flex-direction: column; gap: 16px; }

.berita-item {
    border: 1.5px solid #d0d8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.berita-item.open { box-shadow: 0 4px 20px rgba(3,0,102,0.1); }

/* Header (collapsed view) */
.berita-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: background 0.15s;
}
.berita-header:hover { background: #f5f8ff; }

.berita-arrow {
    width: 28px; height: 28px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
    color: #030066;
}
.berita-item.open .berita-arrow { transform: rotate(90deg); }

.berita-thumb {
    width: 80px; height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: #f0f0f0;
}
/* Saat item terbuka, sembunyikan thumbnail di header supaya tidak dobel
   dengan gambar besar di dalam body yang terbuka (.berita-img-expanded) */
.berita-item.open .berita-thumb { display: none; }

.berita-judul-collapsed {
    font-weight: 700;
    font-size: 1.20rem;
    color: #030066;
    flex: 1;
    overflow-wrap: break-word;
}
/* Saat item terbuka, sembunyikan judul di header supaya tidak dobel
   dengan judul di dalam body yang terbuka (.berita-judul-expanded) */
.berita-item.open .berita-judul-collapsed { display: none; }

/* Body (expanded view) */
.berita-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1.5px solid #e8eef8;
}
.berita-item.open .berita-body { display: block; }

.berita-judul-expanded {
    font-weight: 800;
    font-size: 1.05rem;
    color: #030066;
    margin: 16px 0 12px;
    overflow-wrap: break-word;
}

.berita-img-expanded {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: block;
    margin-bottom: 14px;
    background: #f0f0f0;
}

.berita-deskripsi {
    font-size: 0.93rem;
    font-weight: 600;
    color: #444;
    line-height: 1.75;
    text-align: justify;
}

@media (max-width: 520px) {
    .berita-thumb { width: 60px; height: 44px; }
    .berita-judul-collapsed { font-size: 0.88rem; }
    .berita-img-expanded { height: 180px; }
}