/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/* == CUSTOM == */
body {font-family: Roboto, sans-serif; color:#333;font-size:16px;line-height:26px;}
a {color: #EA8F2E;}
p {margin-bottom: 0;}
p img {margin-bottom:10px;}
ul {margin-bottom: 15px;}
h2 { font-family: Roboto, sans-serif;font-size: 22px;line-height: 42px;font-weight: 700;}
h3 {font-family: Roboto, sans-serif;font-weight: 700;font-size: 20px;line-height: 32px;}
ul.checked-icon {list-style: none;padding-left: 5px;}
ul.checked-icon li:before {content: url(https://khomayviet.com/wp-content/uploads/2019/03/1180px-Checkmark_green.svg_.png);line-height: 32px;margin-right: 5px;}
table {background: #efefef;border-color: #fff;font-size:1em !important}
table tbody tr:first-child {font-weight: bold;text-transform: uppercase;border-bottom-color: #999;background: #bbb;}
table tbody tr:nth-child(2n) {background: #f5f5f5;}
/* Ép bảng giãn full màn hình */
table {width: 100% !important;max-width: 100% !important;}
/* Xóa chiều rộng/cao cố định của từng ô để chữ không bị bó hẹp */
table td, table th {width: auto !important;height: auto !important;white-space: normal !important; /* Cho phép xuống dòng nếu chữ dài */}

/* Add your custom styles here */
/* == HEADER == */
.topnav p {margin-bottom: 0 !important;}
.topnav .e-con-inner {padding: 4px 8px;}
.topnav span b {color:#EA8F2E;}
.topnav li.menu-item {border-left:1px solid #ddd;}
.topnav li.menu-item:first-child {border-left:0;}
.topnav li.menu-item:last-child a {padding-right:0 !important;}
.header-main {padding:10px 0 !important;}
.navbar .wpr-nav-menu .wpr-sub-menu {width:292px;margin-left: -10px;}
.navbar .wpr-nav-menu .wpr-sub-menu a.wpr-sub-menu-item {padding-left: 20px;}
.categories-nav .wpr-sub-icon {display:none;}
/* Mặc định ẩn sub-menu trên toàn site */
.main-navigation ul ul {display: none;}
/* Chỉ hiển thị sub-menu khi di chuột qua mục cha */
.main-navigation ul li:hover > ul {display: block;}
.rightnavbar li.menu-item {border-left:1px solid #fff;}
.rightnavbar li.menu-item:first-child {border-left:0;}
.rightnavbar li.menu-item:last-child a {padding-right:0 !important;}
.search-mobi {margin-bottom:0 !important;}

button:focus, button:hover {background-color: #EA8F2E !important;}

/* == FOOTER == */
/* Tạo khối tiêu đề ribbon */
#ribbon-footer {position: relative;display: inline-block;background: #EA8F2E; /* Màu cam logo */color: #fff;z-index: 1;text-decoration: underline;}
/* Tạo hình tam giác gập góc */
#ribbon-footer::before {content: ""; position: absolute; top: 0; /* left: 0; */ right: 100%; width: 7px; border-style: solid; border-width: 0 0 16px 10px; border-color: transparent transparent #b96913 transparent;}
#footer-menu .elementor-nav-menu--dropdown {
	background: none !important;
	display:none !important;
}
/* 1. Xóa định dạng danh sách mặc định */
#footer-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Định dạng từng dòng (List Item) */
#footer-menu ul li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15) !important; /* Đường kẻ ngang mờ dạng nét đứt */
    padding: 10px 0 !important; /* Khoảng cách trên dưới */
    position: relative !important;
}

/* Xóa đường kẻ ở dòng cuối cùng cho đẹp */
#footer-menu ul li:last-child {
    border-bottom: none !important;
}

/* 3. Định dạng thẻ Link (Chữ) */
#footer-menu ul li a {
    color: #ffffff !important; /* Màu chữ trắng (hoặc xám nhạt #dddddd) */
    text-decoration: none !important;
    font-size: 14px !important; /* Kích thước chữ */
    display: block !important;
    transition: all 0.3s ease !important; /* Hiệu ứng mượt mà */
    padding-left: 5px !important;
	padding:2px;
}

/* 4. Tạo icon mũi tên (>) bằng CSS trước mỗi dòng */
#footer-menu ul li a::before {
    content: "›" !important;
    font-size: 16px !important;
    line-height: 14px !important;
    /* margin-right: 20px !important; */
    color: #fff !important;
    font-weight: bold !important;
    display: inline-block;
    opacity: 1;
    background: none;
    position: relative;
    right: 5px;
}

/* 5. HIỆU ỨNG HOVER (Khi di chuột vào) */
#footer-menu ul li a:hover {
    color: #f39c12 !important; /* Chuyển sang màu Cam thương hiệu */
    padding-left: 8px !important; /* Trượt nhẹ sang phải */
}

/* Đổi màu mũi tên khi hover luôn cho đồng bộ */
#footer-menu ul li a:hover::before {
    color: #f39c12 !important;
}

/* == SINGLE PRODUCT ==*/
p.price {
	margin-bottom: 0;
}
.product_meta {
	display: grid !important;
}
/* =======================================================
   STYLE CHO SHORTCODE TAB DỌC (UPDATE: THẺ DIV)
   ======================================================= */

.devvn-stacked-tabs-wrapper {
    width: 100%;
    margin-top: 20px;
}

.devvn-tab-block {
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 20px;
}

.devvn-tab-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* STYLE CHO THẺ DIV TIÊU ĐỀ */
.devvn-tab-heading {
    font-size: 20px !important;    /* Đảm bảo chữ to */
    font-weight: 700 !important;   /* Đảm bảo chữ đậm */
    text-transform: uppercase;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
    display: block; /* Đảm bảo nó chiếm cả dòng */
}

/* Vạch màu cam bên trái */
.devvn-tab-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: #EA8F2E; /* Màu cam chủ đạo */
    border-radius: 2px;
}

.devvn-tab-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.devvn-tab-body #reviews #comments {
    padding: 0;
    margin: 0;
}
/* =======================================================
   STYLE NÚT GỌI MUA HÀNG (CUSTOM CALL BUTTON)
   ======================================================= */

.devvn-call-btn-wrapper {
    width: 100%;
}

.devvn-call-btn {
    display: block;
    width: 100%;
    background-color: #EA8F2E; /* Màu cam theo mẫu */
    color: #ffffff !important; /* Chữ trắng */
    text-align: center;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 1.4;
	font-family: 'Roboto';
}

/* Style cho số điện thoại (In đậm) */
.devvn-call-btn strong {
    font-weight: 700;
    font-size: 17px;
    margin-left: 3px;
}

/* Style cho icon túi xách */
.devvn-call-btn i {
    margin-right: 8px;
    font-size: 18px;
    position: relative;
    top: 1px;
}

/* Hiệu ứng khi di chuột vào */
.devvn-call-btn:hover {
    background-color: #d67a12; /* Màu cam đậm hơn khi hover */
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* =======================================================
   CUSTOM SALE BADGE V10.0: MÀU CAM THƯƠNG HIỆU (#EA8F2E)
   ======================================================= */

/* 1. Cấu hình chung cho nhãn (Style Tem Bo Góc) */
.woocommerce span.onsale {
    /* Reset kích thước để chữ không bị méo */
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    
    /* Căn chỉnh vị trí */
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    
    /* GIAO DIỆN TEM MÀU CAM */
    background-color: #EA8F2E !important; /* Màu cam chủ đạo */
    color: #ffffff !important; /* Chữ trắng */
    padding: 4px 8px !important; /* Khoảng cách chữ và viền */
    border-radius: 4px !important; /* Bo góc hiện đại */
    
    /* Font chữ */
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    
    /* Hiển thị */
    display: inline-block !important;
    z-index: 9;
    box-shadow: none !important;
    position: absolute;
}

/* 2. Tinh chỉnh cho TRANG CHI TIẾT SẢN PHẨM (To hơn một chút) */
.single-product .product-images span.onsale,
.single-product .woocommerce-product-gallery span.onsale {
    font-size: 14px !important;
    padding: 6px 12px !important;
    top: 15px !important;
    left: 15px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 6px rgba(234, 143, 46, 0.3) !important; /* Bóng đổ màu cam nhẹ */
}

/* 3. Tinh chỉnh cho MENU SẢN PHẨM & MOBILE (Nhỏ gọn) */
ul.products li.product span.onsale,
.elementor-widget-woocommerce-products span.onsale,
.related.products span.onsale {
    font-size: 11px !important;
    padding: 3px 6px !important;
    top: 8px !important;
    left: 8px !important;
}

/* Xử lý lỗi hình ảnh bị đè (nếu có) */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative; 
    display: block;
}

/* =======================================================
   STYLE WIDGET: DẤU CỘNG/TRỪ (TEXT THUẦN)
   ======================================================= */

/* 2. STYLE CHO DẤU CỘNG/TRỪ CỦA BẠN */
.widget-toggle-icon {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;        /* Chiều rộng vùng bấm */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;    /* Kích thước dấu cộng/trừ (To rõ) */
    font-weight: 300;   /* Độ mảnh của nét chữ */
    color: #999;        /* Màu xám mặc định */
    line-height: 1;
    font-family: Arial, sans-serif; /* Dùng font cơ bản để dấu + - hiển thị đẹp nhất */
}

/* Khi hover vào tiêu đề -> Đổi màu cam */
.widget-title:hover .widget-toggle-icon {
    color: #EA8F2E;
}

/* Khi đóng lại (thành dấu cộng) thì cho đậm hơn 1 chút nếu muốn */
.widget-toggle-icon.is-plus {
    font-weight: 400;
}
/* 1. Khung Widget & Tiêu đề */
h2.widget-title {
    color: #313131 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 28px;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
	margin-bottom: 20px !important;
}
section.widget {
    border-bottom: 1px solid #efefef;
    margin-bottom: 0;
    margin-top: 0;
    padding: 20px;
	font-family: 'Roboto';
}
section.widget ul.checked-icon li {
	font-size: 15px;
}

/* === CATEGORIES WIDGET === */

/* 2. Cấu trúc Danh sách (Fix lỗi vỡ layout & Cho phép thu gọn) */
.widget_product_categories > ul { display: block; padding:0 !important; margin: 0 !important; width: 100%; }
.widget_product_categories li { display: block !important; float: none !important; width: 100% !important; position: relative !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }

/* 3. Style Danh mục CHA (Cấp 1) */
.widget_product_categories > ul > li > a {display: block !important;
    padding: 4px 0px !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 26px;
    text-decoration: none !important;
    transition: all 0.2s;}

/* 4. Style Danh mục CON (Cấp 2) & Dấu vuông */
.widget_product_categories ul.children { 
	display:none;
	list-style: square;
    text-transform: none;
    padding-bottom: 10px;
    font-weight: 400; padding-left: 15px;}
.widget_product_categories ul.children li a { font-size: 16px !important;
    line-height: 26px;
    color: #333 !important;
    position: relative !important;
    text-decoration: none;
    display: block;
    padding: 4px 0;}
.widget_product_categories ul.children li a::before { content: "▪";
    font-size: 15px;
    color: #ccc !important;
    position: absolute;
    left: -15px;
    top: 10px;
    line-height: 1; }

/* 5. Nút Mũi tên (Toggle) */
.cat-toggle { position: absolute !important; top: -5px !important; right: -7px !important; width: 45px !important; height: 45px !important; display: flex !important; align-items: center; justify-content: center; cursor: pointer !important; z-index: 10 !important; }
.cat-toggle i { color: #aaa; font-size: 12px !important; transition: transform 0.3s; }
.cat-toggle.open i { transform: rotate(180deg); color: #d71a21 !important; }

/* 6. Màu sắc Active & Hover (Màu đỏ thương hiệu) */
.widget_product_categories a:hover,
.widget_product_categories li.current-cat > a,
.widget_product_categories li.current-cat-parent > a { color: #d71a21 !important; }
/* Danh mục CON đang Active: Đậm + Đỏ */
.widget_product_categories ul.children li.current-cat > a { font-weight: 700 !important; }
.widget_product_categories ul.children li a:hover::before,
.widget_product_categories ul.children li.current-cat > a::before { color: #d71a21 !important; }

/* =======================================================
   FIX LỖI GIAO DIỆN CATEGORY BÀI VIẾT (FINAL)
   Target trực tiếp vào ID #categories-3 để ghi đè theme
   ======================================================= */
#sidebar .widget {
	padding: 15px;
	border-bottom: 1px solid #ddd;
	padding-top: 0;
	margin-bottom: 15px !important;
}
#sidebar .widget:last-child {
	border-bottom: none;
}
/* 1. Xóa toàn bộ khung viền và màu nền của Widget cha */
#categories-3, 
.widget_categories {
    background: transparent !important;
    box-shadow: none !important;
	
}

/* 2. Chỉnh lại Tiêu đề (Danh mục chính) */
#sidebar .widget-title,
.widget_categories .widget-title {
    font-size: 18px !important; /* Cỡ chữ tiêu đề */
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #333;
    border: none !important; /* Xóa viền bao quanh tiêu đề cũ */
    margin-bottom: 0px !important;
    padding: 10px 0 !important;
    background: transparent !important;
}

/* 3. Xóa dấu chấm (bullets) và căn lề danh sách */
#categories-3 ul,
.widget_categories ul {
    list-style: none !important; /* Xóa dấu chấm đen */
    margin: 0 !important;
    padding: 0 !important;
}

#categories-3 li,
.widget_categories li {
    list-style-type: none !important; /* Xóa dấu chấm đen cấp 2 */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 20px;
    position: relative; /* Để định vị mũi tên */
}

/* Xóa gạch chân ở mục cuối cùng */
#categories-3 li:last-child {
    border-bottom: none !important;
}

/* 4. Style cho Link (Chữ danh mục) */
#categories-3 a,
.widget_categories a {
    display: block;
    padding: 8px 0 !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: 500; /* Chữ thường, không đậm quá */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 5. Hiệu ứng Hover và Active (Màu đỏ) */
#categories-3 a:hover,
#categories-3 li.current-cat > a,
#categories-3 li.current-cat-parent > a {
    color: #d71a21 !important; /* Màu đỏ */
    font-weight: 600 !important;
}

/* 6. Danh mục CON (Sub-menu) */
#categories-3 ul.children {
    display: none; /* Ẩn mặc định, JS sẽ mở */
    padding-left: 15px !important;
    background-color: transparent !important;
    border-top: none !important;
}

#categories-3 ul.children li {
    border-bottom: none !important; /* Con không cần gạch chân */
}

#categories-3 ul.children li a {
    font-size: 16px !important;
    color: #333 !important;
    padding-left: 15px !important; /* Chừa chỗ cho dấu vuông */
    position: relative;
	font-weight: 400; /* Chữ thường, không đậm quá */
}

/* Dấu vuông nhỏ trước danh mục con */
#categories-3 ul.children li a::before {
    content: "▪";
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 15px;
    color: #333;
    line-height: 1;
}

/* Hover con đổi màu dấu vuông */
#categories-3 ul.children li a:hover::before,
#categories-3 ul.children li.current-cat > a::before {
    color: #d71a21 !important;
}

/* 7. MŨI TÊN (TOGGLE) - Do JS tạo ra */
.blog-cat-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px; /* Chiều cao bằng dòng */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.blog-cat-toggle i {
    font-size: 12px;
    color: #aaa;
    transition: transform 0.3s;
}
.blog-cat-toggle.open i {
    transform: rotate(180deg);
    color: #d71a21;
}

/* --- ÉP WIDGET ELEMENTOR POSTS (CARDS) HIỂN THỊ NGANG --- */
.elementor-post__card .elementor-post__text {
	margin-top: 0 !important;
}
/* Chỉ áp dụng cho Tablet và Desktop (trên 768px) */
@media (min-width: 768px) {
    .elementor-posts .elementor-post__card .elementor-post__read-more {
		margin-bottom: 0 !important;
	}
	
    /* 1. Biến thẻ Card thành hàng ngang (Flexbox) */
    .elementor-post__card {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start;
        gap: 10px; /* Khoảng cách giữa ảnh và chữ */
        border: none !important; /* Bỏ viền bao quanh nếu có */
        box-shadow: none !important; /* Bỏ đổ bóng mặc định cho gọn */
        background: transparent !important;
    }

    /* 2. Cố định khung ảnh bên trái */
    .elementor-post__thumbnail__link {
        flex: 0 0 35% !important; /* Ảnh chiếm 35% chiều rộng */
        width: 35% !important;
        margin-bottom: 0 !important; /* Xóa khoảng trống dưới ảnh */
        overflow: hidden;
        border-radius: 8px; /* Bo góc ảnh */
    }

    /* 3. Chỉnh ảnh bên trong cho vừa khung */
    .elementor-post__thumbnail__link img {
        width: 100% !important;
        height: 200px !important; /* Chiều cao cố định */
        object-fit: cover !important; /* Cắt ảnh tự động không bị méo */
    }

    /* 4. Phần nội dung chữ bên phải */
    .elementor-post__text {
        flex: 1 !important; /* Chiếm phần còn lại */
        padding: 0 0 0 10px !important; /* Căn lề một chút */
        text-align: left !important;
    }

    /* 5. Chỉnh lại tiêu đề */
    .elementor-post__title {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    /* 6. Chỉnh lại phần trích dẫn (Excerpt) */
    .elementor-post__excerpt {
        margin-bottom: 10px !important;
        display: block; 
    }
}

/* Tinh chỉnh cho Mobile (Dưới 767px) vẫn hiện dọc nhưng đẹp hơn */
@media (max-width: 767px) {
    .elementor-post__card {
        margin-bottom: 30px !important;
    }
    .elementor-post__thumbnail__link img {
        height: auto !important; /* Mobile để ảnh tự nhiên */
    }
}

/* 1. Thiết kế khung cho thẻ Tag (giống hình ảnh bạn gửi) */
.tagcloud a {
    display: inline-block;          /* Để thẻ hiển thị dạng khối ngang */
    background-color: #fff;         /* Nền trắng */
    border: 1px solid #e1e1e1;      /* Viền xám nhạt */
    border-radius: 4px;             /* Bo góc nhẹ (4px) */
    padding: 6px 12px;              /* Khoảng cách nội dung bên trong */
    margin: 0 8px 8px 0;            /* Khoảng cách giữa các thẻ */
    color: #444;                    /* Màu chữ xám đen mặc định */
    text-decoration: none !important; /* Bỏ gạch chân */
    font-size: 14px;                /* Kích thước chữ */
    line-height: 1.4;
    transition: all 0.2s ease;      /* Hiệu ứng chuyển màu mượt mà */
}

/* 2. Hiệu ứng khi di chuột vào (Hover) */
.tagcloud a:hover {
    border-color: #0073aa;          /* Đổi viền sang màu xanh (giống tag 100HP trong hình) */
    color: #0073aa;                 /* Đổi chữ sang màu xanh */
    background-color: #f9f9f9;      /* Nền hơi xám nhẹ để nổi bật */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Đổ bóng nhẹ cho đẹp */
}

/* 3. Chỉnh lại kích thước chữ đồng đều (Optional) */
/* Mặc định WP hay để tag to tag nhỏ, đoạn này ép tất cả về 1 cỡ cho đều đẹp như hình */
.tagcloud a {
    font-size: 14px !important;
}

/* Tạo đường kẻ ngang cho tiêu đề sản phẩm */
#heading-product-box {
    display: flex;
    align-items: center; /* Căn giữa đường kẻ theo chiều dọc của chữ */
    width: 100%;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
#heading-product-box::after {
    content: "";
    flex: 1; /* Để đường kẻ chiếm hết khoảng không gian còn lại bên phải */
    height: 1px; /* Độ dày của đường kẻ mảnh */
    background: #ccc; /* Màu xám nhạt cho đường kẻ */
    margin-left: 15px; /* Khoảng cách giữa chữ và đường kẻ */
}
#heading-content-box {
	display:flex;
    align-items: center; /* Căn giữa đường kẻ theo chiều dọc của chữ */
    width: 100%;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
#heading-content-box::after {
    content: "";
    flex: 1; /* Để đường kẻ chiếm hết khoảng không gian còn lại bên phải */
    height: 1px; /* Độ dày của đường kẻ mảnh */
    background: #ccc; /* Màu xám nhạt cho đường kẻ */
    margin-left: 15px; /* Khoảng cách giữa chữ và đường kẻ */
}
#heading-content-box::before {
    content: "";
    flex: 1; /* Để đường kẻ chiếm hết khoảng không gian còn lại bên phải */
    height: 1px; /* Độ dày của đường kẻ mảnh */
    background: #ccc; /* Màu xám nhạt cho đường kẻ */
    margin-right: 15px; /* Khoảng cách giữa chữ và đường kẻ */
}

/* Chống nhấp nháy và ép menu hiện ngay lập tức */
.wpr-nav-menu-horizontal .sub-menu.wpr-sub-menu {
    transition: none !important; /* Tắt mọi hiệu ứng chuyển động gây nháy */
    opacity: 1 !important; /* Ép độ hiển thị rõ nét 100% */
    visibility: visible !important;
    display: none; /* Mặc định ẩn */
}
/* Chỉ hiện khi hover và không nhấp nháy */
.wpr-nav-menu-horizontal .menu-item:hover > .sub-menu.wpr-sub-menu {
    display: block !important;
    animation: none !important; /* Tắt các hiệu ứng animation của Royal Addons */
}

/* Tạo lớp đệm tàng hình để không bị mất menu khi rê chuột */
.wpr-nav-menu-horizontal .menu-item-has-children {
    position: relative;
    padding-bottom: 15px !important; /* Tạo vùng đệm 15px phía dưới menu cha */
    margin-bottom: -15px !important; /* Bù trừ lại để không làm lệch giao diện */
}

/* Đảm bảo sub-menu hiển thị mượt mà và không nhấp nháy */
.wpr-sub-menu {
    top: 100% !important; 
    margin-top: 0px !important; /* Khoảng cách hiển thị đẹp mắt */
    opacity: 1 !important;
    transition: all 0.3s ease-in-out !important;
}

/* Hiệu ứng hiển thị khi hover */
.wpr-nav-menu-horizontal .menu-item-has-children:hover > .wpr-sub-menu {
    display: block !important;
    visibility: visible !important;
}

/* == TRANG CHỦ == */



/* == TABLET AND MOBILE ==*/
@media screen and (max-width: 1024px) {
	
}
/* == MOBILE ==*/
@media screen and (max-width: 767px) {
	.header-main {padding:0 !important;}
	.header-mobile {box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);}

/* Ẩn khung tìm kiếm lúc ban đầu */
.an-luc-dau {
    display: none !important;
}

/* Hiệu ứng hiện ra mượt mà */
.hien-ra {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}
.an-luc-dau.hien-ra {background:#f4f4f4;}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
}

/* == DANH MỤC SẢN PHẨM == */

/* --- ĐỒNG BỘ STYLE TRANG DANH MỤC WOOCOMMERCE --- */
/* 1. Ẩn nút Thêm vào giỏ hàng trên toàn trang */
.woocommerce ul.products li.product .button.add_to_cart_button {
    display: none !important;
}
/* Ẩn nút Đọc tiếp cho các sản phẩm không có giá */
.woocommerce ul.products li.product .button.product_type_simple,
.woocommerce ul.products li.product .button.read_more {
    display: none !important;
}
/* Ẩn tất cả các loại nút mua hàng/đọc tiếp ở trang chủ và các trang danh mục */
.woocommerce ul.products li.product .button, 
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_external,
.woocommerce ul.products li.product .product_type_simple {
    display: none !important; /* Xóa bỏ hoàn toàn nút */
}

/* Đảm bảo khoảng cách dưới giá tiền/liên hệ trông cân đối sau khi ẩn nút */
.woocommerce ul.products li.product .price {
    margin-bottom: 15px !important;
}
/* Style cho chữ Liên hệ mới tạo */
.price-contact-red {
    color: #d71a21 !important; /* Màu đỏ giá tiền đặc trưng */
    font-weight: 700 !important; /* Đậm giống style giá hiện tại */
    font-size: 18px !important;
    display: block;
    margin-bottom: 10px;
}
/* 2. Fix chiều cao tiêu đề sản phẩm để 5 cột thẳng hàng */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    height: 48px !important; /* Độ cao cố định cho 2 dòng chữ */
    display: block !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

/* 3. Hiệu ứng Hover đẩy Box lên và viền cam */
.woocommerce ul.products li.product {
    transition: all 0.3s ease-in-out !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important; /* Đẩy box lên */
    border-color: #f39c12 !important; /* Viền cam */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* 1. Chia 4 cột đồng nhất trên Desktop */
.archive.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -5px !important; /* Tạo khoảng trừ lề cho padding bên trong */
    padding: 0 !important;
    list-style: none !important;
}

.archive.woocommerce ul.products li.product {
    width: 25% !important; /* 4 cột = 25% */
    flex: 0 0 24% !important;
    max-width: 25% !important;
    padding: 10px !important; /* Khoảng cách giữa các ô */
    box-sizing: border-box !important;
    float: none !important; /* Loại bỏ thuộc tính float cũ của Woo */
}

/* 2. Tạo khung Inner Box giống trang chủ */
.archive.woocommerce ul.products li.product {
    border: 1px solid #eee !important;
    background: #fff !important;
    transition: all 0.3s ease-in-out !important;
    position: relative;
}

/* 4. Định dạng chữ và giá tiền */
.archive.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    color: #333 !important;
    font-weight: 500 !important;
    overflow: hidden;
    margin: 10px 0 !important;
}

.archive.woocommerce ul.products li.product .price {
    color: #d71a21 !important; /* Màu đỏ giá tiền */
    font-weight: 700 !important;
}

/* 5. Loại bỏ hiệu ứng làm tối ảnh nếu có */
.archive.woocommerce ul.products li.product:hover img {
    filter: none !important;
    opacity: 1 !important;
}



/* --- RESPONSIVE CHO TRANG DANH MỤC --- */

/* Mobile: 2 cột */
@media (max-width: 767px) {
    .archive.woocommerce ul.products li.product {
        width: 50% !important;
        flex: 0 0 48% !important;
        max-width: 50% !important;
    }
}



/* --- CHÍNH SÁCH BÁN HÀNG (Icon tích xanh) --- */
.chinh-sach-ban-hang ul {
    padding: 15px 20px !important;
    list-style: none !important;
}

.chinh-sach-ban-hang ul li {
    position: relative;
    padding-left: 30px !important;
    margin-bottom: 12px !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Tạo icon tích xanh giả lập Porto */
.chinh-sach-ban-hang ul li::before {
    content: '✔'; 
    position: absolute;
    left: 0;
    color: #43ad43; /* Màu xanh lá đặc trưng */
    font-weight: bold;
    font-size: 18px;
}

/* --- LIÊN HỆ ĐẶT MUA (Hotline) --- */
.sidebar-hotline {
    padding: 15px 20px !important;
}

.sidebar-hotline span {
    display: block;
    margin-bottom: 5px;
}

.sidebar-hotline .phone-number {
    color: #d71a21 !important; /* Màu đỏ hotline */
    font-weight: 800 !important;
    font-size: 18px !important;
}

/* =======================================================
   STICKY SIDEBAR: THANH BÊN TRƯỢT THEO
   ======================================================= */
/* Chỉ áp dụng trên máy tính (Màn hình > 992px) */
@media (min-width: 992px) {
    
    /* Danh sách các Class/ID phổ biến của Sidebar trong WordPress */
    /* (Code sẽ tự nhận diện đúng cái mà theme bạn đang dùng) */
    #secondary, 
    #sidebar, 
    .widget-area, 
    .sidebar-main,
    .sidebar-container,
    div[role="complementary"] {
        position: -webkit-sticky; /* Hỗ trợ trình duyệt Safari cũ */
        position: sticky;
        top: 20px; /* Khoảng cách cách mép trên cùng khi trượt (để hở 1 chút cho thoáng) */
        z-index: 90; /* Đảm bảo nó nổi lên trên các thành phần nền */
        height: fit-content; /* Quan trọng: Giúp sidebar không bị kéo giãn */
        align-self: flex-start; /* Quan trọng nếu theme dùng Flexbox */
    }
}

/* == TRANG ==*/
.page div.page-header {opacity: 0.001; height: 0px; margin-top: -10px;}
.about-title span {font-size: 24px; color: #333;}



/* ======= HOME ======= */
/* =======================================================
   PHIÊN BẢN V20.0: BÚA TẠ (ÉP ẢNH BUNG 100% & THẺ SIDEBAR ĐẸP)
   ======================================================= */

/* -------------------------------------------------------
   PHẦN 1: CỘT TRÁI (HERO) - SỬA LỖI ẢNH BỊ CO
   ------------------------------------------------------- */

/* 1.1 Khung Hero chính */
#news-block-wrapper .layout-hero .elementor-post__card {
    display: flex !important;
    flex-direction: column !important;
    height: 450px !important;
    position: relative !important;
    background: #000 !important;
    border: none !important; margin: 0 !important; padding: 0 !important;
    border-radius: 0px !important; overflow: hidden;
}

/* 1.2 [QUAN TRỌNG] Xử lý toàn bộ các lớp vỏ bọc của ảnh */
/* Chọn cả thẻ A và thẻ DIV bao quanh ảnh để xóa padding ảo */
#news-block-wrapper .layout-hero .elementor-post__thumbnail__link,
#news-block-wrapper .layout-hero .elementor-post__thumbnail {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    padding: 0 !important; margin: 0 !important; /* Xóa padding gây co ảnh */
    border: none !important;
    z-index: 1 !important;
}

/* 1.3 Ép chính bức ảnh phải phủ kín */
#news-block-wrapper .layout-hero .elementor-post__thumbnail img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    border-radius: 0px !important;
    display: block !important;
}

/* 1.4 Lớp phủ đen mờ (nằm đè lên ảnh) */
#news-block-wrapper .layout-hero .elementor-post__thumbnail__link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 2; pointer-events: none;
}

/* 1.5 Badge Hero (Ghim cứng góc trên trái) */
#news-block-wrapper .layout-hero .elementor-post__badge {
    position: absolute !important;
    top: 20px !important; left: 20px !important;
    z-index: 20;
    display: inline-block !important; width: fit-content !important;
    padding: 5px 12px; margin: 0 !important;
    border-radius: 0px !important;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}

/* 1.6 Nội dung chữ Hero (Đẩy xuống đáy) */
/* Tạo khoảng trống ảo để đẩy chữ xuống */
#news-block-wrapper .layout-hero .elementor-post__card::before {
    content: ''; flex-grow: 1;
}
#news-block-wrapper .layout-hero .elementor-post__text {
    position: relative !important; z-index: 10;
    width: 100% !important; margin: 0 !important;
    padding: 0 30px !important; flex-grow: 0 !important;
}
#news-block-wrapper .layout-hero .elementor-post__title a {
    color: #fff !important; font-size: 26px !important; font-weight: 700 !important;
    line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.8); display: block;
}

/* 1.7 Meta Hero (Dưới tiêu đề) */
#news-block-wrapper .layout-hero .elementor-post__meta-data {
    position: relative !important; z-index: 10;
    padding: 0px 30px 30px 30px !important; margin: 0 !important;
    display: flex !important; align-items: center;
    border: none !important; color: #ddd !important;
    font-size: 12px !important; font-weight: 600; text-transform: uppercase;
}
/* Icon & Màu chữ Meta */
#news-block-wrapper .layout-hero .elementor-post__meta-data span,
#news-block-wrapper .layout-hero .elementor-post__meta-data a { color: #ddd !important; }
#news-block-wrapper .layout-hero .elementor-post__meta-data .elementor-post-date::before {
    content: '\f017'; font-family: "Font Awesome 5 Free"; font-weight: 400; margin-right: 5px;
}
#news-block-wrapper .layout-hero .elementor-post__meta-data .elementor-post-author::before {
    content: '\f007'; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 5px;
}
#news-block-wrapper .layout-hero .elementor-post__meta-data::before,
#news-block-wrapper .layout-hero .elementor-post__meta-data::after { display: none !important; }


/* -------------------------------------------------------
   PHẦN 2: CỘT PHẢI (SIDEBAR) - THẺ TRẮNG SANG TRỌNG
   ------------------------------------------------------- */

/* 2.1 Khung thẻ trắng */
#news-block-wrapper .layout-sidebar .elementor-post__card {
    display: grid !important;
    /* Chia cột: Ảnh 100px - Khoảng trống 15px - Nội dung */
    grid-template-columns: 100px 1fr !important;
    grid-template-rows: min-content min-content !important;
    gap: 0 15px !important; /* Tạo khoảng thở giữa ảnh và chữ */
    
    background: #ffffff !important;
    padding: 15px !important; /* Đệm bên trong khung trắng */
    border: 1px solid #eee !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important; /* Bóng nhẹ */
    
    margin-bottom: 0px !important;
    border-radius: 0px !important;
    align-items: start !important;
}

/* 2.2 Ảnh nhỏ bên trái (Vuông & Full ô) */
#news-block-wrapper .layout-sidebar .elementor-post__thumbnail__link {
    grid-column: 1 / 2 !important; grid-row: 1 / 3 !important;
    width: 100% !important; height: 80px !important; /* Chiều cao cố định */
    margin: 0 !important; padding: 0 !important;
    overflow: hidden; border-radius: 0px !important;
}
#news-block-wrapper .layout-sidebar .elementor-post__thumbnail img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
    border-radius: 0px !important;
}

/* 2.3 Badge Sidebar (Dòng 1 - Màu xanh) */
#news-block-wrapper .layout-sidebar .elementor-post__badge {
    grid-column: 2 / 3 !important; grid-row: 1 / 2 !important;
    justify-self: start !important;
    margin: -3px 0 8px 0 !important; /* Kéo lên sát đỉnh */
    
    display: inline-block !important; width: fit-content !important;
    background: #0073aa !important; color: #fff !important;
    padding: 3px 8px; border-radius: 0px !important;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    position: static !important;
}

/* 2.4 Tiêu đề Sidebar (Dòng 2) */
#news-block-wrapper .layout-sidebar .elementor-post__text {
    grid-column: 2 / 3 !important; grid-row: 2 / 3 !important;
    padding: 0 !important; margin: 0 !important;
}
#news-block-wrapper .layout-sidebar .elementor-post__title a {
    font-size: 14px !important; font-weight: 600; color: #333; line-height: 1.4;
    text-decoration: none !important;
}
#news-block-wrapper .layout-sidebar .elementor-post__title a:hover {
    color: #EA8F2E !important;
}

/* Ẩn rác thừa */
#news-block-wrapper .layout-sidebar .elementor-post__excerpt,
#news-block-wrapper .layout-sidebar .elementor-post__meta-data,
#news-block-wrapper .layout-hero .elementor-post__excerpt { display: none !important; }

/* =======================================================
   PHIÊN BẢN V24.0: NEWS TICKER (VÒNG LẶP VÔ TẬN - KHÔNG NGẮT QUÃNG)
   ======================================================= */

/* 1. KHUNG BAO QUANH */
.news-ticker-wrapper {
    background: #f5f5f5;
    border-bottom: 2px solid #123068;
    height: 40px;
    overflow: hidden;
    margin-bottom: 20px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 100%;
}

/* 2. NHÃN "LATEST POST" */
.ticker-label {
    background: #ea8f2e;
    height: 100%;
    display: flex; align-items: center;
    padding-right: 30px !important; padding-left: 20px !important;
    position: relative; z-index: 20; flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}
.ticker-label .elementor-heading-title {
    color: #fff !important; font-size: 15px !important;
    font-weight: 800 !important; text-transform: uppercase;
    margin: 0 !important; padding: 0 !important; line-height: 1 !important;
}

/* 3. KHUNG CHỨA NỘI DUNG */
.ticker-content-area {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap; /* Bắt buộc 1 dòng */
    height: 100%;
    display: flex; align-items: center;
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

/* 4. HIỆU ỨNG CHẠY VÔ TẬN (SEAMLESS LOOP) */
.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 0; /* Không cần padding đẩy nữa */
    
    /* Tốc độ 60s (Vì nội dung dài gấp đôi nên cần thời gian dài hơn để đọc kịp) */
    animation: ticker-seamless 60s linear infinite;
}

/* Dừng khi hover */
.ticker-content-area:hover .ticker-move {
    animation-play-state: paused;
}

/* Style Link */
.ticker-move a {
    color: #333; font-size: 14px; font-weight: 600;
    text-decoration: none;
    margin-right: 40px; /* Khoảng cách bài */
    position: relative; display: inline-block;
}
.ticker-move a::after {
    content: '•'; color: #123068;
    position: absolute; right: -25px; top: 0;
}
.ticker-move a:hover { color: #123068; }

/* 5. KHAI BÁO CHUYỂN ĐỘNG MỚI (CHỈ CHẠY 50%) */
@keyframes ticker-seamless {
    0% { transform: translate3d(0, 0, 0); }
    /* Chỉ dịch chuyển -50% (tức là hết chiều dài của 1 danh sách gốc) 
       rồi lập tức reset về 0. Vì danh sách đã được nhân đôi nên người dùng 
       không thấy sự đứt gãy nào. */
    100% { transform: translate3d(-50%, 0, 0); }
}
/* =======================================================
   PHIÊN BẢN V25.0: CHỈNH GIAO DIỆN MOBILE (RESPONSIVE)
   ======================================================= */

/* CODE DƯỚI ĐÂY CHỈ CHẠY TRÊN MÀN HÌNH NHỎ HƠN 767PX (ĐIỆN THOẠI) */
@media (max-width: 767px) {

    /* 1. TINH CHỈNH NEWS TICKER (CHỮ CHẠY) */
    .ticker-label {
        padding-right: 20px !important; /* Giảm độ vát */
        padding-left: 10px !important;
        max-width: 110px; /* Giới hạn chiều rộng nhãn */
    }
    .ticker-label .elementor-heading-title {
        font-size: 10px !important; /* Chữ bé lại */
    }
    .ticker-move a {
        font-size: 12px; /* Link bài viết bé lại */
        margin-right: 20px;
    }


    /* 2. TINH CHỈNH CỘT TRÁI (HERO) */
    
    /* Giảm chiều cao từ 450px xuống 280px cho vừa màn hình dọc */
    #news-block-wrapper .layout-hero .elementor-post__card {
        height: 280px !important; 
        margin-bottom: 20px !important; /* Tạo khoảng cách với cột dưới */
    }

    /* Tiêu đề bé lại cho đỡ choán hết ảnh */
    #news-block-wrapper .layout-hero .elementor-post__title a {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    /* Badge (Nhãn) bé lại và sát lề hơn */
    #news-block-wrapper .layout-hero .elementor-post__badge {
        top: 15px !important; left: 15px !important;
        font-size: 9px !important; padding: 3px 8px !important;
    }

    /* Meta data (Ngày tháng) bé lại */
    #news-block-wrapper .layout-hero .elementor-post__meta-data {
        font-size: 10px !important;
        padding: 5px 15px 20px 15px !important; /* Căn chỉnh lại lề */
    }
    /* Chỉnh lề cho khối chữ */
    #news-block-wrapper .layout-hero .elementor-post__text {
        padding: 0 15px !important;
    }


    /* 3. TINH CHỈNH CỘT PHẢI (SIDEBAR) */
    
    /* Giữ nguyên dạng thẻ nhưng chỉnh lại tỷ lệ ảnh/chữ */
    #news-block-wrapper .layout-sidebar .elementor-post__card {
        /* Ảnh 90px - Chữ phần còn lại */
        grid-template-columns: 90px 1fr !important; 
        gap: 0 10px !important;
        padding: 10px !important;
    }

    /* Ảnh nhỏ lại chút */
    #news-block-wrapper .layout-sidebar .elementor-post__thumbnail__link {
        height: 70px !important; 
    }

    /* Tiêu đề sidebar bé lại */
    #news-block-wrapper .layout-sidebar .elementor-post__title a {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    /* Badge sidebar bé lại */
    #news-block-wrapper .layout-sidebar .elementor-post__badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
}
/* =======================================================
   PHIÊN BẢN V31.0: FIX LỖI SLIDER (TIÊU ĐỀ TRÁI & FULL CARD)
   ======================================================= */

/* -------------------------------------------------------
   1. SỬA LỖI TIÊU ĐỀ DANH MỤC (VỀ BÊN TRÁI)
   ------------------------------------------------------- */
.cat-header-wrapper {
    border-bottom: 2px solid #123068;
    margin-bottom: 20px !important;
    padding: 0 !important;
    
    /* QUAN TRỌNG: Ép về bên trái */
    display: flex !important;
    justify-content: flex-start !important; 
    align-items: flex-end !important;
    flex-direction: row !important; /* Đảm bảo không bị ngược chiều */
}

.cat-header-label {
    /* Đổi chiều vát: Từ vát vào (\) thành vát ra (/) */
    /* 0 0: Góc trên trái */
    /* 85% 0: Góc trên phải (Thụt vào 15%) */
    /* 100% 100%: Góc dưới phải (Full ra ngoài) */
    /* 0 100%: Góc dưới trái */
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%) !important;
    
    /* Chỉnh lại padding để chữ không bị lẹm vào phần vát mới */
    padding: 10px 40px 10px 20px !important;
}

.cat-header-label .elementor-heading-title {
    color: #fff !important; font-size: 16px !important; 
    font-weight: 800 !important; text-transform: uppercase; margin: 0;
}
/* =======================================================
   PHIÊN BẢN V33.0: TỐI ƯU CHO NỀN BACKGROUND ELEMENTOR
   ======================================================= */

/* -------------------------------------------------------
   1. HEADER DANH MỤC (VỀ BÊN TRÁI CHUẨN)
   ------------------------------------------------------- */
.cat-header-wrapper {
    border-bottom: 2px solid #123068;
    margin-bottom: 20px !important;
    padding: 0 !important;
    
    /* Căn trái tuyệt đối */
    display: flex !important;
    justify-content: flex-start !important; 
    align-items: flex-end !important;
}

.cat-header-label {
    background: #123068; color: #fff;
    width: fit-content;
    /* Padding phải lớn để bù góc vát */
    padding: 10px 50px 10px 20px !important; 
    
    /* Vát góc phải */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    margin: 0 !important;
    position: relative; z-index: 5;
}
.cat-header-label .elementor-heading-title {
    color: #fff !important; font-size: 16px !important; 
    font-weight: 800 !important; text-transform: uppercase; margin: 0;
}
/* =======================================================
   PHIÊN BẢN V34.0: THÊM BÓNG ĐEN & XÓA LINE XANH DƯỚI
   ======================================================= */

/* 1. TẠO BÓNG ĐEN MỜ (GRADIENT) SAU CHỮ */
/* Lớp phủ này sẽ làm tối phần dưới của ảnh để nổi chữ trắng */
.dark-multi-card-slider .my-loop-card::before {
    content: '';
    position: absolute;
    bottom: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 90% !important; /* Phủ cao lên 90% thẻ */
    z-index: 1 !important; /* Nằm trên ảnh nền */
    
    /* Gradient: Đen đậm ở đáy (95%) -> Mờ dần -> Trong suốt */
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.95) 0%, 
        rgba(0,0,0,0.7) 40%, 
        transparent 100%
    ) !important;
    
    pointer-events: none; /* Không chặn click */
}

/* Đảm bảo Tiêu đề & Info nằm đè lên lớp bóng đen */
.dark-multi-card-slider .my-loop-card .elementor-widget-post-title,
.dark-multi-card-slider .my-loop-card .elementor-widget-post-info {
    position: relative !important;
    z-index: 2 !important; /* Nổi lên trên cùng */
    text-shadow: 0 2px 5px rgba(0,0,0,0.9); /* Thêm bóng chữ để nét hơn */
}

/* 2. XÓA VẠCH KẺ XANH BÊN DƯỚI SLIDE */
/* Quét sạch các loại viền có thể xuất hiện ở khu vực slider */
.dark-multi-card-slider, 
.dark-multi-card-slider .elementor-widget-container,
.dark-multi-card-slider .swiper-container,
.cat-slider-wrapper {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Lưu ý: Nếu cái vạch xanh bạn nói là vạch ở Header "Thư viện...", 
   thì dùng dòng dưới đây (bỏ dấu comment) để xóa nó: */
/* .cat-header-wrapper { border-bottom: none !important; } */
/* =======================================================
   PHIÊN BẢN V35.0: KHẮC PHỤC CHỮ BỊ ĐÈ & XÓA LINE XANH
   ======================================================= */

/* 1. XỬ LÝ LỚP BÓNG ĐEN (CHO NẰM DƯỚI CHỮ) */
.dark-multi-card-slider .my-loop-card::before {
    content: '';
    position: absolute;
    bottom: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    
    /* Z-index thấp để nằm dưới chữ */
    z-index: 1 !important; 
    
    /* Gradient đen đậm dần từ dưới lên */
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.95) 0%,   /* Đen đậm 95% ở đáy */
        rgba(0,0,0,0.5) 50%,   /* Đen 50% ở giữa */
        transparent 100%       /* Trong suốt ở trên */
    ) !important;
    
    pointer-events: none;
}

/* 2. XỬ LÝ CHỮ (ĐẨY NỔI LÊN TRÊN CÙNG) */
/* Chọn đích danh cả Widget Tiêu đề và Post Info bên trong thẻ Card */
.dark-multi-card-slider .my-loop-card .elementor-widget-post-title,
.dark-multi-card-slider .my-loop-card .elementor-widget-post-info,
.dark-multi-card-slider .my-loop-card .elementor-widget-heading,
.dark-multi-card-slider .my-loop-card a {
    position: relative !important;
    
    /* Z-index cao hơn lớp bóng đen (1) */
    z-index: 10 !important; 
    
    /* Đảm bảo chữ sáng rõ, không bị ám màu */
    opacity: 1 !important; 
    text-shadow: 0 2px 4px rgba(0,0,0,1) !important; /* Bóng chữ đậm để nổi */
}

/* Màu chữ trắng tuyệt đối */
.dark-multi-card-slider .my-loop-card .elementor-widget-post-title a {
    color: #ffffff !important;
}
.dark-multi-card-slider .my-loop-card .elementor-icon-list-text {
    color: #dddddd !important;
}


/* 3. XÓA SẠCH VẠCH KẺ XANH THỪA (CLEAN ALL BORDERS) */
/* Quét qua tất cả các lớp bao quanh slider để xóa viền */
.dark-multi-card-slider,
.dark-multi-card-slider .elementor-widget-container,
.dark-multi-card-slider .swiper-container,
.dark-multi-card-slider .elementor-loop-container,
.cat-slider-wrapper {
    border: none !important;
    border-bottom: 0px !important;
    border-top: 0px !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Lưu ý: Nếu vạch xanh nằm ở Container cha chứa cả Header và Slider */
/* Bạn hãy thử thêm dòng này nếu code trên chưa hết: */
/* #news-block-wrapper .elementor-container { border: none !important; } */

/* =======================================================
   PHIÊN BẢN V40.0: HERO HOÀN THIỆN (HEIGHT, SHADOW, BADGE)
   ======================================================= */

/* 1. KHUNG HERO CHÍNH */
.hero-item-home {
    /* Thiết lập chiều cao cố định cho Hero */
    min-height: 450px !important; 
    
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; /* Đẩy nội dung xuống đáy */
    padding: 30px !important;
    border-radius: 0px !important;
    isolation: isolate; /* Tạo lớp xếp chồng mới */
    
    /* Ảnh nền (Do Elementor quản lý) sẽ Zoom nhẹ khi hover */
    background-size: cover;
    transition: background-size 0.5s ease;
}
.hero-item-home:hover {
    background-size: 105% auto !important;
}

/* 2. LỚP BÓNG ĐEN MỜ (GRADIENT OVERLAY) */
/* Phủ lên trên ảnh nền để làm nổi bật chữ */
.hero-item-home::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    
    /* Gradient: Đen đậm ở đáy (90%) -> Mờ dần lên trên */
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.9) 0%,     /* Đáy đen 90% */
        rgba(0,0,0,0.5) 50%,     /* Giữa đen 50% */
        transparent 100%         /* Đỉnh trong suốt */
    );
    
    z-index: 1; /* Nằm trên ảnh, dưới chữ */
    pointer-events: none;
}

/* 3. BIẾN WIDGET ĐẦU TIÊN THÀNH BADGE (NHÃN XANH) */
/* Code này tự động bắt lấy Widget đầu tiên bạn thả vào Loop để làm Badge */
.hero-item-home > .elementor-widget:first-child {
    position: absolute !important;
    top: 30px !important; 
    left: 30px !important;
    z-index: 20 !important; /* Nổi cao nhất */
    width: fit-content !important;
    margin: 0 !important;
}

/* Style cho Badge giống các Card bên dưới */
.hero-item-home > .elementor-widget:first-child .elementor-widget-container,
.hero-item-home > .elementor-widget:first-child a {
    background: #0056b3 !important; /* Màu xanh thương hiệu */
    color: #ffffff !important;
    padding: 5px 15px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.5;
}

/* 4. TIÊU ĐỀ BÀI VIẾT (TRẮNG & TO) */
.hero-item-home .elementor-widget-post-title {
    position: relative; 
    z-index: 10 !important;
    width: 100%; margin-bottom: 10px !important;
}
.hero-item-home .elementor-widget-post-title a {
    color: #ffffff !important;
    font-size: 28px !important; /* Cỡ chữ to cho Hero */
    font-weight: 700 !important;
    line-height: 1.3;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Bóng chữ */
    display: block;
}
.hero-item-home .elementor-widget-post-title a:hover {
    color: #EA8F2E !important; /* Hover màu cam */
}

/* 5. POST INFO (NGÀY THÁNG/TÁC GIẢ) */
.hero-item-home .elementor-widget-post-info {
    position: relative; z-index: 10 !important;
    padding-bottom: 10px; /* Cách đáy một chút */
}
.hero-item-home .elementor-icon-list-item,
.hero-item-home .elementor-icon-list-text {
    color: #dddddd !important; /* Màu xám trắng */
    font-size: 13px !important;
    font-weight: 600 !important; text-transform: uppercase;
}
.hero-item-home .elementor-icon-list-icon {
    color: #EA8F2E !important; /* Icon màu cam */
}


/* 6. MOBILE RESPONSIVE (DƯỚI 767PX) */
@media (max-width: 767px) {
    .hero-item-home {
        min-height: 300px !important; /* Giảm chiều cao trên mobile */
        padding: 20px !important;
    }
    
    /* Badge sát lề hơn */
    .hero-item-home > .elementor-widget:first-child {
        top: 15px !important; left: 15px !important;
    }
    
    /* Chữ tiêu đề nhỏ lại */
    .hero-item-home .elementor-widget-post-title a {
        font-size: 20px !important;
    }
}
.post-bagde ul li {
	background: #EA8F2E;
    padding: 3px 5px !important;
    border-radius: 4px;
}