	/*
	Theme Name: MẸO VẶT VIỆT NAM
	Theme URI: https://example.com
	Author: [Tên Của Bạn]
	Description: Theme blog chia sẻ mẹo vặt Việt Nam
	Version: 1.0
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: meovat-theme
	*/

/* ========================================= */
/* 1. CẤU HÌNH MÀU SẮC & CƠ BẢN              */
/* ========================================= */
:root {
    --primary-color: #FF6B35;   /* Màu CAM (Chủ đạo/Action/Hover) - Thay cho Hồng */
    --secondary-color: #2C3E50; /* Màu XANH ĐẬM (Text/Title/Link) - Thay cho Xanh lá */
    --text-color: #333333;      /* Màu chữ nội dung */
    --bg-color: #f4f6f8;        /* Màu nền web */
    --white: #ffffff;
    --hover-bg: #fff4e6;        /* Màu nền nhạt khi hover menu con (Cam nhạt) */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: var(--secondary-color); /* Link mặc định màu Xanh Đậm */
}

a:hover {
    color: var(--primary-color); /* Hover chuyển sang màu Cam */
}

/* Nút bấm chung */
.btn {
    display: inline-block;
    background-color: var(--primary-color); /* Nền Cam */
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e55a2b; /* Cam đậm hơn khi hover */
    color: var(--white);
}

/* Tiêu đề Section chung */
.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--secondary-color); /* Màu Xanh Đậm */
    margin-bottom: 40px;
    position: relative;
}


.features, .latest-posts, .featured-categories, .testimonials {
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* ========================================= */
/* 2. HEADER                                 */
/* ========================================= */
header { 
    background-color: var(--white); 
    padding: 15px 0; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.site-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color); /* Logo màu Cam */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Header Right Wrapper */
.header-right {
    display: flex;
    align-items: center;
}

/* Menu Chính (Desktop) */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
    position: relative;     
}

.main-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 600; /* Tăng độ đậm một chút cho dễ đọc */
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color); /* Hover màu Cam */
}

/* 2. Style cho Sub-menu (Menu con) */
.main-nav ul ul {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1050;
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color); /* Thêm viền trên màu Cam cho đẹp */
}

/* 3. Style cho Item Menu con */
.main-nav ul ul li {
    display: block;
    margin-left: 0;
}

.main-nav ul ul li a {
    padding: 8px 20px;
    display: block;
    white-space: nowrap;
    font-size: 15px;
    color: #555;
}

.main-nav ul ul li a:hover {
    background-color: var(--hover-bg); /* Nền Cam nhạt */
    color: var(--primary-color); /* Chữ Cam */
}

/* 4. HIỂN THỊ MENU KHI HOVER */
.main-nav ul li:hover > ul {
    visibility: visible;
    opacity: 1;
    top: 100%;
}

/* Xử lý menu 3 cấp */
.main-nav ul ul ul {
    left: 100%;
    top: 0;
}

/* Header Meta (Icons) */
.header-meta {
    display: flex;
    align-items: center;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid #eee;
}

.header-social-links a {
    color: #777;
    margin-left: 15px;
    font-size: 16px;
}

.header-social-links a:hover {
    color: var(--primary-color); /* Hover Icon màu Cam */
}

.header-search-icon a {
    color: #555;
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
}

.header-search-icon a:hover {
    color: var(--primary-color); /* Hover Search màu Cam */
}

/* Nút Hamburger (Mobile) */
.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: #333;
    margin-left: 20px;
    cursor: pointer;
}

/* Nút Close Menu */
.nav-close-btn {
    display: none;
    cursor: pointer;
}

/* Form tìm kiếm ẩn */
.header-search-form {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    z-index: 999;
}

.header-search-form.is-visible {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-search-form form {
    display: flex;
    align-items: center;
    position: relative;
	width: 100%;
    max-width: 600px; /* Giới hạn chiều rộng form tìm kiếm */
    margin: 0 auto;   /* Căn giữa */
}

.header-search-form input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px; /* Bo tròn ô tìm kiếm */
    font-size: 16px;
    outline: none;
}

.header-search-form input:focus {
    border-color: var(--primary-color); /* Viền màu Cam khi focus */
}

.header-search-form button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #555;
    cursor: pointer;
}

.header-search-form button:hover {
    color: var(--primary-color);
}

.header-search-form .close-search {
    position: absolute;
    right: 20px; /* Điều chỉnh vị trí nút đóng */
    top: 20px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}
.header-search-form .close-search:hover {
    color: var(--primary-color);
}
/* ========================================= */
/* 6. RESPONSIVE: MENU MOBILE (FIX CHUẨN)    */
/* ========================================= */

@media (max-width: 992px) {
    
    /* 1. HIỆN NÚT HAMBURGER */
    .mobile-nav-toggle {
        display: block;
        font-size: 24px;
        color: var(--secondary-color);
        cursor: pointer;
        margin-left: 15px;
    }
    
    /* Ẩn các thành phần desktop không cần thiết */
    .d-none-mobile, 
    .header-social-links { 
        display: none; 
    }

    /* 2. KHUNG MENU CHÍNH (Sửa lỗi không hiển thị) */
    .main-nav {
        display: block !important; /* Bắt buộc hiện khung */
        position: fixed;
        top: 0;
        right: -320px; /* Giấu sang phải */
        width: 300px;
        height: 100vh;
        background-color: #ffffff; /* Nền trắng tuyệt đối */
        z-index: 999999; /* Lớp cao nhất */
        
        padding-top: 60px; /* Chừa chỗ cho nút đóng */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    /* Khi có class is-active thì trượt ra */
    .main-nav.is-active {
        right: 0 !important;
    }

    /* ==================================================== */
    /* FIX LỖI MŨI TÊN RỚT DÒNG (CHÍNH XÁC 100%)            */
    /* ==================================================== */

    /* 1. Thiết lập thẻ LI là Flex Container */
    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
        
        /* QUAN TRỌNG: Kích hoạt Flexbox */
        display: flex !important;
        flex-wrap: wrap !important; /* Cho phép rớt dòng (để chứa menu con) */
        align-items: center !important; /* Căn giữa dọc */
        justify-content: space-between !important; /* Đẩy sang 2 bên */
        position: relative !important;
    }

    /* 2. Thẻ A (Link): Chiếm không gian còn lại */
    .main-nav ul li a {
        /* Tính toán: 100% trừ đi 50px của nút mũi tên */
        width: calc(100% - 50px) !important; 
        flex-grow: 1 !important; 
        
        padding: 15px 0 !important;
        font-size: 15px;
        font-weight: 600;
        color: var(--secondary-color);
        display: block !important;
        border-bottom: none !important; /* Bỏ viền của link, dùng viền của LI */
    }

    /* 3. Thẻ SPAN (Mũi tên): Cố định kích thước */
    .mobile-dropdown-toggle {
        width: 50px !important; /* Chiều rộng cố định */
        height: 50px !important;
        
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
        flex-shrink: 0 !important; /* Không cho phép bị co nhỏ */
        
        color: var(--primary-color);
        cursor: pointer;
        border-left: 1px solid #f5f5f5; /* Vách ngăn */
    }
    
    .mobile-dropdown-toggle i {
        pointer-events: none; /* Bấm vào icon cũng ăn vào nút */
    }

    /* 4. Menu Con (UL): Ép buộc rớt xuống dòng */
    .main-nav ul ul {
        flex-basis: 100% !important; /* Chiếm trọn 1 dòng riêng */
        width: 100% !important;
        
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: var(--bg-light-accent); /* Nền cam nhạt */
        box-shadow: none;
        
        /* Hiệu ứng đóng mở */
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.4s ease-in-out; 
        border-top: none;
    }

    /* Item con */
    .main-nav ul ul li {
        border-bottom: 1px dashed #e0e0e0;
        padding-left: 15px; /* Thụt đầu dòng */
        display: block; /* Quay về block thường */
    }

    .main-nav ul ul li a {
        font-weight: 400;
        font-size: 14px;
        padding: 12px 20px;
    }

    /* Mở menu con khi có class dropdown-open */
    .main-nav ul li.dropdown-open > ul {
        max-height: 1000px; /* Đủ lớn để hiện nội dung */
    }

    /* 5. CÁC THÀNH PHẦN KHÁC (Nút Đóng, Overlay) */
    .nav-close-btn {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        color: #333;
        z-index: 1000000;
        cursor: pointer;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999990;
    }
    .nav-overlay.is-active {
        display: block;
    }
    
    /* Layout Header Mobile */
    .site-header .container {
        position: relative; /* Để định vị */
    }
    .header-right {
        display: flex;
        align-items: center;
    }
}
 /* ========================================= */
/* 3. CÁC SECTION NỘI DUNG (MẸO VẶT STYLE)   */
/* ========================================= */

/* --- A. HERO SEARCH (MỚI) --- */
.hero-search-section {
    background: linear-gradient(135deg, var(--secondary-color), #34495e), url('https://placehold.co/1920x600?text=Life+Hacks+Background');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    margin-bottom: 0; /* Web mẹo vặt các khối thường liền nhau */
}
.hero-search-content h1 { font-family: 'Montserrat', sans-serif; font-size: 38px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.hero-search-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.search-box { max-width: 600px; margin: 0 auto; position: relative; }
.search-box input { width: 100%; padding: 15px 25px; border-radius: 50px; border: none; font-size: 16px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); outline: none; box-sizing: border-box; }
.search-box button { position: absolute; right: 5px; top: 5px; background-color: var(--primary-color); color: var(--white); border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: transform 0.2s; }
.search-box button:hover { transform: scale(1.1); }

/* --- B. QUICK CATEGORIES (MỚI) --- */
.quick-cats { padding: 40px 0; background-color: var(--white); border-bottom: 1px solid #eee; overflow-x: auto; }
.cat-scroll { display: flex; justify-content: center; gap: 30px; min-width: max-content; padding-bottom: 10px; }
.q-cat-item { text-align: center; width: 90px; flex-shrink: 0; }
.q-cat-icon { width: 60px; height: 60px; background-color: #fff4e6; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 24px; color: var(--primary-color); transition: all 0.3s; }
.q-cat-item:hover .q-cat-icon { background-color: var(--primary-color); color: var(--white); transform: translateY(-5px); }
.q-cat-item span { font-weight: 600; font-size: 13px; color: var(--secondary-color); }

/* --- C. MAGAZINE GRID (MỚI) --- */
.magazine-section { padding: 50px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-left: 5px solid var(--primary-color); padding-left: 15px; }
.section-title h2 { font-family: 'Montserrat', sans-serif; font-size: 24px; margin: 0; color: var(--secondary-color); }
.view-all { color: var(--primary-color); font-weight: 600; font-size: 14px; }

.mag-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }

.main-post { position: relative; border-radius: 10px; overflow: hidden; height: 450px; }
.main-post img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.main-post:hover img { transform: scale(1.05); }
.main-post-content { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 25px; box-sizing: border-box; color: var(--white); }
.badge { background-color: var(--primary-color); color: var(--white); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; display: inline-block; }
.main-post h3 { font-size: 24px; margin: 5px 0; font-family: 'Montserrat', sans-serif; line-height: 1.3; }

.sub-posts { display: flex; flex-direction: column; gap: 15px; }
.sub-post-item { display: flex; gap: 15px; align-items: center; background: var(--white); padding: 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); transition: transform 0.3s; }
.sub-post-item:hover { transform: translateX(5px); }
.sub-post-item img { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sub-post-info h4 { font-size: 15px; margin: 0 0 5px; line-height: 1.4; color: var(--secondary-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.sub-post-info span { font-size: 11px; color: #888; }

/* --- D. DID YOU KNOW (MỚI) --- */
.dyk-section { background-color: var(--secondary-color); color: var(--white); padding: 50px 0; text-align: center; }
.dyk-content i { font-size: 36px; color: #f1c40f; margin-bottom: 15px; }
.dyk-content h2 { font-family: 'Montserrat', sans-serif; font-size: 28px; margin-bottom: 15px; }
.dyk-content p { font-size: 18px; max-width: 800px; margin: 0 auto 25px; font-style: italic; padding: 0 15px;}
.dyk-btn { background-color: var(--white); color: var(--secondary-color); padding: 10px 25px; border-radius: 5px; font-weight: 700; display: inline-block; }
.dyk-btn:hover { background-color: #f1c40f; }

/* --- E. LATEST GRID (4 CỘT CHUẨN) --- */
.latest-section { padding: 50px 0; background-color: #fff; }

/* Grid Responsive Logic */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media (min-width: 600px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(4, 1fr); } }

.post-card { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid #eee; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); }
.post-thumb { position: relative; padding-top: 60%; overflow: hidden; }
.post-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.post-cat { color: var(--primary-color); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; display: block; }
.post-body h3 { font-size: 16px; margin: 0 0 10px; line-height: 1.4; font-family: 'Montserrat', sans-serif; flex: 1; }
.post-body h3 a { color: var(--secondary-color); }
.post-body h3 a:hover { color: var(--primary-color); }
.post-desc { font-size: 13px; color: #666; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f4f4f4; padding-top: 12px; font-size: 12px; color: #999; margin-top: auto; }

/* Nút Load More */
.load-more-container { text-align: center; margin-top: 40px; }
.load-more-btn { background-color: transparent; color: var(--secondary-color); border: 2px solid var(--secondary-color); padding: 10px 30px; font-size: 15px; font-weight: 700; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; font-family: 'Montserrat', sans-serif; display: inline-flex; align-items: center; gap: 8px; }
.load-more-btn:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--white); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3); }
.load-more-btn i { transition: transform 0.3s ease; }
.load-more-btn:hover i { transform: translateY(3px); }


/* ========================================= */
/* 5. FOOTER (MẸO VẶT STYLE)                 */
/* ========================================= */
footer {
    background-color: #222; /* Màu tối đặc trưng */
    color: #aaa;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444; /* Đường kẻ phân cách */
}

.footer-col h3 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p { font-size: 15px; line-height: 1.6; }

.footer-col .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color); /* Màu CAM */
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; text-decoration: none; transition: color 0.3s ease; font-size: 14px; }
.footer-col ul li a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-social-links { margin-top: 20px; }
.footer-social-links a {
    display: inline-block;
    width: 36px; height: 36px; line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}
.footer-social-links a:hover { background-color: var(--primary-color); transform: translateY(-3px); }

.footer-bottom { padding: 20px 0 0; text-align: center; font-size: 13px; color: #666; }


/* ========================================= */
/* 6. RESPONSIVE (HỢP NHẤT LOGIC CŨ + MỚI)   */
/* ========================================= */

/* --- Tablet & Mobile (dưới 992px) --- */
@media (max-width: 992px) {
    /* 1. Header Logic (Giữ nguyên cấu trúc menu trượt) */
    .header-meta {
        display: flex; 
        align-items: center;
        gap: 15px; 
        padding-left: 0;
        border-left: none; 
    }
    
    .header-right {
        flex-direction: row; /* Thay đổi thành hàng ngang cho gọn */
        align-items: center;
        gap: 15px;
    }

    .d-none-mobile { display: none; }
    .mobile-nav-toggle { display: block; color: var(--secondary-color); }

    /* Menu Mobile Slider */
    .main-nav {
        position: fixed; top: 0; right: -300px;
        width: 300px; height: 100vh;
        background: #fff;
        z-index: 1002;
        padding: 60px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .main-nav.is-active { right: 0; }

    .main-nav ul { flex-direction: column; text-align: left; }
    .main-nav ul li { margin-left: 0; margin-bottom: 0; border-bottom: 1px solid #eee; }
    .main-nav ul li a { padding: 15px 0; width: 100%; display: flex; justify-content: space-between; align-items: center; color: var(--secondary-color); font-weight: 600; }

    /* Sub-menu Mobile (Cập nhật màu nền sang Cam nhạt) */
    .main-nav ul ul {
        margin: 0 !important; padding: 0 !important;
        position: static !important;
        visibility: visible !important; opacity: 1 !important;
        background: #fff9f5; /* Nền Cam nhạt */
        box-shadow: none; border-radius: 0;
        max-height: 0; overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        border-top: none;
    }
    .main-nav ul ul li { margin-bottom: 0 !important; padding: 0 15px; border-bottom: 1px dashed #eee; }
    .main-nav ul ul li:last-child { border-bottom: none; }
    .main-nav ul ul li a { padding: 12px 0; font-size: 14px; font-weight: 400; }
    .main-nav ul ul li a:hover { background-color: transparent; color: var(--primary-color); }
    .main-nav ul li.dropdown-open > ul { max-height: 1000px; }

    /* Nút Toggle (Cập nhật màu) */
    .mobile-dropdown-toggle { font-size: 14px; padding: 10px; color: var(--primary-color); cursor: pointer; transition: transform 0.3s ease; }
    .main-nav li.dropdown-open .mobile-dropdown-toggle { transform: rotate(180deg); }

    .nav-close-btn { display: block; position: absolute; top: 20px; right: 20px; font-size: 24px; cursor: pointer; color: #333; }
    .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1001; }
    .nav-overlay.is-active { display: block; }

    /* 2. Layout Mẹo Vặt Responsive */
    .mag-grid { grid-template-columns: 1.5fr 1fr; } 
    .main-post { height: 400px; }
}

/* --- Mobile (dưới 768px) --- */
@media (max-width: 768px) {
    /* Header */
    .site-header .container, .header-right { flex-direction: row; justify-content: space-between; }
    header nav { display: none; } /* Ẩn menu desktop nếu chưa ẩn */
    .logo a { font-size: 20px; }
    .logo img { max-height: 40px; }
    .header-search-icon a { margin-left: 10px; font-size: 18px; }

    /* Các Grid về 1 cột */
    .features-grid, .category-grid, .testimonial-grid, .footer-main, .mag-grid { 
        grid-template-columns: 1fr !important; 
    }

    /* Magazine & Hero */
    .main-post { height: 250px; }
    .main-post h3 { font-size: 20px; }
    .hero-search-section { padding: 60px 0; }
    .hero-search-content h1 { font-size: 28px; }
    .hero-search-content p { font-size: 16px; padding: 0 10px; }
    .search-box input { padding: 12px 20px; font-size: 14px; }
    .search-box button { width: 40px; height: 40px; top: 2px; right: 2px; }

    /* Quick Cats */
    .quick-cats { padding: 20px 0; }
    .cat-scroll { justify-content: flex-start; overflow-x: auto; padding-left: 20px; padding-right: 20px; }
    .q-cat-item { margin-right: 15px; }

    /* Footer */
    .footer-main { text-align: center; }
    .footer-col .logo { margin: 0 auto 15px auto; }
    .footer-col { border-bottom: 1px solid #333; padding-bottom: 20px; margin-bottom: 20px; }
    .footer-col:last-child { border-bottom: none; }
}

/* --- Mobile nhỏ (dưới 480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .section-title h2 { font-size: 22px; }
    .dyk-content h2 { font-size: 24px; }
    .dyk-content p { font-size: 15px; }
}
	/* === CSS RIÊNG CHO TRANG GIỚI THIỆU (ABOUT) - MẸO VẶT STYLE === */

/* 1. Page Header */
.page-header {
    background-color: var(--hover-bg); /* Đổi sang nền Cam nhạt (#fff4e6) */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0;
}
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: var(--primary-color); /* Tiêu đề màu CAM */
    margin-bottom: 15px;
}
.page-header p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. Story Section */
.story-section {
    padding: 80px 0;
    background-color: var(--white);
}
.story-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.story-text {
    flex: 1;
}
.story-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--secondary-color); /* Tiêu đề phụ màu XANH ĐẬM */
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.story-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color); /* Gạch chân màu CAM */
}
.story-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #444;
}
.story-img {
    flex: 1;
}
.story-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 5px solid var(--white);
}

/* 3. Mission Section */
.mission-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* Nền xám nhạt chung của web */
    text-align: center;
}
.mission-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--secondary-color); /* Màu XANH ĐẬM */
    margin-bottom: 50px;
}
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.mission-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.mission-card:hover {
    transform: translateY(-10px);
}
.mission-card i {
    font-size: 40px;
    color: var(--primary-color); /* Icon màu CAM */
    margin-bottom: 20px;
}
.mission-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color); /* Tiêu đề con màu XANH ĐẬM */
}

/* 4. Team/Expert Section */
.team-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}
.team-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 50px;
}
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}
.team-member {
    max-width: 300px;
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color); /* Viền ảnh màu CAM */
    margin: 0 auto 20px auto; 
    display: block; 
}
.team-member h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin: 0 0 5px 0;
    color: var(--secondary-color);
}
.team-member .role {
    color: var(--primary-color); /* Chức danh màu CAM */
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}
.team-member p {
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header-right, header .container { flex-direction: column; gap: 15px; }
    .header-meta { margin-left: 0; }
    header nav ul { text-align: center; }
    header nav ul li { display: block; margin: 0 0 10px 0; }
    
    .story-content {
        flex-direction: column;
    }
    .story-text { order: 2; }
    .story-img { order: 1; margin-bottom: 30px; }
    
    .page-header h1 { font-size: 32px; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-col .logo { margin: 0 auto 15px auto; }
}

/* === FIX: STYLE CHO CÁC ICON MISSION (SVG - Nếu dùng ảnh thay icon font) === */
.mission-card .mission-icon-wrap {
    width: 45px; 
    height: 45px;
    margin: 0 auto 20px auto; 
}

.mission-card .mission-icon-wrap svg,
.mission-card .mission-icon-wrap img {
    width: 100%;
    height: 100%;
    fill: var(--primary-color); /* Đổi màu fill SVG sang CAM */
    color: var(--primary-color); 
}
	/* === CSS RIÊNG CHO TRANG LIÊN HỆ (NEW) - MẸO VẶT STYLE === */

/* 1. Page Header */
.page-header {
    background-color: var(--hover-bg); /* Nền Cam nhạt */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: var(--primary-color); /* Tiêu đề màu CAM */
    margin-bottom: 15px;
    font-weight: 800;
}
.page-header p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. Contact Wrapper (Bao quanh 2 cột) */
.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* 3. Contact Info (Cột bên trái) */
.contact-info {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: var(--secondary-color); /* Tiêu đề con màu XANH ĐẬM */
    margin-bottom: 30px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.info-item i {
    width: 40px;
    height: 40px;
    background-color: var(--hover-bg); /* Nền icon Cam nhạt */
    color: var(--primary-color); /* Icon màu CAM */
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}
.info-content h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: var(--secondary-color);
}
.info-content p {
    margin: 0;
    color: #666;
}

/* Social Connect */
.social-connect {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.social-connect h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.social-connect a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: var(--secondary-color); /* Nền mặc định XANH ĐẬM */
    color: var(--white);
    border-radius: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-connect a:hover {
    background-color: var(--primary-color); /* Hover chuyển sang CAM */
    transform: translateY(-3px);
}

/* 4. Contact Form (Cột bên phải) */
.contact-form-container {
    flex: 1.5;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.contact-form-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: var(--secondary-color); /* Tiêu đề con màu XANH ĐẬM */
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color); /* Focus viền màu CAM */
}
.submit-btn {
    background-color: var(--primary-color); /* Nút màu CAM */
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #e55a2b; /* Cam đậm hơn khi hover */
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* 5. Map Section */
.map-section {
    margin-bottom: 0;
}
.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Responsive cho trang Contact */
@media (max-width: 768px) {
    /* Header Responsive đã có ở phần Global, chỉ cần chỉnh layout nội dung */
    
    .page-header h1 { font-size: 32px; }
    
    .contact-wrapper {
        flex-direction: column; /* Xếp chồng cột */
    }
    .contact-info, .contact-form-container {
        width: 100%; /* Full width trên mobile */
        padding: 25px;
        box-sizing: border-box;
    }
}
	
/* === CSS RIÊNG CHO TRANG CỘNG ĐỒNG (MẸO VẶT STYLE) === */

/* 1. Community Hero */
.comm-hero {
    /* Giữ nền trắng mờ để text dễ đọc trên ảnh nền */
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://placehold.co/1920x800?text=Community+Background');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
}
.comm-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: var(--primary-color); /* Tiêu đề màu CAM */
    margin-bottom: 20px;
    font-weight: 800;
}
.comm-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #555;
}
.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color); /* Số liệu màu XANH ĐẬM cho tin cậy */
    font-family: 'Montserrat', sans-serif;
}
.stat-label {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 2. Group Links (Các kênh kết nối) */
.group-section {
    padding: 80px 0;
}
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.group-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}
.group-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color); /* Hover viền màu CAM */
}
.group-icon {
    font-size: 50px;
    margin-bottom: 20px;
}
/* Giữ nguyên màu thương hiệu mạng xã hội */
.group-fb { color: #1877F2; }
.group-zalo { color: #0068FF; } 
.group-insta { color: #E4405F; }

.group-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color); /* Tiêu đề con XANH ĐẬM */
}
.group-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}
.join-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
/* Button Styles riêng cho từng mạng */
.btn-fb { background-color: #1877F2; color: #fff; }
.btn-fb:hover { background-color: #1464cc; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3); }

.btn-zalo { background-color: #0068FF; color: #fff; }
.btn-zalo:hover { background-color: #0056d6; box-shadow: 0 5px 15px rgba(0, 104, 255, 0.3); }

/* 3. Benefits (Lợi ích) */
.benefits {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.benefits h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 50px;
}
.benefit-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.benefit-item {
    max-width: 300px;
}
.benefit-item i {
    font-size: 30px;
    color: var(--primary-color); /* Icon màu CAM */
    margin-bottom: 15px;
    background: var(--hover-bg); /* Nền icon CAM nhạt */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}
.benefit-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

/* 4. Guidelines (Nội quy/Lưu ý) */
.guidelines {
    padding: 80px 0;
    background-color: var(--bg-color); /* Nền xám nhạt */
    text-align: center;
}
.guidelines-box {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
    border-top: 5px solid var(--primary-color); /* Điểm nhấn viền trên màu CAM */
}
.guidelines h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color); /* Tiêu đề XANH ĐẬM */
}
.guidelines ul {
    list-style: none;
    padding: 0;
}
.guidelines ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: #444;
}
.guidelines ul li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color); /* Dấu tích màu CAM */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header Responsive đã có ở phần Global */
    
    .comm-hero { padding: 60px 0; }
    .comm-hero h1 { font-size: 32px; }
    
    .stats { flex-direction: column; gap: 30px; }
    
    .group-section, .benefits, .guidelines { padding: 50px 0; }
    
    .guidelines-box { padding: 30px 20px; }
}
	
/* === CSS RIÊNG CHO TRANG KIẾN THỨC (BLOG CATEGORY) - MẸO VẶT STYLE === */

/* 1. Page Header & Breadcrumb */
.page-header {
    background-color: var(--hover-bg); /* Nền Cam nhạt */
    padding: 40px 0;
    margin-bottom: 40px;
}
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.breadcrumb a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--primary-color);
}
.breadcrumb span {
    color: var(--primary-color); /* Màu active là CAM */
    font-weight: 600;
}
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--secondary-color); /* Tiêu đề màu XANH ĐẬM */
    margin: 0;
    font-weight: 700;
}

/* 2. Layout: Main Content + Sidebar */
.blog-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

/* --- MAIN CONTENT (Bên trái) --- */
.blog-main {
    flex: 2.5; /* Chiếm 2.5 phần */
}

/* 1. Layout List (1 Cột dọc) */
.blog-grid {
    display: flex;
    flex-direction: column; /* Xếp chồng lên nhau */
    gap: 30px;
}

/* 2. Thẻ bài viết (Horizontal Card) */
.blog-card {
    display: flex;
    flex-direction: row; /* QUAN TRỌNG: Ảnh trái - Chữ phải */
    background-color: var(--white);
    border-radius: 12px; /* Bo góc mềm mại hơn */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    align-items: stretch; /* Kéo giãn chiều cao bằng nhau */
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-color); /* Viền màu CAM khi hover */
}

/* 3. Phần Ảnh (Bên trái) */
.blog-thumb {
    width: 40%; /* Ảnh chiếm 40% */
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Ngăn ảnh bị co lại */
    min-height: 220px; /* Đảm bảo chiều cao tối thiểu */
}

.blog-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute; /* Absolute để fill đầy khung */
    top: 0; left: 0;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.1);
}

/* Badge chuyên mục */
.blog-cat-tag {
    position: absolute;
    top: 15px; left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 4. Phần Nội dung (Bên phải) */
.blog-info {
    width: 60%; /* Chữ chiếm 60% */
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Căn giữa nội dung theo chiều dọc */
}

.blog-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.blog-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px; /* Tăng size chữ tiêu đề */
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: 700;
}

.blog-title a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    /* Giới hạn 2 dòng để đều đẹp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    margin-top: auto; /* Đẩy xuống đáy nếu nội dung ngắn */
}

.read-more-btn:hover {
    color: #e55a2b;
    text-decoration: none;
}

/* --- RESPONSIVE MOBILE (QUAN TRỌNG) --- */
/* Trên điện thoại quay về dạng dọc (Ảnh trên - Chữ dưới) */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column; /* Quay về dọc */
    }
    
    .blog-thumb {
        width: 100%;
        padding-top: 60%; /* Tỉ lệ khung hình 16:9 */
        min-height: auto;
    }
    
    .blog-info {
        width: 100%;
        padding: 20px;
    }
    
    .blog-title {
        font-size: 18px; /* Giảm size chữ trên mobile */
    }
}
/* Pagination (Phân trang) */
.pagination {
    margin-top: 50px;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--white);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50%;
    margin: 0 5px;
    font-weight: 700;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}
.pagination a:hover, .pagination .current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* --- SIDEBAR (Bên phải) --- */
.blog-sidebar {
    flex: 1; /* Chiếm 1 phần */
	position: sticky;
    top: 90px; /* Cách mép trên 90px (trừ hao header) */
    height: fit-content;
}
.widget {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;

}
.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--secondary-color); /* Tiêu đề widget XANH ĐẬM */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color); /* Gạch chân CAM */
}

/* Widget: Search */
.search-form {
    display: flex;
}
.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}
.search-form input:focus {
    border-color: var(--primary-color);
}
.search-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-form button:hover {
    background-color: #e55a2b;
}

/* Widget: Categories */
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-list li {
    border-bottom: 1px dashed #eee;
}
.cat-list li:last-child {
    border-bottom: none;
}
.cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    text-decoration: none;
    color: #555;
    font-size: 15px;
    transition: color 0.3s ease;
}
.cat-list a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Hiệu ứng trượt nhẹ */
}
.cat-count {
    background-color: var(--hover-bg); /* Nền cam nhạt */
    color: var(--primary-color); /* Chữ CAM */
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        margin-top: 20px;
    }
}
@media (max-width: 768px) {
    /* Header mobile code (copy from prev) */
    .header-right, header .container { flex-direction: column; gap: 15px; }
    .header-meta { margin-left: 0; }
    header nav ul { text-align: center; }
    header nav ul li { display: block; margin: 0 0 10px 0; }

    .blog-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
    }
}
/* --- WIDGET: CATEGORIES & POPULAR POSTS FIX (MẸO VẶT STYLE) --- */

/* 1. Widget Categories (Chuyên Mục) */
/* Selector mới nhắm vào .widget_categories UL và LI */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 2. THẺ LI (CONTAINER) - Áp dụng Flexbox ở đây */
.widget_categories li {
    display: flex; /* BẬT FLEX ĐỂ XẾP NGANG */
    justify-content: space-between; /* Đẩy name (trái) và count (phải) ra hai bên */
    align-items: center; /* Căn giữa dọc */
    padding: 12px 0; /* Di chuyển padding vào đây */
    border-bottom: 1px solid #f9f9f9;
}
.widget_categories li:last-child {
    border-bottom: none;
}

/* 3. THẺ LINK (A) - Tên Chuyên Mục */
.widget_categories li a {
    flex-grow: 1; /* Cho phép link text kéo giãn */
    padding-right: 10px; /* Thêm khoảng cách trước số đếm */
    text-decoration: none;
    color: #555;
    font-size: 15px;
    transition: color 0.3s ease;
}
.widget_categories li a:hover {
    color: var(--primary-color); /* Hover màu CAM */
}

/* 4. THẺ COUNT (SPAN) */
.widget_categories .cat-count {
    background-color: var(--hover-bg); /* Nền Cam nhạt */
    color: var(--secondary-color); /* Chữ XANH ĐẬM */
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0; /* Ngăn số đếm bị co lại */
}

/* --- WIDGET: BÀI VIẾT HOT (Sử dụng CSS của Custom Widget) --- */

/* Wrapper cho từng bài viết */
.popular-posts-list .popular-post-item {
    display: flex; /* Key: Xếp ngang */
    align-items: center; /* Căn giữa dọc */
    gap: 15px; /* Khoảng cách giữa ảnh và text */
    
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9; /* Đường phân cách */
    list-style: none;
}
.popular-posts-list .popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 1. Ảnh Thumbnail (70x70px) */
/* Selector này nhắm thẳng vào thẻ <img> bên trong item */
.popular-post-item a img.wpp-thumbnail {
    width: 70px;
    height: 70px;
    max-width: 70px; /* Khóa chiều rộng */
    min-width: 70px; /* Khóa chiều rộng (phòng thủ) */
    
    border-radius: 5px; 
    object-fit: cover;
    flex-shrink: 0; /* Ngăn ảnh co lại */
    margin: 0; /* Xóa margin WPP */
}

/* 2. Text Wrapper */
.popular-post-info {
    flex-grow: 1; /* Cho phép block này chiếm hết không gian còn lại */
}

/* 3. Tiêu đề (Link) */
.popular-post-info h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 3px 0;
}
.popular-post-info h4 a {
    color: #333;
    text-decoration: none;
}
.popular-post-info h4 a:hover {
    color: var(--primary-color); /* Hover màu CAM */
}

/* 4. Views/Meta Data */
.popular-post-info span {
    font-size: 12px;
    color: #999;
    display: block; /* Buộc views xuống dòng dưới tiêu đề */
    margin-top: 5px;
}
.popular-post-info span i {
    color: var(--secondary-color); /* Icon Mắt màu XANH ĐẬM */
    margin-right: 4px;
}

/* === WIDGET: NEWSLETTER FORM (Sidebar Stacked Fix) === */

/* 1. Kích hoạt Flexbox Xếp Dọc trên Form */
.blog-sidebar .widget .wpcf7-form {
    display: flex !important;
    flex-direction: column; /* Ép nó xếp dọc */
    width: 100%;
    gap: 10px; /* Khoảng cách giữa input và button */
    padding: 0 !important; /* Loại bỏ padding thừa nếu có */
    margin: 0 !important;
}

/* --- Sửa Lỗi Thẩm Mỹ Input/Button trong Sidebar --- */

/* 1. Style Input Email (Thêm Border và màu nền rõ ràng) */
.blog-sidebar .widget input[type="email"] {
    flex: 1 !important;
    width: 100% !important;
    padding: 10px 15px !important;
    
    /* FIX: Thêm border màu xám nhạt */
    border: 1px solid #ddd !important; 
    
    border-radius: 4px !important; 
    background-color: #fff !important; 
    color: #333 !important;
    font-size: 16px;
    outline: none;
    height: auto;
}
.blog-sidebar .widget input[type="email"]:focus {
    border-color: var(--primary-color) !important; /* Focus viền màu CAM */
}

/* 2. Style Nút Submit (Đảm bảo hover và màu sắc chuẩn) */
.blog-sidebar .widget input[type="submit"] {
    padding: 10px 15px !important;
    border: none !important;
    border-radius: 4px !important; /* Bo góc đều 4 góc */
    background-color: var(--primary-color) !important; /* Nền màu CAM */
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 !important;
    width: 100%; /* Giữ full width */
}

.blog-sidebar .widget input[type="submit"]:hover {
    background-color: #e55a2b !important; /* Cam đậm hơn khi hover */
}

/* 3. Reset wrapper của CF7 để không phá vỡ layout */
.blog-sidebar .widget .wpcf7-form-control-wrap {
    display: block !important; 
    margin: 0 !important;
    padding: 0 !important;
}

/* === FIX: GHI ĐÈ STYLE CHO WIDGET Ở FOOTER === */

footer .widget {
    /* 1. Loại bỏ style xung đột từ sidebar */
    background-color: transparent !important; 
    box-shadow: none !important;
    padding: 0 !important; /* Loại bỏ padding 25px */
    border-radius: 0 !important;
    
    /* 2. Giữ lại khoảng cách cho các cột */
    margin-bottom: 25px; /* Giảm margin dưới cho sạch sẽ */
}

/* 3. Sửa lại tiêu đề Widget (h3) để khớp với màu footer */
footer .widget-title {
    color: #fff; /* Chữ trắng */
    font-family: 'Montserrat', sans-serif;
    font-size: 18px; /* Giảm size chút cho tinh tế */
    margin-bottom: 20px;
    
    /* Xóa gạch chân xanh lá cây của Sidebar */
    border-bottom: none;
    padding-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Xóa luôn gạch chân giả (pseudo-element) nếu có */
footer .widget-title::after {
    display: none;
}

/* 4. Sửa lại list item (menu) để khớp với design footer */
footer .widget ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}
footer .widget ul li {
    margin-bottom: 10px; /* Giãn cách dòng */
}
footer .widget ul li a {
    color: #aaa; 
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}
footer .widget ul li a:hover {
    color: var(--primary-color); /* Hover màu CAM */
    padding-left: 5px;
}
/* === CSS RIÊNG CHO SINGLE POST (CHI TIẾT BÀI VIẾT) - MẸO VẶT STYLE === */

/* 1. Breadcrumb & Title */
.single-post-main { flex: 2.5; }
.breadcrumb { font-size: 14px; color: #666; margin-bottom: 15px; }
.breadcrumb a { text-decoration: none; color: #666; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { color: var(--primary-color); font-weight: 600; }

.post-header { margin-bottom: 30px; }
.post-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 32px; /* Giảm chút cho gọn */
    line-height: 1.3; 
    color: var(--secondary-color); /* Tiêu đề màu XANH ĐẬM */
    margin-bottom: 15px; 
    font-weight: 800;
}
.post-meta-info { font-size: 14px; color: #888; display: flex; align-items: center; gap: 20px; }
.post-meta-info i { margin-right: 5px; color: var(--primary-color); /* Icon meta màu CAM */ }
.post-cat-badge { 
    background-color: var(--primary-color); /* Badge màu CAM */
    color: var(--white); 
    padding: 3px 10px; 
    border-radius: 3px; 
    font-size: 11px; 
    font-weight: 700; 
    text-decoration: none; 
    text-transform: uppercase;
}

/* 2. Post Content Area */
.post-content-area { 
    background-color: var(--white); 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); 

}

/* Typography cho bài viết (Rất quan trọng để dễ đọc) */
.entry-content { font-size: 18px; line-height: 1.8; color: #333; }
.entry-content p { margin-bottom: 25px; }
.entry-content h2 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 26px; 
    color: var(--secondary-color); /* Heading XANH ĐẬM */
    margin-top: 40px; 
    margin-bottom: 20px; 
    font-weight: 700;
}
.entry-content h3 { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 22px; 
    color: var(--secondary-color); 
    margin-top: 30px; 
    margin-bottom: 15px; 
    font-weight: 700; 
}
.entry-content ul, .entry-content ol { margin-bottom: 25px; padding-left: 25px; }
.entry-content li { margin-bottom: 10px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }

/* FIX: Link trong Nội Dung Bài Viết */
.entry-content a {
    color: var(--primary-color); /* Link màu CAM */
    text-decoration: underline; 
    font-weight: 500;
}
.entry-content a:hover {
    color: #e55a2b; /* Cam đậm khi hover */
}

/* Table of Contents (Mục lục) */
.toc-box { 
    background-color: var(--hover-bg); /* Nền Cam nhạt */
    padding: 25px; 
    border-radius: 8px; 
    margin-bottom: 40px; 
    border: 1px solid #eee; 
    border-left: 4px solid var(--primary-color); /* Viền nhấn màu CAM */
}
.toc-title { 
    font-weight: 700; font-size: 18px; margin-bottom: 15px; display: block; color: var(--secondary-color); 
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a { 
    text-decoration: none; 
    color: #555; 
    font-weight: 500; 
    transition: color 0.2s; 
}
.toc-list a:hover { 
    color: var(--primary-color); 
    text-decoration: underline; 
}

/* Blockquote */
.entry-content blockquote { 
    border-left: 5px solid var(--primary-color); 
    background-color: #f9f9f9; 
    margin: 30px 0; 
    padding: 20px 30px; 
    font-style: italic; 
    color: #555; 
    border-radius: 0 5px 5px 0; 
}

/* 3. Tags & Share */
.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.post-tags { margin-bottom: 20px; }
.post-tags a { 
    display: inline-block; 
    background-color: #f1f1f1; 
    color: #555; 
    padding: 5px 15px; 
    border-radius: 20px; 
    text-decoration: none; 
    font-size: 13px; 
    margin-right: 10px; 
    transition: all 0.3s; 
}
.post-tags a:hover { 
    background-color: var(--primary-color); 
    color: var(--white); 
}

/* 4. Author Box */
.author-box { 
    display: flex; align-items: center; gap: 20px; 
    background-color: #fff; /* Nền trắng */
    padding: 30px; 
    border-radius: 8px; 
    margin-top: 40px; 
    border: 1px solid #eee; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.author-img { 
    width: 80px; height: 80px; 
    border-radius: 50%; object-fit: cover; 
    border: 2px solid var(--primary-color); /* Viền ảnh tác giả màu CAM */
}
.author-info h4 { margin: 0 0 10px 0; font-size: 18px; color: var(--secondary-color); font-weight: 700; }
.author-info p { margin: 0; font-size: 15px; color: #666; }

/* 5. Related Posts */
.related-posts { margin-top: 50px; }
.related-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 24px; 
    margin-bottom: 30px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--primary-color); /* Gạch chân màu CAM */
    display: inline-block; 
    color: var(--secondary-color);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-item img { 
    width: 100%; height: 180px; object-fit: cover; border-radius: 5px; margin-bottom: 10px; 
    transition: opacity 0.3s;
}
.related-item:hover img { opacity: 0.9; }
.related-item h3 { font-size: 16px; line-height: 1.4; margin: 0; font-weight: 600; }
.related-item h3 a { text-decoration: none; color: #333; transition: color 0.2s; }
.related-item h3 a:hover { color: var(--primary-color); }

/* 6. Comments Area (FIX VÀ TĂNG CƯỜNG) */
.comments-area { margin-top: 50px; }
.comments-title { 
    font-size: 24px; margin-bottom: 30px; 
    font-family: 'Montserrat', sans-serif; 
    color: var(--secondary-color);
}

/* Unify all Input Fields */
.comments-area .comment-form input:not([type="submit"]),
.comments-area .comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    box-sizing: border-box;
}
.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
    border-color: var(--primary-color); /* Focus màu CAM */
}

/* Style Submit Button */
.comments-area #submit {
    background-color: var(--primary-color); /* Nút màu CAM */
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
    width: auto;
    text-transform: uppercase;
    font-size: 14px;
}
.comments-area #submit:hover {
    background-color: #e55a2b;
}

/* Comment List */
.comments-area ol.comment-list {
    list-style: none; margin: 0; padding: 0;
}
.comments-area .comment-body {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff;
}
.comments-area .comment-author img.avatar {
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #eee;
}
.comments-area .comment-metadata {
    font-size: 12px; color: #999; margin-bottom: 10px;
}
.comments-area .comment-metadata a { color: #999; text-decoration: none; }
.comments-area .comment-metadata a:hover { color: var(--primary-color); }

/* FIX COMMENT FORM CHECKBOX */
.comments-area .comment-form-cookies-consent {
    margin-bottom: 25px;
    padding-top: 10px;
    display: flex; 
    align-items: flex-start;
    gap: 10px; 
}
.comments-area .comment-form-cookies-consent label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    flex-grow: 1; 
}
.comments-area .comment-form-cookies-consent input[type="checkbox"] {
    width: 16px; height: 16px; margin-right: 10px;
    accent-color: var(--primary-color); /* Màu checkmark CAM */
}

/* Responsive */
@media (max-width: 992px) { 
    .blog-layout { flex-direction: column; } 
    .blog-sidebar { margin-top: 30px; } 
}
@media (max-width: 768px) {
    /* Header Responsive đã có ở phần Global */
    .post-title { font-size: 26px; }
    .post-content-area { padding: 25px; }
    .related-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   STYLE BÀI VIẾT LIÊN QUAN CHÈN GIỮA (NEW STYLE)
   ====================================================== */
.inline-related-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d32f2f; /* Màu đỏ chủ đạo của Mẹo Vặt (hoặc đổi màu bạn thích) */
    border-radius: 8px;
    padding: 15px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inline-related-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #b71c1c;
}

/* 1. Ảnh Thumbnail */
.irb-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.irb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.inline-related-box:hover .irb-thumb img {
    transform: scale(1.1);
}

/* 2. Thông tin bài viết */
.irb-info {
    flex-grow: 1;
    padding-right: 10px;
}

.irb-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.irb-title {
    margin: 0;
    line-height: 1.4;
}

.irb-title a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    /* Giới hạn 2 dòng nếu tên quá dài */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inline-related-box:hover .irb-title a {
    color: #d32f2f; /* Đổi màu tiêu đề khi hover box */
}

/* 3. Mũi tên điều hướng */
.irb-arrow {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 50%;
    color: #d32f2f;
    text-decoration: none;
    transition: all 0.3s;
}

.inline-related-box:hover .irb-arrow {
    background-color: #d32f2f;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .inline-related-box {
        padding: 12px;
    }
    .irb-thumb {
        width: 60px;
        height: 60px;
    }
    .irb-title a {
        font-size: 0.95rem;
    }
    .irb-arrow {
        display: none; /* Ẩn mũi tên trên mobile cho gọn */
    }
}

/* === SHARE BOX CUỐI BÀI === */
.meovat-share-box {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.meovat-share-box .share-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Màu xanh đậm */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none; /* Cho nút button */
    color: #fff !important; /* Chữ luôn trắng */
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Màu thương hiệu */
.btn-fb {
    background-color: #1877F2;
}
.btn-fb:hover {
    background-color: #1464cc;
}

.btn-zalo {
    background-color: #0068FF; /* Màu xanh Zalo chuẩn */
}
.btn-zalo:hover {
    background-color: #0056d6;
}

.btn-copy {
    background-color: var(--primary-color); /* Màu Cam chủ đạo của web */
}
.btn-copy:hover {
    background-color: #e55a2b;
}

/* Trạng thái đã copy */
.btn-copy.copied {
    background-color: #27ae60; /* Màu xanh lá thành công */
    pointer-events: none;
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .meovat-share-box {
        padding: 20px;
    }
    .share-buttons {
        flex-direction: column; /* Xếp dọc trên điện thoại cho dễ bấm */
    }
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* === BACK TO TOP BUTTON === */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color); /* Màu Xanh Đậm */
    color: #fff;
    border-radius: 5px;
    text-align: center;
    line-height: 45px;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--primary-color); /* Hover chuyển màu Cam */
    transform: translateY(-5px); /* Bay lên nhẹ */
}

/* Mobile: Thu nhỏ lại chút để đỡ che nội dung */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}
/* ========================================= */
/* 11. LIVE SEARCH STYLES (BẢN ĐẸP)          */
/* ========================================= */

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Bóng đổ sâu hơn */
    border-radius: 0 0 12px 12px; /* Bo góc dưới mềm mại */
    z-index: 9999;
    display: none;
    max-height: 450px; /* Tăng chiều cao */
    overflow-y: auto; /* Cuộn dọc */
    
    /* Tùy chỉnh thanh cuộn cho đẹp (Chrome/Safari) */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Thanh cuộn đẹp (Webkit) */
.live-search-results::-webkit-scrollbar {
    width: 6px;
}
.live-search-results::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.live-search-results::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

/* Danh sách kết quả */
.live-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-search-list li {
    border-bottom: 1px solid #f1f5f9;
}

.live-search-list li:last-child {
    border-bottom: none; /* Bỏ gạch chân mục cuối */
}

/* Link item */
.live-search-list li a {
    display: flex;
    align-items: center; /* Căn giữa dọc */
    padding: 12px 20px; /* Tăng khoảng cách cho thoáng */
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.live-search-list li a:hover {
    background-color: #f8fafc; /* Màu nền xám xanh rất nhạt khi hover */
}

/* Ảnh thumbnail */
.search-item-thumb {
    width: 60px; /* Tăng kích thước ảnh */
    height: 60px;
    flex-shrink: 0; /* Không cho ảnh bị bóp méo */
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid #eee;
    background-color: #f0f0f0;
}

.search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thông tin bài viết */
.search-item-info {
    flex-grow: 1;
    text-align: left; /* Căn trái chữ */
}

.search-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px; /* Chữ to hơn chút */
    color: var(--text-color); /* Màu đen chính */
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    
    /* Giới hạn 2 dòng, quá dài thì ... */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-item-info .search-date {
    font-size: 12px;
    color: #94a3b8; /* Màu xám nhạt */
    display: block;
    font-weight: 500;
}

/* Nút Xem tất cả (Dưới cùng) */
.live-search-list .view-all-result {
    background-color: #fff7ed; /* Nền cam rất nhạt làm điểm nhấn */
    position: sticky; /* Dính ở đáy nếu danh sách dài */
    bottom: 0;
    border-top: 1px solid #ffedd5;
}

.live-search-list .view-all-result a {
    display: block;
    color: var(--primary-color); /* Màu CAM chủ đạo */
    font-weight: 700;
    font-size: 14px;
    text-align: center; /* Căn giữa */
    padding: 15px;
    justify-content: center;
}

.live-search-list .view-all-result a:hover {
    background-color: #ffedd5;
    color: #c2410c; /* Cam đậm hơn */
}

/* Loading & No Result */
.search-loading, .no-result {
    padding: 25px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}
.search-loading i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
}

/* ================================================= */
/* STYLE CHO PHẦN FAQs (ACCORDION) - TC TECH STYLE */
/* ================================================= */

.faq-section {
    margin-top: 50px;
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); /* Bóng nhẹ tinh tế */
}

.faq-heading {
    font-size: 1.5rem;
    color: var(--primary-color); /* Xanh Navy */
    font-weight: 800;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

/* ================================================= */
/* STYLE CHO PHẦN FAQs (ACCORDION)                   */
/* ================================================= */

/* 1. Khung bao ngoài */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Bóng đổ nhẹ */
}

/* 2. Tiêu đề chính */
.faq-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color); /* Màu tiêu đề chính */
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.faq-heading i {
    color: var(--primary-color); /* Icon màu chủ đạo */
    font-size: 1.5rem;
}

/* 3. Từng câu hỏi (Item) */
.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none; /* Bỏ gạch chân câu cuối */
}

/* 4. Nút bấm câu hỏi */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color); /* Màu chữ nội dung */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.faq-question:hover {
    color: var(--primary-color); /* Hover đổi màu chủ đạo */
}

/* Icon mũi tên */
.faq-question i {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
}

/* 5. Trạng thái khi ĐANG MỞ (Class 'active' do JS thêm vào) */
.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg); /* Xoay mũi tên lên */
    color: var(--primary-color);
}

/* 6. Phần nội dung trả lời (Ẩn mặc định) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0;
}

.faq-answer p {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    padding-right: 20px; /* Chừa lề phải cho thoáng */
}
.editor-styles-wrapper a{color:var(--primary-color);}