/* ==========================
   BERITA DETAIL PAGE STYLE
   ========================== */

.berita-utama {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: #222;
}

/* Judul Berita */
.berita-judul {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Penulis & Tanggal */
.berita-penulis {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.berita-tanggal {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.5rem;
}

/* Gambar Utama */
.berita-gambar {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Isi Berita */
.berita-isi {
    font-size: 1.05rem;
    color: #333;
}

.berita-isi p {
    margin-bottom: 1rem;
}

.berita-isi h2, 
.berita-isi h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.berita-isi ul, 
.berita-isi ol {
    margin-left: 1.5rem;
}

/* Tag */
.news-tags {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tags h5 {
    font-weight: 600;
    margin-right: 0.5rem;
}

.news-tags .tag {
    background-color: #eef2ff;
    color: #1d4ed8;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: background-color 0.2s, color 0.2s;
}

.news-tags .tag:hover {
    background-color: #1d4ed8;
    color: #fff;
}

.btn.btn-outline-primary:hover {
    background-color: var(--main-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================
   BERITA LAINNYA SECTION
   ========================== */

.berita-lainnya {
    max-width: 850px;
    margin-top: 3rem;
    padding-top: 2rem;
    margin: 0 auto;
    border-top: 1px solid #e5e7eb;
}

.other-news-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Scrollable grid */
.more-news-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    padding-bottom: 0.5rem;
}

.more-news-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 1rem;
}

/* Mini News Card */
.mini-news-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.mini-news-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.mini-news-card p {
    padding: 0.75rem;
    font-size: 0.95rem;
    color: #222;
}

/* Lihat Berita Lain */
.lihat-lain-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 500;
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.2s;
}

.lihat-lain-link:hover {
    color: #0a49b4;
}

/* ==========================
   RESPONSIVE ADJUSTMENTS
   ========================== */
@media (max-width: 640px) {
    .berita-utama {
        padding: 1.5rem 1rem;
    }

    .berita-judul {
        font-size: 1.5rem;
    }

    .mini-news-card p {
        font-size: 0.85rem;
    }
}
