/*
Theme Name: Hệ Thống Văn Bằng SEO Theme
Theme URI: https://hethongvanbang.com
Author: Lập Trình Viên SEO
Description: Theme WordPress phong cách Landing Page xanh ngọc bích, tối ưu siêu tốc độ, chuẩn SEO truyền thống và AI SEO.
Version: 1.3.0
Text Domain: hethongvanbang
*/

/* ==========================================================================
   1. ĐỊNH NGHĨA BIẾN & CẤU HÌNH CƠ BẢN (CORE STYLES)
   ========================================================================== */
:root {
    --primary-color: #00897b;     /* Xanh ngọc bích đậm - tạo sự an tâm, chuyên nghiệp */
    --primary-light: #e0f2f1;     /* Xanh ngọc bích nhạt làm nền bổ trợ */
    --secondary-color: #00695c;   /* Xanh ngọc bích tối */
    --accent-color: #ffb300;      /* Màu vàng hổ phách nổi bật cho nút bấm CTA chuyển đổi */
    --text-color: #334155;        /* Màu xám đen Slate giúp mắt dễ đọc, giảm mỏi mắt */
    --white: #ffffff;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.8; 
    color: var(--text-color); 
    background-color: var(--white); 
    -webkit-font-smoothing: antialiased;
}

a { 
    color: var(--primary-color); 
    text-decoration: none; 
    transition: all 0.3s ease; 
}
a:hover { 
    color: var(--secondary-color); 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.site-layout { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    margin: 40px 0; 
}

@media (min-width: 992px) {
    .site-layout { grid-template-columns: 2.5fr 1fr; }
}

/* ==========================================================================
   2. TYPOGRAPHY CHUẨN SEO NGỮ NGHĨA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 35px;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 32px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 12px;
}
@media (min-width: 768px) { h1 { font-size: 38px; } }

h2 {
    font-size: 24px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}
@media (min-width: 768px) { h2 { font-size: 28px; } }

h3 { font-size: 20px; color: #111827; }
p { font-size: 16px; color: var(--text-color); margin-bottom: 20px; text-align: justify; }
@media (max-width: 768px) { p { text-align: left; } }

strong { color: #0f172a; font-weight: 700; }

blockquote {
    background-color: var(--primary-light);
    border-left: 6px solid var(--primary-color);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}
blockquote p { font-style: italic; color: var(--secondary-color); font-size: 17px; margin-bottom: 0; }

ul, ol { margin-bottom: 25px; padding-left: 20px; }
ul { list-style: none; }
ul li { font-size: 16px; color: var(--text-color); line-height: 1.7; margin-bottom: 12px; position: relative; padding-left: 25px; }
ul li::before { content: "✓"; color: var(--primary-color); font-weight: bold; position: absolute; left: 0; top: 0; }

img { max-width: 100%; height: auto; display: block; margin: 25px auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }

/* ==========================================================================
   3. HEADER & MENU ĐIỀU HƯỚNG PHẲNG (Triệt tiêu 100% Icon)
   ========================================================================== */
.site-header { 
    background: var(--white); 
    border-bottom: 4px solid var(--primary-color); 
    padding: 15px 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}
.header-wrap { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between; 
    gap: 15px; 
    width: 100%;
}

.site-logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    margin: 0;
    box-shadow: none !important;
}

/* Xóa bỏ tận gốc dấu chấm tròn list-style và icon thừa kế của Menu */
.main-navigation ul, .main-navigation li, .nav-menu-list, .nav-menu-list ul, .nav-menu-list li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}
.main-navigation li::before, .main-navigation li::after, .nav-menu-list li::before, .nav-menu-list li::after {
    content: "" !important;
    display: none !important;
}

/* Cấu hình hiển thị linh hoạt trên Máy tính (Desktop) */
@media (min-width: 768px) {
    .header-wrap { flex-direction: row; }
    .menu-toggle { display: none !important; }
    .nav-menu-list { display: flex !important; flex-direction: row !important; gap: 20px; }
    .nav-menu-list a { color: #334155; font-weight: 600; font-size: 15px; padding: 8px 12px; display: inline-block; }
    .nav-menu-list a:hover { color: var(--primary-color); text-decoration: none !important; }
}

/* Cấu hình thu gọn mượt mà trên Điện thoại (Mobile) */
@media (max-width: 767.98px) {
    .main-navigation { position: relative; width: 100%; display: flex; justify-content: flex-end; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 1000; padding: 0 !important; }
    .menu-toggle .bar { width: 100%; height: 3px; background-color: var(--primary-color); transition: all 0.3s ease; }
    
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu-list {
        display: none; position: absolute; top: 40px; right: 0; background: #ffffff; width: 260px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-radius: 8px; padding: 10px 0 !important; z-index: 999; border: 1px solid #e2e8f0;
    }
    .nav-menu-list.open { display: block !important; }
    .nav-menu-list li { width: 100% !important; }
    .nav-menu-list a { display: block; padding: 12px 20px; color: #334155; font-weight: 600; font-size: 15px; border-bottom: 1px solid #f1f5f9; }
    .nav-menu-list li:last-child a { border-bottom: none; }
    .nav-menu-list a:hover { background-color: var(--primary-light); color: var(--primary-color); text-decoration: none !important; }
}

/* ==========================================================================
   4. CÁC THÀNH PHẦN TĂNG TỶ LỆ CHUYỂN ĐỔI CHẤT LƯỢNG CAO
   ========================================================================== */
.hero-box { background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); color: var(--white); padding: 45px 30px; border-radius: 12px; text-align: center; margin-bottom: 40px; box-shadow: 0 8px 24px rgba(0, 137, 123, 0.2); }
.hero-box h1 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 15px; }
.hero-box p { font-size: 18px; opacity: 0.9; max-width: 800px; margin: 0 auto 25px; }

.cta-btn { display: inline-block; background: var(--accent-color); color: #000 !important; font-weight: 700; padding: 14px 35px; border-radius: 50px; text-transform: uppercase; font-size: 18px; box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4); border: 2px solid transparent; }
.cta-btn:hover { background: var(--white); color: var(--primary-color) !important; border-color: var(--primary-color); text-decoration: none; }

.hero-cta-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 25px; }
.cta-btn.secondary { background: #ffffff; color: var(--primary-color) !important; border: 2px solid var(--primary-color); }
.cta-btn.secondary:hover { background: var(--primary-light); }

.cta-box { background: linear-gradient(135deg, #fffbb5, var(--primary-light)); border: 2px dashed var(--primary-color); padding: 30px; border-radius: 12px; text-align: center; margin: 40px 0; }
.cta-box h3 { color: var(--secondary-color); font-size: 22px; margin-top: 0; font-weight: 800; }

.grid-benefits { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 576px) { .grid-benefits { grid-template-columns: repeat(2, 1fr); } }

.benefit-item { background: var(--primary-light); padding: 20px; border-radius: 8px; border-top: 4px solid var(--primary-color); }
.benefit-item h3 { color: var(--secondary-color); margin-bottom: 10px; font-size: 18px; margin-top: 0; }

.alert-box { background: #fff5f5; padding: 30px; border-radius: 12px; border: 1px solid #feb2b2; }
.card-white { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.card-white h3 { color: #c53030; font-size: 18px; margin-bottom: 10px; margin-top: 0; }

/* Hệ thống Thư viện ảnh minh họa */
.image-gallery-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin: 30px 0; }
@media (min-width: 768px) { .image-gallery-grid { grid-template-columns: 1fr 1fr; } }
.gallery-item { background: #f8fafc; padding: 15px; border-radius: 10px; border: 1px solid #e2e8f0; }
.gallery-item img { margin: 0 auto; }
.img-caption { font-size: 14px; font-style: italic; color: #64748b; text-align: center; margin-top: 10px; margin-bottom: 0; }

/* Đánh giá / Feedback khách hàng */
.sf-testimonials { background: var(--primary-light); padding: 40px 20px; border-radius: 12px; margin: 40px 0; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
@media (min-width: 992px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: #ffffff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border-top: 4px solid var(--primary-color); }
.user-info { display: flex; flex-direction: column; margin-bottom: 12px; }
.user-info strong { color: #1e293b; font-size: 15px; }
.user-tag { font-size: 12px; color: var(--primary-color); font-weight: 600; margin-top: 2px; }
.user-comment { font-size: 14px; color: #475569; font-style: italic; margin-bottom: 0; line-height: 1.6; text-align: left !important; }

/* ==========================================================================
   5. SỬA TRIỆT ĐỂ LỖI FAQ ACCORDION (CSS hiệu ứng max-height mượt mà)
   ========================================================================== */
.accordion-container { max-width: 850px; margin: 30px auto 0; }
.faq-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 15px; overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }

button.faq-question {
    width: 100%; background: transparent; border: none; outline: none; padding: 20px; font-size: 16px;
    text-align: left; color: var(--secondary-color); font-weight: 700; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; font-family: inherit; line-height: 1.5; margin: 0;
    transition: background 0.3s ease, color 0.3s ease;
}
button.faq-question::after { content: "+"; font-size: 22px; color: var(--primary-color); font-weight: 400; transition: transform 0.3s ease; margin-left: 15px; }

/* Quản lý hộp ẩn/hiện bằng CSS Transition nâng cao chống reflow nảy trang */
.faq-item .faq-answer {
    max-height: 0; overflow: hidden; opacity: 0; padding: 0 20px; background: #ffffff;
    border-top: 0 solid #f1f5f9; color: #4a5568; font-size: 15px; line-height: 1.7;
    transition: max-height 0.35s ease-out, opacity 0.3s ease, padding 0.35s ease;
}
.faq-item .faq-answer p { margin-bottom: 0; }

/* Trạng thái mở rộng khi kích hoạt Class Active từ JavaScript */
.faq-item.active { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0, 137, 123, 0.08); }
.faq-item.active button.faq-question { color: var(--primary-color); background: var(--primary-light); }
.faq-item.active button.faq-question::after { content: "−"; transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 1000px; opacity: 1; padding: 20px; border-top: 1px solid #f1f5f9; }

/* ==========================================================================
   6. THANH BÊN WIDGET & CHÂN TRANG FOOTER CHUẨN ĐỒNG BỘ
   ========================================================================== */
.widget-area { background: #f8fafc; padding: 25px; border-radius: 8px; border: 1px solid #e2e8f0; }
.widget { margin-bottom: 35px; }
.widget-title { font-size: 18px; margin-bottom: 18px; color: var(--secondary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; text-transform: uppercase; font-weight: 700; }

.site-footer { background: #1a202c; color: #a0aec0; padding: 40px 0; margin-top: 60px; font-size: 14px; text-align: center; border-top: 5px solid var(--primary-color); }
.site-footer p { text-align: center !important; color: #a0aec0; }
.footer-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; list-style: none; flex-wrap: wrap; padding: 0; }
.footer-links li::before { content: "" !important; display: none !important; }
.footer-links a { color: #ffffff !important; font-weight: 600; }
.footer-links a:hover { color: var(--accent-color) !important; text-decoration: none; }

.text-center { text-align: center !important; }

/* ==========================================================================
   7. TỐI ƯU PHẢN HỒI DI ĐỘNG CHUYÊN SÂU (MOBILE FIRST)
   ========================================================================== */
@media (max-width: 767.98px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .hero-box { padding: 35px 16px; border-radius: 0; margin-left: -16px; margin-right: -16px; }
    .hero-box h1 { font-size: 24px !important; line-height: 1.4; }
    .hero-box p { font-size: 15px !important; }
    
    .hero-box .cta-btn, .cta-box .cta-btn, .cta-btn { display: block !important; width: 100%; text-align: center; font-size: 16px; padding: 15px 20px; }
    .hero-box div.hero-cta-group { flex-direction: column; gap: 12px !important; }
    
    .section-title { font-size: 20px !important; line-height: 1.4; }
    .grid-benefits, .testimonials-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    button.faq-question { padding: 15px; font-size: 15px !important; }
}

/* 8. THANH THAO TÁC LIÊN HỆ ĐÁY MÀN HÌNH DI ĐỘNG */
.sticky-action-bar { display: none; }
@media (max-width: 767.98px) {
    .sticky-action-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 55px; background: #fff; box-shadow: 0 -3px 10px rgba(0,0,0,0.1); z-index: 9999; }
    .sticky-bar-item { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff !important; font-weight: 700; font-size: 14px; text-transform: uppercase; }
    .sticky-bar-item.phone { background: var(--primary-color); }
    .sticky-bar-item.zalo { background: #0068ff; }
    body { padding-bottom: 55px; }
}
/* ==========================================================================
   CSS TỐI ƯU TRANG KẾT QUẢ TÌM KIẾM (SEARCH PAGE)
   ========================================================================== */

/* Khung bọc danh sách kết quả */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Định dạng từng thẻ bài viết kết quả tìm kiếm */
.search-result-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.08);
}

/* Định dạng ảnh đại diện kết quả tìm kiếm */
.search-item-thumb-link {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
    display: block;
}
.search-item-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important; /* Xóa margin thừa kế */
    box-shadow: none !important;
}

/* Cấu trúc phần nội dung văn bản bên phải ảnh */
.search-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.search-item-title a {
    font-size: 19px !important;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.4;
    transition: color 0.2s ease;
}
.search-item-title a:hover {
    color: var(--primary-color);
}

/* Thông tin ngày tháng chuyên mục */
.search-item-meta {
    font-size: 12px;
    color: #64748b;
    margin: 6px 0 8px 0;
    display: flex;
    gap: 15px;
}
.search-item-meta a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Đoạn trích dẫn văn bản */
.search-item-excerpt p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 10px !important;
    text-align: left !important;
}

/* Link Xem thêm chi tiết */
.search-readmore {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.search-readmore:hover {
    color: var(--secondary-color);
    text-decoration: underline !important;
}

/* Khối thông báo khi không tìm thấy bài viết (Trống kết quả) */
.no-search-results-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 750px;
    margin: 20px auto;
}
.no-results-icon {
    font-size: 50px;
    margin-bottom: 15px;
}
.no-search-results-box h3 {
    font-size: 20px;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 10px;
}
.no-search-results-box p {
    font-size: 15px;
    color: #64748b;
    text-align: center !important;
    line-height: 1.7;
    margin-bottom: 25px;
}
.re-search-form {
    max-width: 450px;
    margin: 0 auto;
}

/* ==========================================================================
   TỐI ƯU RESPONSIVE CHO TRANG TÌM KIẾM TRÊN DI ĐỘNG
   ========================================================================== */
@media (max-width: 767.98px) {
    .search-result-item {
        flex-direction: column; /* Trên điện thoại dồn ảnh lên trên, chữ xuống dưới */
        gap: 15px;
        padding: 15px;
    }
    .search-item-thumb-link {
        width: 100%;
        height: 160px; /* Tăng chiều cao ảnh khi full màn hình */
    }
    .search-item-title a {
        font-size: 17px !important;
    }
    .search-item-meta {
        margin: 4px 0 6px 0;
    }
}

/* ==========================================================================
   CSS TỐI ƯU SIDEBAR TỰ ĐỘNG THUMBNAIL CHO MỌI BÀI VIẾT & XÓA KHỬ ICON LỖI
   ========================================================================== */

/* Ép triệt tiêu mọi pseudo-element sinh icon tự động của theme cũ */
.widget-area .list-card-item::before, .widget-area .list-card-item::after,
.widget-area .list-magazine-item::before, .widget-area .list-magazine-item::after,
.widget-area .list-clean-item::before, .widget-area .list-clean-item::after,
.widget-area div::before, .widget-area div::after {
    content: none !important;
    display: none !important;
}

/* Định dạng cấu trúc danh sách bài viết nhỏ dùng chung */
.list-card-links-container, .list-magazine-container, .list-clean-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.list-card-item, .list-magazine-item, .list-clean-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

.list-card-item:last-child, .list-magazine-item:last-child, .list-clean-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Khung ảnh nhỏ (Mini Thumbnail) cho từng bài viết danh sách */
.mini-thumb-link {
    flex-shrink: 0;
    display: block;
    width: 65px;
    height: 48px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
}
.mini-thumb-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Vùng nội dung chữ cạnh ảnh nhỏ */
.mini-info {
    flex-grow: 1;
    overflow: hidden;
}
.mini-title {
    font-size: 13.5px !important;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.mini-title:hover {
    color: var(--primary-color);
}

/* Bổ trợ riêng cho số đếm tạp chí của mục Tin Tức */
.list-magazine-item {
    position: relative;
}
.magazine-number {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    width: 18px;
    flex-shrink: 0;
}
.list-magazine-item:nth-child(-n+3) .magazine-number {
    color: var(--primary-color); /* Làm nổi bật số đếm 01, 02, 03 */
}
/* ==========================================================================
   CSS RESET & FIX LỖI TRÙNG LẶP ICON SIDEBAR
   ========================================================================== */

/* Ép triệt tiêu mọi pseudo-elements tự sinh icon mũi tên hoặc dấu chấm của theme cũ */
.widget-area .list-card-item::before, .widget-area .list-card-item::after,
.widget-area .list-magazine-item::before, .widget-area .list-magazine-item::after,
.widget-area .list-clean-item::before, .widget-area .list-clean-item::after,
.widget-area div::before, .widget-area div::after {
    content: none !important;
    display: none !important;
}

/* Các container danh sách bài viết nhỏ */
.list-card-links-container, .list-magazine-container, .list-clean-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* Khung bọc ảnh nhỏ (Mini Thumbnail) dùng chung */
.mini-thumb-link {
    flex-shrink: 0;
    display: block;
    width: 65px;
    height: 48px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.mini-thumb-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Phần chữ bên cạnh ảnh nhỏ */
.mini-info {
    flex-grow: 1;
    overflow: hidden;
}
.mini-title {
    font-size: 13.5px !important;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.mini-title:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   PHÂN TÁCH 3 STYLE RIÊNG BIỆT KHÔNG TRÙNG LẶP
   ========================================================================== */

/* --- MỤC 1: DỊCH VỤ (Style Card Hiện Đại) --- */
.widget-style-dichvu { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.post-card-featured { position: relative; margin-bottom: 15px; }
.thumb-zoom { display: block; overflow: hidden; border-radius: 6px; height: 150px; }
.post-card-featured img { width: 100%; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform 0.3s; }
.post-card-featured:hover img { transform: scale(1.04); }
.badge-tag { position: absolute; top: 10px; left: 10px; background: var(--primary-light); color: var(--primary-color); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.post-card-featured h3 { font-size: 15px !important; font-weight: 700; margin: 10px 0 0 0 !important; line-height: 1.4; }
.post-card-featured h3 a { color: var(--secondary-color); text-decoration: none; }
.list-card-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.list-card-item:hover { border-color: var(--primary-color); }
.font-style-1 { border-radius: 4px; }

/* --- MỤC 2: TIN TỨC (Style Tạp Chí Đô Thị) --- */
.widget-style-tintuc { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.post-magazine-featured { 
    height: 180px; border-radius: 6px; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; padding: 15px; margin-bottom: 15px;
}
.magazine-text .meta-date { font-size: 11px; color: #cbd5e1; display: block; margin-bottom: 4px; }
.magazine-text h3 { font-size: 15px !important; font-weight: 700; margin: 0 !important; line-height: 1.4; }
.magazine-text h3 a { color: #ffffff !important; text-shadow: 0 1px 5px rgba(0,0,0,0.8); text-decoration: none; }
.list-magazine-item { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.list-magazine-item:last-child { border-bottom: none; padding-bottom: 0; }
.magazine-number { font-family: monospace; font-size: 13px; font-weight: 700; color: #94a3b8; width: 18px; flex-shrink: 0; }
.list-magazine-item:nth-child(-n+3) .magazine-number { color: var(--primary-color); } /* Đổi màu top 3 bài đầu */
.font-style-2 { border-radius: 50%; width: 48px; height: 48px; } /* Ảnh nhỏ dạng hình tròn đặc trưng của tin tức */

/* --- MỤC 3: KIẾN THỨC (Style Khối Sạch Tối Giản) --- */
.widget-style-kienthuc { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.post-clean-featured img { width: 100%; height: 130px !important; object-fit: cover; border-radius: 4px; margin: 0 0 10px 0 !important; box-shadow: none !important; }
.post-clean-featured h3 { font-size: 15px !important; font-weight: 700; margin: 0 0 6px 0 !important; line-height: 1.4; }
.post-clean-featured h3 a { color: #1e293b; text-decoration: none; }
.clean-excerpt { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 15px; }
.list-clean-item { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed #cbd5e1; }
.list-clean-item:last-child { border-bottom: none; padding-bottom: 0; }
.font-style-3 { border-radius: 4px; }
/* ==========================================================================
   CSS SỬA LỖI TRÙNG LẶP ICON & THIẾT LẬP LAYOUT SỰ NỔI BẬT KHÔNG TRÙNG LẶP
   ========================================================================== */

/* Bước 1: Khử sạch sành sanh toàn bộ icon rác tự sinh từ core của theme cũ */
.widget-area section::before, .widget-area section::after,
.widget-area div::before, .widget-area div::after,
.widget-area a::before, .widget-area a::after,
.widget-area span::before, .widget-area span::after {
    content: none !important;
    display: none !important;
}

/* Bước 2: Thiết lập cấu trúc vùng chứa danh sách bài viết nhỏ dạng list */
.list-card-links-container, .list-magazine-container, .list-clean-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    background: none !important;
}

/* Cấu trúc hàng ngang phẳng cho từng bài viết nhỏ (ảnh bên trái - chữ bên phải) */
.list-card-item, .list-magazine-item, .list-clean-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 0 12px 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    background: none !important;
}
.list-card-item:last-child, .list-magazine-item:last-child, .list-clean-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Kích thước ảnh nhỏ của bài viết dạng list phụ */
.mini-thumb-link {
    flex-shrink: 0 !important;
    display: block !important;
    width: 65px !important;
    height: 48px !important;
    overflow: hidden !important;
    border: 1px solid #f1f5f9 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mini-thumb-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Định dạng tiêu đề chữ của bài viết phụ */
.mini-info {
    flex-grow: 1 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mini-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #475569 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    transition: color 0.2s ease;
}
.mini-title:hover {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   TẠO 3 PHONG CÁCH RIÊNG BIỆT CHO MỖI MỤC
   ========================================================================== */

/* STYLE 1: MỤC DỊCH VỤ (Nền Trắng - Bài nhỏ nằm trong hộp xám nhẹ phá cách) */
.widget-style-dichvu { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.post-card-featured { position: relative; margin-bottom: 15px; }
.thumb-zoom { display: block; overflow: hidden; border-radius: 6px; height: 150px; }
.post-card-featured img { width: 100%; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform 0.3s; }
.post-card-featured:hover img { transform: scale(1.04); }
.badge-tag { position: absolute; top: 10px; left: 10px; background: var(--primary-light); color: var(--primary-color); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.post-card-featured h3 { font-size: 15.5px !important; font-weight: 700; margin: 10px 0 0 0 !important; line-height: 1.4; border: none !important; padding: 0 !important;}
.post-card-featured h3 a { color: var(--secondary-color); text-decoration: none; }
.list-card-item { padding: 8px !important; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 6px !important; }
.font-style-1 { border-radius: 4px; }

/* STYLE 2: MỤC TIN TỨC (Phong cách Tạp Chí - Bài phụ có số đếm tăng dần, ảnh tròn) */
.widget-style-tintuc { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.post-magazine-featured { 
    height: 180px; border-radius: 6px; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; padding: 15px; margin-bottom: 15px;
}
.magazine-text .meta-date { font-size: 11px; color: #cbd5e1; display: block; margin-bottom: 4px; }
.magazine-text h3 { font-size: 15.5px !important; font-weight: 700; margin: 0 !important; line-height: 1.4; border: none !important; padding: 0 !important;}
.magazine-text h3 a { color: #ffffff !important; text-shadow: 0 1px 5px rgba(0,0,0,0.8); text-decoration: none; }
.magazine-number { font-family: monospace; font-size: 13px; font-weight: 700; color: #94a3b8; width: 18px; flex-shrink: 0; }
.list-magazine-item:nth-child(-n+3) .magazine-number { color: var(--primary-color); }
.font-style-2, .font-style-2 img { border-radius: 50% !important; width: 45px !important; height: 45px !important; }

/* STYLE 3: MỤC KIẾN THỨC (Khối xám phẳng thanh lịch - Bài phụ gạch mờ mảnh) */
.widget-style-kienthuc { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 25px; }
.post-clean-featured img { width: 100%; height: 130px !important; object-fit: cover; border-radius: 4px; margin: 0 0 10px 0 !important; box-shadow: none !important; }
.post-clean-featured h3 { font-size: 15.5px !important; font-weight: 700; margin: 0 0 6px 0 !important; line-height: 1.4; border: none !important; padding: 0 !important;}
.post-clean-featured h3 a { color: #1e293b; text-decoration: none; }
.clean-excerpt { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 15px; }
.list-clean-item { border-bottom: 1px dashed #cbd5e1 !important; }
.font-style-3 { border-radius: 4px; }