 .berita .berita-item {
    margin-bottom: 24px;
}

.berita .card {
    height: 100%;
    border: none;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.berita .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.berita .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform .4s ease;
}

.berita .card:hover .card-img-top {
    transform: scale(1.05);
}

.berita .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
}

.berita .card-body .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;

    /* maksimal 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 48px;
}

.berita .card-date {
    font-size: .85rem;
    color: #6c757d;
}

.berita .btn-primary {
    border-radius: 30px;
    padding: 6px 18px;
    transition: all .3s ease;
}

.berita .btn-primary:hover {
    transform: scale(1.05);
}

.berita .card-img-overlay .card-title {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .8rem;
    margin: 0;
}


.content-body img {
    max-width: 100%;
    height: auto;
}

.content-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}



.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* jumlah baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.6em; /* biar tinggi stabil */
}


/* ===== CARD BASE ===== */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
    margin-bottom: 15px;
    background: rgba(133, 133, 133, 0.1);

}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    z-index: 5;
}

/* ===== IMAGE ===== */
.news-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.08);
}

/* ===== OVERLAY ===== */
.news-card .card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover .card-img-overlay {
    opacity: 1;
}

.overlay-title {
    position: absolute;
    bottom: 10px;
    left: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

/* ===== TITLE TRUNCATE ===== */
.news-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.6em;
}

/* ===== LINK HOVER ===== */
.news-card a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card a:hover {
    color: #0d6efd;
}


/* CARD RESPONSIVE FIX */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

/* IMAGE FIX RESPONSIVE */
.news-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* MOBILE ADJUST */
@media (max-width: 768px) {
    .news-card .card-img-top {
        height: 160px;
    }

    .card-title {
        font-size: 14px;
    }
}

/* EXTRA SMALL */
@media (max-width: 576px) {
    .news-card .card-img-top {
        height: 150px;
    }
}
