
/* ------------- Bài viết ---------------- */




#img-ads {
    /* margin-top: 30px; */
    width: 100%;
    height: auto;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
    animation: fadeInScale 2s ease-out infinite;
    /* Áp dụng animation lặp vô hạn */

}

.italic-text {
    font-style: italic;
    color: #666;
    line-height: 1.6;
    text-align: center;
}


/* Định nghĩa animation cho fade-in và scale */
@keyframes fadeInScale {
    0% {
        opacity: 1;
        transform: scale(0.9);
        /* Bắt đầu nhỏ hơn */
    }

    50% {
        opacity: 1;
        /* Giữa animation ảnh sẽ rõ hơn */
        transform: scale(1);
        /* Kích thước bình thường */
    }

    100% {
        opacity: 1;
        transform: scale(0.9);
        /* Kết thúc nhỏ lại */
    }
}

/* -------------------image-item---------------- */
.card-img-left {
    width: 100%;
    height: 100%;
    object-fit: cover;


}







/* ------------ banner ads --------------------  */

/* Banner container */
/* Banner ở cuối trang */
.banner {
    position: fixed;
    bottom: 0;
    /* Đặt banner ở cuối trang */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
    /* Hiệu ứng xuất hiện */
}

/* Nội dung banner */
.banner-content {
    position: relative;
}

/* Tiêu đề banner */
.banner-title {
    font-size: 24px;
    font-weight: bold;
}

/* Mô tả banner */
.banner-description {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Nút "Mua ngay" */
.btn-banner {
    padding: 10px 20px;
    background-color: #f39c12;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

/* Nút đóng banner */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Hiệu ứng khi đóng banner */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        /* Vào từ dưới lên */
    }

    to {
        transform: translateY(0);
        /* Đến vị trí cuối trang */
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        /* Ban đầu ở vị trí cuối trang */
    }

    to {
        transform: translateY(100%);
        /* Di chuyển xuống dưới khỏi màn hình */
    }
}



/* ------------background--------- */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.height-background {
    height: 600px;
}

@media screen and (max-width: 768px) {
    .height-background {
        height: 400px;
    }
}



/* -- loading  -- */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy[src] {
    opacity: 1;
}
