/*
    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 ***************/

@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');

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; */
    top: -20px;
    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-wrapper.stuck #masthead{
    display: none;
}
#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 !important ;
    font-weight: 700;
    font-size: 14px;
    text-transform: capitalize;
}

/* Đườ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 .container{
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}
#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: 36px;
    padding: 0px 15px;
    font-weight: 500;
}
#wide-nav .header-nav>li.menu-item .sub-menu{
    border: 1px solid #ffd000;
}
#wide-nav .header-nav>li.menu-item .sub-menu a{
    line-height: 1.2;
    min-height: 32px;
    padding: 5px 15px;
    align-self: center;
    align-content: center;
    font-size: 12px;
}
#wide-nav .header-nav > li.menu-item:first-child > a::before,
#wide-nav .header-nav > li.menu-item:first-child:hover > a::before,
#wide-nav .header-nav > li.menu-item:first-child > a:hover::before,
#wide-nav .header-nav > li.menu-item:first-child.active > a::before {
    content: "\f015" !important;
    font-family: "FontAwesome" !important;
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
    z-index: 10;
    color: #fff !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* 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;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.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 {
    position: relative;
}
.header-nav .menu-item .sub-menu{
    box-shadow: none;
    padding: 0 !important;
    background-color: #ed1b24;
    border:none;
    min-width: 240px;
    position: absolute;
    top: 100%;
    left: 0;
}

.header-nav .menu-item .sub-menu .menu-item a{
    color: #fff;
    line-height: 30px;
    font-size: 14px;
    padding: 0px 15px; /* Add some padding so text isn't stuck to the edge */
    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{
    display: block; /* Ensure it shows, Flatsome might handle this but just in case */
    left: 0; /* Align left */
}
.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: 1170px;
    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,
.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;
}
.title-news{
    margin-top: 20px;
}
.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;
}

/* === Giao diện list bài viết Tin tức Custom === */
.amlab-news-custom-grid {
    margin-top: 15px;
}
.amlab-news-custom-grid .col {
    padding-bottom: 20px;
}
.amlab-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: box-shadow 0.3s;
}
.amlab-news-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.news-card-image {
    position: relative;
    width: 100%;
    padding-top: 66%; /* 3:2 ratio */
    overflow: hidden;
}
.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.amlab-news-card:hover .news-card-image img {
    transform: scale(1.05); /* Zoom in một xíu khi hover ảnh giống gốc */
}
.news-card-content {
    padding: 8px;
    flex-grow: 1; /* Stretch to push the button down */
    text-align: center; /* Center everything */
    background: #fff;
}
.news-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-transform: none; 
}
.news-card-title a {
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a:hover {
    color: #ed1b24; 
}
.news-card-divider {
    width: 30px;
    height: 2px;
    background-color: #ed1b24; 
    margin: 10px auto; 
}
.news-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-readmore {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #f5f5f5; /* Xám nhạt giống mẫu */
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
    /* padding: 12px 0; */
    text-transform: none;
    transition: background-color 0.3s, color 0.3s;
    border-top: 1px solid #eee;
}
.amlab-news-card:hover{
    border: 1px solid #ffd000;
}
.amlab-news-card:hover .news-card-readmore {
    background-color: #ffd000; /* Vàng */
    color: #c8141c;
}
.archive-page-header{
    display: none;
}
.single-post .article-inner .entry-header{
    margin-top: 20px;
}
.single-post .article-inner .entry-header-text,
.related-header{
    padding: 0 15px;
    border: 1px solid #f1f1f1;
    padding: 15px;
    background: #f1f1f1;
    border-left: 2px solid red;
}
.single-post .article-inner .entry-header-text .entry-divider{
    display: none;
}
.single-post .article-inner .entry-header-text h1,
.related-header h1{
    margin: 0px;
    font-size: 24px;
    font-weight: 600;
    text-align: left;
    color: #000;
}
.post-sidebar ~.large-9{
    padding: 0 15px;
}
.entry-content *{
    color: #000;
}
.entry-content p{
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
}
#ez-toc-container{
    width: 100%;

}
#ez-toc-container .ez-toc-link{
    font-size: 16px;
    color: #000;
    line-height: 1.4;
    font-weight: 600;
}
#ez-toc-container .ez-toc-heading-1{
    font-size: 18px;
    font-weight: 700;
    color: #ed1b24;
}

.related-header{
    margin-bottom: 20px;
}

/* === Layout Dự Án - Gallery kiểu Product === */
.amlab-duan-layout {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 0;
}
/* Main slider */
.amlab-main-slider {
    border: 1px solid #ddd;
    overflow: hidden;
    margin-bottom: 10px;
}
.amlab-main-slide {
    width: 100% !important;
}
.amlab-main-slide img {
    aspect-ratio: 16 / 9;
    width: 100% !important;
    height: auto !important;
    display: block;
}
.amlab-main-slider .flickity-prev-next-button {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
}
.amlab-main-slider .flickity-prev-next-button:hover {
    background: rgba(0,0,0,0.7);
}
.amlab-main-slider .flickity-prev-next-button .flickity-button-icon {
    fill: #fff;
}
/* Thumb slider */
.amlab-thumb-slider {
    position: relative;
}
.amlab-thumb-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.amlab-thumb-slider .flickity-slider .amlab-duan-thumb {
    width: calc(20% - 7px) !important;
    aspect-ratio: 1;
    border: 2px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s;
    box-sizing: border-box;
    margin-right: 8px;
}
.amlab-thumb-slider .flickity-slider .amlab-duan-thumb.is-selected{
    border: 2px solid #ed1b24;

}
/* .amlab-duan-thumb.active,
.amlab-duan-thumb:hover,
.amlab-duan-thumb.is-selected,
.amlab-duan-thumb.is-nav-selected,
.amlab-duan-thumb.is-active {
    border-color: #ed1b24;
} */
.amlab-duan-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
.amlab-duan-info {
    padding: 0 10px;
}
.amlab-duan-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ed1b24;
}
.amlab-duan-content-short {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}
.amlab-duan-content-short p {
    margin-bottom: 8px;
}
.amlab-duan-content-short img {
    display: none;
}
.amlab-duan-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.amlab-btn-contact,
.amlab-btn-hotline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
}
.amlab-btn-contact {
    background-color: #28a745;
    color: #fff !important;
}
.amlab-btn-contact:hover {
    background-color: #218838;
}
.amlab-btn-hotline {
    background-color: #ed1b24;
    color: #fff !important;
}
.amlab-btn-hotline:hover {
    background-color: #c8141c;
}
.amlab-duan-grid {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.amlab-duan-grid .col {
    padding: 5px;
}
.amlab-duan-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.amlab-duan-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.single-post #content{
    padding-top: 0px;
}
.single-post #content>.row{
    padding-top: 30px;
}

.amlab-duan-info-col{
    padding: 0px 10px !important;
}
.amlab-duan-gallery-col{
    border: 1px solid #ccc;
    padding: 10px !important;
}
/* === Popup Liên hệ Dự án === */
.amlab-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amlab-popup-box {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 6px;
    position: relative;
    /* overflow: hidden; */
    animation: amlab-slide-down 0.35s ease-out;
}
@keyframes amlab-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.amlab-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ed1b24;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin: 0 !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}
.amlab-popup-close span {
    font-size: 24px;
    line-height: 1;
    display: block;
}
.amlab-popup-close:hover {
    background: #c8141c;
}
.amlab-popup-inner {
    display: flex;
    gap: 0;
    overflow: hidden;
}
.amlab-popup-right .wpcf7-form p {
    margin-bottom: 6px;
}
.amlab-popup-right .wpcf7-form textarea {
    height: 80px;
}
.amlab-popup-left {
    flex: 0 0 35%;
    max-width: 35%;
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 6px 0 0 6px;
    height: 100%;
}
.amlab-popup-left img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}
.amlab-popup-left h3 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
}
.amlab-popup-right {
    flex: 0 0 65%;
    max-width: 65%;
    padding: 20px;
}
/* Form dự án trong popup */
.amlab-form-duan label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 3px;
}
.amlab-form-duan p {
    margin-bottom: 8px;
}
/* 2 cột: Tên + SĐT */
.amlab-form-duan .row {
    display: flex;
    gap: 15px;
    margin: 0;
}
.amlab-form-duan .row .col.span-6 {
    flex: 0 0 calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
    padding: 0;
}
.amlab-form-duan .row .col {
    flex: 1;
    padding: 0;
    text-align: center;
}
/* Input & Textarea */
.amlab-form-duan input[type="text"],
.amlab-form-duan input[type="email"],
.amlab-form-duan input[type="tel"],
.amlab-form-duan input[type="url"],
.amlab-form-duan textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
}
.amlab-form-duan textarea {
    height: 100px;
    resize: vertical;
}
/* Input readonly */
.amlab-form-duan input[readonly] {
    background: #f5f5f5;
    color: #666;
}
/* Nút Gửi + Thoát */
.amlab-form-duan input[type="submit"] {
    background: #24478b;
    color: #fff;
    border: none;
    padding: 0px 30px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 10px;
}
.amlab-form-duan input[type="submit"]:hover {
    background: #1a3566;
}
.amlab-form-duan .btn-thoat {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    padding: 0px 30px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}
.amlab-form-duan .btn-thoat:hover {
    background: #e0e0e0;
}
.amlab-popup-meta {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.amlab-popup-meta p {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}
.blog #post-list{
    margin-top: 30px;
}

.product-page-title{
    display: none;
}
.single-product .amlab_breadcrumb_custom{
    margin-top: 10px;
}
.single-product .product-info .product-title{
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 30px;
    color: #000;
}
.single-product .product-info .price .amount{
    font-size: 20px;
    font-weight: 600;
    color: #ed1b24;
}
.single-product .product-info .product_meta .posted_in{
    font-size: 16px;
    color: #000;
    font-weight: 500;
    border-top: none;
}

/* Chính sách đổi trả */
.amlab-chinh-sach {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-left: 3px solid #24478b;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.amlab-chinh-sach .amlab-cs-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-decoration: underline;
    margin: 0 0 10px;
}
.amlab-chinh-sach p {
    margin-bottom: 5px;
    font-size: 14px;
}
.amlab-chinh-sach .amlab-cs-note {
    margin-top: 10px;
    color: #555;
    font-style: italic;
}

/* Label Số lượng */
.amlab-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-right: 8px;
}

/* Trạng thái tồn kho - cùng dòng với quantity */
.amlab_stock_status {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.amlab_stock_in,
.amlab_stock_out {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}
.amlab_stock_in_text {
    color: #00973a;
}
.amlab_stock_out_text {
    color: #EC1D27;
}
.amlab_stock_in_icon,
.amlab_stock_out_icon {
    display: flex;
    align-items: center;
}

/* Layout form.cart */
.single-product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 15px;
}
/* Dòng 1: Số lượng + quantity + Còn hàng */
.single-product form.cart .amlab-qty-label,
.single-product form.cart .quantity,
.single-product form.cart .amlab_stock_status {
    flex: none;
}
/* Force xuống dòng sau Còn hàng */
.single-product form.cart .amlab_stock_status {
    margin-right: auto;
}
/* Dòng 2: 2 nút chiếm 100% width */
.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .amlab-buy-now-btn,
.single-product form.cart .ux-buy-now-button {
    flex: none;
}

.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .ux-buy-now-button{
    vertical-align: middle;
    float: left;
    border-radius: 24px 0;
    padding: 5px 25px;
    margin-right: 14px;
    opacity: 1;
    font-size: 13px;
    background: #333;
    text-transform: uppercase;
}


.archive.category #content{
    padding-top: 0px;
    padding-bottom: 0px;
}

.form-lienhe input,
.form-lienhe textarea{
    box-shadow: none;
    font-size: 14px;
    color: #000;
}
.form-lienhe input::placeholder,
.form-lienhe textarea::placeholder{
    color: #000;
}
.form-lienhe .form-submit{
    justify-self: end;
}
.form-lienhe .form-submit input{
    background: #24478b;
    color: #fff;
    border: none;
    padding: 0px 30px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

/* === CSS Tab "CHI TIẾT" bài viết Dự Án === */
.amlab-duan-tab-wrapper {
    margin-top: 0px;
    margin-bottom: 25px;
}
.amlab-duan-tab-head {
    display: inline-block;
    background-color: #ef4136;
    color: #fff;
    padding: 8px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}
.amlab-duan-tab-body {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
}

@media only screen and (max-width: 48em) {

    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    #header #masthead{
        display: block;
    }
    #header #wide-nav{
        background: #fff;
    }
    #header .header-search-form{
        height: auto;
    }
    #header .mobile-nav .icon-menu{
        color: #EC1D27;
    }
    .amlab_blogs .post-item .box-image::before {
        width: 30px;
        height: 30px;
    }
    .amlab_dichvu .box-service-home h3 {
        font-size: 12px;
    }
    .amlab_dichvu .large-4{
        padding-bottom: 0px;
    }
    .main_title h2 {
        text-align: center;
        height: 50px;
        font-size: 18px;
        background: url(assets/images/e.png) no-repeat center 30px;
    }
    .secondary_title h3{
        display: block;
        width: 100%;
        top: -20px;
    }
    .section_lists_blog .section-content>.row:first-child .col:first-child{
        padding: 0;
    }
    .post-item .post-title a.plain,
    .product-small .box-text .product-title a{
        font-size: 14px;
    }
    .amlab_blogs .post-item,
    .section_lists_blog .post-item{
        padding: 0 8px;
    }
    .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;
    }

    .amlab-duan-title {
        font-size: 18px;
    }
    .amlab-duan-thumb {
        width: 80px;
        height: 80px;
    }
    .amlab-duan-grid img {
        height: 120px;
    }
    .amlab-popup-inner {
        flex-direction: column;
    }
    .amlab-popup-left {
        flex: none;
        border-radius: 6px 6px 0 0;
    }
    .amlab-popup-box {
        width: 95%;
    }
    .amlab_cts .post-item .box{
        display: flex;
    }
    .amlab_cts .post-item .box .box-image{
        width: 45% !important;
    }
    .amlab_list_brands .row>.col.large-12 {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }
    .amlab_list_brands{
        padding-left: 15px;
        padding-right: 15px;
    }
    .archive.category .amlab_banner .flickity-page-dots{
        display: none;
    }
    .archive #post-list >.row{
        margin: 0 auto;
    }
    .post-sidebar{
        display: none;
    }
    .archive #post-list .post-item{
        width: 50%;
        max-width: 50%;
        padding: 0 8px;
    }
    .post-sidebar~.large-9{
        padding: 0 8px;
    }
    .archive .page-title-inner .woocommerce-result-count{
        display: block !important;
        font-size: 14px;
        width: 50%;
        align-items: center;
        align-content: center;
    }
    .archive .page-title-inner .woocommerce-ordering select{
        font-size: 14px;
    }
    .archive .page-title-inner .flex-col:nth-child(2){
        display: flex;
        justify-content: space-between;
    }
    #header .header-wrapper{
        border-bottom: 1px solid #ccc;
    }
    .blog #content{
        padding-top: 15px;
        padding-bottom: 0;
    }
    .blog #content .amlab-news-custom-grid{
        margin:  0 auto;
    }
    #post-list .amlab-news-custom-grid .col{
        width: 50%;
        max-width: 50%;
        padding: 0 8px;
    }
    .form-lienhe .form-submit{
        width: 100%;
        text-align: start;
    }
    .amlab-lienhe .col{
        padding-bottom: 0px;
    }
}

