/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/*************** ADD CUSTOM CSS HERE.   ***************/

body,
body * {
    font-family: 'Arial',
        arial,
        verdana,
        sans-serif !important;
}
.text_md{
    font-size: 14px;
}

.btn-amlab {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-amlab:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}
.main_title h2{
    text-align: center;
    height: 80px;
    font-size: 26px;
    background: url(assets/images/e.png) no-repeat center 45px;
    color: #414143;
    font-weight: normal;
}
.secondary_title h3{
    overflow: hidden;
    width: 233px;
    height: 40px;
    background: #ef4136 url(assets/images/n.gif) no-repeat left top;
    display: inline;
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
    color: #fff;
    font-size: 18px;
    line-height: 40px;
    padding-left: 26px;
    padding-right: 20px;
    font-weight: normal;
    display: block;
    margin: 0px;
    font-weight: 500;

}
.txt_view_all:hover a{
    color: #ef4136;
    text-decoration: underline;
}
.product-small .box-text{
    text-align: center;
}
.product-small .box-text .product-title a{
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.product-small .box-text .product-title a:hover{
    color: #ed1b24;
}
.product-small .price-wrapper .price .amount{
    font-size: 14px;
    font-weight: 500;
    color: #ed1b24;
}

.product-small .box-image{
    border: solid 1px #cbcbcb;
    padding: 3px;
    background-color: #fff;
    display: block;
    box-shadow: 0 8px 6px -6px #000;
    transition: 0.3s;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.product-small .badge-container{
    display: none;
}
/* Tối ưu hiển thị Hotline trên Header */
#header-contact.header-contact li a {
    display: flex ;
    align-items: center;
    gap: 12px;
    color: var(--primary-color) ;
    /* Sử dụng màu đỏ chính của bạn */
    text-decoration: none ;
    transition: transform 0.2s ease;
}

#header-contact.header-contact li a:hover {
    transform: scale(1.02);
    /* Hiệu ứng phóng nhẹ khi di chuột */
}

/* Icon điện thoại */
#header-contact .icon-phone {
    font-size: 42px ;
    line-height: 1;
    color: var(--primary-color) ;
}

/* Cụm chữ bên phải */
#header-contact .header-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

/* Chữ Hotline (24/7) */
#header-contact .hotline-label {
    font-size: 12px ;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* Số điện thoại */
#header-contact .hotline-number {
    font-size: 20px ;
    font-weight: 800;
    letter-spacing: 0.5px;
}


/* Tối ưu giao diện Ô tìm kiếm (Search Box) */
.searchform-wrapper.ux-search-box .flex-row {
    border: 1px solid var(--primary-color) ;
    /* Viền màu đỏ chính */
    border-radius: 8px;
    /* Bo góc khung tìm kiếm */
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi nhấn vào ô nhập liệu */
.searchform-wrapper.ux-search-box .flex-row:focus-within {
    box-shadow: 0 0 8px rgba(237, 27, 36, 0.2);
}

/* Tùy chỉnh ô nhập văn bản */
.searchform-wrapper.ux-search-box .search-field {
    border: none ;
    /* Bỏ viền mặc định của input */
    background-color: transparent ;
    height: 36px ;
    padding: 0 15px ;
    font-size: 15px ;
    box-shadow: none ;
    margin-bottom: 0 ;
}

/* Tùy chỉnh nút Tìm kiếm */
.searchform-wrapper.ux-search-box .ux-search-submit {
    background-color: var(--primary-color) ;
    /* Nền đỏ */
    color: #fff ;
    /* Icon màu trắng */
    border: none ;
    border-radius: 0 ;
    /* Phẳng để khớp với khung ngoài */
    height: 36px ;
    width: 50px ;
    padding: 0 ;
    margin: 0 ;
    transition: background-color 0.3s ease;
}
#header .header-search-form{
    width: 80%;
    height: 36px;
}
/* Hiệu ứng khi di chuột vào nút tìm kiếm */
.searchform-wrapper.ux-search-box .ux-search-submit:hover {
    background-color: #ed1b24 ;
    /* Đỏ đậm hơn khi hover */
}

/* Căn chỉnh lại icon tìm kiếm */
.searchform-wrapper.ux-search-box .ux-search-submit i {
    font-size: 1.2em;
    font-weight: bold;
}

.amlab_dichvu .box-service-home h3 {
    font-size: 16px;
    font-weight: 600;
    color: #00285f;
}




/* ============== FOOTER ============== */

/* Footer chính - nền xanh */
.amlab_footer {
    background-color: #24478b ;
    color: #fff;
}

.amlab_footer .section-bg {
    background-color: #24478b ;
}

/* Tiêu đề footer */
.amlab_footer .ft_tt h3 {
    color: #fff ;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.4;
}
#footer p,
#footer h4{
    margin-bottom: 0;
}

/* Text nội dung footer */
.amlab_footer .text_md,
.amlab_footer .text_md p,
.amlab_footer p,
.amlab_footer .col-inner {
    color: #fff ;
    font-size: 14px;
    line-height: 1.8;
}

/* Link menu footer (Hỗ trợ khách hàng) */
.amlab_footer .ux-menu-link__link{
    border-bottom: 0;
}
.amlab_footer .ux-menu-link__text {
    color: #fff ;
    font-size: 14px;
    transition: all 0.3s ease;
}

.amlab_footer .ux-menu-link__link:hover .ux-menu-link__text {
    color: #ffde17 ;
    padding-left: 10px;
}

/* Divider menu footer */
.amlab_footer .ux-menu.ux-menu--divider-solid .ux-menu-link {
    border-color: rgba(255, 255, 255, 0.2) ;
}

/* Văn phòng h6 */
.amlab_footer h6 {
    color: #fff ;
    font-weight: 700;
    font-size: 15px;
}

/* Đường kẻ ngang */
.amlab_footer hr,
.amlab_footer .is-divider {
    border-color: rgba(255, 255, 255, 0.3) ;
}

#footer .ft_bt{
    background: #ed1b24;
    align-items: center;
    min-height: 50px;
}
#footer .col{
    padding-bottom: 0 !important;
}
#footer .ft_bt .col{
    align-content: center;
}
#footer .ft_bt *{
    color: #fff;
}
/* === Copyright bar cuối cùng === */
.absolute-footer {
    display: none;
}

/* bottom header */
#wide-nav{
    background: #24478b;
}
#wide-nav .flex-center{
    justify-content: start;
    margin-left: 0;
}
#wide-nav .flex-center .header-nav>li.menu-item{
    margin-right: 0 !important;
    margin-left: 0 !important;
}
#wide-nav .flex-center .header-nav > li.menu-item.active,
#wide-nav .flex-center .header-nav>li.menu-item:hover{
    background-color: rgb(237, 27, 36);
}
#wide-nav .header-nav>li.menu-item a{
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    line-height: 46px;
    padding: 0px 15px;
    font-weight: 500;
}
#wide-nav .header-nav > li.menu-item:first-child > a::before,
#wide-nav .header-nav > li.menu-item:first-child > a:hover::before {
    content: "\f015";
    font-family: "FontAwesome" !important;
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
    z-index: 10;
}
/* trang chủ */
/* amlab banner */
.amlab_banner .flickity-page-dots {
    bottom: 15px;
}

.amlab_banner .flickity-page-dots .dot {
    width: 25px;
    height: 15px;
    border-radius: 30px;
    background: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0 5px;
    border: none    ;
}

.amlab_banner .flickity-page-dots .dot.is-selected {
    background: #869791;
    opacity: 1;
}

.amlab_blogs .col,
.section_lists_blog .col{
    padding-bottom: 0 !important;
}
.post-item .is-divider{
    display: none;
}
.post-item .post-title a.plain{
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.post-item .post-title a.plain:hover{
    color: #ed1b24;
}
.section_lists_blog .post-item .box-image{
    border: solid 1px #cbcbcb;
    padding: 3px;
    background-color: #fff;
    display: block;
    box-shadow: 0 8px 6px -6px black;
    transition: 0.3s;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.amlab_blogs .post-item .box-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.amlab_blogs .post-item .box-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: #ff0000;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.amlab_blogs .post-item .box-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(3px);
    width: 18px;
    height: 18px;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.amlab_blogs .post-item:hover .box-image::before,
.amlab_blogs .post-item:hover .box-image::after {
    opacity: 1;
}
.section_lists_blog .section-content > .row:first-child{
    border: 1px solid #c8c8c8;
    max-width: 1140px;
    height: 40px;
    margin-bottom: 20px;
}
.section_lists_blog .section-content>.row:first-child .col:first-child{
    padding-left: 0px;
}
.section_lists_blog .section-content>.row:first-child .col:last-child{
    /* align-items: center; */
    align-content: center;
}
.section_lists_blog .section-content>.row:first-child p{
    margin-bottom: 0;
}
.section_lists_blog{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.amlab_blogs .row .large-6:first-child .post-item .image-cover{
    padding-top: 68% !important;
}
.sc_blog_desc *{
    margin-bottom: 5px;
    color: #000;
}  
.sc_home_footer .title-section-post-index {
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
    padding-bottom: 4px;
    position: relative;
}
.title-section-post-index h4 {
    display: inline;
    padding-bottom: 10px;
    border-bottom: 2px solid #ed1b24;
}
.sc_home_footer .post-item .box-text{
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 15px;
    padding-right: 15px;
}
.sc_home_footer .post-item .image-cover{
    padding-top: 100% !important;
    /* border: 1px solid #ccc; */
}
.sc_home_footer .post-item .col-inner{
    box-shadow: none;

}
.sc_home_footer .post-item .post-title a.plain{
    font-size: 14px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sc_home_footer .post-item .from_the_blog_excerpt{
    font-size: 14px;
}

.amlab_list_brands .section-content .row{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}
.amlab_list_brands .section-content .row.is-dragging {
    cursor: grabbing;
}
.amlab_list_brands .section-content .row::-webkit-scrollbar {
    display: none;
}
.amlab_list_brands .section-content .row {
    display: flex;
    flex-wrap: nowrap;
    border: 1px solid #ccc;
}
.amlab_list_brands .row > .col.large-12 {
    flex: 0 0 calc(100% / 6);
    width: calc(100% / 6);
    max-width: calc(100% / 6);
}

.header-nav .menu-item .sub-menu{
    box-shadow: none;
    padding: 0 !important;
    background-color: #ed1b24;
    border:none;
    min-width: 240px;
}

.header-nav .menu-item .sub-menu .menu-item a{
    color: #fff;
    line-height: 30px;
    font-size: 14px;
    padding: 0px;
    text-transform: capitalize;
    border-bottom: 0px !important;
}
.header-nav .menu-item .sub-menu .menu-item:hover{
    background-color: rgba(0, 0, 0, 0.2);
}
.header-nav .menu-item:hover .sub-menu{
    left: 0;
}
.header-nav>.menu-item.has-dropdown::after{
    display: none;
}
/*                          Trang liên hệ                        */
/* Tổng thể form */
.contact-form-custom {
    max-width: 600px;
    margin: 0 auto;
}

/* Các ô nhập liệu */
.contact-form-custom .form-group {
    margin-bottom: 15px;
}

.contact-form-custom input[type="text"],
.contact-form-custom input[type="email"],
.contact-form-custom input[type="tel"],
.contact-form-custom textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 0px;
    /* Để vuông vức giống ảnh */
    font-size: 16px;
    color: #666;
    box-sizing: border-box;
}

/* Riêng ô nội dung */
.contact-form-custom textarea {
    height: 150px;
    resize: vertical;
}

/* Dòng chữ Tối đa 140 ký tự */
.contact-form-custom .char-limit {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Nút Gửi */
.contact-form-custom .form-submit {
    text-align: right;
    /* Đẩy nút sang bên phải */
}

.contact-form-custom input[type="submit"] {
    background-color: #337ab7;
    /* Màu xanh giống trong ảnh */
    color: white;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.contact-form-custom input[type="submit"]:hover {
    background-color: #286090;
}



/* breadcrumb */
.amlab_breadcrumb_custom{
    background: whitesmoke;
    border-bottom: 1px solid #ccc;
    padding: 0 !important;
    
}
.amlab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    max-width: 1140px;
    height: 100%;
    margin: 0 auto;
    border-left: 1px solid #ed1b24;
    padding: 0 15px;
}

.amlab-breadcrumb a {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.amlab-breadcrumb .amlab-bc-sep {
    color: #000;
    float: left;
    background: url(assets/images/g8.gif) no-repeat left center;
    padding-left: 15px;
    padding-right: 10px;
    font-weight: bold;
    height: 30px;
    line-height: 30px;
}

.amlab-breadcrumb span {
    color: #000;
    font-size: 14px;
    font-weight: 700;
}
.amlab-breadcrumb .ic-house::before{
    content: "\f015";
    font-family: "FontAwesome" !important;
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
    z-index: 10;
}




.sidebar_title {
    line-height: 36px;
    overflow: hidden;
    padding-left: 15px;
    color: #fff;
    font-weight: bold;
    background-color: #ef4136;
    border-left: solid 3px #231f20;
}
.sidebar_title h3 {
    font-size: 14px;
    line-height: 1;
    color: #fff;
    /* font-family: "Roboto", sans-serif; */
    margin: 15px 0px;
    font-weight: bold;
    text-transform: uppercase;
}
.sidebar_menu,
.amlab_duan_moi{
    padding: 0 0 15px 0;
}
.sidebar_menu .ux-menu .menu-item {
    font-weight: bold;
    background: url(assets/images/f.gif) no-repeat 10px center, url(assets/images/g.gif) no-repeat 235px center;
}
.sidebar_menu .ux-menu .menu-item a {
    padding: 10px 30px;
    border: 1px solid #ccc;
    display: block;
    border-top: none;
    font-size: 13px;
    color: #000;
}
.amlab_duan_moi>.col-inner .row{
    padding: 0 8px;
    margin: 0px;
    border: 1px solid #ccc;
}
.amlab_duan_moi .post-item .col-inner:not(:last-child){
    border-bottom: 1px solid #ccc;
}
.amlab_duan_moi .post-item{
    padding: 10px 0;
}

.amlab-cat-info-box .amlab-cat-title{
    border: 1px solid #f1f1f1;
    padding: 15px;
    background: #f1f1f1;
    border-left: 2px solid red;
    margin: 0px;
    font-size: 24px;
    font-weight: 600;
    color: #000;
}
.archive .large-9{
    padding: 0 10px;
}
.archive .amlab-cat-desc p{
    margin-bottom: 5px;
    font-size: 15px;
    color: #333333 !important;
}
.archive .amlab-cat-desc h2{
    font-size: 20px;
    font-weight: 600;
    color: #000;
}
.archive .amlab-cat-desc *{
    color: #000;
}
.archive #post-list{
    margin-top: 30px;
}
.archive #post-list .post-item .from_the_blog_excerpt{
    display: none;
}
.amlab-cate-custom{
    padding-top: 30px;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .amlab_blogs .post-item .box-image::before {
        width: 30px;
        height: 30px;
    }
    .amlab_blogs .post-item .box-image::after {
        width: 11px;
        height: 11px;
    }

    #header-contact .hotline-number {
        font-size: 16px ;
    }

    .searchform-wrapper.ux-search-box .flex-row {
        border-width: 1.5px;
    }

    .searchform-wrapper.ux-search-box .search-field,
    .searchform-wrapper.ux-search-box .ux-search-submit {
        height: 32px ;
    }

}

/* ========================================= */
/* CSS CHO SIDEBAR DANH MỤC                  */
/* ========================================= */
