﻿/* Thiết kế mới cho Product Info Section */
.new-product-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.new-product-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bg-section.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.new-product-info-section .container {
    position: relative;
    z-index: 2;
}

/* Header */
.new-section-header {
    position: relative;
    margin-bottom: 60px;
}

.new-watermark {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: rgba(204, 0, 0, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.new-section-title {
    font-family: Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #cc0000;
    margin-bottom: 20px;
    letter-spacing: 0;
    word-spacing: 0;
}

.new-title-line {
    width: 80px;
    height: 4px;
    background: #cc0000;
    margin: 0 auto;
}

/* Image Container */
.new-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    /* Fallback for browsers that don't support aspect-ratio */
    height: 500px;
}

/* Modern browsers with aspect-ratio support */
@supports (aspect-ratio: 16/10) {
    .new-image-container {
        height: auto;
    }
}

.new-showroom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
    /* Ensure image fills container properly */
    min-height: 100%;
    min-width: 100%;
}

.new-image-container:hover .new-showroom-image {
    transform: scale(1.05);
}

.new-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(204, 0, 0, 0.8), rgba(204, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-image-container:hover .new-image-overlay {
    opacity: 1;
}

.new-image-content {
    text-align: center;
    color: white;
}

.new-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.new-image-title {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0;
    word-spacing: 0;
}

.new-image-desc {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    letter-spacing: 0;
    word-spacing: 0;
}

/* Content Box */
.new-content-box {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    height: 100%;
}

.new-content-header {
    margin-bottom: 30px;
    text-align: center;
}

.new-main-title {
    font-family: Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #cc0000;
    margin-bottom: 15px;
    letter-spacing: 0;
    word-spacing: 0;
}

/* Services List */
.new-services-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.new-service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.new-service-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.new-service-icon {
    width: 50px;
    height: 50px;
    background: #cc0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.new-service-icon i {
    color: white;
    font-size: 1.2rem;
}

.new-service-content {
    flex: 1;
}

.new-service-title {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #cc0000;
    margin-bottom: 8px;
    letter-spacing: 0;
    word-spacing: 0;
}

.new-service-desc {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0;
    word-spacing: 0;
}

/* Điều chỉnh cho du-lich.html - Ảnh to hơn và có slider */
body:not(.du-lich-page) .new-product-info-section .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

body:not(.du-lich-page) .new-product-info-section .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

/* CSS cho slider trong du-lich.html */
.new-product-info-section .swiper {
    width: 100%;
    height: 100%;
}

.new-product-info-section .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-product-info-section .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation buttons */
.new-product-info-section .swiper-button-next,
.new-product-info-section .swiper-button-prev {
    color: #cc0000;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.new-product-info-section .swiper-button-next:after,
.new-product-info-section .swiper-button-prev:after {
    font-size: 16px;
}

/* Pagination dots */
.new-product-info-section .swiper-pagination-bullet {
    background: #cc0000;
    opacity: 0.5;
}

.new-product-info-section .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Slide overlay */
.new-product-info-section .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    text-align: left;
}

.new-product-info-section .slide-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0;
    word-spacing: 0;
}

.new-product-info-section .slide-description {
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0;
    word-spacing: 0;
}

/* Responsive - FORCE OVERRIDE */
@media (max-width: 991px) {
    .new-product-info-section {
        padding: 60px 0;
    }
    
    .new-section-header {
        margin-bottom: 40px;
    }
    
    .new-section-title {
        font-size: 2.2rem;
    }
    
    .new-image-container {
        aspect-ratio: 16/10;
    }
    
    .new-showroom-image {
        height: 100%;
    }
    
    .new-content-box {
        padding: 35px 25px;
        margin-top: 30px;
    }
    
    .new-service-item {
        padding: 18px;
        gap: 12px;
    }
    
    .new-service-icon {
        width: 45px;
        height: 45px;
    }
    
    .new-service-icon i {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .new-product-info-section {
        padding: 50px 0;
    }
    
    .new-section-title {
        font-size: 1.8rem;
    }
    
    .new-watermark {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .new-title-line {
        width: 60px;
        height: 3px;
    }
    
    /* Thay đổi layout: ảnh trên, nội dung dưới - FORCE OVERRIDE */
    .new-product-info-section .row {
        flex-direction: column !important;
        margin: 0 !important;
    }
    
    .new-product-info-section .col-lg-8,
    .new-product-info-section .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    .new-product-info-section .col-lg-8 {
        order: 1 !important;
        margin-bottom: 30px !important;
    }
    
    .new-product-info-section .col-lg-4 {
        order: 2 !important;
    }
    
    /* Đảm bảo container vừa với màn hình */
    .new-product-info-section .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }
    
    .new-image-container {
        aspect-ratio: 16/10 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .new-showroom-image {
        height: 100% !important;
        width: 100% !important;
    }
    
    .new-content-box {
        padding: 25px 20px !important;
        margin-top: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .new-main-title {
        font-size: 1.2rem;
    }
    
    .new-service-item {
        padding: 15px;
        gap: 10px;
    }
    
    .new-service-icon {
        width: 40px;
        height: 40px;
    }
    
    .new-service-icon i {
        font-size: 1rem;
    }
    
    .new-service-title {
        font-size: 0.95rem;
    }
    
    .new-service-desc {
        font-size: 0.85rem;
    }
    
    .new-product-info-section .swiper-button-next,
    .new-product-info-section .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .new-product-info-section .swiper-button-next:after,
    .new-product-info-section .swiper-button-prev:after {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .new-product-info-section {
        padding: 40px 0;
    }
    
    .new-section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .new-watermark {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .new-title-line {
        width: 50px;
        height: 2px;
    }
    
    /* Đảm bảo layout ảnh trên, nội dung dưới */
    .new-product-info-section .col-lg-8 {
        margin-bottom: 25px;
    }
    
    /* Đảm bảo container vừa với màn hình */
    .new-product-info-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .new-image-container {
        aspect-ratio: 16/10;
        width: 100%;
        margin: 0;
    }
    
    .new-showroom-image {
        height: 100%;
        width: 100%;
    }
    
    .new-content-box {
        padding: 20px 15px;
        margin-top: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .new-main-title {
        font-size: 1.1rem;
    }
    
    .new-services-list {
        gap: 15px;
    }
    
    .new-service-item {
        padding: 12px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }
    
    .new-service-icon {
        width: 35px;
        height: 35px;
        margin: 0 auto;
    }
    
    .new-service-icon i {
        font-size: 0.9rem;
    }
    
    .new-service-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .new-service-desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .new-image-content {
        padding: 0 20px;
    }
    
    .new-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .new-image-title {
        font-size: 1.2rem;
    }
    
    .new-image-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .new-product-info-section {
        padding: 30px 0;
    }
    
    .new-section-title {
        font-size: 1.3rem;
    }
    
    /* Đảm bảo layout ảnh trên, nội dung dưới */
    .new-product-info-section .col-lg-8 {
        margin-bottom: 20px;
    }
    
    /* Đảm bảo container vừa với màn hình */
    .new-product-info-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .new-image-container {
        aspect-ratio: 16/10;
        width: 100%;
        margin: 0;
    }
    
    .new-showroom-image {
        height: 100%;
        width: 100%;
    }
    
    .new-content-box {
        padding: 15px 12px;
        margin-top: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .new-service-item {
        padding: 10px;
    }
    
    .new-service-icon {
        width: 30px;
        height: 30px;
    }
    
    .new-service-icon i {
        font-size: 0.8rem;
    }
    
    .new-service-title {
        font-size: 0.85rem;
    }
    
    .new-service-desc {
        font-size: 0.75rem;
    }
}

/* Flexible aspect ratio for different image types */
.new-image-container.flexible-aspect {
    aspect-ratio: unset;
    min-height: 400px;
    max-height: 600px;
}

.new-image-container.flexible-aspect .new-showroom-image {
    object-fit: cover;
    object-position: center;
}

/* Specific aspect ratios for different content types */
.new-image-container.portrait-aspect {
    aspect-ratio: 3/4;
}

.new-image-container.landscape-aspect {
    aspect-ratio: 16/9;
}

.new-image-container.square-aspect {
    aspect-ratio: 1/1;
}

/* ULTIMATE OVERRIDE - GHI ĐÈ TẤT CẢ CSS KHÁC */
@media (max-width: 768px) {
    .new-product-info-section .row {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .new-product-info-section .col-lg-8,
    .new-product-info-section .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .new-product-info-section .col-lg-8 {
        order: 1 !important;
        margin-bottom: 30px !important;
    }
    
    .new-product-info-section .col-lg-4 {
        order: 2 !important;
    }
    
    .new-product-info-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 !important;
    }
    
    .new-image-container {
        aspect-ratio: 16/10 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .new-showroom-image {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .new-content-box {
        width: 100% !important;
        margin: 0 !important;
        padding: 25px 20px !important;
        box-sizing: border-box !important;
    }
}



