f/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cấu hình body */
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'FS Magistral', sans-serif;
    background-color: #f4f4f4;
    text-align: center;
}

h1 {
    font-size: 146px;
    color: black;
    font-weight: bold;
    margin: 0;
}

.banner img {
    width: 100%;
    display: block;
    text-align: center;
    position: relative;
    color: black;
}

/* Styling cho từng phần (section) */ 
.section {
    width: 100%;
    height: 100vh; /* Mỗi phần chiếm 100% chiều cao màn hình */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

/* Thêm màu sắc xen kẽ */
.section:nth-child(odd) {
    background-color: #EA75A5; /* Hồng */
    color: white;
}

.section:nth-child(even) {
    background-color: black;
    color: #EA75A5;
}

/* Font */

@font-face {
    font-family: 'FS Magistral';
    src: url('/font/FS Magistral-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'FS Magistral';
    src: url('/font/FS Magistral-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'FS Magistral';
    src: url('/font/FS Magistral-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'FS Magistral';
    src: url('/font/FS Magistral-Book.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'FS Magistral';
    src: url('/font/FS Magistral-LightItalic.ttf') format('truetype');
    font-weight: 250;
    font-style: italic;
}

@font-face {
    font-family: 'FS Magistral';
    src: url('/font/FS Magistral-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'FS Magistral';
    src: url('/font/FS Magistral-BoldItalic.ttf') format('truetype');
    font-weight: 750;
}

/* Áp dụng font */
body {
    font-family: 'FS Magistral', sans-serif;
}
@font-face {
    font-family: 'FS Magistral';
    src: url('./fonts/FS_Magistral-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'FS Magistral';
    src: url('./fonts/FS_Magistral-Bold.ttf') format('truetype');
    font-weight: bold;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'FS Magistral', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #EA75A5 !important; /* Đổi màu nền thành hồng */
    z-index: 1000; /* Ưu tiên hiển thị trên ảnh */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px; /* Đặt chiều cao cố định */
    padding: 0 20px; /* Đảm bảo không bị quá lớn */
}

.menu {
    display: flex;
    gap: 40px; /* Tạo khoảng cách giữa các mục */
    margin-left: auto; /* Đẩy menu về phía bên phải */
    margin: 0; /* Xóa margin nếu không cần thiết */
    margin-right: 45px;
}

.menu li {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    font-size: 22px;
    font-weight: 500; /* Medium */
    color: black;
    padding: 15px 20px; /* Giữ padding nhưng thêm ngang */
    transition: all 0.2s ease-in-out;
    letter-spacing: 1px;
    border-radius: 8px; /* Bo góc để đồng nhất */
}

.menu a:hover {
    font-weight: bold;
}

.menu a.active {
    font-weight: bold;
    display: flex; /* Kích hoạt flexbox */
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều ngang */
    transform: scale(1.05); /* Hiệu ứng nhấn */
    padding: 10px 20px;
    text-align: center; /* Đảm bảo chữ căn giữa */
    text-decoration: underline;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;  /* Loại bỏ padding dư thừa */
    margin: 0;  /* Loại bỏ margin dư thừa */
    width: 200px;  /* Đặt chiều rộng phù hợp */
    height: 250px; /* Đặt chiều cao phù hợp */
    overflow: hidden; /* Ẩn phần thừa nếu có */
    
}

.logo img {
    width: 100%; /* Logo chiếm hết phần khung */
    height: auto; /* Giữ nguyên tỷ lệ */
    max-height: 100%; /* Không vượt quá khung */
    object-fit: cover; /* Giúp logo không tạo khoảng trống thừa */
}
.logo-container {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.logo {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.header {
    justify-content: flex-start;
}
.header-image {
    width: 100%; /* Ảnh full chiều ngang */
    height: auto; /* Giữ nguyên tỷ lệ ảnh */
    display: block; /* Tránh khoảng trắng dư thừa */
}
.banner {
    position: relative;
    display: inline-block;
    width: 100%;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1; /* Đảm bảo ảnh nằm phía sau thanh menu */
}

.banner img {
    width: 100%;
    display: block;
}

/* Container 1 */

.overlay-text {
    font-size: 146px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    z-index: 2;

    opacity: 0; /* Ẩn chữ trước khi load */
    animation: fadeInSlideDown 1s ease-out forwards;
}

.overlay-text-2, 
.overlay-text-3, 
.overlay-text-4 {
    position: absolute; /* Đặt vị trí tuyệt đối để chồng lên ảnh */
    left: 50%;
    transform: translateX(-50%); /* Căn giữa ngang */
    text-align: center;
    color: black; /* Đổi màu nếu cần */
    z-index: 2;
}

.overlay-text-2 {
    top: 23%;
    font-size: 69px;
    font-weight: bold;
}

.overlay-text-3 {
    top: 31%;
    font-size: 30px;
    font-weight: bold;
}

.overlay-text-4 {
    top: 37%;
    font-size: 24px;
    font-weight: lighter;
}

/* Container 2 */

.overlay2-text {
    position: absolute;
    font-size: 100px;
    font-weight: bold;
    color: #EA75A5;
    text-align: left; /* Căn lề trái */
    white-space: nowrap;
    top: 50%;
    left: 6%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
}

.overlay2-text-2 {
    position: absolute;
    text-align: left; /* Căn lề trái */
    color: #EA75A5;
    z-index: 2;
    top: 57%; /* Điều chỉnh lại vị trí */
    left: 6%; /* Giữ nguyên để khớp */
    font-size: 40px;
    font-weight: bold;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
}

/* Container 3 */

.Content1 {
    color: white; /* Màu mặc định của chữ */
    font-size: 30px;
    position: absolute;
    text-align: left; /* Căn lề trái */
    white-space: nowrap;
    top: 10%;
    left: 8%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
    text-align: center;
    font-weight: 400;
}


.Content2 {
    color: white; /* Màu mặc định của chữ */
    font-size: 30px;
    position: absolute;
    text-align: left; /* Căn lề trái */
    white-space: nowrap;
    top: 20%;
    left: 9%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
    text-align: center;
    font-weight: 400;
}

.highlight {
    color: #EA75A5; /* Màu hồng */
    font-weight: 400;
}

.banner .background-image {
    width: 100%;
    display: block;
}
/* Container 4 */

.banner .overlay-image {
    position: absolute; /* Đặt ảnh chồng lên */
    top: 62%;
    left: 79%;
    transform: translate(-50%, -50%); /* Căn giữa ảnh */
    width: 40%; /* Điều chỉnh kích thước ảnh chồng */
    opacity: 0.8; /* Tùy chỉnh độ trong suốt */
    z-index: 10; /* Đảm bảo nằm trên */
}

.Content3 {
    color: white; /* Màu mặc định của chữ */
    font-size: 35px;
    position: absolute;
    text-align: left; /* Căn lề trái */
    white-space: nowrap;
    top: 45%;
    left: 10%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
    font-weight: 400;
}

.Content4 {
    color: white; /* Màu mặc định của chữ */
    font-size: 35px;
    position: absolute;
    text-align: left; /* Căn lề trái */
    white-space: nowrap;
    top: 60%;
    left: 10%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
    font-weight: 400;
}

/* Container 5 */

.Content5 {
    color: white; /* Màu mặc định của chữ */
    font-size: 80px;
    position: absolute;
    text-align: center; /* Căn lề trái */
    white-space: nowrap;
    top: 28%;
    left: 25%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
    font-weight: 700;
}

.highlight2 {
    color: #EA75A5; /* Màu hồng */
    font-weight: 700;
}

/* Container 6 */

.Content6 {
    color: white; /* Màu mặc định của chữ */
    font-size: 33px;
    position: absolute;
    text-align: center; /* Căn lề trái */
    white-space: nowrap;
    top: 36%;
    left: 56%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
    font-weight: 400;
}

/* Container 7 */

.overlay-image2 {
    position: absolute !important;
    top: 90%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 46% !important;
    opacity: 0.8;
    z-index: 10;
}

/* Container 8 */

.overlay-image3 {
    position: absolute !important;
    top: 50%;
    left: 19%;
    transform: translate(-50%, -50%);
    width: 40% !important;
    opacity: 1;
    z-index: 10;
}

/* Container 9 */

.overlay-image5 {
    position: absolute !important;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100% !important;
    opacity: 1;
    z-index: 10;
}

.Content7 {
    color: #EA75A5;
    font-size: 100px;
    position: absolute;
    text-align: left;
    white-space: nowrap;
    top: 20%;
    left: 18%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    font-weight: 750;
}

.Textkh1 {
    color: #EA75A5;
    font-size: 50px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 71%;
    left: 9%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    font-weight: 750;
}

.Textkh2 {
    color: #EA75A5;
    font-size: 40px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 74%;
    left: 53%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    font-weight: 750;
}

.Textkh3 {
    color: #EA75A5;
    font-size: 50px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 71%;
    left: 77.5%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    font-weight: 750;
}

.Textkh4 {
    color: #EA75A5;
    font-size: 40px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 74%;
    left: 26.5%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    font-weight: 750;
}



/* Container 10 */

.overlay-image4 {
    position: absolute !important;
    top: 58%;
    left: 64%;
    transform: translate(-50%, -50%);
    width: 55% !important;
    opacity: 1;
    z-index: 10;
}

/* Container 11 */

.Content8 {
    color: white; /* Màu mặc định của chữ */
    font-size: 25px;
    position: absolute;
    text-align: center; /* Căn lề trái */
    white-space: nowrap;
    top: 50%;
    left: 2%;
    transform: translateY(-50%); /* Chỉ căn theo chiều dọc */
    z-index: 2;
    font-weight: 400;
}

/* Container 12 */

.Content9 {
    color: rgb(0, 0, 0);
    font-size: 100px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 6%;
    left: 34%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 700;
}

.Content10 {
    color: rgb(0, 0, 0);
    font-size: 39px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 17%;
    left: 34.5%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 700;
}

.Content11 {
    color: rgb(0, 0, 0);
    font-size: 29px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 28%;
    left: 24%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 400;
}

/* Container 13 */

.Content12 {
    color: rgb(255, 255, 255);
    font-size: 29px;
    position: absolute;
    text-align: left;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 400;
}

/* Container 14 */

.Content13 {
    color: rgb(255, 255, 255);
    font-size: 29px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 80%;
    left: 26%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 400;
}

/* Container 15 */

.Content14 {
    color: rgb(255, 255, 255);
    font-size: 25px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 37%;
    left: 1%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 400;
}

/* Container 16 */

.Content15 {
    color: rgb(0, 0, 0);
    font-size: 62px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 49%;
    left: 47%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 700;
}

.Content16 {
    color: rgb(0, 0, 0);
    font-size: 29px;
    position: absolute;
    text-align: center;
    white-space: nowrap;
    top: 62%;
    left: 49%;
    transform: translateY(-50%);
    z-index: 2;
    font-weight: 400;
}

/* HTML */

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden; /* Ẩn thanh cuộn ngang nếu có */
    width: 100%;
}

/* Ẩn trang ban đầu, rồi làm mờ dần vào */
    body {
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
    }

    /* Khi nhấn vào link, trang sẽ mờ dần trước khi đổi */
    body.fade-out {
        opacity: 0;
    }




    /* BLOG */

    .highlight-section {
        background: url('background.jpg') no-repeat center center/cover;
        min-height: 200px; /* Chiều cao tối thiểu, có thể lớn hơn nếu nội dung dài */
        padding: 40px 20px; /* Tạo khoảng trống trên và dưới */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        color: white;
    }
    
    .highlight-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 350px;
        background: rgb(0 0 0);
    }
    
    .highlight-content {
        position: relative;
        z-index: 2;
        max-width: 1000px;
    }
    
    .highlight-section h1 {
        font-size: 35px;
        font-weight: bold;
        line-height: 1.5;
    }
    
    .TextTDBlog {
        color: rgb(255, 255, 255);
        margin: 120px;
    }

    .blog-layout {
        display: flex;
        max-width: 1200px; /* Giới hạn chiều rộng tối đa */
        margin: auto; /* Căn giữa layout */
        gap: 30px; /* Khoảng cách giữa hai cột */
        align-items: stretch; /* Căn các phần tử trên cùng */
        height: 380px;
    }

    .blog-slider {
        flex: 3; /* Blog slider chiếm nhiều diện tích hơn */
        position: relative;
        max-width: 70%; /* Định kích thước tối đa */
        margin: 0 auto; /* Căn giữa */
        overflow: hidden;
        border-radius: 10px; /* Bo góc nhẹ */
        display: flex;
        flex-direction: column;
    }
    .scroll-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .post-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: white;
        padding: 8px;
        border-radius: 5px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .post-item img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 5px;
    }       
    
    .blog-wrapper {
        display: flex;
        transition: transform 0.5s ease-in-out; /* Hiệu ứng trượt mượt */
        
    }

    .blog-container {
        display: none;
        min-width: 100%;
        transition: opacity 0.3s ease-in-out;
    }

    .blog-container.active {
        display: block;
    }
    
    .blog-image {
        width: 100%;
        height: 450px; /* Điều chỉnh chiều cao ảnh */
        object-fit: cover;
        border-radius: 8px;
    }
    
    .blog-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 25px 20px;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        transition: opacity 0.5s ease-in-out;
    }
    
    .blog-title {
        font-size: 20px;
        font-weight: bold;
        text-align: left;
        margin: 20px 0px;
    }
    
    .blog-meta {
        display: flex;
        align-items: center;
        font-size: 14px;
        margin-top: 8px;
        gap: 10px;
    }
    
    
    .blog-meta i {
        margin-right: 5px;
        font-size: 16px;
        color: #f0f0f0;
    }
    
    .blog-meta span {
        display: flex;
        align-items: center;
        gap: 5px; /* Giúp icon gần chữ hơn */
    }

    .blog-meta span:not(:last-child) {
        margin-right: 15px; /* Điều chỉnh khoảng cách giữa các mục */
    }
    
    .blog-meta .divider {
        margin: 0 10px; /* Làm dấu gạch xa hơn */
        color: #999;
    }

    /* CSS cho icon điều hướng */
    .blog-navigation {
        position: absolute;
        bottom: 64px;
        display: flex;
        gap: 10px;
        left: 93%;
        transform: translateX(-50%);
    }
    
    .blog-navigation button {
        background: white;
        border: none;
        padding: 10px;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .blog-navigation button:hover {
        background: #f0f0f0;  /* Màu nền khi hover */
        transform: scale(1.1); /* Hiệu ứng phóng to nhẹ */
    }
    
    /* Xem gì hôm nay bên phải */

    .righttext {
        margin: 12px;
    }

    .right-column {
        width: 300px; /* Điều chỉnh theo layout của bạn */
        max-height: 380px; /* Chiều cao cố định */
        overflow-y: auto; /* Bật cuộn */
        background: #f9f9f9;
        padding: 10px;
        border-radius: 5px;
    }
    
    .scroll-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .post-box {
        background: white;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .post-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .post-item img {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        object-fit: cover;
    }

/* Container Blog 2 */

.article-wrapper {
    display: flex;
    justify-content: space-between;
    width: 1200px;
    margin: auto;
    padding: 20px 15px;
}

.article-card {
    width: calc(33.33% - 20px);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

.article-category {
    display: inline-block;
    background: green;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: gray;
    margin-bottom: 10px;
    justify-content: center; /* Căn giữa các phần tử con */
    gap: 10px; /* Tạo khoảng cách đều giữa các span */
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 3px; /* Giữ icon và chữ gần nhau */
}

.divider {
    color: #ccc; /* Làm mờ màu của dấu phân cách */
    font-weight: bold;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.article-description {
    font-size: 14px;
    color: #666;
}

/* Video and poster Blog */

.video-poster-wrapper {
    max-width: 1200px;
    height: 400px;
    margin: auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.poster-section {
    width: 33%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 33px;
    margin-right: 15px;
}

.poster-section img {
    max-width: 100%;
    height: 100%;
    object-fit: cover; /* Giúp ảnh bao phủ toàn bộ khung */
}

.video-section {
    width: 70%;
    display: flex;
    margin-left: 12px;
}

.video-section iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Animation */

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -80px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* --------- MENU CHO MOBILE --------- */
@media screen and (max-width: 768px) {
    .header {
        display: flex;
        flex-direction: row; /* Hiển thị ngang */
        justify-content: space-between; /* Canh đều 2 bên */
        align-items: center;
        padding: 5px 10px; /* Giảm padding cho nhỏ lại */
        height: 30px; /* Giảm chiều cao */
    }

    .header a {
        font-size: 16px; /* Giảm kích thước chữ */
        padding: 5px 8px; /* Giảm khoảng cách giữa các mục */
    }

    /* Nếu menu quá dài thì dùng icon */
    .menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .menu {
        display: none;
        position: absolute;
        top: 50px; /* Xuống dưới header */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        text-align: center;
    }

    .menu.active {
        display: block;
    }

    .menu a {
        display: block;
        padding: 10px;
        color: white;
        text-decoration: none;
    }
}

/* --------- Navbar CHO MOBILE --------- */


@media screen and (max-width: 768px) {

    .logo img {
        width: 50px;  /* Giảm kích thước logo */
        height: auto; /* Giữ tỉ lệ */
    }

    .logo {
        width: 100px;  /* Đặt chiều rộng phù hợp */
        height: 100px; /* Đặt chiều cao phù hợp */
    }
    
    .logo {
    padding-left: 0 !important;
    margin-left: -30px !important;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #EA75A5 !important;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 25px;
        padding: 0 20px;
    }

}
    

    
/* --------- Racing 1 CHO MOBILE --------- */

@media screen and (max-width: 768px) {
        .overlay-text,
        .overlay-text-2,
        .overlay-text-3,
        .overlay-text-4 {
            font-size: 10px; /* Giảm kích thước chữ */
            line-height: 0.5; /* Căn chỉnh dòng để không bị dính nhau */
            text-align: center; /* Căn giữa */
            position: absolute; /* Đảm bảo overlay đúng vị trí */
            width: 100%; /* Không tràn ra ngoài */
        }
    }

    /* --------- Racing 2 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
        .overlay2-text {
            font-size: 20px; /* Giảm kích thước chữ */
        }
    
        .overlay2-text-2 {
            font-size: 7px; /* Giảm kích thước chữ */
        }
    
        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }
    }

     /* --------- Racing 3 CHO MOBILE --------- */

     @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
        .Content1 {
            font-size: 10px; /* Giảm kích thước chữ */
            top: 12%;
        }
    
        .Content2 {
            font-size: 10px;
            top: 30%;
        }
    
        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }
    }

    /* --------- Racing 4 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
        .Content4 {
            font-size: 10px; /* Giảm kích thước chữ */
        }
    
        .Content3 {
            font-size: 10px;
            top: 30%;
        }
    
        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }
    }

    /* --------- Racing 5 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content5 {
            font-size: 14px;
            top: 27%;
            left: 31%;
        }
    
        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }
    }

    /* --------- Racing 6 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content6 {
            font-size: 9px;
            top: 43%;
            left: 47%;
        }
    
        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }
    }

    /* --------- Racing 7 KH CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content7 {
            color: #EA75A5;
            font-size: 16px;
            position: absolute;
            text-align: left;
            white-space: nowrap;
            top: 29%;
            left: 24%;
            transform: translateY(-50%);
            z-index: 2;
            text-align: center;
            font-weight: 750;
}
            img {
                max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
                height: auto;
            }

            .Textkh1 {
                color: #EA75A5;
                font-size: 10px;
                position: absolute;
                text-align: center;
                white-space: nowrap;
                top: 71%;
                left: 9%;
                transform: translateY(-50%);
                z-index: 2;
                text-align: center;
                font-weight: 750;
            }
            .Textkh2 {
                color: #EA75A5;
                font-size: 8px;
                position: absolute;
                text-align: center;
                white-space: nowrap;
                top: 74%;
                left: 53%;
                transform: translateY(-50%);
                z-index: 2;
                text-align: center;
                font-weight: 750;
            }
            .Textkh3{
                color: #EA75A5;
                font-size: 10px;
                position: absolute;
                text-align: center;
                white-space: nowrap;
                top: 71%;
                left: 77.5%;
                transform: translateY(-50%);
                z-index: 2;
                text-align: center;
                font-weight: 750;
            }
            .Textkh4 {
                color: #EA75A5;
                font-size: 9px;
                position: absolute;
                text-align: center;
                white-space: nowrap;
                top: 74%;
                left: 25.5%;
                transform: translateY(-50%);
                z-index: 2;
                text-align: center;
                font-weight: 750;
        }
    }
    
    /* --------- Racing 8 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content8 {
            color: white;
            font-size: 7px;
            position: absolute;
            text-align: center;
            white-space: nowrap;
            top: 50%;
            left: 2%;
            transform: translateY(-50%);
            z-index: 2;
            font-weight: 400;
        }
    
        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }
    }

    /* --------- Racing 9.10.11 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content9 {
            color: rgb(0, 0, 0);
            font-size: 15px;
            position: absolute;
            text-align: center;
            white-space: nowrap;
            top: 6%;
            left: 39%;
            transform: translateY(-50%);
            z-index: 2;
            font-weight: 700;
        }
    
        .Content10 {
            color: rgb(0, 0, 0);
            font-size: 10px;
            position: absolute;
            text-align: center;
            white-space: nowrap;
            top: 15%;
            left: 31.5%;
            transform: translateY(-50%);
            z-index: 2;
            font-weight: 700;
        }

        .Content11 {
            color: rgb(0, 0, 0);
            font-size: 8px;
            position: absolute;
            text-align: center;
            white-space: nowrap;
            top: 27%;
            left: 14%;
            transform: translateY(-50%);
            z-index: 2;
            font-weight: 400;
        }

        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }
    }

    /* --------- Racing 12 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content12 {
            color: rgb(255, 255, 255);
            font-size: 6px;
            position: absolute;
            text-align: left;
            white-space: nowrap;
            top: 50%;
            left: 46%;
            transform: translateY(-50%);
            z-index: 2;
            font-weight: 400;
        }

        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }

    }    

    /* --------- Racing 13 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content13 {
            color: rgb(255, 255, 255);
            font-size: 7px;
            position: absolute;
            text-align: center;
            white-space: nowrap;
            top: 80%;
            left: 20%;
            transform: translateY(-50%);
            z-index: 2;
            font-weight: 400;
        }

        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }

    }    
    
    /* --------- Racing 14 CHO MOBILE --------- */

    @media (max-width: 768px) { 
        /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */
    
        .Content14 {
            color: rgb(255, 255, 255);
            z-index: 2;
            font-size: 8px;
            position: absolute;
            text-align: center;
            white-space: normal;
            overflow-wrap: break-word;
            max-width: 188px;
            transform: translateX(1%) translateY(-9%);
            z-index: 2;
            font-weight: 400;
        }

        img {
            max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
            height: auto;
        }

    }  


/* --------- Racing 15.16 CHO MOBILE --------- */

@media (max-width: 768px) { 
    /* Điều chỉnh trên màn hình nhỏ hơn 768px (mobile) */

    .Content15 {
        color: rgb(0, 0, 0);
        font-size: 13px;
        position: absolute;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 80%;
        transform: translateX(-2%) translateY(-28%);
        z-index: 2;
        top: 46%;
        font-weight: 700;
    }

    .Content16 {
        color: rgb(0, 0, 0);
        font-size: 8px;
        position: absolute;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 80%;
        transform: translateX(-5%) translateY(-30%);
        z-index: 2;
        font-weight: 400;
    }

    img {
        max-width: 100%; /* Đảm bảo ảnh không bị tràn màn hình */
        height: auto;
    }

}  

/* Blog ND */

/* Tiêu đề */

.post-header {
    font-family: 'FS Magistral';
    max-width: 700px;
    margin: auto;
    text-align: left; /* Căn trái nội dung */
}

.post-breadcrumb {
    font-size: 15px;
    color: #303eff;
}

.post-breadcrumb a {
    font-size: 15px;
    color: #303eff;
}

.post-title {
    font-size: 40px;
    font-weight: 700;
    margin: 20px 0;

}

.post-meta {
    font-size: 15px;
    color: #666;
}

.post-meta i {
    margin-right: 5px;
    color: #333;
}


/* gạch chân */

.custom-divider {
    width: 100%;
    max-width: 700px;
    height: 6px;
    background-color: #ccc;
    margin: 20px auto;
}

/* Nội dung */

.blog-description {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.blog-section {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 20px;
    font-family: 'FS Magistral';
    line-height: 1.6;
    color: #333;
}

.blog-heading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.blog-illustration {
    text-align: center;
    margin: 20px 0;
}

.blog-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blog-subheading {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.blog-description ul {
    list-style-type: disc;
    padding-left: 20px;
}

.blog-description li {
    margin-bottom: 10px;
}

code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Blog 2 cột bên */ 

.page-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
    display: flex;
    justify-content: space-between;
    margin: auto;
    position: relative;
}

.sidebar {
    width: 10%;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 10px;
    z-index: 1000;
}

.sidebar-left {
    left: 20%;
}

.sidebar-right {
    right: 20%;
}

/* CSS danh sách */
.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar a {
    text-decoration: none;
    color: #333;
}

.sidebar a:hover {
    color: blue;
}

.Blog-ND {
    margin-left: 22%; /* Đẩy nội dung sang phải để tránh bị che */
    margin-right: 22%; /* Đẩy nội dung sang trái để tránh bị che */
}

/* Blog Responsive */

@media screen and (max-width: 768px) {
    .highlight-section h1 {
        font-size: 16px;
        font-weight: bold;
        line-height: 1.5;
    }

    .highlight-section {
        background: url('background.jpg') no-repeat center center/cover;
        min-height: 200px; /* Chiều cao tối thiểu, có thể lớn hơn nếu nội dung dài */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        color: white;
    }

    .TextTDBlog {
        color: rgb(255, 255, 255);
        text-align: center;
        margin: 11% 0 0 0; /* Chỉ giữ margin-top, loại bỏ các margin khác */
    }

    .right-column {
        display: none; /* Ẩn trên mobile */
    }

    .blog-slider {
        flex: 3;
        position: relative;
        max-width: 92%;
        margin: 0 auto;
        overflow: hidden;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
    }

    .blog-navigation button {
        background: white;
        border: none;
        padding: 10px;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .blog-navigation {
        position: absolute;
        bottom: 71px;
        display: flex;
        gap: 10px;
        left: 87%;
        transform: translateX(-50%);
    }

    .video-section {
        display: none; /* Ẩn video trên màn hình nhỏ hơn 768px */
    }

    .poster-section {
        width: 100%;
        display: flex
    ;
        align-items: center;
        justify-content: center;
        margin-left: 15px;
        margin-right: 15px;
    }

    .article-wrapper {
        display: flex;
        justify-content: space-between;
        width: 1145px;
        margin: auto;
        padding: 20px 7px;
    }
}

/* Blog ND Responsive */

@media screen and (max-width: 768px) {
    .sidebar-left, 
    .sidebar-right {
        display: none; /* Ẩn sidebar */
    }
    .post-title {
        font-size: 18px;
        font-weight: 700;
        margin: 20px 0;
    }
    .Blog-ND {
        margin-left: 22%;
        margin-right: 22%;
        margin-top: 15%;
    }
    .highlight-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 200px;
        background: rgb(0 0 0);
    }
    .blog-layout {
        display: flex;
        max-width: 1200px; /* Giới hạn chiều rộng tối đa */
        margin: auto; /* Căn giữa layout */
        gap: 30px; /* Khoảng cách giữa hai cột */
        align-items: stretch; /* Căn các phần tử trên cùng */
        height: 380px;
        margin-top: 5%;
    }

}

/* Banner */

@media screen and (max-width: 768px) {
    body {
        background-color: #ffffff;
        margin: 0;
        padding: 0;
        min-height: 100vh; /* Đảm bảo nó không kéo dài hơn màn hình */
        display: flex;
        flex-direction: column;
        font-family: 'FS Magistral', sans-serif !important;
    }
}


/* Footer */ 

.footer {
    background-color: #111;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-logo img {
    width: 150px;
}

.footer-info, .footer-contact, .footer-social {
    max-width: 250px;
}

.footer h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer a {
    color: #ff008c;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 📌 Responsive Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 30px;
    }

    .footer-logo img {
        width: 45px; /* Nhỏ hơn trên điện thoại */
    }

    .footer-content h3 {
        font-size: 8px;
    }

    .footer h3 {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .footer-info p {
        font-size: 8px;
    }
    .footer-contact p {
        font-size: 8px;
    }
    .footer-social p {
        font-size: 8px;
    }

    .footer-social a {
        font-size: 8px;
    }

    .footer-container {
        display: flex
    ;
        max-width: 1200px;
        margin: auto;
        flex-direction: column;
        align-items: center;
    }

    .footer-content p,
    .social-links a {
        font-size: 10px; /* Cỡ chữ tối ưu cho mobile */
    }
}