/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.featured-items-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 60px;
}

.featured-items-slider .swiper {
    overflow: visible;
    padding-right: 120px; /* Tạo không gian cho 1/3 slide tiếp theo */
}

.website__swiper .swiper-slide {
    width: calc(50% - 43px) !important;
}

.featured-items-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 400px;
}

.featured-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:not(.placeholder-item):hover img {
    transform: scale(1.05);
}

.featured-item.placeholder-item {
    opacity: 0.3;
    cursor: default;
}

.featured-item.placeholder-item:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-item:hover .featured-item-overlay {
    opacity: 1;
}

.featured-item-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.2;
}

.featured-item-description {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.featured-items-slider .swiper-pagination {
    bottom: -15px;
}

.featured-items-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    opacity: 0.3;
}

.featured-items-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

.featured-items-slider .swiper-button-next,
.featured-items-slider .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -25px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-items-slider .swiper-button-next {
    right: 60px; /* Điều chỉnh vị trí để không che phần peek */
}

.featured-items-slider .swiper-button-next:after,
.featured-items-slider .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .featured-items-grid {
        height: 400px;
        gap: 15px;
    }
    
    .featured-item-title {
        font-size: 16px;
    }
    
    .featured-item-description {
        font-size: 11px;
    }
    
    .featured-item-overlay {
        padding: 15px;
    }
    
    .featured-items-slider .swiper {
        padding-right: 0; /* Bỏ padding trên mobile */
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .featured-items-slider .swiper {
        padding-right: 40px; /* Padding nhỏ cho tablet nhỏ */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .featured-items-slider .swiper {
        padding-right: 80px; /* Padding trung bình cho tablet */
    }
}

@media (min-width: 1024px) {
    .featured-items-slider .swiper {
        padding-right: 120px; /* Padding đầy đủ cho desktop */
    }
}

@media (max-width: 480px) {
    .featured-items-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 600px;
        gap: 10px;
    }
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}