/* Container tổng của Slider */
.hero-slider {
    width: 100%;
    /* Bạn có thể chỉnh lại chiều cao tùy ý: 500px, 600px hoặc 70vh */
    height: 550px; 
    position: relative;
    overflow: hidden;
}

/* Quan trọng: Xử lý ảnh bên trong slide */
.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    /* object-fit: cover giúp ảnh lấp đầy khung mà không bị méo, 
       nó sẽ tự cắt bớt rìa ảnh nếu tỷ lệ không khớp */
    object-fit: cover; 
    object-position: center; /* Luôn lấy tâm ảnh làm điểm chính */
    display: block;
}

/* Lớp phủ Overlay để làm nổi bật chữ (Giống hình mẫu) */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Tạo lớp phủ tối 30% để chữ trắng dễ đọc hơn */
    display: flex;
    align-items: center; /* Căn giữa dọc */
    justify-content: center; /* Căn giữa ngang */
}

/* Nội dung chữ và nút bấm */
.slider-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.slider-title {
    font-size: 42px; /* Chữ to như hình mẫu */
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Nút tìm hiểu thêm màu cam đặc trưng của dự án */
.btn-cta {
    background: #ff4500; /* Màu đỏ cam rực rỡ */
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-cta:hover {
    background: #e03e00;
    transform: scale(1.05);
}/* Tùy chỉnh màu của mũi tên Swiper */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.swiper-pagination-bullet-active {
    background-color: #ff4500 !important;
}/* Ghi đè màu sắc của file _post_meta có sẵn khi nằm trong Grid */
/* =========================================
   MAGAZINE GRID LAYOUT (BLOCK 7 /* Container của lưới _category_block_type_7*/)
   ========================================= */
.magazine-grid-container {
    display: grid;
    /* Chia lưới 4 cột bằng nhau, 2 hàng cao 240px */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 15px; /* Khoảng cách giữa các bài viết */
    margin-top: 15px;
    margin-bottom: 30px;
}

.grid-item {
    position: relative;
    border-radius: 6px; /* Bo góc hiện đại */
    overflow: hidden;
    background-color: #1a1a1a; /* Màu nền chờ load ảnh */
}

/* Bài to bên trái chiếm 2 cột, 2 hàng */
.item-main {
    grid-column: span 2;
    grid-row: span 2;
}

/* Bài nhỏ bên phải chiếm 1 cột, 1 hàng */
.item-sub {
    grid-column: span 1;
    grid-row: span 1;
}

.grid-item .item-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Xử lý ảnh bao gồm cả lazyload của hệ thống */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ khi đưa chuột vào */
}

/* Lớp phủ đen mờ (Gradient) giúp chữ luôn nổi bật */
.grid-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Vùng chứa Nội dung chữ đè lên ảnh */
.grid-item .item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Thẻ Category (Tự động lấy màu từ Database) */
.grid-item .category-tag {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Tiêu đề bài viết */
.grid-item .post-title {
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    transition: color 0.3s;
}

.grid-item .item-link:hover .post-title {
    color: #ff4500; /* Màu cam TMT Motors khi hover, bạn có thể đổi */
}

/* Kích thước chữ phân biệt bài To - bài Nhỏ */
.item-main .post-title {
    font-size: 24px;
}

.item-sub .post-title {
    font-size: 15px;
    margin-bottom: 5px;
}
.item-sub .item-content {
    padding: 15px; /* Bài nhỏ đệm mỏng hơn */
}

/* Ép màu cho View _post_meta của hệ thống (Avatar, Tác giả, Lượt xem) */
.post-meta-magazine .post-meta {
    margin: 0;
}
.post-meta-magazine .post-meta,
.post-meta-magazine .post-meta a,
.post-meta-magazine .post-meta span,
.post-meta-magazine .post-meta i {
    color: #d1d1d1 !important; /* Xám sáng để dễ đọc trên nền tối */
    font-size: 12px;
}
.post-meta-magazine .post-meta a:hover {
    color: #fff !important;
}

/* =========================================
   RESPONSIVE (Thiết bị di động & Tablet)
   ========================================= */
@media (max-width: 991px) {
    .magazine-grid-container {
        grid-template-columns: repeat(2, 1fr); /* Giảm xuống còn 2 cột trên Tablet */
        grid-template-rows: auto;
    }
    .item-main {
        height: 400px;
    }
    .item-sub {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .magazine-grid-container {
        grid-template-columns: 1fr; /* Trở về 1 cột dọc trên Mobile */
    }
    .item-main {
        grid-column: span 1;
        height: 320px;
    }
    .item-main .post-title {
        font-size: 20px;
    }
}
/* Container của lưới _category_block_type_8*/
/* =========================================
   MAGAZINE GRID: SỰ KIỆN KHAI TRƯƠNG
   ========================================= */
.section-opening-events {
    padding: 30px 0;
}

/* --- CỘT TRÁI: DANH SÁCH BÀI VIẾT (CHỈ TEXT) --- */
.post-item-text-only {
    transition: all 0.3s ease;
}

/* Ẩn viền của dòng cuối cùng */
.post-item-text-only:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 1. Tiêu đề */
.post-title-list {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.post-title-list a {
    color: #222;
    transition: color 0.3s;
    text-decoration: none;
}
.post-title-list a:hover {
    color: #ff4500; /* Đổi màu khi hover */
}

/* 2. Ngày khai trương */
.opening-date {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}
.opening-date i {
    color: #ff4500; /* Nổi bật icon bằng màu cam */
    margin-right: 6px;
}
.opening-date strong {
    color: #222;
}

/* 3. Nút Xem chi tiết */
.btn-view-details {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #ff4500;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid #ff4500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-view-details i {
    margin-left: 6px;
    transition: transform 0.3s;
}
.btn-view-details:hover {
    background-color: #ff4500;
    color: #fff !important;
}
.btn-view-details:hover i {
    transform: translateX(4px); /* Hiệu ứng mũi tên trượt sang phải */
}

/* --- CỘT PHẢI: VIDEO BLOCK LỚN --- */
.large-video-block {
    position: relative;
    height: 100%;
    min-height: 540px; /* Kéo dài chiều cao để cân đối với 4 dòng text bên trái */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.large-video-block .video-link {
    display: block;
    height: 100%;
}
.large-video-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.large-video-block:hover img {
    transform: scale(1.03); /* Hiệu ứng zoom nhẹ ảnh nền */
}

/* Lớp phủ đen chuyển sắc giúp chữ luôn dễ đọc */
.large-video-block .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Icon Play ở giữa */
.large-video-block .play-button-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 64px;
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s;
}
.large-video-block:hover .play-button-center {
    color: #ff4500;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Thông tin đè lên Video */
.large-video-block .video-caption {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    z-index: 2;
}
.large-video-block .video-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

/* =========================================
   RESPONSIVE (ĐIỆN THOẠI & TABLET)
   ========================================= */
@media (max-width: 991px) {
    .large-video-block {
        margin-top: 40px;
        min-height: 400px;
    }
    .list-opening-events.pr-lg-4 {
        padding-right: 0 !important; /* Xóa khoảng cách thừa trên thiết bị nhỏ */
    }
}

@media (max-width: 575px) {
    .post-title-list {
        font-size: 16px;
    }
    .large-video-block .video-title {
        font-size: 20px;
    }
    .btn-view-details {
        padding: 6px 15px;
        font-size: 12px;
    }
}/* Căn lề phải cho nút Xem chi tiết trên màn hình máy tính (Desktop/Tablet) */
@media (min-width: 768px) {
    .align-right-desktop {
        text-align: right;
    }
}

/* Đảm bảo chữ nhỏ lại một chút để vừa vặn khi nằm ngang */
.post-title-list {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}
.opening-date {
    font-size: 13px;
    color: #555;
}
.btn-view-details {
    padding: 6px 12px;
    font-size: 12px;
}