/* ========== CSS gốc của bạn ========== */
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
}

main.content {
    padding-top: 2rem;
}

.highlight-color {
    color: #ff7d44 !important;
}

.highlight-color-hover:hover {
    color: #ff7d44 !important;
}

.overflow-hidden {
    overflow: hidden;
}

/* Top bar */
.top-bar {
    background-color: #fff;
    color: #0f4f5c;
    font-size: 0.9rem;
}

.top-bar a {
    color: #0f4f5c;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Main navbar */
.main-nav {
    background-color: #0e4e5b;
}

.main-nav.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
.navbar-brand {
    padding: 0px;
}
.navbar-brand img {
    max-height: 96px;
    z-index: 9;
}

.nav-link {
    color: #fff !important;
    padding: 2.6rem 1rem 2.6rem 1rem !important;
    font-weight: bold;
    white-space: nowrap;
}

.nav-link:not(.dropdown-toggle):hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff7d44 !important;
    border-bottom: 0.2rem solid #ff7d44;
    padding: 2.6rem 1rem 2.4rem 1rem !important;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff7d44 !important;
    border-bottom: 0.2rem solid rgba(255, 255, 255, 0.1);
    padding: 2.6rem 1rem 2.4rem 1rem !important;
}

@media (min-width: 768px) and (max-width: 1110px) {
    .nav-link {
        padding: 2.6rem 0.4rem 2.6rem 0.4rem !important;
    }

    .nav-link:hover {
        padding: 2.6rem 0.4rem 2.4rem 0.4rem !important;
    }
}

.navbar {
    padding: 0;
    position: relative;
    background-image: url("/sites/nhapsitrungviet/home/img/h2-1.webp");
    background-position: bottom left;
    background-repeat: no-repeat;
}
.navbar::after {
    content: "";
    display: block;
    background: #ff7d44;
    height: 100%;
    width: 50%;
    position: absolute;
    right: 0;
    z-index: 1;
}

.navbar .container {
    background-color: #0e4e5b;
    z-index: 9;
}

.navbar .dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-top: 0px;
    border-left: 0.2rem solid #ff7d44;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.navbar .dropdown-menu .dropdown-item {
    color: #333;
    font-weight: 500;
    padding: 8px 20px;
    display: flex;
    align-items: center;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #ffffff;
    color: #ff7d44;
}

/* Call-us */
.call-us {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 1.9rem 6rem 1.9rem 1rem !important;
}

.call-us::after {
    content: "";
    display: block;
    background: #ff7d44;
    height: 100%;
    width: 150%;
    position: absolute;
    right: -80%;
    transform: rotate(45deg);
}

.call-us-icon {
    background-color: #ffffff1a;
    border-radius: 50%;
    padding: 0.8rem;
}

.call-us span,
.call-us a,
.call-us strong {
    white-space: nowrap;
}

.manager-form {
    color: #fff;
    background-color: #ff7d44;
    font-size: 0.9rem;
    line-height: 1.2;
    padding: 2.11rem 1rem 2.11rem 1rem !important;
}

.manager-form::after {
    content: "";
    display: block;
    background: #ff7d44;
    height: 100%;
    width: 150%;
    position: absolute;
    right: -149%;
}

.manager-form a {
    color: #fff;
    text-decoration: none;
    background-color: #0e4e5b;
    white-space: nowrap;
}

.manager-form a:hover {
    color: #0e4e5b;
    background-color: #fff;
}

/* ========== Hero Section thêm mới ========== */
.hero-section {
    position: relative;
    min-height: 70vh;
    /* Điều chỉnh chiều cao */
    background-image: url("/sites/nhapsitrungviet/home/img/h2-5-1.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    overflow: hidden;
    margin-top: -2rem;
}

/* Ảnh máy bay (vòng tròn) */
.plane-img {
    position: absolute;
    top: -30vw; /* Giảm độ cao */
    left: 0; /* Điều chỉnh để không bị sát lề */
    width: 18vw; /* Giảm kích thước mặc định */
    z-index: 2;
    animation: movePlan 1s ease-out forwards;
}

@keyframes movePlan {
    from {
        top: -30vw;
    }
    to {
        top: -5vw; /* Điều chỉnh để máy bay không quá cao */
    }
}

/* Ảnh xe tải */
.truck-img {
    position: absolute;
    bottom: 0;
    left: -50vw;
    max-width: 40vw;
    z-index: 2;
    animation: moveTruck 2s ease-out forwards;
}

@keyframes moveTruck {
    from {
        left: -50vw;
    }
    to {
        left: 0;
    }
}

/* Ảnh tàu */
.ship-img {
    position: absolute;
    bottom: 0;
    left: -50vw;
    max-width: 40vw;
    z-index: 1;
    animation: moveShip 2s ease-out forwards;
}

@keyframes moveShip {
    from {
        left: -50vw;
    }
    to {
        left: 25vw;
    }
}

/* Responsive cho màn hình Full HD (1920px) */
@media (max-width: 1920px) {
    .plane-img {
        width: 16vw;
        top: -8vw;
    }
    .truck-img,
    .ship-img {
        max-width: 35vw;
    }
}

/* Responsive cho màn hình Laptop (1366px) */
@media (max-width: 1366px) {
    .plane-img {
        width: 14vw;
        top: -6vw;
    }
    .truck-img,
    .ship-img {
        max-width: 30vw;
    }
}

/* Responsive cho màn hình điện thoại */
@media (max-width: 768px) {
    .plane-img {
        width: 12vw;
        top: -4vw;
    }
    .truck-img,
    .ship-img {
        max-width: 25vw;
    }
}

/* Phần text ở giữa */
.hero-content {
    position: relative;
    z-index: 3;
    min-height: 80vh;
    padding-top: 10vh;
    padding-bottom: 20vh;
}

/* Căn giữa nội dung bằng flex */
.hero-content .inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    text-align: center;
    color: #fff;
}

.btn-orange {
    background-color: #ff7d44;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-orange:hover {
    background-color: #0f4f5c;
    color: #ff7d44;
}

/* Section chung */
.brand-logos {
    padding: 2rem 0;
    /* Khoảng cách trên dưới */
    background-color: #fff;
    /* Màu nền */
}

/* Chứa logo và căn giữa */
.brand-logos .brand-item {
    text-align: center;
    margin: 1rem;
}

/* Ảnh logo */
.brand-logos .brand-logo {
    max-width: 120px;
    /* Kích thước logo tối đa */
    filter: grayscale(100%);
    /* Hiệu ứng xám */
    transition: filter 0.3s;
    height: 100%;
}

/* Hover logo -> trở lại màu gốc */
.brand-logos .brand-logo:hover {
    filter: none;
}

/* Section container */
.services-section {
    padding: 3rem 0;
    background-image: url("/sites/nhapsitrungviet/home/img/h2-16.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
}

.services-section .sub-title {
    display: inline-block;
    background-color: #ff7d44;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-radius: 1rem;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #073a3c;
    /* xanh đậm */
}

.services-section p {
    font-size: 1rem;
    color: #555;
    max-width: 500px;
}

.bullet-list {
    background-color: #fff;
    border-left: 4px solid #ff7d44;
    padding: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
}

.bullet-list li {
    margin-bottom: 0.5rem;
    color: #073a3c;
    /* xanh đậm */
    font-weight: 600;
}

.services-btn {
    background-color: #073a3c;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 0.35rem;
}

.services-btn .services-btn-icon {
    font-size: 0.9rem;
    border-radius: 0.3rem;
    background-color: #fff;
    padding: 0.4rem;
    color: #ff7d44;
}

.services-btn:hover {
    opacity: 0.8;
    background-color: #ff7d44;
}

.phone-help {
    font-size: 0.9rem;
    color: #073a3c;
    margin-left: 1.5rem;
}

/* Phần ảnh bên phải */
.services-image-wrapper {
    position: relative;
    margin-top: 0rem;
    overflow: hidden;
}

/* Ảnh chính */
.services-image {
    width: 75%;
    border-radius: 0.5rem;
    display: block;
    z-index: 2;
    position: relative;
}

/* Ảnh thứ hai, chồng lên */
.services-image-2 {
    position: absolute;
    bottom: 120px;
    /* tuỳ chỉnh để canh vị trí */
    right: 30px;
    width: 50%;
    /* ví dụ 50% so với ảnh chính */
    border-radius: 0.5rem;
    z-index: 4;
}

/* Khối màu cam (5 năm kinh nghiệm, 3 vạn đơn...) */
.orange-box {
    width: 75%;
    background-color: #ff7d44;
    color: #fff;
    padding: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 4rem;
    /* đẩy xuống cho lộ ảnh phía trên */
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 3;
    margin-top: -2rem;
}

.orange-box::after {
    content: "";
    position: absolute;
    background-image: url(/sites/nhapsitrungviet/home/img/h2-17.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: -50% 0px;
    width: 100%;
    height: 100%;
    left: 100%;
    z-index: 1;
    animation: wavePosition 6s infinite ease-in-out;
}

/* Keyframes cho chuyển động */
@keyframes wavePosition {
    0% {
        background-position: -50% 0;
    }

    50% {
        background-position: 10% 0;
    }

    100% {
        background-position: -50% 0;
    }
}

.orange-box {
    background-color: #ff7d44;
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
}

.orange-box h3 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.orange-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
}

/* Section tổng */
.stats-section {
    position: relative;
    /* Ảnh nền */
    background: url("/sites/nhapsitrungviet/home/img/ab1.webp") center/cover
        no-repeat;
    /* Nếu muốn fallback màu khi ảnh lỗi: background-color: #003B49; */
    overflow: hidden;
    /* che phần overlay tràn */
}

/* Overlay màu #003B49, độ mờ 0.84 */
.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    background-color: #003b49;
    opacity: 0.84;
    z-index: 1;
    /* nằm trên ảnh nền, dưới nội dung */
}

/* Container bên trong: đặt position relative để nội dung nổi trên overlay */
.stats-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

/* Khối info-box */
.info-box {
    border: 1px dashed #0fd2c9;
    /* Màu viền teal nhạt */
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    /* nền hơi tối mờ */
    padding: 2rem 1rem;
    text-align: center;
    color: #fff;
}
.info-box h3 {
    font-size: 1.5rem;
    margin: 0.2rem 0;
    font-weight: 700;
    color: #fff;
}

.info-box p {
    margin: 0;
    color: #ddd;
    /* xám nhạt */
}

.why-choose-us {
    padding: 3rem 0;
}

.why-choose-us .sub-title {
    display: inline-block;
    background-color: #ff7d44;
    /* Đổi sang #FF7D44 */
    color: #fff;
    border-radius: 1rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.why-choose-us h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #073a3c;
    margin-bottom: 1rem;
}

.why-choose-us p {
    font-size: 1rem;
    color: #707070;
}

/* Footer tổng */
.footer-section {
    background-color: #0f4f5c;
    /* Xanh đậm */
    color: #fff;
    position: relative;
    font-size: 0.9rem;
}

/* ========== HÀNG TRÊN ========== */
.footer-top {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .logo img {
    max-height: 96px;
    /* chỉnh kích thước logo */
}

.footer-top h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
    border-left: 0.3rem solid #ff7d44;
    line-height: 2.5;
    padding-left: 1rem;
}

.footer-top .subscribe-input {
    background-color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    max-width: 220px;
    margin-right: 0.5rem;
}

.footer-top .subscribe-btn {
    background-color: #ff7d44;
    /* Cam */
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

.footer-top .subscribe-btn:hover {
    opacity: 0.8;
}

/* ========== HÀNG GIỮA ========== */
.footer-middle {
    padding: 2rem 0;
    position: relative;
}

/* Box cam bên trái */
.orange-box-footer {
    background-color: #ff7d44;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.orange-box-footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.orange-box-footer p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.call-btn {
    background-color: #fff;
    color: #333;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Danh sách kho & ứng dụng */
.footer-list h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-list li {
    list-style: none;
    margin-bottom: 0.4rem;
}

/* ========== HÀNG DƯỚI ========== */
.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: #ff7d44;
    /* Cam */
    text-decoration: none;
}

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

.footer-bottom .contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom .contact-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* fix old */
.section-title-img {
    display: none !important;
}

.arrow-right {
    margin-right: 0.5rem;
}


/* ---------- Ô tìm sản phẩm ở trang chủ ---------- */

/*
 * Khối này nằm BÊN TRONG banner/hero (xem chỗ @include ở index.blade.php).
 * Nền hero của site là ảnh/dải màu, nên thẻ để trắng đặc + bóng đổ cho chắc
 * đọc, thay vì kính mờ dễ chìm khi ảnh nền sáng.
 * Bảng màu của site: cam #ff7d44 cho nút, xanh đậm #073a3c cho chữ.
 */
.site-search {
    margin-top: 1.5rem;
    max-width: 620px;
    width: 100%;
}

.site-search-card {
    display: block;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(7, 58, 60, .22);
    padding: .875rem;
    text-align: left;
}

.site-search-row {
    display: flex;
    gap: .5rem;
}

.site-search-input {
    flex: 1;
    min-width: 0;
    padding: .7rem 1rem;
    border: 1px solid #dbe6e8;
    border-radius: 10px;
    background: #fff;
    color: #073a3c;
    font-size: .95rem;
}

.site-search-input:focus {
    outline: none;
    border-color: #ff7d44;
    box-shadow: 0 0 0 .2rem rgba(255, 125, 68, .18);
}

.site-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex: 0 0 auto;
    padding: .7rem 1.4rem;
    border: 0;
    border-radius: 10px;
    background: #ff7d44;
    color: #fff;
    font-weight: 700;
}

.site-search-btn:hover {
    background: #0f4f5c;
    color: #ff7d44;
}

.site-search-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    margin-top: .625rem;
}

.site-search-platform {
    margin: 0;
}

/* Ẩn ô chọn thật, phần nhìn thấy là thẻ span bên trong */
.site-search-platform input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.site-search-platform span {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .3rem .625rem;
    border: 1px solid #dbe6e8;
    border-radius: 10px;
    background: #f5f9fa;
    color: #073a3c;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.site-search-platform img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
    /* Sàn chưa chọn thì logo nhạt đi cho mắt bắt ngay sàn đang chọn */
    opacity: .5;
    transition: opacity .15s;
}

.site-search-platform input:checked + span {
    border-color: #ff7d44;
    background: #fff;
}

.site-search-platform input:checked + span img {
    opacity: 1;
}

.site-search-platform input:focus-visible + span {
    outline: 2px solid #ff7d44;
    outline-offset: 2px;
}

.site-search-note {
    color: #5b7378;
    font-size: .75rem;
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .site-search {
        max-width: 100%;
    }

    .site-search-btn span {
        display: none;
    }

    /* Màn hẹp thì dòng chú thích chiếm cả hàng, chen ngang sẽ vỡ bố cục */
    .site-search-note {
        margin-left: 0;
        width: 100%;
    }
}
