/* =========================
   HERO BERITA DETAIL
========================= */
.hero-berita-detail {
    text-align: start;
    padding: 40px 0 0
}

.hero-berita-detail .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.berita-judul {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #444;
    margin: 0 0 12px 0;
    /* jarak bawah lebih lega */
}

.berita-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

/* =========================
   WRAPPER BERITA
========================= */
.berita-detail-wrapper {
    padding: 50px 0;
    background-color: #ffffff;
}

.berita-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    /* hapus padding horizontal 150px supaya selaras dengan halaman lain */
}

/* =========================
   MAIN CONTENT (KIRI)
========================= */
.berita-main {
    background-color: #ffffff;
    border-radius: 10px;
}

/* Thumbnail */
.berita-main-thumb img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 25px;
}

/* Konten */
.berita-main-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.berita-main-content img {
    max-width: 100%;
    height: auto;
}

/* =========================
   SIDEBAR (KANAN)
========================= */
.berita-sidebar {
    padding: 24px;
    background-color: #f9fafb;
    border-radius: 5px;
    position: sticky;
    top: 120px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    /* shadow lebih jelas */
    transition: box-shadow 0.3s ease;
}

.berita-sidebar:hover {
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
    /* shadow lebih menonjol saat hover */
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

/* Sidebar card */
.sidebar-card {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.sidebar-card:hover {
    transform: translateX(3px);
}

.sidebar-thumb img {
    width: 70px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar-content h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
}

.sidebar-content span {
    font-size: 12px;
    color: #6b7280;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .berita-layout {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .berita-sidebar {
        position: static;
        margin-top: 30px;
    }

    .hero-berita-detail {
        padding: 40px 0 20px;
        text-align: center;
    }

    .berita-judul {
        font-size: 28px;
    }

    .sidebar-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-berita-detail {
        padding: 30px 0 15px;
    }

    .berita-judul {
        font-size: 24px;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .sidebar-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sidebar-thumb img {
        width: 100%;
        height: auto;
    }
}