/*
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.   ***************/
/* CSS cho Shortcode Các Dự Án Khác */
.cac-du-an-khac-section {
    margin-top: 30px;
    margin-bottom: 30px;
    clear: both; /* Đảm bảo không bị ảnh hưởng bởi float */
}

.section-title-cac-du-an-khac {
    font-size: 22px; /* Giống tiêu đề "DỰ ÁN KHÁC" trong ảnh */
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left; /* Hoặc center tùy ý */
}

.cac-du-an-khac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột như trong ảnh */
    gap: 20px; /* Khoảng cách giữa các item */
}

.cac-du-an-khac-item {
    background-color: #fff; /* Màu nền item */
    border: 1px solid #e0e0e0; /* Viền item (tùy chọn) */
    text-align: center; /* Căn giữa tiêu đề bên dưới ảnh */
    transition: box-shadow 0.3s ease-in-out;
}

.cac-du-an-khac-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cac-du-an-khac-item a {
    text-decoration: none;
    color: #333; /* Màu chữ tiêu đề */
    display: block; /* Để click được toàn bộ item */
}

.cac-du-an-khac-thumbnail {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    aspect-ratio: 1;
}

.cac-du-an-khac-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ảnh sẽ cố gắng lấp đầy, có thể bị cắt */
    transition: transform 0.3s ease;
}
.cac-du-an-khac-item:hover .cac-du-an-khac-thumbnail img {
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ khi hover */
}


.cac-du-an-khac-title {
    font-size: 15px; /* Kích thước tiêu đề dự án */
    font-weight: 600;
    padding: 12px 10px;
    margin: 0;
    line-height: 1.4;
    min-height: 50px; /* Đảm bảo chiều cao đồng đều nếu tiêu đề ngắn dài khác nhau */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cac-du-an-khac-load-more-wrapper {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
}

.cac-du-an-khac-load-more-button,.cac-showroom-khac-load-more-button {
    background-color: #1e88e5; /* Màu nút "Xem thêm" (giống nút trong ảnh) */
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 3px; /* Bo góc nút */
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase; /* Chữ hoa (nếu muốn) */
}

.cac-du-an-khac-load-more-button:hover {
    background-color: #1565c0; /* Màu nút khi hover */
}

.cac-du-an-khac-loading {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

.no-projects-found {
    grid-column: 1 / -1; /* Trải dài hết các cột nếu không có dự án */
    text-align: center;
    padding: 20px 0;
    color: #777;
}


/* Responsive cho grid */
@media (max-width: 991px) { 
    .cac-du-an-khac-grid {
        grid-template-columns: repeat(2, 1fr); 
}

@media (max-width: 767px) { 
    .cac-du-an-khac-grid {
        grid-template-columns: 1fr; 
    }
    .cac-du-an-khac-thumbnail {
        height: 220px; 
    }
    .section-title-cac-du-an-khac {
        font-size: 20px;
    }
}

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


}