/* =========================================
   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;
}

/* Ford-inspired main hero slider */
.section-featured-hero {
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 30px;
    overflow: hidden;
}

.ford-hero-slider-wrap {
    position: relative;
    width: 100%;
    min-height: clamp(430px, 58vw, 760px);
    overflow: hidden;
    background: #0e1824;
}

.ford-hero-slider,
.ford-hero-slider .slick-list,
.ford-hero-slider .slick-track,
.ford-hero-slide {
    height: clamp(430px, 58vw, 760px) !important;
}

.ford-hero-slide {
    position: relative;
    background: #0e1824;
}

.ford-hero-media {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.ford-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 14, 28, .82) 0%, rgba(4, 14, 28, .42) 38%, rgba(4, 14, 28, .08) 72%),
        linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.ford-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ford-hero-caption {
    position: absolute;
    z-index: 3;
    left: max(32px, calc((100vw - 1320px) / 2 + 24px));
    right: 52%;
    bottom: clamp(82px, 12vw, 150px);
    color: #fff;
}

.ford-hero-category {
    display: inline-flex;
    margin-bottom: 18px;
    pointer-events: auto;
}

.ford-hero-category .badge-category {
    border-radius: 3px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ford-hero-title {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 78px);
    line-height: .98;
    font-weight: 800;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .32);
}

.ford-hero-title a {
    color: #fff !important;
}

.ford-hero-meta {
    margin: 0 0 28px;
}

.ford-hero-meta,
.ford-hero-meta a,
.ford-hero-meta span {
    color: rgba(255, 255, 255, .82) !important;
}

.ford-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 26px;
    border-radius: 999px;
    background: #fff;
    color: #0b4f9f !important;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.ford-hero-cta:hover {
    background: #0b4f9f;
    color: #fff !important;
}

.ford-hero-nav {
    height: 58px;
}

.ford-hero-nav .prev,
.ford-hero-nav .next {
    width: 58px;
    height: 58px;
    opacity: 1 !important;
    border-radius: 50%;
    background: rgba(0, 0, 0, .58) !important;
    color: #fff;
    transition: background .2s ease, transform .2s ease;
}

.ford-hero-nav .prev {
    left: 32px;
}

.ford-hero-nav .next {
    right: 32px;
}

.ford-hero-nav .prev:hover,
.ford-hero-nav .next:hover {
    background: rgba(0, 75, 160, .92) !important;
    transform: scale(1.04);
}

.ford-hero-nav svg {
    width: 28px;
    height: 28px;
}

.ford-hero-controls {
    position: absolute;
    z-index: 5;
    right: max(26px, calc((100vw - 1320px) / 2 + 24px));
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ford-hero-dots .slick-dots {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ford-hero-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.ford-hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    color: transparent;
    font-size: 0;
    line-height: 0;
    transition: width .2s ease, background .2s ease;
}

.ford-hero-dots .slick-active button {
    width: 30px;
    background: #0b86ff;
}

.ford-hero-toggle {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ford-hero-toggle-icon {
    display: block;
    width: 16px;
    height: 18px;
    position: relative;
}

.ford-hero-toggle-icon-pause::before,
.ford-hero-toggle-icon-pause::after {
    content: "";
    position: absolute;
    top: 0;
    width: 5px;
    height: 18px;
    background: #fff;
    border-radius: 2px;
}

.ford-hero-toggle-icon-pause::before {
    left: 1px;
}

.ford-hero-toggle-icon-pause::after {
    right: 1px;
}

.ford-hero-toggle.is-paused .ford-hero-toggle-icon {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
}

.ford-hero-toggle.is-paused .ford-hero-toggle-icon::before,
.ford-hero-toggle.is-paused .ford-hero-toggle-icon::after {
    display: none;
}

@media (max-width: 991.98px) {
    .ford-hero-slider-wrap,
    .ford-hero-slider,
    .ford-hero-slider .slick-list,
    .ford-hero-slider .slick-track,
    .ford-hero-slide {
        height: 560px !important;
        min-height: 560px;
    }

    .ford-hero-caption {
        left: 24px;
        right: 24px;
        bottom: 100px;
    }

    .ford-hero-media::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .36) 42%, rgba(0, 0, 0, .78) 100%);
    }

    .ford-hero-nav .prev {
        left: 16px;
    }

    .ford-hero-nav .next {
        right: 16px;
    }
}

@media (max-width: 575.98px) {
    .section-featured-hero {
        margin-bottom: 20px;
    }

    .ford-hero-slider-wrap,
    .ford-hero-slider,
    .ford-hero-slider .slick-list,
    .ford-hero-slider .slick-track,
    .ford-hero-slide {
        height: 480px !important;
        min-height: 480px;
    }

    .ford-hero-caption {
        left: 18px;
        right: 18px;
        bottom: 88px;
    }

    .ford-hero-title {
        font-size: 30px;
        line-height: 1.06;
    }

    .ford-hero-meta {
        display: none;
    }

    .ford-hero-cta {
        min-height: 40px;
        padding: 0 20px;
        font-size: 13px;
    }

    .ford-hero-nav .prev,
    .ford-hero-nav .next {
        width: 44px;
        height: 44px;
    }

    .ford-hero-nav svg {
        width: 22px;
        height: 22px;
    }

    .ford-hero-controls {
        right: 18px;
        bottom: 22px;
    }

    .ford-hero-toggle {
        width: 44px;
        height: 44px;
    }
}

