news.collection{
    /* height: 47vh; */
    /* background-color: #1e232e; */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    margin-top: -50px;
}

.collection .content{
    height: 25rem;
    width: 28rem;
    background-color: white;
    border: 1px solid #cfcfcf;
    border-radius: .7rem;
    /* border-bottom: .4rem solid #0099ff; */
    /* border-top: .4rem solid #0099ff; */
    overflow: hidden;
    /* padding: .2rem; */
}

.collection .content img{
    border-radius: 30px;
}

.content img{
    width: 100%;
    border-bottom-left-radius: .6rem;
    border-bottom-right-radius: .6rem;
}


.text-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* border: 1px solid; */
}

.text-content .description-content {
    /* border: 1px solid blue; */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

}

.text-content h3{
    font-size: 1.7rem;
    font-weight: 500;
}
.text-content p{
    max-width: 22rem;
    font-size: .9.5rem;
    font-weight: 400;
    /* text-align: center; */
    /* border: 1px solid red; */
}
.collection .btn{
    background-color: #085F94;
}
.collection .btn:hover{
    color: white;
}

/* Skeleton loader untuk simetri saat loading */
.skeleton-slide {
    background-color: #e0e0e0;
    width: 100%;
    height: 200px;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Menjaga ukuran gambar */
.swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Gambar akan menyesuaikan dengan baik */
}

/* Sembunyikan slider saat loading */
.collection {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Munculkan slider setelah data terload */
.collection.loaded {
    opacity: 1;
}


@media (max-width:640px) {
    .collection{
        height: 85vh;
        /* background-color: #1e232e; */
        display: flex;
        justify-content: center;
        align-items: center;
        color: #000;
        margin-top: -50px;
    }
    .collection .content{
        height: 26rem;
        width: 17rem;
        background-color: #f8f9fa;
        border: .2rem solid rgba(255,255,255,.1);
        border-radius: .7rem;
        border-bottom: .4rem solid #0099ff;
        border-top: .4rem solid #0099ff;
        overflow: hidden;
        /* padding: .2rem; */
    }

    .content img{
        width: 100%;
        border-bottom-left-radius: .6rem;
        border-bottom-right-radius: .6rem;
    }


    .text-content{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* border: 1px solid; */
    }

    .text-content .description-content {
        /* border: 1px solid blue; */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;

    }

    .text-content h3{
        font-size: 1.2rem;
        font-weight: 500;
    }
    .text-content p{
        max-width: 22rem;
        font-size: 1rem;
        font-weight: 400;
        text-align: center;
        /* border: 1px solid red; */
    }
    .collection .btn{
        background-color: #3a7bfd;
        padding: .2rem;
        border: 2px solid #3a7bfd;
        outline: none;
        font-size: .8rem;
        border-radius: .5rem;
        margin: 1rem 0;
        cursor: pointer;
    }

    /* Skeleton loader untuk simetri saat loading */
    .skeleton-slide {
        background-color: #e0e0e0;
        width: 100%;
        height: 200px;
        margin: 10px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Menjaga ukuran gambar */
    .swiper-slide img {
        width: 100%;
        height: 200px;
        object-fit: cover; /* Gambar akan menyesuaikan dengan baik */
    }

    /* Sembunyikan slider saat loading */
    .collection {
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    /* Munculkan slider setelah data terload */
    .collection.loaded {
        opacity: 1;
    }

}
