﻿html {
    /*  font-size: 14px;*/
    overflow-y: scroll;
    scrollbar-gutter: stable; /* Giữ chỗ thanh cuộn cố định -> tránh nội dung căn giữa bị dịch ngang giữa các trang */
}

@media (min-width: 1200px) {
    .display-4 {
        font-size: 36px !important;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 20px !important;
    }
    .banner-description {
        font-size: 18px !important;
    }
    .hero-carousel  {
        min-height: 380px !important;
    }
    .hero-carousel .carousel-caption {
       /* bottom: 8% !important;*/
        width: 80% !important;
        position: absolute;
        right: 10% !important;
        left: auto !important;
    }
        .hero-carousel .carousel-item {
            height: 380px !important;
            min-height: 380px !important;
           /* max-height: 480px !important;*/
            aspect-ratio: 16 / 9 !important; /* Tỉ lệ banner Mobile */
        }
    .carousel-control-next, .carousel-control-prev
    {
        width:10% !important;
    }
    .no-aos-mobile[data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap; /* Thêm thuộc tính này để xóa cảnh báo Lighthouse */
    src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    /*  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;*/
}

html, body {
    max-width: 100%;
 /*   overflow-x: hidden;*/
}

html {
    /*  position: relative;
  min-height: 100%;*/
}

body {
    /*  margin-bottom: 60px;*/
}

:root {
    --navy-dark: #0B1F3A;
    --navy-light: #16325B;
    --amber-gold: #E8A33D;
    --teal-ocean: #00A896;
    --bg-light: #F8FAFC;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'IBM Plex Mono', monospace;
}

body {
    font-family: var(--font-body);
    color: #334155;
    background-color: var(--bg-light);
   /* overflow-x: hidden;*/
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    color: var(--navy-dark);
    font-weight: 700;
}

.font-mono {
    font-family: var(--font-code);
}

.bg-navy {
    background-color: var(--navy-dark) !important;
}

.text-navy {
    color: var(--navy-dark) !important;
}

.text-amber {
    color: var(--amber-gold) !important;
}

.bg-amber {
    background-color: var(--amber-gold) !important;
}

.btn-navy {
    background-color: var(--navy-dark);
    color: #fff;
}

    .btn-navy:hover {
        background-color: var(--navy-light);
        color: #fff;
    }

.text-teal {
    color: var(--teal-ocean) !important;
}

.btn-amber {
    background-color: var(--amber-gold);
    color: var(--navy-dark);
    font-weight: 600;
    border: none;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

    .btn-amber:hover {
        background-color: #d4902d;
        color: #fff;
        transform: translateY(-2px);
    }

/* Header Navigation Base */
.navbar {
    background-color: var(--navy-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-height: 78px; /* Chiều cao cố định của Header */
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    transition: color 0.2s;
}

    .nav-link:hover, .nav-link.active {
        color: var(--amber-gold) !important;
    }

/* Nút Icon Sổ Submenu riêng biệt cho Mobile */
.submenu-toggle {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.2s;
}

    .submenu-toggle:hover {
        color: var(--amber-gold);
    }

    .submenu-toggle.is-open {
        transform: rotate(180deg);
        color: var(--amber-gold);
    }

/* Dropdown Styling */
.dropdown-menu {
    background-color: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0;
}

.dropdown-item {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    padding: 8px 20px;
    transition: all 0.2s ease;
    white-space: normal !important; /* Đè thuộc tính nowrap mặc định của Bootstrap */
    word-break: break-word;
}

    .dropdown-item:hover {
        background-color: var(--amber-gold);
        color: var(--navy-dark);
        font-weight: 600;
    }

/* Language Switcher Button */
.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .lang-btn:hover {
        background: var(--amber-gold);
        color: var(--navy-dark);
    }

/* --- LOGIC DESKTOP (Min-width: 992px) --- */
@media (min-width: 992px) {
    .nav-item.has-submenu {
        position: relative !important;
    }

        .nav-item.has-submenu > .dropdown-menu {
            position: absolute !important;
            top: 100% !important;
            left: 0 !important;
            min-width: max-content !important;
            width: auto !important;
            margin-top: 0 !important;
            border-radius: 0 0 8px 8px;
            display: none;
        }

        .nav-item.has-submenu:hover > .dropdown-menu {
            display: block !important;
            animation: fadeIn 0.2s ease-in-out;
        }

    .dropdown-item {
        white-space: nowrap !important;
        padding: 10px 20px !important;
    }

    .submenu-toggle {
        display: none;
    }
}

/* --- LOGIC MOBILE (Max-width: 991.98px) --- */
@media (max-width: 991.98px) {
    .nav-item.has-submenu {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-menu {
        background-color: rgba(0,0,0,0.2);
        border: none;
        border-radius: 0;
        padding-left: 1rem;
        box-shadow: none;
    }

        .dropdown-menu.show {
            display: block;
        }
}
.hero-carousel {
    min-height: 75vh;
}
/* Carousel Hero Banner */
.hero-carousel .carousel-item {
    height: 75vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 7; /* Tỉ lệ banner PC */
}

@media (min-width: 1920px) {
    .hero-carousel {
        min-height: 80vh !important;
    }
    .hero-carousel .carousel-item {
        height: 80vh !important;
    }
}


.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.35) 0%, rgba(11, 31, 58, 0.55) 100%);
}

.hero-carousel .carousel-caption {
    bottom: auto;
    text-align: left;
    z-index: 100;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-padding-top {
    padding-top: 15px;
}

.page-header {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
    color: #fff;
    padding: 45px 0;
    margin-bottom: 15px;
}

/* Step Card */
.step-box {
    position: relative;
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    border-top: 4px solid var(--amber-gold);
    height: 100%;
}

.step-number {
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 700;
    color: var(--amber-gold);
    opacity: 0.6;
}

/* Cards */
.custom-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

    .custom-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }

/* Logo Đối tác & Khách hàng */
.client-logo-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

    .client-logo-card:hover {
        transform: translateY(-4px);
        border-color: var(--amber-gold);
        box-shadow: 0 10px 20px rgba(232, 163, 61, 0.15);
    }

    .client-logo-card img {
        max-height: 48px;
        max-width: 80%;
        object-fit: contain;
        /*        filter: grayscale(100%);*/
        opacity: 1;
        transition: all 0.3s ease;
    }

    .client-logo-card:hover img {
        filter: grayscale(0%);
        opacity: 1;
    }

/* SPA Management */
.page-view {
    display: none;
}

    .page-view.active {
        display: block;
    }

/* Back to top button */
#backToTop {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--amber-gold);
    color: var(--navy-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    #backToTop.show {
        opacity: 1;
        visibility: visible;
    }

    #backToTop:hover {
        background-color: var(--navy-dark);
        color: var(--amber-gold);
        transform: translateY(-3px);
    }

/* Floating Contact Widget (Zalo & Phone) */
.floating-widget {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

    .widget-btn.phone {
        background-color: #25d366;
        animation: pulse-green 2s infinite;
    }

    .widget-btn.zalo {
        background-color: #0088FF;
        animation: pulse-blue 2s infinite;
    }

    .widget-btn:hover {
        transform: scale(1.1);
        color: #fff;
    }

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 136, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 255, 0);
    }
}

/* Map Responsive Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    min-height: 380px;
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    color: #94A3B8;
    font-size: 0.95rem;
}

    footer h5 {
        color: #fff;
        margin-bottom: 1.25rem;
    }

    footer a {
        color: #94A3B8;
        text-decoration: none;
        transition: color 0.2s;
    }

        footer a:hover {
            color: var(--amber-gold);
        }

.logo-img {
    height: 36px !important;
    object-fit: contain;
    width: auto !important; /* Tự động tính chiều rộng dựa trên width/height ở HTML */
    display: block; /* Tránh khoảng hở inline-block dưới chân ảnh */
  /*  aspect-ratio: attr(width) / attr(height);*/ /* Tạo khung xí chỗ tức thì */
    aspect-ratio: 300 / 158; /* Ép trình duyệt xí chỗ theo đúng tỷ lệ HTML */
}

.flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}


.page-header .page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header .page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

/* Breadcrumb nằm bên trong Header - Đồng bộ màu sắc */
.page-header .breadcrumb {
    background: transparent; /* Bỏ màu nền riêng */
    padding: 0;
    margin: 0;
    justify-content: center; /* Căn giữa cùng tiêu đề header */
    font-size: 0.9rem;
}

/* Link trong breadcrumb */
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .page-header .breadcrumb-item a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* Dấu phân cách (slash /) */
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Trang hiện tại (Active) */
.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.page-header .breadcrumb {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin-bottom: 15px; /* Khoảng cách với H1 */
    font-size: 0.85rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

    .page-header .breadcrumb-item a:hover {
        color: #fff;
        text-decoration: underline;
    }

.page-header .breadcrumb-item.active {
    color: #e2e8f0; /* Màu hơi nhạt hơn xíu hoặc highlight nhẹ */
    opacity: 0.9;
    /* Nếu tiêu đề bài quá dài, có thể dùng text-overflow để cắt gọn */
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Khối chứa Breadcrumb */
.breadcrumb {
    font-size: 15px; /* ~14px, gọn gàng */
    color: #64748b;
    margin-bottom: 20px;
}

    /* Các link liên kết */
    .breadcrumb a {
        color: #475569; /* Xám đen nhẹ nhàng */
        text-decoration: none; /* Bỏ gạch chân */
        transition: color 0.2s ease;
    }

        /* Hiệu ứng khi Hover */
        .breadcrumb a:hover {
            color: #0f172a; /* Đổi sang màu Navy đồng bộ với Header */
            text-decoration: underline;
        }

/* Dấu phân cách (/) */
.breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1; /* Xám rất nhẹ */
    padding: 0 8px;
}

/* Trang hiện tại (Active) */
.breadcrumb-item.active {
    color: #64748b;
    font-weight: 500;
}

/* Cắt tối đa 2 dòng */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Đổi số dòng muốn hiển thị (2, 3,...) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-img-top-service {
    height: 120px;
    max-width: max-content;
    width: auto !important;
}

.card-img-service {
    width: 100%;
    text-align: center;
}

/*@media (max-width: 991.98px) {*/
/* Đảm bảo thẻ li cha là khối xếp dọc */
/*.has-submenu {
        display: flex;
        flex-direction: column;
        width: 100%;
    }*/

/* Khung chứa link + nút bấm giữ nguyên hàng ngang */
/*.has-submenu > .d-flex {
            position: relative;
            z-index: 2;
        }*/

/* Mặc định ẩn menu con trên mobile và vô hiệu hóa định vị Popper của Bootstrap */
/*.has-submenu .dropdown-menu {
            display: none !important;
            position: static !important;
            transform: none !important;
            float: none;
            width: 100%;
            margin-top: 0;
            border: none;
            box-shadow: none;
            background-color: rgba(0, 0, 0, 0.03);*/ /* Nền mỏng phân biệt submenu */
/*}*/

/* Khi li.has-submenu có class .is-open thì mới hiện menu con */
/*.has-submenu.is-open > .dropdown-menu {
            display: block !important;
        }*/

/* Định dạng nút Toggle luôn hiển thị và không bị co ép */
/*.submenu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        flex-shrink: 0;*/ /* Ngăn nút bị ép méo hoặc mất chiều rộng */
/*}*/

/* Hiệu ứng xoay icon mũi tên khi mở menu */
/*.submenu-toggle.is-open i {
            transform: rotate(180deg);
            transition: transform 0.25s ease;
        }
}*/
.chevron-custom {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px !important;
    margin-left: -5px;
    margin-right: 15px;
    margin-top: 2px;
}

.footer-newsletter {
    margin-bottom: 80px;
}

/* Ngăn dấu / bị tách rời khỏi từ đầu tiên của tiêu đề */
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
}

.custom-breadcrumb .breadcrumb-item.active {
    /* Đảm bảo toàn bộ chữ hiển thị đầy đủ, ngắt dòng theo từ */
    word-break: break-word;
    white-space: normal;
}

/* Ghi đè CSS cho breadcrumb để xử lý trôi dấu divider trên mobile */
.breadcrumb {
    /* Ép hiển thị dạng dòng văn bản tự nhiên thay vì flexbox độc lập */
    display: block !important;
    word-break: break-word;
}

    .breadcrumb .breadcrumb-item {
        /* Cho các phần tử nối tiếp nhau như text bình thường */
        display: inline !important;
        float: none;
    }

/* Đảm bảo khoảng cách giữa dấu / và chữ không bị dính */
.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: var(--bs-breadcrumb-item-padding-x);
    float: none !important;
}
/* Tự động giữ tỉ lệ khung hình dựa trên width/height đã khai báo trong HTML */
img {
    aspect-ratio: attr(width) / attr(height);
}

.img-dichvu {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.img-tintuc {
    object-fit: cover;
    min-height: 180px;
}

/* Khối chứa từng Slide */
.carousel-item {
    position: relative;
    min-height: 480px; /* Chiều cao tối thiểu đủ đẹp cho Mobile */
    overflow: hidden;
    background-color: #0d1b2a; /* Màu nền chờ ảnh tải về */
  
    width: 100%;
}

/* Ép ảnh làm background đầy đủ mọi chiều */
.carousel-bg-img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Phủ kín khung hình không bị méo ảnh */
    object-position: center !important;
    z-index: 1;
}

/* Lớp phủ tối (Overlay) giúp chữ dễ đọc hơn trên mobile */
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Độ tối 45% */
    z-index: 2;
}

/* Đưa phần chữ nổi lên trên cùng */
.carousel-caption {
    /*    position: relative;
    z-index: 3;
    padding-top: 4rem;
    padding-bottom: 4rem;*/
}

/* Tối ưu riêng cho Mobile (màn hình dưới 768px) */
/*@media (max-width: 767.98px) {
    .carousel-item {
        min-height: 420px;*/ /* Tùy chỉnh chiều cao khung mobile */
/*}

    .carousel-caption h1 {
        font-size: 1.75rem !important;*/ /* Cho chữ tiêu đề nhỏ lại bớt tràn màn hình */
/*}

    .carousel-caption p {
        font-size: 0.95rem !important;
    }
}*/
.font-14
{
        font-size: 14px;
}

header,
header * {
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
}
    header.sticky-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1030 !important;
        transform: none !important;
        transition: none !important;
        height: 78px; /* Chiều cao cố định của Header */
    }
body {
    padding-top: 78px; /* Điều chỉnh lại độ cao này sao cho bằng đúng chiều cao của Header */
}
.overview-img {
    width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 650;
    overflow: hidden;
}

    /* Không để carousel tự thay đổi chiều cao theo ảnh */
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        width: 100%;
        height: 100%;
    }



    /* ===== Tối ưu banner: tránh màn hình đen khi ảnh đang tải ===== */
    .hero-carousel .carousel-item {
        background-color: var(--navy-dark);
    }

    .hero-carousel .carousel-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* Fallback: nếu AOS chưa khởi tạo (CSS/JS tải chậm) vẫn hiển thị nội dung */
[data-aos]:not(.aos-init) {
    opacity: 1;
    transform: none;
}