/* ==========================================================================
   BERITA & KEGIATAN - COMPACT ACADEMIC EDITORIAL STYLE (TIMES NEW ROMAN)
   ========================================================================== */

:root {
    --navy-deep: #0D1B2A;
    --blue-royal: #1B263B;
    --blue-accent: #415A77;
    --gold-accent: #D4AF37;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Font Times New Roman untuk Heading dan Body */
    --font-heading: 'Times New Roman', Times, serif;
    --font-body: 'Times New Roman', Times, serif;
}

body {
    font-family: var(--font-body) !important;
}

/* --- 1. COMPACT HERO BANNER & BREADCRUMB --- */
.hero-berita {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue-royal) 100%);
    padding: 35px 0 30px 0;
    color: var(--white);
    text-align: center;
    font-family: var(--font-body) !important;
}

.hero-berita h1 {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.hero-berita p {
    font-family: var(--font-body) !important;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 6px auto 12px auto;
    line-height: 1.4;
}

/* Breadcrumb di dalam Hero Header */
.breadcrumb-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-family: var(--font-body) !important;
}

.breadcrumb-custom a {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom a:hover {
    color: var(--white);
}

.breadcrumb-custom span {
    color: rgba(255, 255, 255, 0.5);
}

/* --- 2. JUDUL SECTION --- */
.section-title {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 45px;
    height: 2px;
    background: var(--gold-accent);
}

/* --- 3. BERITA MAIN CARD (KOLOM KIRI) --- */
.berita-card {
    background: var(--white);
    border: 1px solid rgba(13, 27, 42, 0.06);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(13, 27, 42, 0.02);
    transition: all 0.3s ease;
    font-family: var(--font-body) !important;
}

.berita-card:hover {
    box-shadow: 0 10px 25px rgba(13, 27, 42, 0.06);
}

/* Formating Gambar & Video di Kartu Berita */
.berita-card img,
.berita-card video {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    object-position: center;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(13, 27, 42, 0.04);
}

.berita-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Atribut Meta Tanggal */
.berita-content .tanggal {
    font-family: var(--font-body) !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-accent);
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.berita-content h5 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    color: var(--navy-deep);
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    
    /* Batasi maksimal 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.berita-content p {
    font-family: var(--font-body) !important;
    color: var(--blue-accent);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 18px;
    
    /* Batasi maksimal 3 baris */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* Tombol Baca Artikel Modern Minimalis */
.btn-detail {
    font-family: var(--font-body) !important;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-deep);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 9px 16px;
    background-color: var(--bg-light);
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 4px;
    text-align: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background-color: var(--navy-deep);
    color: var(--white);
    border-color: var(--navy-deep);
}

/* --- 4. SIDEBAR KEGIATAN (KOLOM KANAN) --- */
.sidebar-box {
    background: var(--white);
    border: 1px solid rgba(13, 27, 42, 0.06);
    border-radius: 4px;
    padding: 22px 18px;
    box-shadow: 0 4px 20px rgba(13, 27, 42, 0.02);
    font-family: var(--font-body) !important;
}

.sidebar-box h4 {
    font-family: var(--font-heading) !important;
    color: var(--navy-deep);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy-deep);
    text-transform: uppercase;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13, 27, 42, 0.06);
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item:first-child {
    padding-top: 0;
}

/* Image & Video Thumbnails di Sidebar */
.sidebar-item img,
.sidebar-item video {
    width: 75px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--bg-light);
    border: 1px solid rgba(13, 27, 42, 0.06);
    flex-shrink: 0;
}

.sidebar-item h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 4px;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.sidebar-item h6 a {
    color: var(--blue-royal);
    transition: color 0.25s ease;
}

.sidebar-item h6 a:hover {
    color: var(--gold-accent) !important;
}

.sidebar-item small {
    font-family: var(--font-body) !important;
    color: var(--gold-accent);
    font-size: 0.78rem;
    font-weight: 700;
    display: block;
}

/* --- 5. PAGINASI & UTILITY --- */
.pagination {
    margin-top: 20px;
    justify-content: center;
    font-family: var(--font-body) !important;
}

.alert-info {
    font-family: var(--font-body) !important;
    background-color: var(--bg-light);
    border-color: rgba(13, 27, 42, 0.08);
    color: var(--navy-deep);
    font-size: 0.92rem;
    border-radius: 4px;
}

/* --- 6. LAYER RESPONSIVITAS MOBILE --- */
@media (max-width: 991.98px) {
    .sidebar-box {
        margin-top: 35px;
    }
}

@media (max-width: 767.98px) {
    .hero-berita {
        padding: 30px 0;
    }
    .hero-berita h1 {
        font-size: 1.3rem;
    }
}