@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');


body
{
    font-family: 'Mulish',sans-serif;
    font-size: 14px;
/*    padding: 0;*/
/*    margin: 0;*/
}

ul
{
/*    padding: 0;*/
/*    list-style: none;*/
}

a
{
    text-decoration: none;
}

/*header*/
:root {
    --primary-color: #9E1A1E;
    --dark-red: #721013;
    --light-gray: #f8f9fa;
}

body {
/*    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    color: #333;
}

.extra-small {
    font-size: 0.75rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-red);
}
.top-socials a {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    font-size: 0.8rem;
    transition: 0.3s;
}
.top-socials a:hover {
    background: var(--primary-color);
}

/* Header */
.logo h1 {
    letter-spacing: 1px;
    color: #222;
}
.hotline-btn {
    background-color: var(--primary-color) !important;
    border: none;
}
.hotline-btn i {
    font-size: 0.9rem;
}

/* Navigation Menu */
.navbar-nav .nav-item {
    border-right: 1px solid #e0e0e0;
}
.navbar-nav .nav-item:last-child {
    border-right: none;
}
.navbar-nav .nav-link {
    color: #444 !important;
    font-size: 16px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link:hover {
    background-color: #ccc;
    color: #111 !important;
}
/*header*/
/*slide*/
/* Khối bao ngoài Slider */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
/*    overflow: hidden;*/
/*    background-color: #000; */
}

/* Định dạng hình ảnh bên trong slide */
.hero-slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================================
   CUSTOM GIAO DIỆN MŨI TÊN (NAV) VÀ CHẤM CHUYỂN SLIDE (DOTS)
   ======================================================== */

/* Hiển thị nút điều hướng mũi tên sang 2 bên cạnh sát mép ảnh */
.id-hero-slider {
    position: relative;
}

.id-hero-slider .owl-nav button.owl-prev,
.id-hero-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2) !important; /* Nền mờ tối nhẹ cho nút */
    color: rgba(255, 255, 255, 0.7) !important; /* Màu mũi tên trắng mờ */
    font-size: 24px !important;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 0px !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Vị trí nút Trái và Phải */
.id-hero-slider .owl-nav button.owl-prev { left: 0px; }
.id-hero-slider .owl-nav button.owl-next { right: 0px; }

/* Hiệu ứng khi rê chuột vào nút mũi tên */
.id-hero-slider .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}

/* Định dạng các thanh chấm gạch ngang dẹt ở chân Slide */
.id-hero-slider .owl-dots {
    position: absolute;
    bottom: 20px; /* Cách đáy ảnh một khoảng nhỏ */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin-top: 0 !important;
}

.id-hero-slider .owl-dots .owl-dot span {
    width: 35px !important;       /* Chiều dài thanh gạch */
    height: 3px !important;       /* Độ dày dẹt */
    background: rgba(255, 255, 255, 0.4) !important; /* Trắng mờ khi chưa chọn */
    border-radius: 0 !important;  /* Bỏ bo tròn để thành hình chữ nhật dẹt */
    margin: 0 4px !important;
    transition: all 0.3s ease;
}

/* Khi slide đang hiển thị hoặc được rê chuột vào gạch chân */
.id-hero-slider .owl-dots .owl-dot.active span,
.id-hero-slider .owl-dots .owl-dot:hover span {
    background: #ffffff !important; /* Sáng trắng hoàn toàn */
    width: 45px !important;         /* Có thể kéo dài nhẹ ra một chút để tạo điểm nhấn */
}

/* Ẩn bớt nút điều hướng trên điện thoại nhỏ để tránh che mất hình ảnh */
@media (max-width: 767.98px) {
    .id-hero-slider .owl-nav {
        display: none !important;
    }
    .id-hero-slider .owl-dots {
        bottom: 10px;
    }
}
/*slide*/
/*index*/
/* Tông màu chữ tiêu đề đỏ đô */
.services-main-title {
    color: #A81B20;
    font-size: 28px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

/* Khối bao bọc từng item dịch vụ */
.service-item {
    margin-bottom: 20px;
}

/* Vòng tròn chứa Icon màu xám nhạt */
.service-icon-wrap {
    width: 110px;
    height: 110px;
    background-color: #EFEFEF; /* Màu xám nhạt nền icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
}

/* Định dạng hình icon bên trong (Màu đen nét mảnh/vừa) */
.service-icon-wrap i {
    font-size: 42px;
    color: #222222;
}

/* Hiệu ứng hover nhẹ khi rê chuột vào item */
.service-item:hover .service-icon-wrap {
    background-color: #A81B20;
}
.service-item:hover .service-icon-wrap i {
    color: #ffffff;
}

/* Tiêu đề của từng dịch vụ (Màu đỏ, font chữ hẹp/đậm) */
.service-title {
/*    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;*/
    color: #A81B20;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

/* Đoạn mô tả ngắn phía dưới (Chữ nhỏ mờ màu xám đen) */
.service-desc {
    color: #444444;
/*    font-size: 13.5px;*/
    line-height: 1.5;
    margin: 0;
    /* Căn đều chữ 2 bên hoặc center tùy bạn chọn, ở đây center theo hình */
    text-align: center; 
}

/* Tinh chỉnh khoảng cách cho mobile */
@media (max-width: 991.98px) {
    .services-main-title {
        font-size: 20px;
    }
    .col-lg-4 {
        margin-top: 15px !important;
    }
    .service-icon-wrap {
        width: 95px;
        height: 95px;
    }
    .service-icon-wrap i {
        font-size: 36px;
    }
}




/* Tiêu đề chính của toàn section */
.network-main-title {
    color: #A81B20;
    font-size: 28px;
    letter-spacing: 0.5px;
}

/* Định dạng từng ô thông tin chi nhánh */
.branch-card {
    background-color: #ffffff;
    border: 1px solid #E5E8E8;
    border-radius: 4px;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.branch-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #D5DBDB;
}

.branch-title {
    color: #A81B20;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.branch-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branch-info-list li {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
}

.branch-info-list li i {
    position: absolute;
    left: 0;
    top: 4px;
}

.branch-info-list li strong {
    color: #000000;
}

/* ========================================================
   CẬP NHẬT CSS MỚI CHO PHẦN KHUNG BẢN ĐỒ CO GIÃN
   ======================================================== */
.map-container {
    width: 100%;
    min-height: 450px; /* Chiều cao hiển thị tối thiểu trên Mobile/Tablet */
    display: block;
}

.standard-map-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Đảm bảo hình ảnh bản đồ không bị méo bóp dị dạng */
    object-position: center;
}

/* Kích hoạt cơ chế co giãn khít chiều cao trên màn hình máy tính (Desktop) */
@media (min-width: 992px) {
    .alignment-stretch {
        align-self: stretch; /* Ép cột Bootstrap phải dài chạm đáy bằng cột bên trái */
    }
    .map-container {
        min-height: 100%; /* Đẩy khung bọc chiếm 100% không gian cột */
        position: relative;
    }
    .standard-map-img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Xử lý giao diện trên các màn hình Mobile/Tablet nhỏ */
@media (max-width: 991.98px) {
    .network-main-title {
        font-size: 22px;
    }
    .branch-card {
        padding: 12px 15px;
    }
    .map-container {
        min-height: 380px; /* Hạ bớt chiều cao bản đồ trên di động */
    }
}




/* Tiêu đề tổng thể */
.process-main-title {
    color: #A81B20;
    font-size: 28px;
    letter-spacing: 0.5px;
}

/* KHỐI ITEM QUY TRÌNH TRONG GRID */
.process-grid-item {
    background-color: #ffffff;
    border: 1px solid #EAECEE;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* Khung bọc hình ảnh Vector */
.process-icon-wrap {
    width: 100%;
    height: 180px; /* Cố định khung chứa ảnh minh họa */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc;
    border-radius: 6px;
    padding: 15px;
}

.process-icon-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Số thứ tự bước (Badge đỏ bo tròn lệch góc) */
.process-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: #A81B20;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Tiêu đề của từng bước */
.step-title {
    color: #232324;
    font-size: 16px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

/* Đoạn mô tả chi tiết */
.step-desc {
/*    font-size: 13px;*/
    line-height: 1.6;
}

/* ========================================================
   HIỆU ỨNG HOVER CHUỘT (TẠO ĐIỂM NHẤN HIỆN ĐẠI)
   ======================================================== */
.process-grid-item:hover {
    transform: translateY(-6px); /* Nhấc nhẹ thẻ lên */
    border-color: #A81B20;      /* Đổi viền sang màu đỏ thương hiệu */
    box-shadow: 0 10px 25px rgba(168, 27, 32, 0.08);
}

.process-grid-item:hover .step-title {
    color: #A81B20; /* Chữ tiêu đề chuyển đỏ khi hover */
}
.news-section {
    background: #fbfbfb;
}
/* ========================================================
   HỖ TRỢ MŨI TÊN NỐI BƯỚC TRÊN PC (MIN-WIDTH: 992px)
   ======================================================== */
@media (min-width: 992px) {
    /* Tạo mũi tên nối giữa các khối từ bước 1 sang bước 3 */
    .process-grid-row > div:not(:last-child) .process-grid-item::after {
        content: "\f054"; /* Mã icon chevron-right của FontAwesome */
        font-family: "Font Awesome 6 Pro";
        font-weight: 900;
        position: absolute;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        color: #D5DBDB;
        font-size: 16px;
        z-index: 5;
        pointer-events: none;
    }
}

/* ========================================================
   RESPONSIVE MOBILE / TABLET
   ======================================================== */
@media (max-width: 991.98px) {
    .process-main-title {
        font-size: 22px;
    }
    .process-icon-wrap {
        height: 150px; /* Thu nhỏ bớt khung ảnh trên thiết bị nhỏ */
    }
    .step-title {
        font-size: 15px;
    }
}




/* Tổng quan khu vực bảng giá */
.pricing-section {
    background-color: #F8F9FA;
}
.pricing-main-title {
    color: #A81B20;
    font-size: 28px;
    letter-spacing: 0.5px;
}

/* Thẻ bọc ngoài từng bảng giá */
.price-card {
    background-color: #F2F4F4; /* Màu nền xám nhạt bao quanh */
    border: 1px solid #E5E8E8;
    padding: 25px;
    margin: 10px 5px;
    overflow: hidden; /* Để không bị tràn nhãn ribbon */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* Header của bảng giá (Khối đen trên cùng) */
.price-header {
    background-color: #2C3E50; /* Màu nền xám đen đậm */
    margin: -25px -25px 25px -25px;
    padding: 20px 15px;
}
.price-title {
    color: #ffffff;
/*    font-family: 'Roboto Condensed', sans-serif;*/
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
/* Khối hiển thị giá tiền */
.price-value {
/*    font-family: 'Roboto Condensed', sans-serif;*/
    font-size: 22px;
    color: #A81B20 !important;
    margin-top: 25px;
    letter-spacing: 0.3px;
}

/* Danh sách tính năng đi kèm */
.price-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    min-height: 250px; /* Đảm bảo các khung có chiều cao đồng đều */
}
.price-features-list li {
/*    font-size: 13px;*/
    color: #333333;
    padding: 10px 0;
    border-bottom: 1px solid #E5E8E8;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-features-list li:last-child {
    border-bottom: none;
}
.price-features-list li i {
    font-size: 14px;
}

/* Nút liên hệ ngay dưới chân */
.btn-contact-now {
    background-color: #A81B20;
    color: #ffffff !important;
/*    font-family: 'Roboto Condensed', sans-serif;*/
/*    font-size: 13px;*/
    font-weight: 700;
    padding: 8px 25px;
    border-radius: 0; /* Vuông góc giống hình mẫu */
    transition: all 0.3s ease;
}
.btn-contact-now:hover {
    background-color: #781013;
}

/* ========================================================
   XỬ LÝ NHÃN RIBBON GÓC (PREMIUM / STANDARD)
   ======================================================== */
.ribbon {
    position: absolute;
    top: -5px; right: -5px;
    width: 85px; height: 85px;
    overflow: hidden; z-index: 5;
}
.ribbon span {
    position: absolute;
    display: block; width: 115px;
    padding: 4px 0; text-align: center;
    font-size: 9px; font-weight: bold; color: #fff;
    text-transform: uppercase;
    transform: rotate(45deg);
    right: -25px; top: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ribbon-premium span { background-color: #9B2326; } /* Màu đỏ đậm */
.ribbon-standard span { background-color: #A81B20; } /* Màu đỏ tươi */

/* ========================================================
   CUSTOM NÚT < > CỦA OWL CAROUSEL ĐÈ LÊN HAI CẠNH VIỀN
   ======================================================== */
.id-pricing-slider .owl-nav button.owl-prev,
.id-pricing-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff !important;
    color: #888888 !important;
    width: 35px; height: 45px;
    line-height: 45px;
    border: 1px solid #E5E8E8 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    z-index: 10;
}
/*.id-pricing-slider .owl-nav button.owl-prev { left: -20px; }*/
/*.id-hero-slider, .id-pricing-slider .owl-nav button.owl-next { right: -20px; }*/

.id-pricing-slider .owl-nav button:hover {
    background-color: #A81B20 !important;
    color: #ffffff !important;
    border-color: #A81B20 !important;
}

/* Ẩn dấu chấm tròn dưới đáy slider */
.id-pricing-slider .owl-dots {
    display: none !important;
}

/* Responsive chỉnh sửa */
@media (max-width: 991.98px) {
    .id-pricing-slider .owl-nav button.owl-prev { left: 5px; }
    .id-pricing-slider .owl-nav button.owl-next { right: 5px; }
    .price-features-list { min-height: auto; }
}




/* --- TOÀN BỘ KHỐI SECTION CHÍNH --- */
.quote-hero-section {
    position: relative;
    min-height: 400px; /* Hạ bớt chiều cao tối thiểu vì form dàn ngang sẽ gọn hơn */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
}

.z-3 {
    z-index: 3;
}

/* --- XỬ LÝ ẢNH NỀN VÀ LỚP PHỦ TỐI --- */
.quote-absolute-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.02);
    filter: blur(1px);
}

.quote-dark-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgb(29 35 46 / 50%) 0%, rgb(11 15 22 / 13%) 100%);
    z-index: 2;
}

/* --- BẢNG FORM ĐĂNG KÝ HÀNG NGANG --- */
.quote-form-box {
    background-color: #A81B20;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
                0 0 40px rgba(168, 27, 32, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.quote-title {
    color: #ffffff;
    font-size: 26px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Cấu trúc điều hướng Flexbox chính cho Form */
.quote-horizontal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Khối bọc các ô input */
.form-inputs-flex-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Cho phép rớt hàng mượt nếu màn hình trung bình */
    gap: 16px;
    flex-grow: 1;
    width: 100%;
}

/* Chia đều không gian cho từng ô input */
.input-flex-item {
    flex: 1 1 200px; /* Tự động nở rộng, kích cỡ tối thiểu tự quản lý là 200px */
}

/* Thân nút bấm bọc ngoài */
.form-btn-wrap {
    flex: 0 0 auto;
    width: 100%; /* Mặc định mobile nút bấm tràn viền bên dưới */
}

/* --- ĐỊNH DẠNG Ô INPUT CHUẨN --- */
.custom-quote-input {
    background-color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 3px !important;
    padding: 14px 16px !important;
    font-size: 14px;
    color: #232324 !important;
    box-shadow: none !important;
    height: 50px; /* Đồng nhất chiều cao với nút bấm */
    transition: all 0.2s ease;
}

.custom-quote-input:focus {
    border-color: #000000 !important;
    background-color: #fcfcfc !important;
}

.custom-quote-input::placeholder {
    color: #888888;
}

/* --- NÚT BẤM GỬI MÀU ĐEN --- */
.btn-submit-quote {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    height: 50px;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-submit-quote:hover {
    background-color: #1c1c1c !important;
    transform: translateY(-1px);
}

/* --- CHI TIẾT ĐỒ HỌA TRANG TRÍ --- */
.decor-dots-grid {
    position: absolute; top: 20px; left: 20px; width: 65px; height: 65px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 11px 11px; z-index: 1;
}

.decor-zigzag-lines {
    position: absolute; top: 20px; right: 20px; width: 45px; height: 35px; opacity: 0.15;
    background: repeating-linear-gradient(45deg, transparent, transparent 4px, #ffffff 4px, #ffffff 6px);
    z-index: 1;
}

.decor-bottom-fold {
    position: absolute; bottom: 0; left: 0; width: 0; height: 0;
    border-style: solid; border-width: 0 0 22px 22px;
    border-color: transparent transparent #4d0b0d transparent; z-index: 2;
}

/* ========================================================
   XỬ LÝ ĐỘT PHÁ GIAO DIỆN TRÊN MÀN HÌNH MÁY TÍNH (DESKTOP)
   ======================================================== */
@media (min-width: 768px) {
    .quote-horizontal-form {
        flex-direction: row; /* Ép toàn bộ Input và Nút bấm nằm chung 1 hàng ngang duy nhất */
        align-items: center;
    }
    
    .form-inputs-flex-wrap {
        flex-wrap: nowrap; /* Tuyệt đối không cho rớt hàng tự do trên PC */
    }
    
    .form-btn-wrap {
        width: 140px; /* Định chiều rộng vừa vặn cho nút gửi dữ liệu */
    }
}

@media (max-width: 767.98px) {
    .form-inputs-flex-wrap {
        flex-direction: column; /* Đưa về cột dọc tiện ích trên điện thoại */
        gap: 12px;
    }
    .quote-form-box {
        padding: 40px 20px !important;
    }
    .quote-title {
        font-size: 20px;
    }
    .decor-dots-grid, .decor-zigzag-lines {
        display: none;
    }
}







/* --- CỘT BÊN TRÁI --- */
.why-title {
    color: #A81B20; /* Màu đỏ thương hiệu */
    font-size: 28px;
    letter-spacing: 0.5px;
}

.why-reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-reason-list li {
    font-size: 14px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px; /* Giữ khoảng cách trống cho icon dấu tích */
}

/* Custom icon dấu tích đỏ dày */
.why-reason-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: #A81B20;
    font-size: 15px;
    font-weight: 900;
}

/* Nút "Xem thêm" chân trang */
.btn-see-more {
    background-color: #A81B20;
    color: #ffffff !important;
/*    font-family: 'Roboto Condensed', sans-serif;*/
    font-size: 14px;
    font-weight: 700;
    padding: 10px 35px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(168, 27, 32, 0.2);
    transition: all 0.3s ease;
}

.btn-see-more:hover {
    background-color: #781013;
}


/* --- CỘT BÊN PHẢI (LƯỚI Ô DỊCH VỤ) --- */
.service-grid-wrap {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Thiết lập kích thước đồng bộ dạng khối vuông cho mỗi ô */
.grid-service-item {
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Phân mảnh màu sắc đan xen */
.bg-red-box { background-color: #9B1C20; }  /* Đỏ đô */
.bg-dark-box { background-color: #232324; } /* Đen xám */

/* Định dạng Icon bên trong ô */
.grid-icon i {
    font-size: 46px;
    margin-bottom: 15px;
    display: inline-block;
    opacity: 0.95;
}

/* Chữ nhãn dưới Icon */
.grid-text {
/*    font-size: 13px;*/
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

/* Hiệu ứng phóng to nhẹ khi rê chuột vào từng ô dịch vụ */
.grid-service-item:hover {
    transform: scale(1.02);
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- HỖ TRỢ RESPONSIVE --- */
@media (max-width: 991.98px) {
    .why-title {
        font-size: 22px;
        text-align: center;
    }
    .why-reason-list li {
/*        font-size: 13px;*/
    }
    .text-start {
        text-align: center !important; /* Căn giữa nút bấm trên điện thoại */
    }
    .grid-service-item {
        height: 140px;
    }
    .grid-icon i {
        font-size: 36px;
        margin-bottom: 8px;
    }
    .grid-text {
        font-size: 12px;
    }
}


/* Tiêu đề chính */
.gallery-main-title {
    color: #A81B20; /* Màu đỏ đô thương hiệu */
    font-size: 28px;
    letter-spacing: 0.5px;
}

/* Khung bao bọc cố định tỉ lệ ảnh */
.gallery-item-box {
    position: relative;
    width: 100%;
    height: 180px; /* Chiều cao cố định tương đối cho các ô ảnh đều nhau */
    overflow: hidden;
    border-radius: 4px; /* Bo góc nhẹ cho tinh tế */
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
}

/* Định dạng hình ảnh gốc bên trong */
.gallery-item-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt ảnh vừa vặn khung không bị méo */
    object-position: center;
    transition: transform 0.5s ease; /* Tạo độ mượt khi zoom */
}

/* Lớp phủ màu khi hover (ẩn mặc định) */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(168, 27, 32, 0.7); /* Màu đỏ thương hiệu trong suốt 70% */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* Icon kính lúp phóng to nằm giữa lớp phủ */
.gallery-overlay i {
    color: #ffffff;
    font-size: 26px;
    transform: scale(0.7);
    transition: transform 0.4s ease;
}

/* ========================================================
   HIỆU ỨNG HOVER CHUỘT (MƯỢT MÀ CHUYÊN NGHIỆP)
   ======================================================== */
.gallery-item-box:hover img {
    transform: scale(1.1); /* Phóng to nhẹ hình ảnh lên 10% */
}

.gallery-item-box:hover .gallery-overlay {
    opacity: 1; /* Hiện lớp phủ màu đỏ */
}

.gallery-item-box:hover .gallery-overlay i {
    transform: scale(1); /* Icon zoom lên kích thước chuẩn */
}

/* ========================================================
   HỖ TRỢ RESPONSIVE CHO CÁC MÀN HÌNH KHÁC NHAU
   ======================================================== */
@media (max-width: 991.98px) {
    .gallery-main-title {
        font-size: 22px;
    }
    .gallery-item-box {
        height: 140px; /* Thu nhỏ chiều cao khung ảnh trên tablet */
    }
}

@media (max-width: 575.98px) {
    .gallery-item-box {
        height: 110px; /* Thu nhỏ chiều cao khung ảnh trên điện thoại */
    }
    .gallery-overlay i {
        font-size: 20px;
    }
}

/* Chỉ cần giữ nguyên phần CSS Thư viện ảnh ở lượt trước, và thêm/sửa thuộc tính này: */
.gallery-item-box {
    display: block; /* Đổi thành block để bọc tốt thẻ link <a> */
    position: relative;
    width: 100%;
    height: 180px; 
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
}

/* Tiêu đề chính của khu vực tin tức */
.news-main-title {
    color: #A81B20; /* Màu đỏ thương hiệu */
    font-size: 28px;
    letter-spacing: 0.5px;
}

/* --- ĐỊNH DẠNG KHỐI TIN TIÊU ĐIỂM (BÊN TRÁI) --- */
.featured-img-wrap {
    width: 100%;
    height: 380px; /* Khống chế chiều cao cố định của khung ảnh lớn */
    position: relative;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt cúp ảnh vừa vặn không làm biến dạng hình */
    object-position: center;
    transition: transform 0.5s ease;
}

/* Tiêu đề bài viết lớn */
.featured-news-title {
    font-size: 18px;
    line-height: 1.4;
}
.featured-news-title a {
    color: #111111 !important;
    transition: color 0.2s ease;
}

/* --- ĐỊNH DẠNG CÁC BÀI VIẾT NHỎ (BÊN PHẢI) --- */
.small-img-wrap {
    width: 100%;
    height: 110px; /* Khống chế chiều cao cố định của các ô ảnh nhỏ */
    position: relative;
}

.small-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Tiêu đề các bài viết nhỏ */
.small-news-title {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn tối đa 2 dòng cho tiêu đề dài */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.small-news-title a {
    color: #111111 !important;
    transition: color 0.2s ease;
}

/* Đoạn mô tả tóm tắt nội dung bài viết */
.news-excerpt {
    color: #666666 !important;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ép text ẩn đi bằng dấu 3 chấm nếu vượt quá 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- HIỆU ỨNG HOVER KHI RÊ CHUỘT --- */
.featured-news-card:hover .featured-img,
.small-news-item:hover .small-img {
    transform: scale(1.06); /* Phóng to nhẹ hình ảnh */
}

.featured-news-card:hover .featured-news-title a,
.small-news-item:hover .small-news-title a {
    color: #A81B20 !important; /* Đổi tiêu đề sang màu đỏ thương hiệu */
}

/* --- HỖ TRỢ RESPONSIVE --- */
@media (max-width: 991.98px) {
    .news-main-title {
        font-size: 22px;
    }
    .featured-img-wrap {
        height: 280px; /* Giảm độ cao ảnh trên màn hình máy tính bảng */
    }
    .small-img-wrap {
        height: 95px;
    }
}

@media (max-width: 575.98px) {
    .featured-img-wrap {
        height: 200px; /* Giảm độ cao ảnh trên điện thoại */
    }
    .featured-news-title {
        font-size: 15px;
    }
    .small-news-title {
        font-size: 13px;
    }
}


/* Tiêu đề chung cho cả 2 khối */
.section-main-title {
    color: #A81B20; /* Đỏ thương hiệu */
    font-size: 28px;
    letter-spacing: 0.5px;
}

/* ========================================================
   CSS CHO KHỐI THẺ ĐÁNH GIÁ (TESTIMONIAL CARD)
   ======================================================== */
.testimonial-card {
    background-color: #ffffff;
    border: 1px solid #EAECEE;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    min-height: 250px; /* Định hình chiều cao đồng nhất cho các card */
}

/* Định dạng Avatar khách hàng tròn nhỏ bên góc trái */
.customer-avatar {
    width: 60px !important; /* Dùng !important để ghi đè w-100 mặc định của owl */
    height: 60px;
    object-fit: cover;
}

.customer-name {
    font-size: 15px;
    color: #111111;
}

.customer-stars {
    font-size: 11px;
}

.customer-job {
    font-size: 12px;
}

.testimonial-content {
    font-size: 13.5px;
    line-height: 1.7;
}

/* ========================================================
   CSS CUSTOM NÚT ĐIỀU HƯỚNG OWL SLIDER SÁT BIÊN
   ======================================================== */
.id-testimonials-slider .owl-nav button.owl-prev,
.id-testimonials-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff !important;
    color: #888888 !important;
    width: 35px;
    height: 45px;
    line-height: 45px;
    border: 1px solid #E5E8E8 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    z-index: 10;
}

.id-testimonials-slider .owl-nav button.owl-prev { left: -20px; }
.id-testimonials-slider .owl-nav button.owl-next { right: -20px; }

.id-testimonials-slider .owl-nav button:hover {
    background-color: #A81B20 !important;
    color: #ffffff !important;
    border-color: #A81B20 !important;
}

/* Ẩn dấu chấm tròn dưới đáy slider */
.id-testimonials-slider .owl-dots {
    display: none !important;
}


/* ========================================================
   CSS KHU VỰC LOGO ĐỐI TÁC (PARTNER GRIDS)
   ======================================================== */
.partner-logo-item {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

/* Đưa tất cả logo về hiệu ứng nhạt màu nghệ thuật */
.partner-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%); /* Biến logo màu thành trắng đen */
    transition: all 0.4s ease;
}

/* Khi hover chuột vào đối tác sẽ sáng rõ màu gốc */
.partner-logo-item:hover .partner-img {
    opacity: 1;
    filter: grayscale(0%);
}


/* ========================================================
   HỖ TRỢ ĐÁP ỨNG RESPONSIVE MOBILE & TABLET
   ======================================================== */
@media (max-width: 991.98px) {
    .section-main-title {
        font-size: 22px;
    }
    .id-testimonials-slider .owl-nav button.owl-prev { left: 5px; }
    .id-testimonials-slider .owl-nav button.owl-next { right: 5px; }
    .testimonial-card { min-height: auto; }
}
/* --- BANNER ĐĂNG KÝ NHẬN TIN --- */
.newsletter-section {
    /* Thay thế đường dẫn hình ảnh thực tế của bạn tại đây */
    background-image: url('https://images.unsplash.com/photo-1516574187841-cb9cc2ca948b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

/* Lớp phủ mờ tối màu bao phủ background */
.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Làm tối nền ảnh gốc 65% */
    z-index: 1;
}

/* Đảm bảo nội dung luôn hiển thị trên lớp phủ màu */
.newsletter-section .z-3 {
    z-index: 3;
}

/* Kiểu dáng chữ phần tiêu đề */
.newsletter-title {
    font-size: 24px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Nội dung chú thích ngắn */
.newsletter-desc {
    font-size: 14px;
    line-height: 1.6;
}

/* --- ĐỊNH DẠNG KHUNG ĐĂNG KÝ (INPUT & BUTTON) --- */
.newsletter-form .input-group {
    background: transparent;
}

/* Ô nhập liệu dữ liệu Email */
.newsletter-form .form-control {
    height: 50px;
    border: none;
    border-radius: 4px 0 0 4px !important;
    padding-left: 20px;
    font-size: 14px;
    box-shadow: none !important;
}

.newsletter-form .form-control::placeholder {
    color: #999999;
}

/* Nút bấm Đăng Ký màu đỏ thương hiệu */
.btn-subscribe {
    background-color: #A81B20; /* Màu đỏ thương hiệu */
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 0 30px;
    border: none;
    border-radius: 0 4px 4px 0 !important;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #851216; /* Màu đỏ sậm hơn khi di chuột qua */
}

/* --- HỖ TRỢ RESPONSIVE --- */
@media (max-width: 991.98px) {
    .newsletter-section {
        padding: 45px 0;
    }
    .newsletter-title {
        font-size: 20px;
    }
    .newsletter-desc {
/*        font-size: 13px;*/
    }
    .newsletter-form .form-control {
        height: 45px; /* Giảm độ cao một chút trên mobile */
    }
    .btn-subscribe {
        padding: 0 20px;
    }
}
/*index*/
/*footer*/
/* --- TỔNG THỂ KHỐI FOOTER --- */
.main-footer {
    background-color: #232428; /* Màu xám đen nền tối theo đúng ảnh mẫu */
    font-size: 13.5px;
/*    font-family: 'Roboto', sans-serif;*/
}

/* Tiêu đề các khối danh mục */
.footer-title {
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
}

/* Đoạn text mô tả chung */
.footer-text {
    line-height: 1.7;
    text-align: justify;
}

/* Định dạng danh sách link menu (Cột 2 & Cột 3) */
.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list li a {
    color: #ffffff !important;
    opacity: 0.75;
/*    font-size: 13px;*/
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-block;
}

/* Hiệu ứng di chuột (Hover) qua các link */
.footer-menu-list li a:hover,
.footer-link-hover:hover {
    opacity: 1;
    color: #A81B20 !important; /* Chuyển sang màu đỏ thương hiệu khi hover */
    transform: translateX(4px); /* Nhích nhẹ sang phải tạo cảm giác linh hoạt */
}

/* Khung bọc bản đồ Iframe */
.footer-map-wrap {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Căn chỉnh khoảng cách chi tiết text liên hệ */
.footer-contact-info p {
    font-size: 14px;
}
.footer-contact-info strong {
    font-weight: 600;
    display: inline-block;
    width: 65px; /* Giữ cố định độ rộng để chữ thẳng hàng dọc */
}

/* --- HỖ TRỢ RESPONSIVE --- */
@media (max-width: 991.98px) {
    .main-footer {
        padding: 40px 0;
    }
    .footer-title {
        font-size: 15px;
        margin-bottom: 20px !important;
    }
    .footer-map-wrap iframe {
        height: 180px; /* Thu gọn chiều cao bản đồ trên thiết bị nhỏ */
    }
}

@media (max-width: 575.98px) {
    .footer-menu-list li a {
        font-size: 12.5px;
    }
}
/*footer*/
.owl-theme .owl-nav
{
    margin-top: 0;
}

.top-socials img
{
    width: 20px;
}
.logo img {
    height: 125px;
}
.anh_icon img {
    height: 60px;
}
.grid-icon img {
    height: 50px;
}

.grid-icon {
    margin-bottom: 10px;
}

.catchuoi4
{
        overflow: hidden;
    text-overflow: ellipsis;
/*    line-height: 25px;*/
    -webkit-line-clamp: 4;
/*    height: 75px;*/
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/*vct*/

/* ========================================================
   1. ĐỊNH DẠNG BANNER BREADCRUMB
   ======================================================== */
.breadcrumb-wrapper {
    position: relative;
    min-height: 260px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Lớp phủ làm tối ảnh nền nền nã */
.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.breadcrumb-title {
    font-size: 32px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tinh chỉnh dấu phân cách gạch chéo (/) giữa các mục */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6) !important;
}

.breadcrumb-link {
    opacity: 0.85;
    transition: all 0.25s ease;
}

.breadcrumb-link:hover {
    opacity: 1;
    color: #A81B20 !important; /* Đổi sang màu đỏ chủ đạo khi hover */
}

/* ========================================================
   2. ĐỊNH DẠNG KHU VỰC CHI TIẾT BÀI VIẾT (UI/UX READABILITY)
   ======================================================== */
.bg-light-section {
    background-color: #f8fafc; /* Nền xám rất nhẹ làm nổi bật khối bài viết trắng */
}

/* Hộp bao quanh bài viết */
.chitiet-post-card {
    border: 1px solid #e2e8f0;
}

/* Reset và tối ưu hóa typography cho nội dung sinh ra từ Editor */
.chitiet_post {
    font-size: 16px;
    line-height: 1.8;
    color: #334155; /* Màu chữ xám than giảm mỏi mắt */
}

/* Tự động ép tất cả hình ảnh do khách hàng up trong bài viết không được tràn khung */
.chitiet_post img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 4px;
    margin: 15px auto;
    display: block;
}

/* Định dạng các thẻ tiêu đề bên trong bài viết */
.chitiet_post h2, 
.chitiet_post h3, 
.chitiet_post h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.chitiet_post h2 { font-size: 24px; border-left: 4px solid #A81B20; padding-left: 12px; }
.chitiet_post h3 { font-size: 20px; }
.chitiet_post h4 { font-size: 18px; }

/* Định dạng các đoạn văn và danh sách */
.chitiet_post p {
    margin-bottom: 20px;
    text-align: justify; /* Căn đều hai bên cho văn bản chính thống */
}

.chitiet_post ul, 
.chitiet_post ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.chitiet_post li {
    margin-bottom: 8px;
}

/* Định dạng bảng biểu (Table) nếu có trong bài giới thiệu */
.chitiet_post table {
    width: 100% !important;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.chitiet_post table th,
.chitiet_post table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
}

.chitiet_post table th {
    background-color: #f1f5f9;
    font-weight: 600;
}

/* ========================================================
   3. PHẢN HỒI GIAO DIỆN (RESPONSIVE)
   ======================================================== */
@media (max-width: 767.98px) {
    .breadcrumb-wrapper {
        min-height: 180px;
    }
    .breadcrumb-title {
        font-size: 24px;
    }
    .chitiet_post {
        font-size: 15px; /* Giảm nhẹ size chữ trên mobile */
        line-height: 1.7;
    }
    .chitiet-post-card {
        border: none;
        box-shadow: none !important;
        background-color: transparent !important; /* Phẳng hóa giao diện trên mobile */
    }
    .chitiet_post h2 {
        font-size: 20px;
    }
}
/*vct*/

/*sanpham*/
/* Nền phụ nhẹ để tôn khối card màu trắng */
.bg-light-services {
    background-color: #f8fafc;
}

/* Gạch chân trang trí tiêu đề chính */
.service-main-heading {
    color: #A81B20;
    font-size: 28px;
}
.service-main-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #A81B20;
}

/* ========================================================
   BẮT ĐẦU CSS GRID REPOSNSIVE (KHÔNG CẦN BOOTSTRAP ROW/COL)
   ======================================================== */
.services-grid-layout {
    display: grid;
    /* Mặc định trên PC chia làm 3 cột bằng nhau */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* --- ĐỊNH DẠNG CHI CHIẾT CARD DỊCH VỤ --- */
.service-card-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Khung hình ảnh tỉ lệ chuẩn */
.service-card-img {
    width: 100%;
    height: 270px;
    overflow: hidden;
    position: relative;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Khối nội dung chữ bên dưới ảnh */
.service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Đẩy chân nút bấm luôn đều hàng với nhau */
}

/* Tiêu đề dịch vụ */
.service-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    /* Giới hạn text tối đa 2 dòng, quá ký tự tự động biến thành dấu ... */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nút Xem chi tiết */
.service-card-action {
    margin-top: auto;
}

.btn-readmore {
    display: inline-flex;
    align-items: center;
    color: #A81B20;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s ease;
}

/* ========================================================
   HIỆU ỨNG TƯƠNG TÁC HOVER CAO CẤP
   ======================================================== */
.service-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(168, 27, 32, 0.08);
    border-color: rgba(168, 27, 32, 0.15);
}

.service-card-item:hover .service-card-img img {
    transform: scale(1.06);
}

.service-card-item:hover .service-card-title a {
    color: #A81B20;
}

.service-card-item:hover .btn-readmore {
    gap: 6px; /* Mũi tên dịch chuyển nhẹ khi hover */
}

/* ========================================================
   ĐÁP ỨNG MÀN HÌNH DI ĐỘNG & TABLET (MEDIA QUERY)
   ======================================================== */
@media (max-width: 991.98px) {
    .services-grid-layout {
        grid-template-columns: repeat(2, 1fr); /* Co về 2 cột trên Tablet */
        gap: 20px;
    }
    .service-card-img {
        height: 190px;
    }
}

@media (max-width: 575.98px) {
    .services-grid-layout {
        grid-template-columns: 1fr; /* Duỗi thẳng 1 cột trên Mobile */
    }
    .service-main-heading {
        font-size: 22px;
    }
}
/* Nền xám nhạt nhẹ nhàng tôn khối nội dung trắng lên */
.bg-light-detail {
    background-color: #f8fafc;
}

/* Khung bọc bài viết chính */
.main-post-wrapper {
    border: 1px solid #eef2f6;
}

/* Tiêu đề chính h1 */
.post-main-title {
    font-size: 28px;
    color: #1e293b;
    line-height: 1.4;
}

/* ========================================================
   TỐI ƯU TYPOGRAPHY NỘI DUNG (DÀNH CHO CẢ TEXT VÀ ẢNH DO EDITOR SINH RA)
   ======================================================== */
.entry-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

/* Ngăn chặn tuyệt đối lỗi hình ảnh to bị tràn khung */
.entry-content-body img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 4px;
    margin: 20px auto;
    display: block;
}

.entry-content-body p {
    margin-bottom: 18px;
    text-align: justify;
}

/* Các thẻ tiêu đề phụ trong bài viết (h2, h3, h4) */
.entry-content-body h2,
.entry-content-body h3,
.entry-content-body h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

.entry-content-body h2 { font-size: 22px; border-left: 4px solid #A81B20; padding-left: 12px; }
.entry-content-body h3 { font-size: 19px; }

/* Bảng biểu nếu có trong bài */
.entry-content-body table {
    width: 100% !important;
    margin: 20px 0;
    border-collapse: collapse;
}
.entry-content-body table td,
.entry-content-body table th {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
}

/* ========================================================
   ĐỊNH DẠNG KHỐI BÀI VIẾT KHÁC (TIN LIÊN QUAN)
   ======================================================== */
.othernews-heading {
    font-size: 16px;
    color: #A81B20; /* Màu đỏ thương hiệu chủ đạo */
    letter-spacing: 0.5px;
}

.othernews-list-group {
    list-style: none;
}

.othernews-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.othernews-item:last-child {
    border-bottom: none;
}

/* Link bài viết khác */
.othernews-item a {
    color: #475569;
    font-size: 15px;
    transition: all 0.2s ease;
}

/* Icon mũi tên */
.othernews-item a i {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hiệu ứng tương tác mượt khi hover danh sách bài viết khác */
.othernews-item:hover a {
    color: #A81B20;
}
.othernews-item:hover a i {
    color: #A81B20;
    transform: translateX(3px); /* Nhích nhẹ icon sang phải */
}

/* ========================================================
   RESPONSIVE CHO MÀN HÌNH ĐIỆN THOẠI
   ======================================================== */
@media (max-width: 767.98px) {
    .post-main-title {
        font-size: 22px;
    }
    .main-post-wrapper {
        padding: 25px 15px !important;
        border: none;
        box-shadow: none !important;
        background-color: transparent !important; /* Phẳng hóa trên mobile cho thoáng */
    }
    .entry-content-body {
        font-size: 15px;
    }
}

/*sanpham*/
/*tintuc*/
/* --- KHỐI DANH SÁCH TIN TỨC CAO CẤP --- */
.bg-light-news {
    background-color: #f8fafc; /* Màu nền phụ nhã nhặn */
}

.news-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Ép cứng tỉ lệ ảnh 3:2 tránh méo hình khi người dùng up ảnh kích thước lệch chuẩn */
.news-img-box {
    width: 100%;
    height: 230px; 
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt ảnh thông minh vừa vặn khung */
    transition: transform 0.5s ease;
}

/* Phần chữ bên trong card */
.news-content-box {
    display: flex;
    flex-direction: column;
}

/* Tiêu đề tin tức (Khống chế tối đa 2 dòng, tự động tạo dấu ...) */
.news-card-title {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
}
.news-card-title a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

/* Mô tả ngắn tin tức (Khống chế tối đa 3 dòng, tự động tạo dấu ...) */
.news-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

/* Link xem thêm */
.news-readmore-link {
    color: #A81B20; /* Màu đỏ thương hiệu chủ đạo */
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.news-readmore-link .arrow-icon {
    margin-left: 5px;
    transition: transform 0.25s ease;
}

/* ========================================================
   HIỆU ỨNG TƯƠNG TÁC HOVER CỰC MƯỢT CỦA THẺ TIN
   ======================================================== */
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(168, 27, 32, 0.06) !important;
    border-color: rgba(168, 27, 32, 0.15);
}

.news-card:hover .news-img-box img {
    transform: scale(1.05); /* Zoom nhẹ ảnh khi hover */
}

.news-card:hover .news-card-title a {
    color: #A81B20; /* Đổi màu chữ tiêu đề */
}

.news-card:hover .news-readmore-link .arrow-icon {
    transform: translateX(4px); /* Mũi tên nhích nhẹ sang phải */
}

/* ========================================================
   RESPONSIVE CHO MOBILE VÀ TABLET
   ======================================================== */
@media (max-width: 991.98px) {
    .news-img-box {
        height: 210px; /* Hạ bớt chiều cao ảnh trên tablet */
    }
}

@media (max-width: 575.98px) {
    .news-img-box {
        height: 200px; /* Chiều cao ảnh tối ưu trên điện thoại */
    }
    .news-content-box {
        padding: 20px !important; /* Thu nhỏ padding trên mobile cho thoáng */
    }
    .news-card-title {
        font-size: 16px;
    }
}


/* --- CỘT TRÁI: KHỐI CHỨA NỘI DUNG CHÍNH --- */
.news-main-card {
    border: 1px solid #eef2f6;
}

.news-main-title {
    font-size: 30px;
    color: #0f172a;
    line-height: 1.4;
}

/* Tối ưu hóa font chữ bài viết để giảm mỏi mắt (Readability) */
.news-content-detail {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

/* Xử lý ảnh trong bài viết không bao giờ bị vỡ hay tràn khung */
.news-content-detail img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 6px;
    margin: 20px auto;
    display: block;
}

.news-content-detail p {
    margin-bottom: 18px;
    text-align: justify;
}

.news-content-detail h2, 
.news-content-detail h3 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}
.news-content-detail h2 { font-size: 22px; border-left: 4px solid #A81B20; padding-left: 12px; }

/* --- CỘT PHẢI: SIDEBAR TIN LIÊN QUAN --- */
.sidebar-sticky {
    border: 1px solid #eef2f6;
    position: relative;
}

/* Tiêu đề sidebar có gạch chân đỏ tinh tế */
.sidebar-title {
    font-size: 16px;
    color: #0f172a;
    letter-spacing: 0.5px;
}
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 45px; height: 3px;
    background-color: #A81B20;
}

/* Khối item tin liên quan */
.border-bottom-dashed {
    border-bottom: 1px dashed #e2e8f0;
}
.related-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Fix cứng kích cỡ ảnh sidebar tỉ lệ 4:3 */
.related-img-box {
    width: 100px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f1f5f9;
}
.related-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Khối chữ sidebar */
.related-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}
.related-text-box .date {
    font-size: 12px;
}
.related-post-title a {
    color: #334155;
    font-weight: 600;
    /* Giới hạn tự động cắt chữ sau 3 dòng ở sidebar */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

/* --- HIỆU ỨNG HOVER --- */
.related-item:hover .related-img-box img {
    transform: scale(1.05);
}
.related-item:hover .related-post-title a {
    color: #A81B20;
}

/* --- RESPONSIVE MÀN HÌNH --- */
@media (min-width: 992px) {
    /* Giúp sidebar trượt dọc bám theo màn hình khi cuộn chuột đọc bài viết dài */
    .sidebar-sticky {
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 767.98px) {
    .news-main-title { font-size: 22px; }
    .news-main-card {
        padding: 25px 15px !important;
        border: none; box-shadow: none !important; background: transparent !important;
    }
    .news-content-detail { font-size: 15px; }
}

/*tintuc*/
/*lienhe*/
/* --- NỀN TRANG TỔNG THỂ --- */
.bg-light-contact {
    background-color: #f8fafc;
}

.contact-box-card {
    border: 1px solid #eef2f6;
}

/* --- XỬ LÝ KHUNG BẢN ĐỒ GOOGLE MAPS --- */
.contact-map-side {
    background-color: #e2e8f0;
}

/* Ép iframe bản đồ tự động phủ kín 100% diện tích cột bên trái */
.contact-map-side iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px; /* Chiều cao tối thiểu mượt mà trên PC */
    border: none !important;
    display: block;
}

/* --- THÔNG TIN VÀ TIÊU ĐỀ --- */
.contact-block-title {
    font-size: 16px;
    color: #0f172a;
    letter-spacing: 0.5px;
}
.contact-block-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 40px; height: 3px;
    background-color: #A81B20; /* Màu đỏ thương hiệu */
}

/* Nội dung thông tin liên hệ */
.contact-info-content {
    font-size: 15px;
    line-height: 1.6;
}

/* --- TỐI ƯU GIAO DIỆN Ô NHẬP LIỆU (FLOATING LABELS) --- */
.custom-input, 
.custom-textarea {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 14px;
    color: #334155 !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease;
}

.custom-input:focus, 
.custom-textarea:focus {
    border-color: #A81B20 !important; /* Đổi viền sang đỏ chủ đạo khi nhấn gõ */
    background-color: #fff !important;
}

.custom-textarea {
    resize: none;
}

/* --- HỆ THỐNG NÚT BẤM (BUTTONS) --- */
.btn-submit-contact {
    background-color: #A81B20 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}
.btn-submit-contact:hover {
    background-color: #bd1e24 !important;
    transform: translateY(-1px);
}

.btn-reset-contact {
    background-color: #64748b !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}
.btn-reset-contact:hover {
    background-color: #475569 !important;
    transform: translateY(-1px);
}

/* ========================================================
   RESPONSIVE CHO ĐIỆN THOẠI VÀ TABLET
   ======================================================== */
@media (max-width: 991.98px) {
    /* Trên thiết bị di động, đảo Form lên trên, Bản đồ xuống dưới để tiện nhập liệu */
    .contact-box-card .row {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .contact-map-side iframe {
        min-height: 350px; /* Hạ chiều cao bản đồ trên mobile */
    }
}

@media (max-width: 575.98px) {
    .contact-layout {
        padding: 25px 0 !important;
    }
    .contact-box-card {
        background-color: transparent !important;
        border: none;
        box-shadow: none !important;
    }
    .contact-box-card .col-lg-6 {
        padding: 15px 10px !important;
    }
}
.footer-map-wrap iframe {
    height: 180px;
}

/*lienhe*/



.menu_mb
{
    display: none;
}
.menu_mobile .icon_menu span
{
    background-color: #A81B20;
}
.menucon ul .active a,.menucon ul li .hotline_res
{
    color: #A81B20;
}

.anh_lonicon img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.anh_lonicon {
    border: solid 1px #eaeaea;
    margin-bottom: 15px;
    border-radius: 12px;
    display: block;
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

@media only screen and (min-width: 1px) and (max-width: 1280px)
{   

}

@media only screen and (min-width: 1px) and (max-width: 1024px)
{
    .header-features
    {
        display: none!important;
    }
    .menu_mb
    {
        display: block!important;
    }


}
@media only screen and (min-width: 1px) and (max-width: 991px)
{


}
@media only screen and (min-width: 1px) and (max-width: 768px)
{


}
@media only screen and (min-width: 1px) and (max-width: 500px)
{   
    .input-flex-item 
    {
        flex: 1 1;
    }
    .top-bar
    {
        display: none;
    }
    .logo img
    {
        height: 80px;
    }
        .service-card-img {
        height: 100%;
    }

}