.img-costum {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.img-costum-hover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.img-costum-list {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.single-line-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Membatasi teks dalam beberapa baris */
.multi-line-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Jumlah baris yang ingin ditampilkan */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.document-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.document-card img {
    width: 50px;
    height: auto;
}

.category-item {
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.category-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.berita-item {
    transition: background 0.3s ease, transform 0.2s ease;
}

.berita-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.berita-item img {
    object-fit: cover;
    width: 80px;
    height: 60px;
}

.carousel-item {
    background: #000;
    /* biar gambar yang kecil tidak terlihat background putih */
    padding: 10px;
    /* beri jarak agar bayangan tidak terpotong */
}

.carousel-item img {
    /* batas tinggi */
    width: auto;
    /* biarkan lebar menyesuaikan */
    max-width: 100%;
    /* supaya tidak keluar layar */
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    filter: brightness(90%);
    border-radius: 10px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.carousel-item img:hover {
    filter: brightness(100%);
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .document-card {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }
    .document-card img {
        display: block;
        margin: 0 auto 10px;
    }
    .sidebar-container {
        order: 3;
        width: 100%;
    }

    .img-costum-hover {
        width: 100%;
        height: auto;
    }

    .img-costum-list {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .document-card {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }
    .document-card img {
        display: block;
        margin: 0 auto 10px;
    }
    .sidebar-container {
        order: 3;
        width: 100%;
    }
    .img-costum-list {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 640px) {
    .content-berita {
        display: none;
    }
}

@media (max-width: 480px) {
    .img-costum {
        height: 200px;
    }

    .img-costum-hover {
        height: 200px;
    }

    .img-costum-list {
        width: 100%;
        height: auto;
    }

    .multi-line-truncate {
        -webkit-line-clamp: 1;
    }
}
