
.hd-mid{

}
.page-homes .page-wrapper{
    gap: 2rem;
    padding: 3rem 0;
}
.homes-autoplay-img .img .img-inner{
    /* padding-top: calc((240 / 1200)* 100%); */
}

.homes-animal {
    position: relative;
    overflow: hidden;
    margin: calc(-1*(var(--pd-aa))) 0;
    width: 50%;
    float: right;
}
.homes-animal .dec {
    width: 692px; /*70vw;*/
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
}
.homes-animal .dec-in {
    display: block;
    padding-top: calc((1 / 1)* 100%);
    position: relative;
    overflow: hidden;
    -webkit-animation: Spinner 20s linear infinite;
    animation: Spinner 20s linear infinite;
}
.homes-animal .dec-in img {
    position: absolute;
    top: 50%;
    left: 40%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}
.animal-pd {
    padding: var(--pd-aa) 0;
}
.homes-prod-item .inner .box-line{
    justify-content:unset;
}

.menu-item:hover > .megacol {
    -webkit-transform: translateY(0) translateX(-50%);
    transform: translateY(0) translateX(-50%);
    opacity: 1;
    visibility: visible;
    pointer-events: visible;
}

.megacol {
    position: fixed;
    /*
    width: 130.5rem;
    left: 50%;
    */
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    top: calc(var(--size-hd));
    background-color: white;
    padding: 3.2rem;
    border-radius: var(--radius);
    -webkit-transition: 0.4s;
    transition: 0.4s;
    -webkit-box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    pointer-events: none; }


@media screen and (max-width: 1200px) {
    .megacol {display: none; }
}
.megacol.small {
    width: 70rem;
}
.megacol-list {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap; }
.megacol-item .tt {
    font-weight: 600;
    margin-bottom: .8rem;
    padding-bottom: 0.8rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: .8rem; }
.megacol-item .tt img {
    width: 1em;
    height: 1em;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: 0.1em; }
.megacol-item .menu-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
    --rg: 1.2rem;
    --cg: 0.8rem;
    padding-left: 2rem;
    position: relative; }
.megacol-item .menu-list::after {
    content: '';
    position: absolute;
    top: 0;
    left: .6rem;
    height: 100%;
    width: 0.1rem;
    background-color: rgba(0, 0, 0, 0.1); }
.megacol-item .menu-item {
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden; }
.megacol-item .menu-link {
    text-transform: capitalize;
    font-size: 1.4rem;
    color: #595959;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    font-weight: 300; }
.disable {
    color: #C6C6C6 !important;
}

@media (hover: hover) {
    .megacol-item .menu-link:hover {color: var(--color-pri); }
}
/*lchung*/
.checker.disabled,
.btn-disabled,
.btn:disabled{
    opacity: 0.5; /* Làm mờ */
    pointer-events: none; /* Ngăn chặn click */
    cursor: not-allowed; /* Hiển thị biểu tượng chuột bị cấm */
}
.field-error { font-size: 12px; display:block; margin-top:4px; color: red !important; }
.is-invalid { border-color: #dc3545!important; }
.red{
    color: red !important;
}
.search-ori-error,
.search-dest-error{
    position: absolute;
    width: 100%;
    top: 47px;
    z-index: 10;
    left: 0;
}
#fRequestQuote .input-float,
#fupdateNamecardAndRequestQuote .input-float-{
    position: relative;
}
#fRequestQuote .field-error,
#fupdateNamecardAndRequestQuote .field-error-{
    position: absolute;
    z-index: 10px;
    bottom: -17px;
}
#fupdateNamecardAndRequestQuote .select2-container,
#fupdateNamecardAndRequestQuote .select2-container--default .select2-selection--single,
#signinupModal #form-register .select2-container,
#signinupModal #form-register .select2-container--default .select2-selection--single,
#fRequestQuote .select2-container,
#fRequestQuote .select2-container--default .select2-selection--single{
    height: 4rem;
}
#namecard_company_city-error,
#namecard_phone_local-error,
#namecard_mobile-error,
#namecard_last_name-error,
#namecard_first_name-error{
    position: absolute;
    z-index: 1;
    top: 3.6rem;
    left: 42%;
}
#namecard_phone_local-error,
#namecard_mobile-error{
    left: 32%;
}
#namecard_last_name-error{
    left: 52%;
}
#namecard_first_name-error{
    left: 0.2%;
}
#signinupModal .form-floating #form-register .form-ip .input-tv-item .txt{
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}
#signinupModal .form-floating #form-register #mobile-error{
    position: absolute;
    bottom: -18px;
    left: 32%;
}
#accountConfirmModal .verify-company{
    color: #0063d3;
    font-weight:bold;
}
:root {
  --bs-btn-disabled-bg: #1D4995; /* light gray */
  --bs-btn-disabled-color: #1D4995; /* muted text */
}
#fRequestQuote .select2-container--default .select2-selection--single .select2-selection__arrow,
#form-register .select2-container--default .select2-selection--single .select2-selection__arrow,
#fupdateNamecardAndRequestQuote .select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 9px;
    right: 5px;
}
#fRequestQuote .select2-container--default .select2-selection--single .select2-selection__rendered,
#form-register .select2-container--default .select2-selection--single .select2-selection__rendered,
#fupdateNamecardAndRequestQuote .select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height:40px;
}
.verify-company{
    color: #0063d3;
    font-weight: bold;
}
.txt-refund {
    font-style: italic;
    font-size: .675em;
}
/*End lchung*/

/* Bang */
.fixedbar {
    /*bottom: 0.5rem !important;*/
}
.fixedbar-it {
    width: unset !important;
    height: unset !important;
    border-radius: unset !important;
    background: unset !important;
}

.homes-prod-item .inner .top-inner {
    padding-top: calc(172 / 350 * 100%) !important;
}

div.homes-prod-item .inner h4.tt {
    padding: 0 1.6rem !important;
    --fs2: clamp(1.6rem, calc(1.3705rem + 2.329vw), 2rem); font-size: var(--fs2);
    font-weight: 700;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.one_row {
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 12px;
    height: 12px;
    border: 1px solid #6c757d;
    border-radius: 50%;
    color: #6c757d;
    font-family: serif;
    font-style: italic;
    font-size: 12px;
    cursor: help;
    margin-left: 1px;
}
.info-icon:hover {
    background-color: #6c757d;
    color: white;
}
.info-icon { pointer-events: auto !important; position: relative; z-index: 10; }
.popover-body {
    font-size: 13px !important;
    line-height: 1.5;
    color: #333;
}
img.info-icon{
    border: 0px solid #6c757d;
}
.popover-header {
    font-size: 13px !important;
    font-weight: bold;
}

/* section_3 */
.business-regis-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px;
    margin-left: -15px;
    justify-content: center;
}
.business-regis-store {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
    flex: 0 0 100%;
    max-width: 100%;
}
.role-card-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eee;
}
.role-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.role-icon-zone {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}
.role-icon-zone.shipper { background: #fff5eb; }
.role-icon-zone.logistics { background: #eaf2ff; }
.role-icon-zone img {
    width: 40px;
    height: auto;
}
.role-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.role-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}
.role-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: none;
    min-width: 200px;
}
.btn.start-blue {
    background-color: var(--color-pri);
    color: white !important;
    border: 1px solid var(--color-pri);
}
.role-note {
    margin-top: 20px;
    font-size: 13px;
}
.role-note a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.role-note a:before {
    content: '?';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #1D4995;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    font-size: 11px;
    color: #1D4995;
}
.role-note a:hover {
    color: #1D4995;
}

/* Active state for Mobile Interaction */
.hd-lg.active .hd-lg-drop {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: visible !important;
    overflow: visible !important;
}


/* Home banner */
.homes-autoplay-img {
    position: relative;
    overflow: hidden;
}

.hero-mask-panel {
    background: #fff;
    padding: 2rem;
    width: 100%;
    z-index: 20;
}

.hero-mask-panel .btn {
    position: relative;
    z-index: 10;
}

#heroBannerCarousel .carousel-item {
    transition: transform .6s ease-in-out, opacity .6s ease-in-out;
}

#heroBannerCarousel .img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homes-price-item .inner .heads div.arrow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
}
.homes-price-item .inner .heads div.arrow::after {
    content: "\f178";
    position: absolute;
    font-family: "Font Awesome 6 Pro";
    z-index: 2;
    position: absolute;
    top: calc(50% + 1.7rem);
    left: 18px;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
}

/* Home hot bottom company name*/
#home-hot-hits .swiper-slide {
    height: auto;
    display: flex;
}
#home-hot-hits .homes-prod-item {
    width: 100%;
    height: 100%;
}
#home-hot-hits .homes-prod-item .inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#home-hot-hits .homes-prod-item .info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
#home-hot-hits .homes-prod-item .bot {
    margin-top: auto !important;
}

.news-item .inner .info-tt-2 {
font-weight: 700;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-transition: 0.4s;
transition: 0.4s; }
@media (hover: hover) {
.news-item .inner .info-tt-2:hover {
    color: var(--color-pri); }
}

.list-social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.list-social li a i {
    font-size: 20px;
    color: #333;
}

@media (max-width:768px) {
    .support-cate-nav + .page-wrapper, .breadcrumb + .page-wrapper {
        padding: 4rem 0 !important;
    }

    .homes-prod-item .inner .top-inner {
        padding-top: calc(172 / 429 * 100%) !important;
    }

    .chat-section .toggle-chat{
        display: none !important;
    }

    .btn:hover,
    .btn:focus,
    .btn:active,
    .btn:active:focus {
        background-color: var(--color-pri) !important;
    }

    .btn.second:hover,
    .btn.second:focus,
    .btn.second:active {
        background-color: var(--color-second) !important;
    }
    .btn.second:hover .txt, .btn.second:focus .txt, .btn.second:active .txt {
        color: white !important;
    }

    .btn.start-blue:hover,
    .btn.start-blue:focus,
    .btn.start-blue:active {
        background-color: var(--color-pri) !important;
    }

    .btn.four:hover,
    .btn.four:focus,
    .btn.four:active {
        background-color: transparent !important;
        border: 0.1rem solid var(--color-pri) !important;
    }

    .btn.five:hover,
    .btn.five:focus,
    .btn.five:active {
        background-color: white !important;
        border: 0.1rem solid var(--color-second) !important;
    }

    .btn.five {
        -webkit-tap-highlight-color: transparent;
    }

    /* Market trend selected */
    .custom-mobile-select {
        /* 1. Đặt màu nền và màu chữ gốc */
        background-color: #E4F1FA !important; /* Đổi mã màu nền gốc của bạn ở đây */
        color: #0054a6 !important;            /* Đổi màu chữ gốc ở đây */

        font-size: 15px !important;
        font-weight: 600 !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 6px !important;
        padding: 10px 15px !important;

        /* 2. CHÌA KHÓA QUAN TRỌNG: Xóa giao diện cứng đầu của iPhone/Android */
        -webkit-appearance: none !important;
        appearance: none !important;

        /* 3. Vì xóa giao diện nên mất luôn mũi tên, ta phải vẽ lại mũi tên bằng ảnh SVG */
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230054a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 15px center !important; /* Căn mũi tên qua phải */
        background-size: 16px !important; /* Độ to của mũi tên */
        padding-right: 40px !important;   /* Đẩy chữ tránh bị đè lên mũi tên */
        width: 25rem;
    }

    /* Hiệu ứng khi nhấp vào */
    .custom-mobile-select:focus {
        border-color: #0054a6 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Định dạng màu chữ cho các option xổ xuống bên trong */
    .custom-mobile-select option {
        color: #333;             /* Các mục khác màu đen/xám bình thường */
        font-weight: normal;
        padding: 10px;
    }

}

@media (min-width: 768px) {
    .business-regis-store {
        flex: 0 0 50%;
        max-width: 50%;
    }

}

/* Force visibility for Language Selector on Mobile */
@media screen and (max-width: 991px) {
    .hd-lg {
        display: block !important;
        margin-right: 1rem;
    }
    .hd-lg-item {
        display: flex !important;
    }

    /* Hide text label on mobile to prevent overlap */
    .hd-lg-item .txt {
        display: none !important;
    }
    /* Ensure dropdown shows all content including button */
    .hd-lg-drop {
        min-width: 280px;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    .hd-lg .btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .hero-mask-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    }
}
.popover .popover-body b,
.popover .popover-body strong{
    font-weight: bold !important;
}

.btn.second.order-rfq{
    border: 0.1rem solid var(--color-second) !important;
    color: var(--color-second) !important;
}
.btn.second.order-rfq .txt{
    color: var(--color-second) !important;
}
.btn.second.order-rfq .txt:hover{
    color: #fff !important;
}
