.berita-wr {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.berita {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.berita-left {
    width: 65%;
    display: flex;
    flex-direction: column;
    padding: 0px 0px 100px 0px;
    gap: 25px;
}

.berita-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.berita-item-image {
    width: 300px;
    height: 100%;
}

.berita-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.berita-item-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.berita-right {
    width: 35%;
    display: flex;
    flex-direction: column;
    padding: 0px 0px 100px 0px;
    gap: 25px;
}

.berita-right-item {
    display: flex;
    flex-direction: column;
}

.berita-right-item-image img {
    width: 100%;
    max-width: 500px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.berita-right-item-content {
    padding: 20px 0px 0px 0px;
    display: flex;
    flex-direction: column;
}

/* =====================================
   DETAIL BERITA CONTENT
===================================== */

.detail-berita-content {
    width: 100%;
    text-align: justify;
}

.detail-berita-content img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 30px;
}

/* =====================================
   SIDEBAR CONSISTENT
===================================== */

.berita-right-item-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.empty-text {
    color: #9ca3af;
    font-size: 14px;
    padding: 10px 0;
}

@media (max-width: 1024px) {

    /* Wrapper */
    .berita-wr {
        padding: 40px 20px;
    }

    /* Layout jadi column */
    .berita {
        flex-direction: column;
        gap: 40px;
    }

    /* LEFT FULL WIDTH */
    .berita-left {
        width: 100%;
        padding-bottom: 0;
    }

    /* Card berita jadi column */
    .berita-item {
        flex-direction: column;
    }

    /* Image full width */
    .berita-item-image {
        width: 100%;
        height: 220px;
    }

    .berita-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Content spacing lebih kecil */
    .berita-item-content {
        padding: 15px 5px;
        justify-content: flex-start;
    }

    /* SIDEBAR jadi full width */
    .berita-right {
        width: 100%;
        padding-bottom: 0;
    }

    .berita-right h1 {
        font-size: 22px;
    }

    /* Sidebar image tetap konsisten */
    .berita-right-item-image img {
        height: 200px;
    }

    /* Detail berita image */
    .detail-berita-content img {
        height: 250px;
    }

    /* Fix text overflow */
    .berita-item-content h3,
    .berita-item-content p,
    .berita-right-item-content h3,
    .berita-right-item-content p,
    .detail-berita-content p,
    .page-banner h1 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

}