﻿
/* Tùy chỉnh khoảng cách dừng (nếu bị che bởi Header cố định) */
#gioi-thieu {
    scroll-margin-top: 0px; /* Điều chỉnh số này bằng chiều cao Header của bạn */
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

.top-bar {
    background: #000;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

/* Hàng 2 điều chỉnh độ cao cố định để Menu canh giữa dễ hơn */
/* Hàng 2 trắng */
.main-navigation .container-fluid {
    display: flex !important;
    align-items: center;
    position: relative;
    padding-left: 0; /* Quan trọng để logo sát lề trái */
}

/* Hộp Logo đỏ */
.logo-wrapper {
    position: absolute;
    left: 40px;
    top: 0;
    z-index: 1001; /* Đảm bảo cao nhất */
}

/* Thẻ spacer đóng vai trò vật cản */
.menu-spacer {
    flex-shrink: 0;
    width: 200px; /* Độ rộng này = lề trái logo (40px) + chiều rộng logo (150px) + 10px khoảng cách */
    height: 1px;
}

/* Menu chính */
.nav-menu {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1; /* Cho phép menu chiếm phần không gian còn lại */
}

    .nav-menu li {
        border-right: 1px solid #eee;
    }

        .nav-menu li a {
            text-decoration: none !important;
            padding: 0 20px;
            line-height: 75px; /* Căn giữa theo chiều cao hàng trắng */
            display: flex;
            color: #333;
            font-weight: 600;
            font-size: 13px;
            height: 100%;
            transition: all 0.3s ease;
        }
            
            .nav-menu li a:hover {
                color: #A50000;
            }

.main-logo {
    width: 150px;
    background-color: #A50000;
    padding: 15px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
}
          

/* Đẩy mạng xã hội sang phải */
.social-links {
    margin-left: auto !important;
    display: flex;
    gap: 15px;
}

/* Slider Styling */
.main-slider {
    position: relative;
    z-index: 1;
}

.slide-item {
    position: relative;
}

.slide-caption {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    text-align: right;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

    .slide-caption h1 {
        font-size: 55px;
        font-weight: 800;
        color: #A50000;
    }

/* Section Giới thiệu */
.intro-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Định dạng tiêu đề GIỚI THIỆU (Màu đỏ đặc trưng) */
.intro-title {
    color: #A50000; /* Màu đỏ đô khớp với Logo */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
}

/* Nội dung văn bản */
.intro-text p {
    font-size: 17px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
    text-align: justify; /* Căn đều hai bên như trong ảnh mẫu */
}

/* Định dạng ảnh để có độ nghiêng nhẹ hoặc sắc nét như mẫu */
.intro-img img {
    width: 100%;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.intro-img:hover img {
    transform: scale(1.02); /* Hiệu ứng zoom nhẹ khi hover */
}

/* Responsive cho thiết bị di động */
@media (max-width: 768px) {
    .intro-section {
        padding: 40px 0;
    }

    .intro-title {
        text-align: center;
    }

    .ps-md-5 {
        padding-left: 15px !important;
        margin-top: 30px;
    }
}

/* Thanh sản phẩm màu đỏ */
.product-bar {
    background-color: #A50000; /* Đúng màu đỏ đô của Logo */
    padding: 10px 0;
    width: 100%;
    display: block;
}

.product-list {
    display: flex;
    justify-content: center; /* Căn giữa nội dung theo thiết kế */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 15px; /* Padding nhẹ để không bị dính mép khi thu nhỏ */
    flex-wrap: wrap; /* Tự động xuống hàng trên di động */
    width: 100%;
}

    .product-list li {
        /* Khoảng cách giữa các mục cân đối 2 bên */
        margin: 5px 20px;
    }

        .product-list li a {
            color: #ffffff;
            text-decoration: none !important;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            white-space: nowrap; /* Giữ chữ trên 1 dòng */
            transition: 0.3s;
        }

            .product-list li a:hover {
                color: rgba(255, 255, 255, 0.8);
            }

/* Responsive cho di động */
@media (max-width: 768px) {
    .product-list li {
        margin: 5px 10px;
        font-size: 12px;
    }
}

/* Section Cam kết */
.commitment-section {
    background-color: #fff;
    overflow: hidden;
}

.commitment-main-title {
    color: #A50000;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Định dạng các thẻ tiêu đề nhỏ */
.commitment-detail h5 {
    font-size: 17px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.commitment-detail p,
.commitment-detail li {
    font-size: 17px;
    line-height: 1.5;
    color: #444;
    text-align: justify;
    margin-bottom: 8px;
}

/* Hiệu ứng cho khối icon bên trái */
.commitment-icons .icon-item {
    transition: transform 0.3s ease;
}

    .commitment-icons .icon-item:hover {
        transform: translateY(-10px); /* Nhảy nhẹ khi rê chuột */
    }

/* Khoảng cách cho mobile */
@media (max-width: 768px) {
    .commitment-icons img {
        width: 60px; /* Thu nhỏ icon trên điện thoại */
    }

    .ps-md-5 {
        padding-left: 15px !important;
        margin-top: 40px;
    }
}

.section-divider {
    height: 3px;
    width: 100%;
    /* Tạo hiệu ứng mờ dần về 2 phía */
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
    margin: 30px 0; /* Khoảng cách trên dưới cho thoáng layout */
    border: none;
}

/* Tiêu đề section */
.section-title {
    color: #A50000;
    font-weight: 700;
    font-size: 32px;
}

/* Ép 5 cột trên màn hình máy tính (Desktop) */
@media (min-width: 992px) {
    .col-5-items {
        flex: 0 0 20%; /* Mỗi ô chiếm đúng 20% chiều rộng */
        max-width: 20%;
        padding: 0 8px; /* Khoảng cách hở giữa các ô */
    }
}

/* Trên máy tính bảng (Tablet) - Hiển thị 3 cột hoặc 2 cột tùy bạn */
@media (min-width: 768px) and (max-width: 991px) {
    .col-5-items {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

/* Trên điện thoại (Mobile) - Hiển thị 1 cột */
@media (max-width: 767px) {
    .col-5-items {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Hiệu chỉnh lại Product Card để trông thanh mảnh hơn */
.product-card {
    border: 1px solid #A50000;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

    .product-card:hover {
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-5px);
        border-color: #d32f2f;
    }

.product-img {
    height: 150px; /* Giảm chiều cao ảnh một chút để vừa khung 5 cột */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .product-img img {
        max-height: 100%;
        object-fit: contain;
    }

.product-name {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Section Thống kê */
.statistics-section {
    background-color: #444444; /* Màu xám đậm như trong hình image_08bde6.png */
    padding: 60px 0;
    color: #ffffff;
}

.stat-item {
    padding: 10px;
    transition: transform 0.3s ease;
}

    .stat-item:hover {
        transform: translateY(-5px);
    }

/* Định dạng Icon */
.stat-icon {
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .stat-icon img {
        max-height: 100%;
        /* Nếu bạn dùng icon màu đỏ như mẫu, không cần filter này */
        /* filter: brightness(0) saturate(100%) invert(13%) sepia(95%) saturate(5411%) hue-rotate(354deg) brightness(89%) contrast(116%); */
    }

/* Định dạng con số */
.stat-number {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #ffffff;
}

/* Định dạng chữ mô tả */
.stat-text {
    font-size: 15px;
    color: #cccccc;
    text-transform: none;
    margin-bottom: 0;
}

/* Tối ưu cho di động */
@media (max-width: 767px) {
    .stat-number {
        font-size: 28px;
    }

    .stat-text {
        font-size: 13px;
    }
}

.featured-projects {
    background-color: #A50000; /* Đỏ toàn phần theo mẫu image_08c5c4.jpg */
    padding: 60px 0;
}

.project-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 00px;
}

/* Chống rớt dòng khi chưa load xong JS */
.project-slider {
    display: block; /* Đổi từ flex thành block để Slick quản lý */
    overflow: hidden;
}

    .project-slider.slick-initialized {
        visibility: visible;
        display: block;
    }

    /* Ép các item của Slick không được tràn */
    .project-slider .slick-list {
        margin: 0 -10px; /* Bù trừ cho padding của project-item */
    }

.project-item {
    padding: 0 10px;
    outline: none !important;
}

.project-card {
    background: #fff;
    display: block;
    text-decoration: none !important;
    transition: 0.3s;
}

    .project-card:hover {
        transform: translateY(-5px);
    }

.project-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

    .project-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.project-info {
    padding: 15px;
    min-height: 100px;
}

.block-tag {
    font-size: 17px;
    font-weight: 700;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.project-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Đảm bảo dots hiển thị rõ trên nền đỏ */
.slider-dots-left {
    position: relative;
    z-index: 10;
    min-height: 20px;
    margin-top: 0px;
}

/* Tùy chỉnh dấu chấm điều hướng màu trắng góc trái */
    .slider-dots-left .slick-dots {
        display: flex !important;
        list-style: none;
        padding: 0;
        margin: 0;
        position: absolute;
        left: 0;
    }

    .slider-dots-left .slick-dots li {
        margin-right: 10px;
    }

        .slider-dots-left .slick-dots li button {
            background: rgba(255, 255, 255, 0.3) !important; /* Màu trắng mờ cho chấm chưa chọn */
            border: none;
            width: 25px;
            height: 4px;
            border-radius: 10%;
            font-size: 0;
            margin-right: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

            /* Xóa hẳn ký tự chấm đen mặc định của Slick */
            .slider-dots-left .slick-dots li button:before {
                display: none !important;
                content: "" !important;
            }

        .slider-dots-left .slick-dots li.slick-active button {
            background: #ffffff !important; /* Trắng sáng cho chấm đang chọn */
            transform: scale(1.2);
        }

.contact-cta {
    border-top: 1px solid #333; /* Tạo đường kẻ mờ ở trên nếu cần */
}

    .contact-cta h2 {
        font-family: 'Arial', sans-serif; /* Hoặc font bạn đang dùng cho web */
    }

/* Tạo đường gạch dọc ngăn cách giữa 2 cột trên màn hình máy tính */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Icon màu trắng/xám nhẹ để không quá chói */
.contact-cta i {
    color: #fff;
    width: 25px;
}

/* Hover hiệu ứng cho số điện thoại/email */
.contact-cta span:hover {
    color: #ff0000; /* Chuyển đỏ nhẹ khi hover cho đồng bộ với logo */
    cursor: pointer;
}

.news-card {
    transition: transform 0.3s ease;
}

.news-img-wrapper {
    overflow: hidden;
    height: 160px; /* Cố định chiều cao ảnh để các card đều nhau */
}

    .news-img-wrapper img {
        object-fit: cover;
        height: 100%;
        transition: transform 0.5s ease;
    }

.news-card:hover img {
    transform: scale(1.1);
}

/* Tiêu đề tin tức */
.news-title {
    margin-bottom: 10px;
}

    .news-title a:hover {
        color: #A50000 !important; /* Đổi màu tiêu đề sang đỏ khi hover */
    }

.news-link {
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 700; /* fw-bold */
    color: #212529; /* text-dark */
    font-size: 15px; /* Tương đương 0.95rem */
    /* Điều chỉnh khoảng cách giữa các dòng khi rớt hàng */
    line-height: 1.25;
    display: block; /* Đảm bảo line-height hoạt động tốt */
    transition: color 0.3s ease;
}

    .news-link:hover {
        color: #A50000 !important;
    }

/* Cắt ngắn bớt text nếu mô tả quá dài để giữ layout đều */
.news-excerpt {
    /* 1. Thiết lập font chữ và kích thước */
    font-family: 'Arial', sans-serif; /* Bạn có thể thay bằng font dự án đang dùng */
    font-size: 16px !important;
    /* 2. Điều chỉnh chiều cao dòng (Line Height) */
    /* Số 1.4 đến 1.5 thường giúp đoạn văn dài dễ đọc hơn */
    line-height: 1.2 !important;
    /* 3. Màu sắc và căn lề */
    color: #6c757d;
    text-align: justify; /* Căn đều hai bên cho chuyên nghiệp */
    margin-bottom: 1rem;
    /* 4. Giới hạn số dòng (Optional) */
    /* Giúp các ô tin tức luôn cao bằng nhau dù nội dung dài ngắn khác nhau */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Hiện tối đa 3 dòng rồi hiện dấu ... */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tùy chỉnh riêng cho section tin tức để không ảnh hưởng các trang khác */
.featured-news .container {
    max-width: 1450px !important; /* Philips có thể tăng số này lên 1600px tùy ý */
}

/* Điều chỉnh lại chiều cao ảnh cho cân đối khi chiều ngang tăng lên */
.news-img-wrapper {
    height: 180px; /* Tăng nhẹ từ 160px lên 180px để ảnh không bị quá dẹt */
}

/*FOOTER*/
.bg-vntrade {
    background-color: #A50000; /* Màu đỏ đặc trưng của VN TRADELINK */
}

/* Giảm chiều cao và định dạng text */
.footer-section {
    font-size: 14px;
}

.contact-info li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    width: 20px;
    margin-top: 4px;
    margin-right: 10px;
}

/* Đường kẻ ngăn cách giữa các cột trong vùng đỏ */
@media (min-width: 768px) {
    .border-end-white {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    /* Bo góc cho vùng đỏ để ôm theo logo (tùy chọn) */
    .rounded-start-md {
        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;
    }
}

/* Style cho các icon mạng xã hội */
.social-icons a {
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .social-icons a:hover {
        background: white;
        color: #A50000;
    }

/* MENU CON*/
/* Container của menu cha */
.dropdown-hover {
    position: relative; /* Để menu con căn theo menu cha */
}

/* Định dạng menu con (Submenu) */
.submenu {
    display: none; /* Mặc định ẩn */
    position: absolute;
    top: 100%; /* Hiển thị ngay phía dưới menu cha */
    left: 0;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.9); /* Nền trắng mờ xuyên thấu */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 2px solid #A50000; /* Đường viền đỏ phía trên cho chuyên nghiệp */
}

/* Hiển thị khi hover vào menu cha */
.dropdown-hover:hover .submenu {
    display: block;
}

/* Định dạng từng dòng trong menu con */
.submenu li {
    border-bottom: 1px solid #ddd; /* Đường kẻ mờ giữa các mục */
}

    .submenu li:last-child {
        border-bottom: none;
    }

    .submenu li a {
        display: block;
        /* Giảm padding trên/dưới để menu gọn hơn */
        padding: 4px 20px;
        text-decoration: none;
        color: #333;
        font-size: 15px;
        line-height: 1.5; /* Đảm bảo chữ không bị quá sát nếu rớt dòng */
        transition: all 0.3s ease;
    }

        /* Hiệu ứng hover vẫn giữ nguyên để đảm bảo trải nghiệm */
        .submenu li a:hover {
            background-color: #f8f8f8;
            color: #A50000;
            padding-left: 25px;
        }

/* Sử dụng class cụ thể để không ảnh hưởng đến các link khác trên toàn web */
.contact-email-link a,
.contact-email-link a:link,
.contact-email-link a:visited,
.contact-email-link a:hover,
.contact-email-link a:active {
    color: #ffffff !important; /* Màu trắng hoàn toàn */
    text-decoration: none !important; /* Bỏ gạch dưới */
    outline: none;
}

    /* Hiệu ứng mờ nhẹ khi hover (tùy chọn) để người dùng biết là link có thể click */
    .contact-email-link a:hover {
        opacity: 0.8;
    }