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

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Container chính */
.logistics-cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Box ban đầu: Dùng màu xám nhẹ hoặc Gradient ẩn */
.logistics-cta-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 30px;
    background: #f3f4f6; /* Màu nền nhẹ như hình 1 */
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

/* Nội dung bên trong */
.cta-content {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease;
}

/* Icon điện thoại */
.cta-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.cta-icon i {
    color: #e11d48; /* Màu đỏ chủ đạo cho icon */
    font-size: 18px;
}

/* Chữ */
.cta-text {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1e3a8a; /* Xanh đậm chuyên nghiệp */
    letter-spacing: 1px;
    transition: all 0.5s ease;
}

/* --- HIỆU ỨNG HOVER --- */

.logistics-cta-box:hover {
    /* Mix màu Gradient: Xanh đậm sang Đỏ đậm cho cảm giác cao cấp */
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.logistics-cta-box:hover .cta-content {
    transform: scale(1.15); /* Hiệu ứng Zoom chữ như hình 2 */
}

.logistics-cta-box:hover .cta-text {
    color: #2dd4bf; /* Chữ đổi sang màu xanh ngọc để nổi bật trên nền tối */
}

.logistics-cta-box:hover .cta-icon {
    background: #e11d48;
    transform: rotate(15deg);
}

.logistics-cta-box:hover .cta-icon i {
    color: #fff;
}
/* Container bao ngoài */
.invest-grid-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 675px; /* Độ cao cố định để các phần tử absolute hoạt động */
    margin: 50px auto;
    display: block;
}

/* Định dạng chung cho mỗi khối */
.invest-item {
    position: absolute;
    width: 47%; /* Độ rộng mỗi khối */
    height: 300px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    overflow: hidden;
    border: 2px solid transparent;
}

.invest-image-wrapper {
    position: relative;

}

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

/* Tiêu đề nằm trên ảnh */
.invest-title {
    position: absolute;
    top: 15px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

/* --- Vị trí các khối --- */
.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }

/* Khối Hàng Không ở giữa */
.center-item {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* Luôn nằm trên một chút ở trạng thái tĩnh */
    width: 47%;
    height: 300px;
}

/* --- HIỆU ỨNG HOVER --- */

.invest-item:hover {
    z-index: 99 !important; /* Đẩy lên cao nhất khi hover */
    transform: scale(1.1); /* Phóng lớn khối */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: #1e3a8a; /* Màu xanh ngọc bạn thích làm viền */
}

/* Riêng khối giữa khi hover cần giữ nguyên căn giữa */
.center-item:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.invest-item:hover .invest-title {
    font-size: 20px;
    color: #1e3a8a;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .invest-grid-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .invest-item {
        position: relative;
        width: 100%;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
	.cta-icon {
		width: 60px; 
	}
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.cta-text {
    font-size: 12px;
}

}