/*! ----- 0.cấu hình chung global ---------*/
a {
    color: #595959;
    text-decoration: none;
    background-color: transparent;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

    a:hover {
        color: #008CFF;
        text-decoration: none;
    }

.nt-color-1 {
    color: #00aeef;
}

.nt-color-2 {
    color: #ed0677;
}

.nt-color-3 {
    color: #2e3192;
}

.nt-color-4 {
    color: #008CFF;
}

.nt-bg-1 {
    background-color: #00aeef;
}

.nt-bg-2 {
    background-color: #ed0677;
}

.nt-bg-3 {
    background-color: #2e3192;
}

.btn-gradient {
    background-image: linear-gradient(to right, #12d8fa 0%, #1fa2ff 51%, #12d8fa 100%);
    background-size: 200% 100%;
    transition: background-position 0.3s ease;
}

    .btn-gradient:hover {
        background-position: right center;
    }

.btn-nhantam {
    background-color: #008CFF !important;
    border-color: #008CFF !important;
    transition: all 0.2s ease-in-out;
}

    .btn-nhantam:hover,
    .btn-nhantam:focus,
    .btn-nhantam:active {
        filter: brightness(0.9);
        border-color: #008CFF !important;
    }

    .btn-nhantam:active {
        background-color: #008CFF !important;
        filter: brightness(0.85);
    }

.text-gradient {
    display: inline-block;
    background: linear-gradient(90deg, #00afff, #ed0677);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-justify-custom {
    text-align: justify;
}
/*! ----- 1.header_1_desktop ---------*/

.bg-top {
    background-color: #f4f4f4;
}

.nav-link,
.dropdown-item {
    color: #000000 !important;
}

    .nav-link:hover,
    .nav-link.active,
    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item.active {
        color: #008CFF !important;
    }

.search-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .search-wrapper input {
        padding: 0 40px 0 15px;
        border-radius: 16px;
        border: 1px solid #ccc;
        outline: none;
        height: 32px;
        font-size: 14px;
    }

    .search-wrapper .search-button {
        position: absolute;
        border: none;
        background-color: transparent;
        cursor: pointer;
    }

.language-select {
    padding: 8px 5px;
    border: none;
    background-color: #f4f4f4;
    font-size: 16px;
}

/* navbar mobile ko co amp */
.offcanvas-collapse {
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .offcanvas-collapse {
        position: fixed;
        top: 57px;
        bottom: 0;
        left: 100%;
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: #fff;
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

        .offcanvas-collapse.open {
            visibility: visible;
            transform: translateX(-100%);
        }
}

.menu-hotline {
    background-image: linear-gradient(to right, #02a8ff 0%, #0075ff 50%);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration-line: none;
    padding: 2px 10px 0px 6px;
    background-size: 200% 100%;
    transition: background-position 0.3s ease;
}

    .menu-hotline:hover {
        color: #fff;
        background-position: right center;
    }

#navbarsNhanTam .dropdown-menu .dropdown-item::before {
    content: "\f0da";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

#navbarsNhanTam .dropdown-item {
    font-size: 18px;
    padding-bottom: 8px;
}

@media (max-width: 991.98px) {
    #navbarsNhanTam .nav-item .nav-link::before {
        content: "\f0da";
        font-family: "Font Awesome 7 Free";
        font-weight: 900;
        margin-right: 0.5rem;
    }
}

/*!
 * ----- 7.footer -----------
 * Các css định dạng cho phần chân trang
 */
#footer {
    background-image: url("https://nhakhoanhantam.com/assets/images/footer-nhakhoanhantam.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0078ff;
    color: #fff;
    padding: 20px 0;
}

    #footer a {
        color: #fff;
    }

    #footer h2 {
        display: block;
        font-size: 1.5em;
        margin-block-start: 0.83em;
        margin-block-end: 0.83em;
        margin-inline-start: 0;
        margin-inline-end: 0;
        font-weight: 700;
        unicode-bidi: isolate;
    }

    #footer h3 {
        font-size: 16px;
        line-height: 1.4;
    }

@media (max-width: 376px) {
    #footer h2 {
        font-size: 18px;
    }

    #footer h3 {
        font-size: 14px;
    }
}

#footer .footer_time {
    list-style: circle;
}

#footer .linklist {
    list-style: square;
}

    #footer .linklist li {
        padding-bottom: 15px;
    }

#footer select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: none;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.2);
    text-align: center;
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

#footer img {
    border-radius: 5px;
}

#footer .social {
    margin-top: 15px;
}

    #footer .social li {
        display: inline-block;
        padding: 3px;
    }

#footer .coppyright {
    border-top: 2px solid #fff;
    padding-top: 10px;
}

    #footer .coppyright h2 {
        line-height: 0;
    }

@media (max-width: 992px) {
    #footer .coppyright {
        display: none;
    }
}

/*! ----- hotline PC-Mobile ---------*/
.navbar-stm {
    position: fixed;
    right: 13px;
    background: #fff;
    border-radius: 50px;
    width: auto;
    z-index: 150;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 0px;
    border: 1px solid #f2f2f2;
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.1), 0 2px 6px rgb(0 0 0 / 0.1);
}

    .navbar-stm ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .navbar-stm ul li {
            list-style: none;
            margin: 0 5px 30px 5px;
            text-align: center;
        }

@media (min-width: 1024px) {
    .navbar-stm ul li {
        margin: 8px;
    }
}

.navbar-stm ul > li a,
.btn-hotline {
    border: none;
    padding: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    line-height: 15px;
    color: #000;
    font-weight: 500;
    width: 100%;
    max-width: 72px;
    text-decoration: none;
}

@media only screen and (max-width: 812px) {
    .navbar-stm {
        width: calc(100% - 20px);
        border-radius: 20px;
        height: 80px;
        line-height: 50px;
        top: auto;
        transform: translateY(0);
        bottom: 10px;
        right: 10px;
        padding: 10px;
        box-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.1);
    }

        .navbar-stm ul > li a,
        .btn-hotline {
            padding: 0;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100%;
        }

        .navbar-stm li {
            float: left;
            width: 22%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
}

@media only screen and (max-width: 361px) {
    .navbar-stm {
        padding-left: 3px;
        padding-right: 3px;
    }

        .navbar-stm ul li {
            margin-left: 3px;
        }

        .navbar-stm ul > li a {
            font-size: 12px;
        }
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

    body.modal-open .navbar,
    body.modal-open .header,
    body.modal-open .fixed-top {
        padding-right: 0 !important;
    }

/* Trong file CSS của bạn, ví dụ: custom.css */
.hide-img-mobile {
    display: block; /* Mặc định hiển thị */
}

/* Trên màn hình nhỏ hơn (mobile), ẩn hoàn toàn và không tải ảnh */
@media (max-width: 991.98px) { /* breakpoint của Bootstrap cho lg */
    .hide-img-mobile {
        display: none !important; /* Quan trọng: ẩn bằng display: none */
    }
}