/* =========================================================
   DETAIL ARTIKEL BERITA
   ========================================================= */

/* .news-page:
   - background saja (padding-top sekarang diatur di navbar-berita.css)
*/
.news-page {
    background: #ffffff;
}

/* header judul + meta */
.news-article-header {
    padding: 28px 0 18px;
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    border-bottom: 1px solid #e2f2f7;
}

.news-breadcrumb {
    font-size: 12px;
    color: #6b7a8c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-breadcrumb a {
    color: var(--primary-dark);
}

.news-breadcrumb a:hover {
    text-decoration: underline;
}

.news-article-title {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    color: #0f1b2d;
    margin-bottom: 10px;
}

.news-article-meta {
    font-size: 13px;
    color: #8691a3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.news-dot {
    opacity: 0.6;
}

/* banner full width */
.news-banner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 22px auto;
}

.news-banner img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

/* isi artikel */
.news-article-body {
    padding-bottom: 50px;
}

.news-article-body .section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.news-article-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #222;
    margin-bottom: 14px;
}

/* kutipan (quote) */
.news-quote {
    position: relative;
    padding-left: 18px;
    border-left: 3px solid var(--primary);
    color: #1e2a39;
    font-style: italic;
    background: #f7f9ff;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
}

/* penutup penulis */
.news-writer {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* responsif detail artikel */
@media (max-width: 768px) {
    .news-article-title {
        font-size: 22px;
    }

    .news-article-header {
        padding: 20px 0 14px;
    }

    .news-banner img {
        max-height: 280px;
    }

    .news-article-body .section-inner {
        padding: 0 18px;
    }
}

/* =========================================================
   BERITA (PREVIEW DI HALAMAN BERANDA)
   ========================================================= */

.section-berita-home {
    background: #ffffff;
    padding-top: 40px;
    padding-bottom: 50px;
}

/* Container card berita -> horizontal scroll + scrollbar kelihatan */
.section-berita-home .news-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;

    /* scrollbar (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: #cbd5f5 #f3f4f6;
}

/* scrollbar (Chrome/Safari/Edge) */
.section-berita-home .news-grid::-webkit-scrollbar {
    height: 6px;
}
.section-berita-home .news-grid::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 999px;
}
.section-berita-home .news-grid::-webkit-scrollbar-thumb {
    background: #cbd5f5;
    border-radius: 999px;
}
.section-berita-home .news-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3e0;
}

/* Card berita: ukuran mirip layanan-big-card */
.section-berita-home .news-card {
    /* 3 card muat 1 layar, mirip lebar layanan */
    flex: 0 0 calc((100% - 44px) / 3); /* 3 kolom + gap 22px x2 */
    max-width: 380px;

    scroll-snap-align: start;
    background: #fff;
    border-radius: 22px; /* sama dengan layanan-big-card */
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-berita-home .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* Thumbnail: tinggi 200px biar mirip layanan-big-img */
.section-berita-home .news-thumb {
    width: 100%;
    height: 200px;
    background: #eef3ff;
    overflow: hidden;
}

.section-berita-home .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.section-berita-home .news-content {
    padding: 18px 20px 22px;
}

.section-berita-home .news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.section-berita-home .news-meta {
    font-size: 12px;
    color: #7c8a9e;
    margin-bottom: 10px;
}

.section-berita-home .news-excerpt {
    font-size: 14px;
    color: #2b3543;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Link "Baca selengkapnya" */
.section-berita-home .news-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s ease;
}

.section-berita-home .news-link::after {
    content: "›";
    font-size: 16px;
    margin-left: 2px;
}

.section-berita-home .news-link:hover {
    color: var(--accent-dark);
    transform: translateX(3px);
}

/* Button "Lihat semua berita" */
.section-berita-home .news-more {
    text-align: center;
    margin-top: 26px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .section-berita-home .news-card {
        flex: 0 0 300px;
        max-width: 300px;
    }
}

@media (max-width: 650px) {
    .section-berita-home .news-card {
        flex: 0 0 82vw; /* hampir full lebar HP */
        max-width: none;
    }

    .section-berita-home .news-thumb {
        height: 170px;
    }

    .section-berita-home .news-title {
        font-size: 16px;
    }

    .section-berita-home .news-excerpt {
        font-size: 13px;
    }
}
