/* ================= HALAMAN BERITA ================= */
.berita-header {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)), url("../images/hero.png");
    background-size: cover;
    background-position: center;
    padding-bottom: 60px;
}

.judul {
    margin-top: 30px;
    text-align: center;
    color: #fff;
}

.judul h1 {
    font-size: clamp(28px, 6vw, 55px);
    margin-bottom: 10px;
    transition: transform .3s ease, color .3s ease;
}

.judul h1:hover { transform: translateY(-4px); }
.judul p { font-size: 18px; }

.berita-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 40px;
    display: flex;
    gap: 30px;
}

.news-section {
    width: 92%;
    max-width: 1200px;
    margin: 50px auto 80px;
    padding: 50px 48px;
    border-radius: 32px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 28px 64px rgba(0,0,0,.10);
}

.berita-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.berita-intro span {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #1d7c3d;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.berita-intro h2 { font-size: 44px; margin-bottom: 18px; color: #111; font-weight: 800; line-height: 1.2; }
.berita-intro p { color: #5a5a5a; font-size: 17px; line-height: 1.8; font-weight: 500; }

/* ================= KOTAK BERITA UTAMA (FEATURED) ================= */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

/* Frame Media Konsisten untuk Potret & Lanskap tanpa terpotong */
.news-featured-image,
.news-featured-video-wrapper {
    position: relative;
    overflow: hidden;
    background: #0f1d14; /* Latar belakang gelap elegan untuk sela video/foto potret */
    border-radius: 24px 0 0 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px; /* Tinggi frame dikunci agar rapi */
    width: 100%;
}

.news-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #19864f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(25, 134, 79, 0.3);
}

/* Memastikan foto atau video tampil utuh sepenuhnya menggunakan contain */
.news-featured-image img,
.news-featured-video-wrapper iframe,
.news-featured-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
    border: 0;
}

.news-featured-content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

.news-meta { color: #7a8b6f; font-size: 13px; margin-bottom: 16px; font-weight: 500; }

.news-featured-content h3 { 
    font-size: 26px; 
    margin-bottom: 16px; 
    color: #0f1d14; 
    font-weight: 800; 
    line-height: 1.3; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-featured-content p { 
    color: #5b5f5f; 
    line-height: 1.7; 
    margin-bottom: 22px; 
    font-size: 14px; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ================= GRID BERITA KECIL ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card-small {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-small:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.news-image,
.news-card-small img,
.news-card-small video {
    width: 100%;
    height: 170px;
    object-fit: contain; /* Tampil utuh juga untuk kartu kecil */
    background: #0f1d14;
    flex-shrink: 0;
    display: block;
    position: relative;
    z-index: 3;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 16px 16px 0 0;
}

.news-card-small-content {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.news-date { display: inline-block; color: #8a9a7f; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }

.news-card-small h3 {
    font-size: 15px;
    margin: 0;
    color: #111;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

.news-card-small p {
    flex: 1;
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-size: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.btn-news {
    display: inline-block;
    background: #19864f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
    transition: background .3s ease;
    align-self: flex-start;
    margin-top: auto;
    font-size: 13px;
}

.btn-news:hover { background: #14653c; }
.btn-small { padding: 8px 16px; font-size: 12px; }

/* ================= BERITA RESPONSIVE ================= */
@media screen and (max-width:1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:768px) {
    .news-section {
        width: 95% !important;
        padding: 25px 18px !important;
        margin: 30px auto 50px !important;
        border-radius: 20px !important;
    }

    .berita-intro h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .berita-intro p {
        font-size: 14px !important;
    }

    .news-featured { 
        grid-template-columns: 1fr !important; 
        height: auto !important;
        max-height: none !important;
    }

    .news-featured-image, 
    .news-featured-video-wrapper { 
        height: 220px !important; 
        border-radius: 16px 16px 0 0 !important;
    }

    .news-featured-content {
        padding: 20px 16px !important;
    }

    .news-featured-content h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .news-featured-content p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    .btn-news {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    .news-grid { grid-template-columns: 1fr !important; }
}