/*
Theme Name: Thanh Cong Digital Theme
Author: Ban
Description: Theme tu code cho Thanh Cong Tech
Version: 1.0
*/
		/* ================= VARIABLES ================= */
        /* CSS Variables */
        :root {
            --primary-color: #E21E28;
            --accent-color: #E21E28;
            --text-dark: #222222;
            --text-light: #666666;
            --bg-light: #f7f4ef;
            --white: #ffffff;
            --max-width: 1180px;
            --header-height: 76px; /* Chiều cao cố định của header */
            --mobile-header-height: 60px;
        }

        /* Base Reset */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: white;
            scroll-behavior: smooth;
        }
		 body { padding-top: var(--header-height); }
        ul, li { list-style: none; padding: 0; margin: 0; }
        
        /* Utility Classes */
        .container,.home-container {
            width: 90%;
            max-width: var(--max-width);
            margin: auto;
            padding: 60px 0; /* Padding mặc định */
        }
        
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 20px;
            font-weight: 800;
            color: var(--primary-color);
        }
        .section-subtitle {
            text-align: center;
            font-size: 1.2rem;
            margin-bottom: 60px;
            color: var(--text-muted);
            font-weight: 400;
        }

        /* ================= DESKTOP STYLES (> 1100px) ================= */
        .main-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 4%; height: var(--header-height); 
            background-color: white; border-bottom: 1px solid #f0f4f8;
            position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
            transition: height 0.3s ease, box-shadow 0.3s ease;
        }
        .main-header.is-sticky { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }

        .logo { flex-shrink: 0; z-index: 10001; }
        .logo img { max-height: 55px; width: auto; transition: all 0.3s; }
        .logo-text { font-size: 1.8rem; font-weight: 900; color: var(--primary-color); text-transform: uppercase; white-space: nowrap; }

        .header-cta-group { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }
        .btn-secondary { 
            background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); 
            padding: 10px 20px; font-size: 0.9rem; font-weight: 700; border-radius: 6px; 
            text-decoration: none; white-space: nowrap; transition: all 0.3s;
        }
        .btn-secondary:hover { background: var(--primary-color); color: white; }
        
        .mobile-menu-toggle { display: none; font-size: 1.8rem; color: var(--text-dark); cursor: pointer; padding: 5px; }

        /* MENU DESKTOP */
        .main-nav { flex-grow: 1; display: flex; justify-content: center; }
        .main-nav ul { list-style: none; margin: 0; padding: 0; }
        .main-nav ul.menu-list,
        .main-nav > ul { display: flex; align-items: center; gap: 5px; }
        
        .main-nav ul.menu-list > li,
        .main-nav > ul > li { position: relative; padding: 0; list-style: none; }
        .main-nav ul.menu-list > li > a,
        .main-nav > ul > li > a {
            text-decoration: none; color: var(--text-dark); font-weight: 700;
            font-size: 1rem; line-height: var(--header-height); 
            display: flex; align-items: center; gap: 6px;
            padding: 0 18px; white-space: nowrap; text-transform: uppercase;
            transition: color 0.3s; border-bottom: 3px solid transparent;
        }
        .main-nav ul.menu-list > li:hover > a,
        .main-nav ul.menu-list > li.current-menu-item > a,
        .main-nav > ul > li:hover > a,
        .main-nav > ul > li.current-menu-item > a { color: var(--primary-color); border-bottom-color: var(--accent-color); }

        .menu-mobile-cta-item { display: none !important; }

        /* Dropdown Desktop */
        .main-nav ul.sub-menu {
            position: absolute; top: 100%; left: 0;
            background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-top: 3px solid var(--accent-color);
            min-width: 250px; flex-direction: column;
            opacity: 0; visibility: hidden; transform: translateY(15px);
            transition: all 0.3s ease; z-index: 100; display: block; border-radius: 0 0 8px 8px;
        }
        .main-nav li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
        
        .main-nav ul.sub-menu li { border-bottom: 1px solid #f5f5f5; position: relative; width: 100%; }
        .main-nav ul.sub-menu li a {
            padding: 12px 20px; font-size: 0.95rem; color: #555;
            display: flex !important; justify-content: space-between; align-items: center;
            text-transform: none; white-space: normal; line-height: 1.4;
            font-weight: 500; text-decoration: none; transition: all 0.2s;
        }
        .main-nav ul.sub-menu li a:hover { background-color: #f8fafc; color: var(--accent-color); padding-left: 25px; }
        .main-nav ul.sub-menu ul.sub-menu { top: 0; left: 100%; margin-top: -5px; border-radius: 8px; }

        /* Arrows Desktop */
        .menu-item-has-children > a::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.8em; color: #bbb; }
        .sub-menu .menu-item-has-children > a::after { content: "\f105"; }

        /* Mobile Elements (Hidden on Desktop) */
        .submenu-toggle, .mobile-menu-cta-wrap, .mobile-menu-toggle { display: none !important; }
        .menu-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.4); z-index: 9998;
            opacity: 0; visibility: hidden; transition: all 0.3s ease;
        }

        /* =========================================
           3. MOBILE STYLES (<= 1100px) - WEPRO PATTERN
           ========================================= */
        @media (max-width: 1100px) {
            body { padding-top: var(--mobile-header-height); }
            .main-header { 
                height: var(--mobile-header-height); 
                padding: 0 5%; 
                justify-content: space-between; 
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 10000;
            }
            .logo img { max-height: 40px; }
            
            .header-cta-group { display: flex !important; gap: 10px; align-items: center; } 
            .header-cta-group .header-contact { display: none !important; } /* Hidden on mobile to save space */
            
            .mobile-menu-toggle { 
                display: inline-flex !important; 
                align-items: center;
                justify-content: center;
                background: transparent;
                border: none;
                font-size: 1.5rem; 
                color: var(--text-dark, #222); 
                cursor: pointer; 
                padding: 6px;
            }

            /* Mobile Dropdown Menu (WEPRO Pattern) */
            .main-nav {
                display: none !important;
                position: absolute; 
                top: 100%; 
                left: 0; 
                right: 0; 
                width: 100%; 
                background: #ffffff; 
                z-index: 10001;
                box-shadow: 0 15px 30px rgba(0,0,0,0.12);
                border-top: 1px solid #eeeeee;
                border-bottom: 3px solid var(--primary-color, #E21E28);
                padding: 10px 0 20px 0;
                max-height: 80vh;
                overflow-y: auto;
            }
            .main-nav.active { 
                display: flex !important; 
                flex-direction: column;
            } 

            /* Reset List & Item Borders (Kẻ từng dòng) */
            .main-nav ul.menu-list { flex-direction: column; width: 100%; align-items: stretch; gap: 0; margin: 0; padding: 0; }
            .main-nav ul.menu-list > li { 
                border-bottom: 1px solid #eeeeee; 
                width: 100%; 
                position: relative;
                list-style: none;
            }
            
            /* Link Mobile */
            .main-nav > ul > li > a {
                line-height: 1.4; 
                padding: 14px 24px;
                display: block; 
                font-size: 0.95rem; 
                font-weight: 700;
                color: var(--text-dark, #222); 
                text-decoration: none;
                transition: background-color 0.2s, color 0.2s;
            }
            .main-nav > ul > li > a:hover {
                background-color: #f8fafc;
                color: var(--primary-color, #E21E28);
            }

            /* Submenu Toggle Button */
            .menu-item-has-children { position: relative; }
            .submenu-toggle {
                display: flex !important; 
                position: absolute; top: 0; right: 0;
                width: 50px; height: 48px; 
                align-items: center; justify-content: center;
                border-left: 1px solid #eeeeee;
                cursor: pointer; color: #777; font-size: 0.9rem; transition: all 0.2s; z-index: 5;
            }
            .submenu-toggle.active { background: var(--primary-color, #E21E28); color: white; transform: rotate(180deg); }

            /* Hide Desktop Arrows */
            .menu-item-has-children > a::after { content: none !important; }

            /* Submenu Accordion */
            .main-nav ul.sub-menu {
                position: static; box-shadow: none; border: none; border-top: 1px solid #eee;
                background-color: #f8fafc; display: none; 
                opacity: 1; visibility: visible; transform: none; min-width: 100%; width: 100%; border-radius: 0;
            }
            .main-nav ul.sub-menu li { border-bottom: 1px solid #e2e8f0; }
            .main-nav ul.sub-menu li a { padding: 12px 24px 12px 40px; font-weight: 500; font-size: 0.9rem; color: #444; }
            .main-nav ul.sub-menu ul.sub-menu { background-color: #f1f5f9; margin-top: 0; }
            .main-nav ul.sub-menu ul.sub-menu li a { padding-left: 55px; }

            /* Mobile CTA Button at the bottom of menu list */
            .menu-mobile-cta-item {
                display: block !important;
                padding: 16px 24px 8px 24px;
                border-bottom: none !important;
                width: 100%;
            }
            .menu-mobile-cta {
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: 8px;
                width: 100%;
                padding: 13px 20px;
                background: var(--primary-color, #E21E28) !important;
                color: #ffffff !important;
                font-weight: 700;
                font-size: 0.95rem;
                border-radius: 6px;
                text-align: center;
                text-decoration: none;
                box-shadow: 0 4px 12px rgba(226, 30, 40, 0.25);
            }
            .mobile-menu-cta-wrap {
                display: block !important;
                padding: 16px 24px 8px 24px;
                margin-top: 8px;
            }
            .mobile-menu-cta-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                width: 100%;
                padding: 13px 20px;
                background: var(--primary-color, #E21E28);
                color: #ffffff !important;
                font-weight: 700;
                font-size: 0.95rem;
                border-radius: 6px;
                text-align: center;
                text-decoration: none;
                box-shadow: 0 4px 12px rgba(226, 30, 40, 0.25);
                transition: background 0.2s;
            }
            .mobile-menu-cta-btn:hover {
                background: #c81821;
            }
        }

/* =========================================
   FLOATING WIDGET GROUP (GÓC DƯỚI BÊN PHẢI)
   ========================================= */
.floating-widget-group {
    position: fixed;
    right: 20px;
    bottom: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.floating-widget-group > * {
    pointer-events: auto;
}

.floating-btn {
    background: #222222;
    color: #ffffff !important;
    border: 1px solid #444444;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.floating-btn.floating-call {
    background: #E21E28;
    border-color: #c81821;
}

.floating-btn.floating-zalo {
    background: #0068ff;
    border-color: #0054d1;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
}

.zalo-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0068ff;
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

/* NÚT BACK TO TOP */
.back-to-top {
    display: none !important;
    width: 42px;
    height: 42px;
    background: #222222;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
}

.back-to-top.show,
.back-to-top.visible {
    display: inline-flex !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #E21E28;
    border-color: #c81821;
    color: #ffffff;
    transform: translateY(-2px);
}
        
		/* =========================================
   STYLE ẢNH TRONG NỘI DUNG BÀI VIẾT
   (.content-editor là class bao quanh nội dung)
   ========================================= */

/* 1. Cấu hình chung cho ảnh */
.content-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 5px; /* Bo góc nhẹ cho đẹp */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Đổ bóng nhẹ */
}

/* 2. Ảnh Căn Giữa (Center) */
.content-editor .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    text-align: center; /* Để căn giữa caption bên trong */
}

/* 3. Ảnh Căn Trái (Left) */
.content-editor .alignleft {
    float: left;
    margin-right: 25px; /* Khoảng cách với chữ bên phải */
    margin-bottom: 20px;
    max-width: 50%; /* Không cho ảnh chiếm quá nửa màn hình */
}

/* 4. Ảnh Căn Phải (Right) */
.content-editor .alignright {
    float: right;
    margin-left: 25px; /* Khoảng cách với chữ bên trái */
    margin-bottom: 20px;
    max-width: 50%;
}

/* 5. Style cho Caption (Chú thích ảnh) */
.content-editor figcaption,
.content-editor .wp-caption-text {
    font-size: 0.9rem;
    color: #666; /* Màu xám nhẹ */
    margin-top: 8px;
    font-style: italic;
    text-align: center; /* Luôn căn giữa caption so với ảnh */
    line-height: 1.4;
    display: block;
}

/* 6. Xử lý Figure (Thẻ bao quanh ảnh có caption) */
.content-editor figure {
    margin: 0 0 20px 0; /* Reset margin mặc định của trình duyệt */
    display: table; /* Giúp figure co giãn theo chiều rộng ảnh */
}
.content-editor figure.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* 7. Clear fix (Chống vỡ layout khi dùng float) */
.content-editor::after {
    content: "";
    display: table;
    clear: both;
}

/* =========================================
   RESPONSIVE MOBILE (QUAN TRỌNG)
   Trên điện thoại, ảnh trái/phải sẽ tự về giữa cho dễ đọc
   ========================================= */
@media (max-width: 768px) {
    .content-editor .alignleft,
    .content-editor .alignright {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        max-width: 100%;
        text-align: center;
    }
    
    .content-editor img {
        width: 100%; /* Trên mobile cho ảnh full chiều ngang */
    }
}

        /* Global Link Styling */
        a:not(.btn) { 
            text-decoration: none; 
            color: var(--primary-color); 
            transition: color 0.3s;
        }
        a:not(.btn):hover {
            color: var(--accent-color); 
        }

        /* Buttons */
        .btn {
            display: inline-block;
            padding: 14px 35px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
            text-transform: uppercase;
            font-size: 1rem;
            letter-spacing: 0.5px;
        }
        .btn-primary {
            background-color: var(--accent-color);
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(255, 111, 60, 0.4);
        }
        .btn-primary:hover {
            background-color: #d1562b;
        }
        .btn-secondary {
            background-color: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }
        .btn-secondary:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Header & Navigation */
        .main-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            height: var(--header-height); 
            background-color: white;
            border-bottom: 1px solid #f0f4f8;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            transition: box-shadow 0.3s, padding 0.3s;
        }
        .main-header.scrolled {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 15px 5%;
        }
        .logo {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary-color);
        }
        .main-nav ul {
            list-style: none;
            display: flex;
        }
        .main-nav ul li a {
            text-decoration: none;
            color: var(--text-dark);
            padding: 10px 18px;
            transition: color 0.3s;
            font-weight: 500;
        }
        .main-nav ul li a:hover {
            color: var(--accent-color);
        }
        .header-cta-group {
            display: flex;
            gap: 15px; 
            align-items: center;
        }

.container, .home-container {
    width: 1180px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

/* ================= HEADER (MAYSAY.COM.VN) ================= */
.site-header, .main-header {
    border-bottom: 1px solid #eee;
    background: #fff;
}
.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #222;
}
.logo span {
    color: #E21E28;
}
.header-contact {
    background: #E21E28;
    color: #fff !important;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
}
.header-contact:hover {
    background: #c81821;
    color: #fff !important;
}

/* ================= HERO (MAYSAY.COM.VN) ================= */
.hero, .home-hero {
    background: #f7f4ef;
    padding: 80px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1, .hero-main-title {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 22px;
    max-width: 650px;
    color: #222;
    font-weight: 800;
}
.hero-content p, .hero-description {
    font-size: 18px;
    color: #555;
    max-width: 620px;
    margin-bottom: 30px;
    line-height: 1.6;
}
.hero-buttons, .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0;
    text-transform: none;
}
.btn-primary, .btn-main {
    background: #E21E28;
    color: #fff !important;
    border: none;
    box-shadow: none;
}
.btn-primary:hover, .btn-main:hover {
    background: #c81821;
    color: #fff !important;
}
.btn-secondary, .btn-outline {
    border: 1px solid #ccc;
    background: #fff;
    color: #333 !important;
}
.btn-secondary:hover, .btn-outline:hover {
    border-color: #E21E28;
    color: #E21E28 !important;
    background: #fff;
}
.hero-image {
    height: 390px;
    background: #e8e3dc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 16px;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= SECTIONS ================= */
.section {
    padding: 80px 0;
}
.section-header, .section-heading {
    margin-bottom: 38px;
}
.section-header.center, .section-heading.center {
    text-align: center;
}
.section-header h2, .section-title {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: #222;
    text-transform: none;
}
.section-header p, .section-desc {
    color: #666;
    font-size: 16px;
    max-width: 720px;
}
.section-header.center p {
    margin: 0 auto;
}

/* ================= TECHNOLOGY ================= */
.technology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.technology-card {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 30px;
    background: #fff;
    transition: 0.2s;
}
.technology-card:hover {
    border-color: #E21E28;
    transform: translateY(-2px);
}
.technology-card .number {
    font-size: 14px;
    color: #E21E28;
    font-weight: 700;
    margin-bottom: 15px;
}
.technology-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #222;
}
.technology-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.6;
}
.technology-card a {
    color: #E21E28 !important;
    font-weight: 600;
    font-size: 14px;
}
.technology-card.future {
    background: #fafafa;
}
.future-label {
    display: inline-block;
    background: #eee;
    color: #777;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* ================= PRODUCT SEARCH ================= */
.product-search-section {
    background: #f8f8f8;
}
.product-search-box {
    max-width: 850px;
    margin: 0 auto;
}
.search-form {
    position: relative;
    margin-bottom: 20px;
}
.search-input {
    width: 100%;
    height: 64px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 8px;
    padding: 0 145px 0 54px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.search-input:focus {
    border-color: #E21E28;
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 21px;
    color: #777;
}
.search-button {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 48px;
    border: 0;
    background: #E21E28;
    color: #fff;
    border-radius: 6px;
    padding: 0 22px;
    font-weight: 600;
    cursor: pointer;
}
.search-button:hover {
    background: #c81821;
}
.popular-products {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.popular-label {
    color: #666;
    font-size: 14px;
    margin-right: 4px;
}
.product-tag {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #444 !important;
    font-size: 14px;
    transition: 0.2s;
}
.product-tag:hover {
    border-color: #E21E28;
    color: #E21E28 !important;
}
.search-bottom {
    text-align: center;
}
.view-all-products {
    display: inline-block;
    color: #E21E28 !important;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
}
.search-note {
    color: #777;
    font-size: 14px;
}

/* ================= PRODUCT TYPES & CARDS ================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.2s;
}
.product-card:hover {
    border-color: #E21E28;
    transform: translateY(-2px);
}
.product-image {
    height: 250px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-content {
    padding: 24px;
}
.product-content h3, .product-content h4 {
    font-size: 21px;
    margin-bottom: 9px;
    color: #222;
}
.product-content p {
    color: #666;
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.product-content a {
    color: #E21E28 !important;
    font-weight: 600;
    font-size: 14px;
}

/* ================= SCALE ================= */
.scale-section {
    background: #f7f4ef;
}
.scale-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.scale-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e7e2db;
}
.scale-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #222;
}
.scale-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ================= KNOWLEDGE & ARTICLES ================= */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-card {
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.2s;
}
.article-card:hover {
    border-color: #E21E28;
    transform: translateY(-2px);
}
.article-image {
    height: 190px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    overflow: hidden;
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-content {
    padding: 22px;
}
.article-content .category {
    color: #E21E28;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.article-content h3 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #222;
}
.article-content h3 a {
    color: #222 !important;
}
.article-content h3 a:hover {
    color: #E21E28 !important;
}
.article-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.article-content a {
    color: #E21E28 !important;
    font-size: 14px;
    font-weight: 600;
}

/* ================= CTA ================= */
.cta {
    padding: 70px 0;
}
.cta-box {
    background: #222;
    color: #fff;
    border-radius: 12px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.cta-box h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #fff;
}
.cta-box p {
    color: #ccc;
    max-width: 650px;
}
.cta-box .btn {
    background: #E21E28;
    color: #fff !important;
    white-space: nowrap;
}
.cta-box .btn:hover {
    background: #c81821;
}

/* ================= FOOTER (MAYSAY.COM.VN) ================= */
.site-footer, .main-footer {
    background: #f5f5f5;
    padding: 55px 0 25px;
    border-top: 1px solid #eee;
    color: #666;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h3, .footer-column h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #222 !important;
    font-weight: 700;
    text-transform: none;
}
.footer-column p {
    color: #666 !important;
    font-size: 14px;
    max-width: 350px;
    line-height: 1.6;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column li {
    margin-bottom: 9px;
}
.footer-column li a, .footer-column a {
    color: #666 !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: color 0.2s;
    font-weight: normal;
}
.footer-column li a:hover, .footer-column a:hover {
    color: #E21E28 !important;
}
.copyright {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    color: #777;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
    .main-nav {
        gap: 18px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-image {
        height: 320px;
    }
    .technology-grid,
    .product-grid,
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .scale-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .container {
        max-width: calc(100% - 28px);
    }
    .header-inner {
        min-height: auto;
        padding: 18px 0;
        flex-wrap: wrap;
    }
    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .header-contact {
        display: none;
    }
    .hero {
        padding: 55px 0;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .technology-grid,
    .product-grid,
    .article-grid,
    .scale-grid {
        grid-template-columns: 1fr;
    }
    .search-input {
        padding-right: 20px;
    }
    .search-button {
        position: static;
        width: 100%;
        margin-top: 10px;
    }
    .search-form {
        display: flex;
        flex-direction: column;
    }
    .search-icon {
        top: 32px;
    }
    .search-input {
        height: 58px;
    }
    .cta-box {
        padding: 35px 25px;
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
		
/* ================= LAYOUT CHUNG ================= */
    .product-summary-grid { display: flex; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #e2e8f0; }
    .breadcrumb { padding: 20px 0 10px; font-size: 0.9rem; color: var(--text-muted); }
    .breadcrumb a { color: var(--text-muted); }
    
    /* ================= GALLERY & VIDEO ================= */
    .product-gallery { flex-basis: 50%; display: flex; flex-direction: column; gap: 15px; position: relative; }
    
    /* KHUNG HIỂN THỊ CHÍNH */
    .main-media-container {
        width: 100%;
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        background: #000;
        aspect-ratio: 4/3; 
    }
    .main-media-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .main-media-container iframe { width: 100%; height: 100%; border: none; }

    /* NÚT ĐIỀU HƯỚNG TRÊN ẢNH CHÍNH */
    .main-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s;
        color: #333;
        font-size: 18px;
    }
    .main-arrow:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        color: var(--accent-color);
    }
    .main-prev { left: 0px; }
    .main-next { right: 0px; }


    /* --- THUMBNAIL SLIDER --- */
    .thumb-slider-wrapper {
        position: relative;
        padding: 0 35px; /* Chừa chỗ cho mũi tên 2 bên */
    }
    
    .thumb-swiper {
        padding-bottom: 5px;
        overflow: hidden;
    }

    .swiper-slide.thumb-item {
        width: 70px; 
        height: 70px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        box-sizing: border-box;
        transition: all 0.3s;
        opacity: 0.6; 
    }
    .swiper-slide.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

    /* Trạng thái Active */
    .swiper-slide.thumb-item:hover, .swiper-slide.thumb-item.active {
        border: 1px solid var(--accent-color);
        opacity: 1;
    }

    /* Video Box Thumbnail */
    .swiper-slide.thumb-item.video-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #f9f9f9;
    }
    .swiper-slide.thumb-item.video-box svg { width: 24px; height: 24px; margin-bottom: 2px; }
    .swiper-slide.thumb-item.video-box p { font-size: 10px; font-weight: 700; margin: 0; line-height: 1; color: #444; text-transform: uppercase; }
    
    .swiper-slide.thumb-item.video-box.active { border-color: var(--accent-color); background: #fff; }
    .swiper-slide.thumb-item.video-box.active svg path { stroke: var(--accent-color); }
    .swiper-slide.thumb-item.video-box.active p { color: var(--accent-color); }

    /* NÚT ĐIỀU HƯỚNG THUMBNAIL */
    .thumb-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 50%;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        cursor: pointer;
        z-index: 5;
        transition: all 0.3s;
    }
    .thumb-arrow:hover {
        border-color: var(--accent-color);
        color: var(--accent-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .thumb-prev { left: 0; }
    .thumb-next { right: 0; }
    
    /* Ẩn mũi tên mặc định của Swiper và dùng icon của mình */
    .thumb-arrow::after { content: none; }


    /* ================= INFO & TABS ================= */
    .product-info { flex-basis: 50%; }
    .product-info h1 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 800; line-height: 1.2; }
    .product-info .product-sku { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }
    .product-excerpt { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 20px; }

    .key-specs-list { list-style: none; margin: 25px 0; padding: 20px; background: var(--bg-light); border-radius: 8px; }
    .key-specs-list li { font-size: 1.1rem; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; }
    .key-specs-list li:last-child { border-bottom: none; }
    .key-specs-list li strong { color: var(--primary-color); font-weight: 700; display: inline-block; width: 150px; }

    .cta-detail-block { margin-top: 30px; padding: 20px; border: 2px solid var(--accent-color); border-radius: 10px; background: rgba(255, 111, 60, 0.05); text-align: center; }
    .cta-detail-block h3 { color: var(--accent-color); font-size: 1.5rem; margin-bottom: 15px; }

    .product-tabs-section { padding-top: 40px; }
    .tabs-nav { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 30px; overflow-x: auto; }
    .tabs-nav button { background: none; border: none; padding: 15px 25px; font-size: 1.1rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s; white-space: nowrap; }
    .tabs-nav button.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); }
    .tab-content { display: none; animation: fadeIn 0.5s; }
    .tab-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
    .tab-content th, .tab-content td { border: 1px solid #e2e8f0; padding: 12px; text-align: left; font-size: 1rem; }
    .tab-content th { background-color: var(--bg-light); color: var(--text-dark); font-weight: 600; width: 30%; }

    .related-products-section { margin-top: 60px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
    .related-products-section h2 { font-size: 2rem; color: var(--primary-color); font-weight: 700; margin-bottom: 30px; text-align: center; }
    .related-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
    .related-product-grid .product-card { background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: box-shadow 0.3s, transform 0.3s; overflow: hidden; text-decoration: none; text-align: center; border: 1px solid #f1f1f1; }
    .related-product-grid .product-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); transform: translateY(-5px); }
    .related-product-grid .product-image-wrap { height: 200px; overflow: hidden; background-color: var(--bg-light); display: flex; align-items: center; justify-content: center; }
    .related-product-grid .product-image-wrap img { width: 90%; max-height: 90%; object-fit: contain; }
    .related-product-grid .product-content { padding: 20px 15px; }
    .related-product-grid .product-content h4 { color: var(--primary-color); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.3; }
    .related-product-grid .product-content .btn-detail { margin-top: 15px; padding: 8px 20px; font-size: 0.85rem; }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @media (max-width: 992px) {
        .product-summary-grid { flex-direction: column; }
        .product-gallery, .product-info { flex-basis: 100%; }
        .product-info h1 { font-size: 2rem; }
        .related-product-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
        .thumb-slider-wrapper { padding: 0; } /* Mobile có thể bỏ padding */
        .thumb-arrow { display: none; } /* Mobile ẩn nút, vuốt tay */
        .main-arrow { width: 30px; height: 30px; font-size: 14px; }
    }
	/* Style bổ sung cho Icon */
    .key-specs-list li i { color: var(--text-muted); margin-right: 8px; width: 20px; text-align: center; }
    .product-short-desc { font-size: 1.05rem; color: var(--text-dark); margin-bottom: 25px; line-height: 1.6; }
    .product-short-desc ul { margin-left: 20px; margin-bottom: 15px; }
    .product-short-desc li { margin-bottom: 5px; }
    .product-short-desc strong { color: var(--primary-color); }
	/* Style cho Tab Dự án */
    .project-list-tab { list-style: none; padding: 0; }
    .project-list-tab li { 
        margin-bottom: 20px; 
        padding-bottom: 15px; 
        border-bottom: 1px dashed #e2e8f0; 
    }
    .project-list-tab li:last-child { border-bottom: none; }
    .project-list-tab li a { 
        font-size: 1.1rem; 
        color: var(--primary-color); 
        text-decoration: none; 
        font-weight: 700; 
        display: flex; 
        align-items: center; 
    }
    .project-list-tab li a i { 
        color: var(--accent-color); 
        margin-right: 10px; 
        font-size: 1.2rem; 
    }
    .project-list-tab li a:hover { color: var(--accent-color); }
    .project-excerpt-tab {
        margin-left: 28px; /* Thụt đầu dòng cho bằng chữ trên */
        margin-top: 5px;
        color: var(--text-muted);
        font-size: 0.95rem;
    }
	
	/* --- 1. MỤC LỤC (TABLE OF CONTENTS) --- */
    .toc-box {
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 30px;
        display: inline-block;
        min-width: 50%;
    }
    .toc-header {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--primary-color);
        margin-bottom: 10px;
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 5px;
        display: inline-block;
    }
    .toc-list {
        list-style: none !important; /* Ghi đè style mặc định */
        margin: 0 !important;
        padding: 0 !important;
    }
    .toc-list li {
        margin-bottom: 8px;
        line-height: 1.4;
    }
    .toc-list li a {
        text-decoration: none;
        color: var(--text-dark);
        font-size: 0.95rem;
        transition: color 0.2s;
    }
    .toc-list li a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }
    /* Thụt đầu dòng cho H3 */
    .toc-item.toc-level-3 {
        padding-left: 20px;
        font-size: 0.9rem;
    }
    .toc-item.toc-level-3::before {
        content: "↳";
        margin-right: 5px;
        color: #ccc;
    }

    /* --- 2. BÀI LIÊN QUAN CHÈN GIỮA (INLINE RELATED) --- */
    .inline-related-box {
        display: flex;
        align-items: center;
        background-color: #fff;
        border: 2px solid #e2e8f0;
        border-left: 5px solid var(--accent-color);
        border-radius: 8px;
        padding: 15px;
        margin: 30px 0;
        text-decoration: none !important;
        transition: all 0.3s;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }
    .inline-related-box:hover {
        border-color: var(--accent-color);
        background-color: #fffbf9;
        transform: translateX(5px);
    }
    .irb-thumb {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 6px;
        overflow: hidden;
        margin-right: 15px;
    }
    .irb-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .irb-info {
        flex-grow: 1;
    }
    .irb-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #888;
        font-weight: 600;
        margin-bottom: 4px;
    }
    .irb-info h4 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--primary-color);
        line-height: 1.3;
        font-weight: 700;
    }
    .irb-arrow {
        color: var(--accent-color);
        font-size: 1.2rem;
        padding-left: 15px;
    }

    /* --- 3. NÚT SHARE CUỐI BÀI --- */
    .meovat-share-box {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    .meovat-share-box h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: var(--text-dark);
    }
    .share-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .share-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        border-radius: 50px;
        text-decoration: none;
        color: white;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s;
        border: none;
        cursor: pointer;
    }
    .share-btn i { margin-right: 8px; }
    
    .btn-fb { background-color: #e2e8f0; }
    .btn-fb:hover { background-color: #1463ca; opacity: 0.9; color: white; }
    
    .btn-zalo { background-color: #e2e8f0; }
    .btn-zalo:hover { background-color: #0054cc; opacity: 0.9; color: white; }
    
    .btn-copy { background-color: #333; }
    .btn-copy:hover { background-color: #000; color: white; }

    /* Mobile Responsive */
    @media (max-width: 600px) {
        .toc-box { width: 100%; }
        .inline-related-box { flex-direction: column; text-align: center; }
        .irb-thumb { margin: 0 0 10px 0; }
        .irb-arrow { display: none; }
        .share-buttons { flex-direction: column; }
        .share-btn { width: 100%; }
    }
	
	    /* HEADER */
    .blog-header {
        padding: 60px 0;
        background-color: var(--bg-light);
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 40px;
    }
    .blog-header h1 { font-size: 2.5rem; color: var(--primary-color); font-weight: 800; margin-bottom: 10px; text-transform: uppercase; }
    .blog-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

    /* SEARCH BAR */
    .search-filter-bar {
        max-width: 800px;
        margin: 0 auto 50px;
        display: flex;
        gap: 10px;
        background: #fff;
        padding: 10px;
        border-radius: 50px; /* Bo tròn kiểu Google */
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }
    .search-filter-bar form { display: flex; width: 100%; gap: 10px; }
    .search-filter-bar input[type="text"] {
        flex-grow: 1;
        padding: 12px 20px;
        border: none;
        background: transparent;
        font-size: 1rem;
        outline: none;
    }
    .search-filter-bar select {
        padding: 0 15px;
        border: none;
        border-left: 1px solid #eee;
        font-size: 0.95rem;
        cursor: pointer;
        color: var(--text-dark);
        outline: none;
        max-width: 200px;
    }
    .search-filter-bar button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        display: flex; align-items: center; justify-content: center;
    }
    .search-filter-bar button:hover { background: var(--accent-color); transform: scale(1.05); }

    /* GRID 3 CỘT */
    .blog-content-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* CHUYỂN THÀNH 3 CỘT */
        gap: 30px;
        padding-bottom: 60px;
    }

    /* CARD STYLE MỚI */
    .blog-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Đổ bóng sâu hơn */
        transition: all 0.4s ease;
        overflow: hidden;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        border: 1px solid transparent;
        height: 100%;
        position: relative;
    }
    .blog-card:hover { 
        transform: translateY(-8px); 
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }
    
    /* Ảnh Thumbnail */
    .blog-image-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        position: relative;
    }
    .blog-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
    .blog-card:hover .blog-image-wrap img { transform: scale(1.1); }

    /* Tag Danh Mục Nổi trên ảnh */
    .blog-cat-tag {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.95);
        color: var(--primary-color);
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 2;
    }

    /* Nội dung */
    .blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
    
    /* Ngày tháng */
    .blog-date { font-size: 0.85rem; color: #777; margin-bottom: 10px; display: block; font-weight: 500; }
    
    .blog-content h4 { 
        color: var(--text-dark); 
        font-weight: 700; 
        font-size: 1.15rem; 
        margin-bottom: 12px; 
        line-height: 1.4; 
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* Giới hạn 2 dòng */
        transition: color 0.3s;
    }
    .blog-card:hover .blog-content h4 { color: var(--primary-color); }
    
    .blog-content p { 
        color: var(--text-muted); 
        font-size: 0.95rem; 
        margin-bottom: 20px; 
        line-height: 1.6; 
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; /* Giới hạn 3 dòng */
    }
    
    /* Nút Xem thêm dạng text */
    .read-more-btn {
        margin-top: auto;
        color: var(--accent-color);
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: gap 0.3s;
    }
    .blog-card:hover .read-more-btn { gap: 10px; }

    /* PAGINATION */
    .pagination-container { text-align: center; margin-top: 20px; padding-bottom: 60px; }
    .pagination-container .page-numbers { display: inline-block; width: 40px; height: 40px; line-height: 40px; margin: 0 5px; border: 1px solid #e2e8f0; border-radius: 50%; color: var(--text-dark); text-decoration: none; font-weight: 600; transition: all 0.3s; }
    .pagination-container .page-numbers.current, .pagination-container .page-numbers:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: white; }

    /* RESPONSIVE */
    @media (max-width: 992px) {
        .blog-content-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .blog-content-grid { grid-template-columns: 1fr; }
        .search-filter-bar { flex-direction: column; border-radius: 12px; }
        .search-filter-bar select { border-left: none; border-top: 1px solid #eee; padding: 10px 0; max-width: 100%; width: 100%; }
        .search-filter-bar button { width: 100%; border-radius: 8px; }
    }
	
	    .page-header {
        background-color: var(--bg-light);
        padding: 50px 0;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
    }
    .page-header h1 {
        font-size: 2.5rem;
        color: var(--primary-color);
        font-weight: 800;
        text-transform: uppercase;
        margin: 0;
    }
    .page-content-wrapper {
        padding: 60px 0;
    }
    .page-content {
        max-width: 900px;
        margin: 0 auto;
        font-size: 1.1rem;
        color: var(--text-dark);
        line-height: 1.7;
    }
    .page-content p { margin-bottom: 20px; }
    .page-content h2, .page-content h3 { color: var(--primary-color); margin-top: 30px; margin-bottom: 15px; }
    .page-content ul, .page-content ol { margin-bottom: 20px; padding-left: 20px; }
	
	.error-404-wrapper {
        padding: 100px 0;
        text-align: center;
        background-color: #fff;
    }
    .error-404-wrapper h1 {
        font-size: 8rem;
        font-weight: 900;
        color: var(--primary-color);
        line-height: 1;
        margin: 0;
    }
    .error-404-wrapper h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: var(--text-dark);
    }
    .error-404-wrapper p {
        color: var(--text-muted);
        margin-bottom: 30px;
    }
    .error-404-wrapper .btn {
        margin: 0 10px;
    }
	
    /* SEARCH BAR */
    .search-filter-bar {
        max-width: 800px;
        margin: 0 auto 50px;
        display: flex;
        gap: 10px;
        background: #fff;
        padding: 10px;
        border-radius: 50px; /* Bo tròn kiểu Google */
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }
    .search-filter-bar form { display: flex; width: 100%; gap: 10px; }
    .search-filter-bar input[type="text"] {
        flex-grow: 1;
        padding: 12px 20px;
        border: none;
        background: transparent;
        font-size: 1rem;
        outline: none;
    }
    .search-filter-bar select {
        padding: 0 15px;
        border: none;
        border-left: 1px solid #eee;
        font-size: 0.95rem;
        cursor: pointer;
        color: var(--text-dark);
        outline: none;
        max-width: 200px;
    }
    .search-filter-bar button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        display: flex; align-items: center; justify-content: center;
    }
    .search-filter-bar button:hover { background: var(--accent-color); transform: scale(1.05); }

    /* GRID 3 CỘT */
    .blog-content-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* CHUYỂN THÀNH 3 CỘT */
        gap: 30px;
        padding-bottom: 60px;
    }

    /* CARD STYLE MỚI */
    .blog-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Đổ bóng sâu hơn */
        transition: all 0.4s ease;
        overflow: hidden;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        border: 1px solid transparent;
        height: 100%;
        position: relative;
    }
    .blog-card:hover { 
        transform: translateY(-8px); 
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }
    
    /* Ảnh Thumbnail */
    .blog-image-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        position: relative;
    }
    .blog-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
    .blog-card:hover .blog-image-wrap img { transform: scale(1.1); }

    /* Tag Danh Mục Nổi trên ảnh */
    .blog-cat-tag {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.95);
        color: var(--primary-color);
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 2;
    }

    /* Nội dung */
    .blog-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
    
    /* Ngày tháng */
    .blog-date { font-size: 0.85rem; color: #777; margin-bottom: 10px; display: block; font-weight: 500; }
    
    .blog-content h4 { 
        color: var(--text-dark); 
        font-weight: 700; 
        font-size: 1.15rem; 
        margin-bottom: 12px; 
        line-height: 1.4; 
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* Giới hạn 2 dòng */
        transition: color 0.3s;
    }
    .blog-card:hover .blog-content h4 { color: var(--primary-color); }
    
    .blog-content p { 
        color: var(--text-muted); 
        font-size: 0.95rem; 
        margin-bottom: 20px; 
        line-height: 1.6; 
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; /* Giới hạn 3 dòng */
    }
    
    /* Nút Xem thêm dạng text */
    .read-more-btn {
        margin-top: auto;
        color: var(--accent-color);
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: gap 0.3s;
    }
    .blog-card:hover .read-more-btn { gap: 10px; }

    /* PAGINATION */
    .pagination-container { text-align: center; margin-top: 20px; padding-bottom: 60px; }
    .pagination-container .page-numbers { display: inline-block; width: 40px; height: 40px; line-height: 40px; margin: 0 5px; border: 1px solid #e2e8f0; border-radius: 50%; color: var(--text-dark); text-decoration: none; font-weight: 600; transition: all 0.3s; }
    .pagination-container .page-numbers.current, .pagination-container .page-numbers:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: white; }

    /* RESPONSIVE */
    @media (max-width: 992px) {
        .blog-content-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .blog-content-grid { grid-template-columns: 1fr; }
        .search-filter-bar { flex-direction: column; border-radius: 12px; }
        .search-filter-bar select { border-left: none; border-top: 1px solid #eee; padding: 10px 0; max-width: 100%; width: 100%; }
        .search-filter-bar button { width: 100%; border-radius: 8px; }
    }
	
	/* ================= LAYOUT CHUNG ================= */
    .product-header { padding-top: 30px; padding-bottom: 30px; background-color: var(--bg-light); text-align: center; margin-bottom: 40px; }
    .product-header h1 { font-size: 2.5rem; color: var(--primary-color); font-weight: 800; margin-bottom: 10px; }
    .product-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; }

    .product-listing-grid { display: flex; gap: 40px; padding-bottom: 60px; }

    /* ================= SIDEBAR ================= */
    .product-sidebar { flex-basis: 280px; flex-shrink: 0; }
    .sidebar-widget { margin-bottom: 30px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
    .sidebar-widget h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-color); font-weight: 700; }
    
    /* Search Form */
    .product-search-form { position: relative; }
    .product-search-form input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; }
    .product-search-form button { width: 100%; margin-top: 10px; padding: 8px; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
    .product-search-form button:hover { background: var(--accent-color); }

    /* Category List */
    .category-list { list-style: none; padding: 0; margin: 0; }
    .category-list li { border-bottom: 1px dashed #eee; }
    .category-list li:last-child { border-bottom: none; }
    .category-list li a { display: block; padding: 10px 0; color: var(--text-dark); font-weight: 500; display: flex; justify-content: space-between; }
    .category-list li a:hover, .category-list li.current-cat a { color: var(--accent-color); transform: translateX(5px); }
    .category-list li .count { background: #f1f1f1; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; color: #666; }

    /* ================= MAIN CONTENT ================= */
    .product-main-content { flex-grow: 1; }

    /* Filter Bar */
    .filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
    .filter-bar p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
    .filter-bar select { padding: 8px 15px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.9rem; cursor: pointer; color: var(--text-dark); }

    /* Product Grid */
    .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .product-card { background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: box-shadow 0.3s, transform 0.3s; overflow: hidden; text-decoration: none; text-align: center; border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
    .product-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); transform: translateY(-5px); }
    .product-image-wrap { height: 220px; overflow: hidden; background-color: var(--bg-light); display: flex; align-items: center; justify-content: center; position: relative; }
    .product-image-wrap img { width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.5s; }
    .product-card:hover .product-image-wrap img { transform: scale(1.05); }
    .product-content { padding: 20px 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
    .product-content h4 { color: var(--primary-color); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.3; min-height: 44px; /* Giữ đều dòng */ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-meta { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-bottom: 15px; }
    .product-content .btn-detail { padding: 8px 20px; font-size: 0.85rem; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 4px; display: inline-block; transition: all 0.3s; }
    .product-card:hover .btn-detail { background: var(--primary-color); color: white; }

    /* Pagination */
    .pagination { margin-top: 50px; text-align: center; }
    .pagination .page-numbers { display: inline-block; padding: 10px 15px; margin: 0 5px; border: 1px solid #ddd; border-radius: 4px; color: var(--text-dark); text-decoration: none; font-weight: 600; }
    .pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

    /* Responsive */
    @media (max-width: 992px) {
        .product-listing-grid { flex-direction: column; }
        .product-sidebar { flex-basis: 100%; width: 100%; order: -1; }
        .product-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .product-grid { grid-template-columns: 1fr; }
        .filter-bar { flex-direction: column; gap: 10px; align-items: flex-start; }
    }
	
	 /* 1. HERO SECTION */
    .project-archive-hero {
        /* Background đã được xử lý inline động ở dưới */
        padding: 80px 0; /* Tăng padding cho thoáng */
        text-align: center;
        color: white;
        margin-bottom: 50px;
    }
    .project-archive-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; }
    .project-archive-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 800px; margin: 0 auto; line-height: 1.6; }

    /* 2. GRID DỰ ÁN */
    .project-list-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding-bottom: 60px;
    }

    /* CARD DỰ ÁN */
    .project-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        text-decoration: none;
        border: 1px solid #eee;
        display: flex;
        flex-direction: column;
    }
    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-color: var(--accent-color);
    }

    /* Ảnh Thumbnail */
    .pj-thumb {
        height: 220px;
        overflow: hidden;
        position: relative;
        background: #f0f0f0;
    }
    .pj-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }
    .project-card:hover .pj-thumb img {
        transform: scale(1.1);
    }
    
    /* Overlay */
    .pj-overlay {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(26, 77, 148, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .pj-overlay span {
        color: white;
        border: 1px solid white;
        padding: 8px 20px;
        border-radius: 30px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
    }
    .project-card:hover .pj-overlay { opacity: 1; }

    /* Nội dung Card */
    .pj-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
    
    .pj-cat {
        font-size: 0.8rem;
        text-transform: uppercase;
        color: var(--accent-color);
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .pj-content h3 {
        font-size: 1.3rem;
        color: var(--primary-color);
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pj-meta {
        margin-top: auto;
        border-top: 1px dashed #eee;
        padding-top: 15px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 0.95rem;
        color: var(--text-muted);
    }
    .pj-meta i { color: var(--text-muted); width: 20px; text-align: center; margin-right: 5px; }

    /* Pagination */
    .pagination { margin-top: 20px; text-align: center; padding-bottom: 60px; }
    .pagination .page-numbers {
        display: inline-block;
        width: 40px; height: 40px; line-height: 40px;
        border: 1px solid #ddd;
        border-radius: 50%;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
        margin: 0 5px;
        transition: all 0.3s;
    }
    .pagination .page-numbers.current, 
    .pagination .page-numbers:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    @media (max-width: 992px) {
        .project-list-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .project-list-grid { grid-template-columns: 1fr; }
        .project-archive-hero h1 { font-size: 2rem; }
    }
	
	/* 1. HERO HEADER */
    .contact-header {
        padding: 80px 0; /* Tăng padding cho thoáng */
        text-align: center;
        color: white;
        /* Background đã được xử lý inline ở HTML bên dưới */
    }
    .contact-header h1 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; }
    .contact-header p { font-size: 1.15rem; opacity: 0.95; max-width: 700px; margin: 0 auto; line-height: 1.6; }

    /* 2. INFO CARDS (4 CỘT) */
    .contact-info-section { transform: translateY(-40px); position: relative; z-index: 2; margin-bottom: 30px; }
    
    .info-grid { 
        display: grid; 
        grid-template-columns: repeat(4, 1fr); 
        gap: 20px; 
    }
    
    .info-card {
        background: white;
        padding: 30px 20px;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-bottom: 4px solid var(--accent-color);
        transition: transform 0.3s;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .info-card:hover { transform: translateY(-5px); }
    .info-card i { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; display: inline-block; }
    .info-card h3 { font-size: 1.1rem; color: var(--primary-color); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
    .info-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; line-height: 1.5; }
    .info-card a { color: var(--text-dark); text-decoration: none; font-weight: 600; }
    .info-card a:hover { color: var(--accent-color); }

    /* 3. MAIN SECTION */
    .contact-main-section { padding-bottom: 80px; }
    .contact-split-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: start; }

    /* Map */
    .map-container {
        height: 500px;
        background: #eee;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid #e2e8f0;
    }
    .map-container iframe { width: 100%; height: 100%; border: none; }

    /* Form */
    .form-container {
        background: var(--bg-light);
        padding: 40px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }
    .form-container h2 { color: var(--primary-color); font-weight: 800; margin-bottom: 20px; font-size: 1.8rem; }
    .form-container p { color: var(--text-muted); margin-bottom: 30px; }

    /* Contact Form 7 Style */
    .wpcf7-form-control-wrap { display: block; margin-bottom: 15px; }
    .wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
        width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; font-family: inherit; background: #fff;
    }
    .wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--accent-color); outline: none; }
    .wpcf7 input[type="submit"] {
        width: 100%; background: var(--primary-color); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: all 0.3s;
    }
    .wpcf7 input[type="submit"]:hover { background: var(--accent-color); }

    /* Responsive */
    @media (max-width: 992px) {
        .info-grid { grid-template-columns: repeat(2, 1fr); }
        .contact-split-grid { grid-template-columns: 1fr; }
        .map-container { order: 2; height: 400px; }
        .form-container { order: 1; }
    }
    @media (max-width: 600px) {
        .info-grid { grid-template-columns: 1fr; }
        .contact-info-section { transform: none; margin-top: 30px; }
    }
	
	/* 1. Hero Section */
    .about-hero {
        padding-top: 40px; 
        background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
        text-align: center;
    }
    .about-hero .container { padding-top: 60px; padding-bottom: 60px; }
    .about-hero h1 { font-size: 3.5rem; color: var(--primary-color); font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
    .about-hero p { font-size: 1.3rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 40px; }
    
    .hero-image-placeholder {
        width: 100%;
        max-width: 1000px;
        height: 500px;
        background-color: #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        margin: 40px auto 0;
        display: flex; align-items: center; justify-content: center;
    }
    .hero-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }

    /* 2. Sứ mệnh và Tầm nhìn */
    .vision-section { background-color: white; padding: 80px 0; }
    .vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
    .vision-item { padding: 40px; border-left: 5px solid var(--accent-color); background-color: #fff6f2; border-radius: 8px; transition: transform 0.3s; }
    .vision-item:hover { transform: translateY(-5px); }
    .vision-item h3 { font-size: 2rem; color: var(--primary-color); font-weight: 800; margin-bottom: 15px; }
    .vision-item p { color: var(--text-dark); font-size: 1.1rem; line-height: 1.6; margin: 0; }

    /* 3. Giá trị Cốt lõi */
    .values-section { background-color: var(--primary-color); color: white; padding: 80px 0; }
    .values-section .section-title { color: white; }
    .values-section .section-subtitle { color: rgba(255, 255, 255, 0.8); }
    .values-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
    .value-card { padding: 30px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; transition: background 0.3s; width: 300px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
    .value-card:hover { background: rgba(255, 255, 255, 0.2); }
    .value-card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; display: inline-block; }
    .value-card h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
    .value-card p { font-size: 0.95rem; line-height: 1.5; opacity: 0.9; }

    /* =======================================================
       4. ĐỘI NGŨ (FIX LỖI VỠ LAYOUT TRIỆT ĐỂ)
       ======================================================= */
    .team-section { background-color: var(--bg-light); padding: 80px 0; }
    
    .team-grid { 
        /* Sử dụng Flexbox nhưng căn chỉnh an toàn */
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Căn giữa các thẻ */
        gap: 40px; /* Khoảng cách giữa các thẻ */
        align-items: flex-start; /* QUAN TRỌNG: Ngăn các thẻ bị kéo dãn chiều cao không đều */
    }
    
    .team-member { 
        text-align: center; 
        /* Khóa cứng chiều rộng thẻ thành viên */
        width: 280px; 
        max-width: 100%;
        margin-bottom: 20px;
        /* Đảm bảo nội dung bên trong flex dọc */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Khung ảnh tròn */
    .member-photo { 
        width: 200px;  /* Chiều rộng cố định */
        height: 200px; /* Chiều cao cố định */
        border-radius: 50%; 
        margin: 0 auto 20px; 
        background-color: #f7f4ef; 
        border: 5px solid white; 
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
        overflow: hidden; /* Cắt phần ảnh thừa */
        position: relative;
    }
    
    /* Ảnh bên trong */
    .member-photo img { 
        width: 100% !important; 
        height: 100% !important; 
        object-fit: cover; /* Cắt ảnh lấp đầy khung tròn, không méo */
        object-position: top center; /* Ưu tiên lấy khuôn mặt */
        transition: transform 0.5s; 
        display: block;
    }
    
    .team-member:hover .member-photo img { transform: scale(1.1); }
    
    .team-member h4 { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 8px; font-weight: 700; line-height: 1.3; }
    .team-member p { color: var(--accent-color); font-weight: 600; margin-bottom: 12px; font-size: 1rem; line-height: 1.4; }
    .team-member span { display: block; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

  
    /* Responsive */
    @media (max-width: 900px) {
        .about-hero h1 { font-size: 2.5rem; }
        .hero-image-placeholder { height: 300px; }
        .vision-grid { grid-template-columns: 1fr; gap: 30px; }
        .values-grid { flex-direction: column; align-items: center; }
        .value-card { width: 100%; }
        
        /* Mobile Team Member */
        .team-grid { gap: 30px; }
        .team-member { width: 100%; max-width: 300px; }
    }
	
	.search-header {
        padding: 50px 0;
        background-color: var(--bg-light);
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 40px;
    }
    .search-header h1 { font-size: 2rem; color: var(--primary-color); font-weight: 800; margin-bottom: 10px; }
    .search-header p { font-size: 1.1rem; color: var(--text-muted); }
    .search-header strong { color: var(--accent-color); }

    /* Search Form Lại (để khách tìm lại nếu sai) */
    .search-retry-form { max-width: 600px; margin: 20px auto 0; display: flex; gap: 10px; }
    .search-retry-form input { flex-grow: 1; padding: 10px 15px; border: 1px solid #ccc; border-radius: 4px; }
    .search-retry-form button { padding: 10px 25px; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; }

    /* Grid Kết quả */
    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding-bottom: 60px;
    }

    /* Label loại bài viết (Gắn trên góc ảnh) */
    .post-type-label {
        position: absolute;
        top: 10px; right: 10px;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: white;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .label-product { background-color: var(--accent-color); }
    .label-post { background-color: #10b981; /* Màu xanh lá */ }
    .label-project { background-color: var(--primary-color); }
    .label-page { background-color: #777; }

    /* Tái sử dụng style Card từ các trang trước */
    .result-card {
        background: white; border-radius: 12px; overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s;
        border: 1px solid #f0f0f0; display: flex; flex-direction: column; text-decoration: none;
    }
    .result-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    .result-thumb { height: 200px; position: relative; overflow: hidden; background: #eee; }
    .result-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
    .result-card:hover .result-thumb img { transform: scale(1.1); }
    .result-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
    .result-title { color: var(--text-dark); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
    .result-card:hover .result-title { color: var(--primary-color); }
    .result-excerpt { font-size: 0.9rem; color: #666; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    
    .pagination { text-align: center; margin-top: 40px; }
    .pagination .page-numbers { display: inline-block; padding: 8px 15px; border: 1px solid #eee; margin: 0 3px; border-radius: 4px; text-decoration: none; color: #333; }
    .pagination .current { background: var(--primary-color); color: white; border-color: var(--primary-color); }

    @media (max-width: 992px) { .search-results-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .search-results-grid { grid-template-columns: 1fr; } }
	
	/* ================= LAYOUT CHUNG ================= */
    .single-post-wrapper { padding-top: 40px; padding-bottom: 60px; background-color: #fff; }
    .breadcrumb { padding: 0 0 20px; font-size: 0.9rem; color: var(--text-muted); }
    .breadcrumb a { color: var(--text-muted); text-decoration: none; }
    .breadcrumb span { margin: 0 5px; }

    .post-grid { display: flex; gap: 40px; }
    .post-main-content { flex-basis: 70%; width: 70%; }
    .post-sidebar { flex-basis: 30%; width: 30%; flex-shrink: 0; }

    /* POST HEADER */
    .post-header { margin-bottom: 30px; }
    .post-cat-badge { display: inline-block; background: var(--bg-light); color: var(--primary-color); padding: 5px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; margin-bottom: 15px; text-decoration: none; border: 1px solid #eee; }
    .post-header h1 { font-size: 2.2rem; color: var(--primary-color); font-weight: 800; margin-bottom: 15px; line-height: 1.3; }
    .post-meta-data { font-size: 0.9rem; color: var(--text-muted); padding-bottom: 15px; border-bottom: 1px solid #eee; display: flex; gap: 20px; }
    .post-meta-data i { color: var(--accent-color); margin-right: 5px; }

    /* CONTENT EDITOR (QUAN TRỌNG) */
    .post-body { font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); }
    .post-body h2 { font-size: 1.8rem; color: var(--primary-color); margin-top: 40px; margin-bottom: 15px; font-weight: 700; }
    .post-body h3 { font-size: 1.4rem; color: var(--text-dark); margin-top: 30px; margin-bottom: 10px; font-weight: 600; }
    .post-body p { margin-bottom: 20px; text-align: justify; }
    .post-body ul, .post-body ol { margin-left: 25px; margin-bottom: 20px; }
    .post-body li { margin-bottom: 8px; }
    .post-body blockquote { border-left: 4px solid var(--accent-color); padding: 15px 20px; margin: 30px 0; background: var(--bg-light); font-style: italic; color: #555; }
    .post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
    
    /* RELATED POSTS (LIST LAYOUT) */
    .related-posts-section { margin-top: 60px; border-top: 1px solid #eee; padding-top: 40px; }
    .related-posts-section h2 { font-size: 1.6rem; color: var(--primary-color); font-weight: 700; margin-bottom: 25px; border-left: 4px solid var(--accent-color); padding-left: 15px; }
    .related-list { display: flex; flex-direction: column; gap: 20px; }
    .related-card { display: flex; text-decoration: none; border: 1px solid #eee; border-radius: 8px; background: white; overflow: hidden; transition: all 0.3s; padding: 15px; align-items: center; }
    .related-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: var(--accent-color); transform: translateX(5px); }
    .related-card-img { width: 100px; height: 75px; flex-shrink: 0; margin-right: 20px; border-radius: 4px; overflow: hidden; }
    .related-card-img img { width: 100%; height: 100%; object-fit: cover; }
    .related-card-content h4 { font-size: 1.05rem; color: var(--text-dark); margin: 0 0 5px; font-weight: 600; line-height: 1.4; transition: color 0.3s; }
    .related-card:hover h4 { color: var(--primary-color); }
    .related-card-content p { font-size: 0.85rem; color: #888; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* =========================================
       FIX LỖI GIAO DIỆN WIDGET WORDPRESS
       ========================================= */

    /* 1. Style chung cho Widget */
    .widget {
        margin-bottom: 35px;
        padding: 25px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: var(--bg-light);
    }
    
    .widget h4 {
        font-size: 1.2rem;
        color: var(--primary-color);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--accent-color);
        font-weight: 700;
    }

    /* 2. Fix Widget Tìm kiếm (Search Form) */
    .widget_search .screen-reader-text {
        display: none; /* Ẩn dòng chữ "Tìm kiếm cho:" */
    }
    
    .widget_search form {
        display: flex;
        flex-direction: column; /* Xếp dọc: Input trên, Nút dưới */
    }

    /* Ô nhập liệu */
    .widget_search input#s {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 0.95rem;
        margin-bottom: 10px; /* Khoảng cách với nút */
        font-family: inherit;
        background: #fff;
    }
    .widget_search input#s:focus {
        border-color: var(--accent-color);
        outline: none;
    }

    /* Nút Tìm kiếm */
    .widget_search input#searchsubmit {
        width: 100%;
        padding: 10px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 700;
        cursor: pointer;
        text-transform: uppercase;
        transition: all 0.3s;
        font-size: 0.9rem;
    }
    .widget_search input#searchsubmit:hover {
        background-color: var(--accent-color);
    }

    /* 3. Fix Widget Danh mục & Bài mới (List Styles) */
    .widget_categories ul, 
    .widget_recent_entries ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .widget_categories ul li,
    .widget_recent_entries ul li {
        border-bottom: 1px dashed #d1d5db;
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Đẩy số lượng bài sang phải */
        flex-wrap: wrap;
    }
    
    .widget_categories ul li:last-child,
    .widget_recent_entries ul li:last-child {
        border-bottom: none;
    }

    .widget_categories ul li a,
    .widget_recent_entries ul li a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        transition: all 0.3s;
        width: 90%; /* Để chừa chỗ cho số đếm nếu có */
        display: block;
    }

    .widget_categories ul li a:hover,
    .widget_recent_entries ul li a:hover {
        color: var(--accent-color);
        padding-left: 5px; /* Hiệu ứng dịch sang phải khi hover */
    }

    /* Style cho số lượng bài viết (nếu có) */
    .widget_categories ul li {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    /* 4. Fix Widget CTA (Giữ nguyên class cũ bạn đã thêm) */
    .cta-widget {
        text-align: center;
        background: var(--primary-color) !important; /* Force nền xanh */
        color: white;
        border: none;
    }
    .cta-widget h4 {
        color: white;
        border-bottom-color: rgba(255,255,255,0.3);
    }
    .cta-widget p {
        color: rgba(255,255,255,0.8);
        margin-bottom: 20px;
    }
    .cta-widget .btn {
        background: var(--accent-color);
        color: white;
        border: none;
        width: 100%;
        display: block;
        text-align: center;
    }
    .cta-widget .btn:hover {
        background: #fff;
        color: var(--accent-color);
    }
    
    /* CTA Widget */
    .cta-widget { text-align: center; background: var(--primary-color); color: white; border: none; }
    .cta-widget h4 { color: white; border-bottom-color: rgba(255,255,255,0.3); }
    .cta-widget p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
    .cta-widget .btn { background: var(--accent-color); color: white; border: none; width: 100%; }

    /* Responsive */
    @media (max-width: 992px) {
        .post-grid { flex-direction: column; }
        .post-main-content, .post-sidebar { flex-basis: 100%; width: 100%; }
        .post-header h1 { font-size: 1.8rem; }
    }
	/* ================= AUTHOR BOX (CHUẨN E-E-A-T) ================= */
    .author-box {
        display: flex;
        gap: 25px;
        background-color: #f8fafc; /* Nền xám nhạt */
        padding: 30px;
        margin-top: 50px;
        border-radius: 12px;
        border-left: 5px solid var(--primary-color); /* Viền nhấn thương hiệu */
        align-items: center;
    }
    
    .author-avatar {
        flex-shrink: 0;
    }
    
    .author-avatar img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .author-info h3 {
        font-size: 1.3rem;
        color: var(--primary-color);
        margin-top: 0;
        margin-bottom: 10px;
        font-weight: 700;
        display: flex;
        align-items: center;
    }
    
    .author-label {
        font-size: 0.75rem;
        background: var(--accent-color);
        color: white;
        padding: 2px 8px;
        border-radius: 4px;
        margin-left: 10px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .author-bio {
        font-size: 0.95rem;
        color: var(--text-dark);
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .author-link {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--accent-color);
        text-decoration: none;
        transition: all 0.3s;
    }
    .author-link:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

    /* Responsive Author Box */
    @media (max-width: 600px) {
        .author-box { flex-direction: column; text-align: center; }
        .author-info h3 { justify-content: center; }
    }
	/* =============================================
       FIX LỖI ẢNH TRÀN RA NGOÀI (CONTENT EDITOR)
       ============================================= */

    /* 1. Xử lý ảnh gốc */
    .post-body img, 
    .content-editor img {
        max-width: 100%; /* QUAN TRỌNG NHẤT: Ép ảnh không bao giờ to hơn khung chứa */
        height: auto;    /* Giữ tỉ lệ ảnh chuẩn, không bị méo/dẹt */
        display: block;  /* Xóa khoảng trắng thừa dưới chân ảnh */
        margin: 20px auto; /* Tự động căn giữa ảnh */
        border-radius: 6px; /* Bo góc nhẹ cho đẹp */
        box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Đổ bóng nhẹ */
    }

    /* 2. Xử lý khung chứa ảnh có chú thích (Figure/Caption) */
    /* WordPress thường bọc ảnh có caption trong thẻ <figure>, thẻ này hay bị dính width cứng */
    .post-body figure, 
    .content-editor figure,
    .wp-caption {
        max-width: 100% !important; /* Bắt buộc khung caption co lại vừa màn hình */
        margin: 20px auto;
        height: auto;
    }

    /* 3. Xử lý Video (Youtube/Iframe) bị tràn */
    .post-body iframe,
    .post-body video,
    .content-editor iframe {
        max-width: 100%; /* Video cũng không được tràn */
        display: block;
        margin: 20px auto;
    }

    /* 4. Xử lý căn lề ảnh (Align) của WordPress */
    
    /* Ảnh căn giữa */
    .post-body .aligncenter, 
    .content-editor .aligncenter {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* Ảnh căn trái (Trên máy tính) */
    .post-body .alignleft, 
    .content-editor .alignleft {
        float: left;
        margin-right: 20px;
        margin-bottom: 20px;
        max-width: 50%; /* Ảnh căn trái chỉ nên chiếm 1 nửa */
    }

    /* Ảnh căn phải (Trên máy tính) */
    .post-body .alignright, 
    .content-editor .alignright {
        float: right;
        margin-left: 20px;
        margin-bottom: 20px;
        max-width: 50%;
    }

    /* Clear fix để nội dung không bị dồn lên khi dùng float */
    .post-body::after, 
    .content-editor::after {
        content: "";
        display: table;
        clear: both;
    }

    /* ================= RESPONSIVE MOBILE ================= */
    @media (max-width: 768px) {
        /* Trên điện thoại, bỏ căn trái/phải để ảnh về giữa cho to rõ */
        .post-body .alignleft, 
        .content-editor .alignleft,
        .post-body .alignright, 
        .content-editor .alignright {
            float: none;
            display: block;
            margin: 20px auto;
            max-width: 100%;
        }
    }
	
	 /* 1. HERO SECTION */
    .case-study-hero {
        background-color: var(--primary-color);
        color: white;
        padding: 80px 0;
        text-align: center;
        position: relative;
        background-size: cover;
        background-position: center;
    }
    .case-study-hero h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.9; margin-bottom: 15px; color: var(--accent-color); font-weight: 700; }
    .case-study-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 30px; line-height: 1.2; text-transform: uppercase; }
    .case-study-meta { font-size: 1.1rem; display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; color: rgba(255, 255, 255, 0.9); flex-wrap: wrap;}
    .case-study-meta span { display: flex; align-items: center; }
    .case-study-meta i { color: var(--accent-color); margin-right: 8px; }
    .case-study-hero .btn-primary { background: white; color: var(--primary-color); border: none; font-weight: 700; padding: 15px 30px; border-radius: 5px; text-decoration: none; display: inline-block; transition: all 0.3s; }
    .case-study-hero .btn-primary:hover { background: var(--accent-color); color: white; }

    /* 2. CHALLENGE & SOLUTION */
    .challenge-solution-overview { padding: 30px 0; }
    .challenge-solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
    .cs-block h2 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 700; border-bottom: 3px solid var(--accent-color); padding-bottom: 10px; display: inline-block; text-transform: uppercase; }
    
    /* Style nội dung văn bản */
    .content-editor { font-size: 1.1rem; color: var(--text-dark); line-height: 1.7; text-align: justify; }
    .content-editor ul { list-style: none; padding: 0; margin-bottom: 20px; }
    .content-editor li { margin-bottom: 10px; position: relative; padding-left: 25px; }
    .content-editor li::before { content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--primary-color); position: absolute; left: 0; top: 3px; }
    .content-editor strong { color: var(--primary-color); }

    /* --- SLIDER GALLERY (VERSION: BLURRED BACKDROP) --- */
    .project-media { 
        padding: 30px 0; 
        background: #fff; /* Nền ngoài cùng là trắng để liền mạch */
    }
    .project-swiper-container { 
        width: 100%; 
        max-width: 1100px; 
        margin: auto; 
        position: relative; 
    }
    
    /* Container bo góc */
    .project-swiper { 
        width: 100%; 
        border-radius: 12px; 
        overflow: hidden; 
        background: #f8fafc; /* Màu nền dự phòng */
        box-shadow: 0 20px 60px rgba(0,0,0,0.15); /* Đổ bóng sang trọng */
    }
    
    /* Slide: Dùng Flex để căn giữa */
    .project-swiper .swiper-slide {
        height: 600px; /* Tăng chiều cao lên chút cho thoáng */
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    /* LỚP NỀN MỜ (BLURRED BACKGROUND) */
    .slide-bg-blur {
        position: absolute;
        top: -20px; left: -20px; right: -20px; bottom: -20px; /* Tràn ra ngoài để tránh viền trắng khi blur */
        background-size: cover;
        background-position: center;
        filter: blur(25px) brightness(0.85); /* Làm mờ và tối nhẹ để tôn ảnh chính */
        z-index: 1;
        transition: all 0.5s ease;
    }

    /* ẢNH CHÍNH (FOREGROUND IMAGE) */
    .project-swiper .swiper-slide img.main-img { 
        position: relative;
        z-index: 2;
        max-width: 85%; /* Chừa lề để thấy nền mờ */
        max-height: 90%; 
        width: auto; 
        height: auto; 
        object-fit: contain; 
        display: block; 
        border-radius: 6px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Đổ bóng ảnh chính tách khỏi nền */
        transition: transform 0.5s ease;
    }
    
    /* Hiệu ứng khi lướt: Ảnh chính nổi lên chút */
    .swiper-slide-active img.main-img {
        transform: scale(1);
    }

    /* Nút điều hướng tinh tế hơn */
    .pj-arrow { 
        width: 50px; height: 50px; 
        background: rgba(255,255,255,0.2); 
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 50%; 
        color: white; 
        display: flex; align-items: center; justify-content: center; 
        backdrop-filter: blur(10px); /* Hiệu ứng kính mờ cho nút */
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .pj-arrow:hover { 
        background: var(--accent-color); 
        border-color: var(--accent-color);
        transform: scale(1.1); 
        box-shadow: 0 8px 20px rgba(255, 111, 60, 0.4);
    }
    .pj-arrow::after { font-size: 18px; font-weight: bold; }

    /* Responsive */
    @media (max-width: 768px) {
        .project-swiper .swiper-slide { height: 350px; }
        .project-swiper .swiper-slide img.main-img { max-width: 95%; max-height: 95%; }
    }
    
    /* Ảnh trong Slider - Fix lỗi bị che */
    .project-swiper .swiper-slide {
        height: 550px; /* Chiều cao cố định cho khung ảnh */
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
    }
    .project-swiper .swiper-slide img { 
        max-width: 100%; 
        max-height: 100%; 
        width: auto; 
        height: auto; 
        object-fit: contain; /* Quan trọng: Giữ nguyên tỉ lệ ảnh */
        display: block; 
    }

    /* Nút điều hướng Slider */
    .pj-arrow { 
        width: 50px; height: 50px; 
        background: rgba(255,255,255,0.1); 
        border-radius: 50%; 
        color: white; 
        display: flex; align-items: center; justify-content: center; 
        backdrop-filter: blur(5px); 
        transition: all 0.3s;
    }
    .pj-arrow:hover { background: var(--accent-color); transform: scale(1.1); }
    .pj-arrow::after { font-size: 20px; font-weight: bold; }

    /* 4. RESULTS (Repeater) */
    .key-results-section { background-color: var(--bg-light); padding: 30px 0; text-align: center; }
    .key-results-section h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 50px; font-weight: 800; text-transform: uppercase; }
    .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
    .result-item { background: white; padding: 40px 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border-bottom: 5px solid var(--accent-color); transition: transform 0.3s; }
    .result-item:hover { transform: translateY(-10px); }
    .result-item .icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px; }
    .result-item .value { font-size: 3rem; font-weight: 800; color: var(--primary-color); line-height: 1; margin-bottom: 10px; }
    .result-item .label { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }

    /* 5. FINAL CTA */
    .final-cta-section { padding: 80px 0; text-align: center; border-top: 1px solid #e2e8f0; }
    .quote-text { font-size: 1.4rem; font-style: italic; max-width: 800px; margin: 0 auto 30px; line-height: 1.6; color: var(--text-dark); position: relative; }
    .final-cta-section .quote-text::before, 
        .final-cta-section .quote-text::after {
            font-family: 'Font Awesome 6 Free';
            content: "\f10d"; 
            font-weight: 900;
            font-size: 3rem;
            color: var(--accent-color);
            position: absolute;
            opacity: 0.5; /* Tăng độ nhìn thấy của icon quote */
        }
	.final-cta-section .quote-text::before { top: -20px; left: 0; }
        .final-cta-section .quote-text::after { content: "\f10e"; right: 0; bottom: -20px; }
    /* Responsive */
    @media (max-width: 768px) {
        .case-study-hero h1 { font-size: 2rem; }
        .challenge-solution-grid { grid-template-columns: 1fr; gap: 40px; }
        .case-study-meta { flex-direction: column; gap: 10px; }
        .project-swiper .swiper-slide { height: 300px; } /* Giảm chiều cao slider trên mobile */
    }
	
	 /* ================= HEADER DANH MỤC (Đã sửa) ================= */
    .product-header-wrapper {
        background-color: var(--bg-light); /* Màu nền xám nhẹ */
        padding-top: 110px;    /* Tăng khoảng cách trên */
        padding-bottom: 50px; /* Tăng khoảng cách dưới */
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 40px;
        position: relative;
        width: 100%;
        /* Đảm bảo nội dung không bị Header che */
        z-index: 1; 
    }

    /* Khung chứa nội dung Header */
    .header-content-inner {
        width: 90%;
        max-width: var(--max-width); /* Đồng bộ độ rộng với phần thân 1200px */
        margin: 0 auto;
        text-align: left; /* Căn trái cho thẳng hàng, thay vì căn giữa */
    }

    .product-header-wrapper h1 { 
        font-size: 2.5rem; 
        color: var(--primary-color); 
        font-weight: 800; 
        margin-bottom: 20px; 
        line-height: 1.2;
        text-transform: uppercase;
        /* Thêm gạch chân ngắn dưới tiêu đề */
        position: relative;
        padding-bottom: 15px;
    }
    .product-header-wrapper h1::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background-color: var(--accent-color);
        border-radius: 2px;
    }
    
    /* Box Mô tả danh mục (Full Width) */
    .category-desc-box {
        display: block; /* Full dòng */
        width: 100%;
        font-size: 1.05rem;
        color: var(--text-dark);
        line-height: 1.6;
        background: white; /* Nền trắng làm nổi bật trên nền xám */
        padding: 20px;
        border-radius: 8px;
        border-left: 4px solid var(--accent-color); /* Viền nhấn bên trái */
        box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Đổ bóng rất nhẹ */
    }
    .category-desc-box p { margin-bottom: 10px; }
    .category-desc-box p:last-child { margin-bottom: 0; }

    /* ================= LAYOUT CONTENT (Giữ nguyên) ================= */
    .product-listing-grid { display: flex; gap: 40px; padding-bottom: 60px; }

    /* SIDEBAR */
    .product-sidebar { flex-basis: 280px; flex-shrink: 0; }
    .sidebar-widget { margin-bottom: 30px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
    .sidebar-widget h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-color); font-weight: 700; }
    .product-search-form input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; }
    .product-search-form button { width: 100%; margin-top: 10px; padding: 8px; background: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
    .category-list { list-style: none; padding: 0; margin: 0; }
    .category-list li { border-bottom: 1px dashed #eee; }
    .category-list li:last-child { border-bottom: none; }
    .category-list li a { display: block; padding: 10px 0; color: var(--text-dark); font-weight: 500; display: flex; justify-content: space-between; }
    .category-list li a:hover, .category-list li.current-cat a { color: var(--accent-color); transform: translateX(5px); font-weight: 700; }
    .category-list li .count { background: #f1f1f1; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; color: #666; }

    /* MAIN CONTENT */
    .product-main-content { flex-grow: 1; }
    .filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
    .filter-bar p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
    .filter-bar select { padding: 8px 15px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.9rem; cursor: pointer; color: var(--text-dark); }
    
    /* GRID SẢN PHẨM */
    .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .product-card { background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: box-shadow 0.3s, transform 0.3s; overflow: hidden; text-decoration: none; text-align: center; border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
    .product-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); transform: translateY(-5px); }
    .product-image-wrap { height: 220px; overflow: hidden; background-color: var(--bg-light); display: flex; align-items: center; justify-content: center; position: relative; }
    .product-image-wrap img { width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.5s; }
    .product-card:hover .product-image-wrap img { transform: scale(1.05); }
    .product-content { padding: 20px 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
    .product-content h4 { color: var(--primary-color); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.3; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-meta { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-bottom: 15px; }
    .product-content .btn-detail { padding: 8px 20px; font-size: 0.85rem; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 4px; display: inline-block; transition: all 0.3s; }
    .product-card:hover .btn-detail { background: var(--primary-color); color: white; }
    .pagination { margin-top: 50px; text-align: center; }
    .pagination .page-numbers { display: inline-block; padding: 10px 15px; margin: 0 5px; border: 1px solid #ddd; border-radius: 4px; color: var(--text-dark); text-decoration: none; font-weight: 600; }
    .pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

    /* RESPONSIVE */
    @media (max-width: 992px) {
        .product-listing-grid { flex-direction: column; }
        .product-sidebar { flex-basis: 100%; width: 100%; order: -1; }
        .product-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .product-grid { grid-template-columns: 1fr; }
        .filter-bar { flex-direction: column; gap: 10px; align-items: flex-start; }
        .product-header-wrapper h1 { font-size: 1.8rem; }
    }
	/* =========================================
   6. CHI TIẾT DỰ ÁN (NEW GALLERY STYLE)
   ========================================= */

/* Container chính */
.project-media { 
    padding: 60px 0; 
    background: #fff;
}

.project-gallery-wrapper { 
    width: 100%; 
    max-width: 1100px; 
    margin: auto; 
    position: relative;
}

/* A. KHUNG HIỂN THỊ ẢNH LỚN */
.main-media-container.project-main-view {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #000;
    
    /* Tỉ lệ khung hình điện ảnh cho dự án (16:9) */
    aspect-ratio: 16 / 9; 
    margin-bottom: 20px;
}

/* Ảnh/Video bên trong */
.main-media-container.project-main-view img,
.main-media-container.project-main-view iframe { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Giữ nguyên ảnh không bị cắt */
    display: block;
    border: none;
}

/* Nút điều hướng trên ảnh lớn */
.main-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* To hơn sản phẩm chút */
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: white;
    font-size: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.main-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}
.main-prev { left: 20px; }
.main-next { right: 20px; }


/* B. SLIDER THUMBNAIL (ẢNH NHỎ) */
.thumb-slider-wrapper {
    position: relative;
    padding: 0 40px; /* Chừa chỗ cho mũi tên nhỏ 2 bên */
}

.thumb-swiper {
    padding-bottom: 5px;
    overflow: hidden;
}

/* Từng cái ảnh nhỏ */
.swiper-slide.thumb-item {
    width: 120px; /* Thumb dự án to hơn sản phẩm (70px -> 120px) */
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s;
    opacity: 0.5;
    background: #f0f0f0;
}

/* Ảnh bên trong thumb */
.swiper-slide.thumb-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Trạng thái Active/Hover */
.swiper-slide.thumb-item:hover, 
.swiper-slide.thumb-item.active {
    border-color: var(--accent-color);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Style riêng cho nút Video ở Thumb */
.swiper-slide.thumb-item.video-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #333;
}
.swiper-slide.thumb-item.video-box svg { width: 28px; height: 28px; margin-bottom: 5px; }
.swiper-slide.thumb-item.video-box p { font-size: 11px; font-weight: 700; margin: 0; color: #fff; text-transform: uppercase; }
.swiper-slide.thumb-item.video-box.active { background: var(--accent-color); border-color: var(--accent-color); }
.swiper-slide.thumb-item.video-box.active svg path { stroke: white; }
.swiper-slide.thumb-item.video-box.active p { color: white; }


/* Nút điều hướng nhỏ ở Thumbnail */
.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
}
.thumb-arrow:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.thumb-prev { left: 0; }
.thumb-next { right: 0; }
.thumb-arrow::after { content: none; } /* Xóa mũi tên mặc định của Swiper */


/* Responsive Mobile */
@media (max-width: 768px) {
    .main-media-container.project-main-view { aspect-ratio: 4/3; } /* Mobile cho cao hơn chút */
    .thumb-slider-wrapper { padding: 0; }
    .thumb-arrow { display: none; }
    .swiper-slide.thumb-item { width: 80px; height: 60px; } /* Thu nhỏ thumb trên mobile */
}

/* =========================================
   PROJECT CROSS-SELLING (SẢN PHẨM TRONG DỰ ÁN)
   ========================================= */
.project-used-products {
    background-color: #fff;
    padding: 40px 0;
    border-top: 1px dashed #e2e8f0;
}

.used-prod-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}
.used-prod-title i { color: var(--accent-color); margin-right: 10px; }

.used-prod-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.used-prod-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    width: 400px;
    max-width: 100%;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.used-prod-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(26, 77, 148, 0.15);
    transform: translateY(-3px);
}

.used-prod-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid #eee;
}

.used-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.used-prod-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.3;
}

.used-prod-item:hover .used-prod-info h4 { color: var(--primary-color); }

.used-prod-info .btn-text {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* RESPONSIVE MOBILE CHO PRODUCT SINGLE */
@media (max-width: 992px) {
    .product-summary-grid {
        flex-direction: column;
    }
}
/* ==================================================
   FIX LỖI GIAO DIỆN CHI TIẾT SẢN PHẨM (SINGLE PRODUCT)
   ================================================== */

/* 1. Ép lại bố cục chia đôi (Quan trọng nhất) */
.product-summary-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Chống kéo dãn chiều cao */
}

.product-gallery {
    width: 50%;      /* Chiếm đúng 50% */
    flex-basis: 50%; /* Đảm bảo Flexbox hiểu */
    max-width: 50%;  /* Khóa cứng không cho tràn */
    flex-shrink: 0;  /* Không được co lại */
}

.product-info {
    width: 50%;
    flex-basis: 50%;
    max-width: 50%;
}

/* 2. Chỉnh lại khung ảnh chính (Khác với Dự án) */
/* Dùng selector cụ thể hơn để đè CSS của Project */
.product-gallery .main-media-container {
    aspect-ratio: 4 / 3 !important; /* Tỉ lệ chuẩn cho ảnh máy móc (Vuông hơn 16:9) */
    background-color: transparent !important; /* Bỏ nền đen của dự án */
    box-shadow: none !important; /* Bỏ đổ bóng quá đậm */
    border: 1px solid #eee; /* Viền nhẹ nhàng hơn */
    margin-bottom: 15px;
}

.product-gallery .main-media-container img,
.product-gallery .main-media-container iframe {
    object-fit: contain !important; /* Đảm bảo nhìn thấy toàn bộ máy */
    background: #fff; /* Nền trắng cho sạch */
}

/* 3. Chỉnh lại Thumbnail nhỏ (Tránh bị ảnh hưởng bởi thumb to của dự án) */
.product-gallery .thumb-slider-wrapper {
    padding: 0 35px; /* Padding cho mũi tên nhỏ */
}

.product-gallery .thumb-swiper {
    padding-bottom: 5px;
    overflow: hidden;
    height: auto !important; /* Reset chiều cao cố định của dự án */
}

.product-gallery .swiper-slide.thumb-item {
    width: 70px !important;  /* Kích thước nhỏ gọn */
    height: 70px !important; /* Vuông vắn */
    border-radius: 6px;
    border: 1px solid #ddd;
    opacity: 0.6;
    background: #fff;
    margin-right: 10px !important; /* Khoảng cách giữa các thumb */
}

.product-gallery .swiper-slide.thumb-item.active,
.product-gallery .swiper-slide.thumb-item:hover {
    opacity: 1;
    border-color: var(--accent-color);
}

/* 4. Responsive Mobile cho Sản phẩm */
@media (max-width: 992px) {
    .product-summary-grid {
        flex-direction: column;
    }
    .product-gallery, .product-info {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }
    .product-gallery .main-media-container {
        aspect-ratio: 16 / 9 !important; /* Trên mobile cho nằm ngang chút để đỡ chiếm chỗ */
    }
}
/* =========================================
   AJAX LIVE SEARCH STYLES
   ========================================= */

/* Wrapper để định vị dropdown tương đối với ô input */
.live-search-wrapper {
    position: relative;
    width: 100%;
}

/* Spinner Loading */
.search-spinner {
    position: absolute;
    right: 50px; /* Căn chỉnh tùy vị trí nút tìm kiếm */
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    display: none; /* Ẩn mặc định */
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: translateY(-50%) rotate(360deg); } }

/* Dropdown Kết quả */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10000;
    display: none; /* Ẩn mặc định */
    overflow: hidden;
}

.search-results-dropdown.active {
    display: block;
}

/* List Item */
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-list li {
    border-bottom: 1px solid #f1f1f1;
}

.search-results-list li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.search-results-list li a:hover {
    background-color: #f8fafc;
}

/* Thumbnail */
.s-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.s-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.s-info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0 0 3px;
    font-weight: 600;
    line-height: 1.3;
}

.s-type {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
}
.s-type.label-product { background: var(--accent-color); }
.s-type.label-project { background: var(--primary-color); }
.s-type.label-post { background: #10b981; }

/* View All & No Results */
.view-all-results {
    display: block;
    padding: 10px;
    text-align: center;
    background: #f1f5f9;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.view-all-results:hover { background: #e2e8f0; }

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* =========================================
   PRODUCT TABS (GIAO DIỆN TAB NGANG)
   ========================================= */

/* 1. Thanh Menu Tab */
.product-tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.tab-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.tab-btn i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Hiệu ứng Hover & Active */
.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(26, 77, 148, 0.3);
}

.tab-btn.active i {
    color: white; /* Đổi màu icon sang trắng khi active */
}

/* 2. Nội dung Tab */
.product-tab-content {
    animation: fadeEffect 0.6s; /* Hiệu ứng mờ dần khi chuyển tab */
}

@keyframes fadeEffect {
    from {opacity: 0; transform: translateY(10px);} 
    to {opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
    .product-tabs-nav {
        overflow-x: auto; /* Cho phép lướt ngang trên mobile */
        justify-content: flex-start;
        padding-bottom: 10px;
        white-space: nowrap;
        border-bottom: none;
    }
    .tab-btn {
        flex-shrink: 0; /* Không co lại */
    }
}

/* =========================================
   VIDEO MODAL / LIGHTBOX POPUP
   ========================================= */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.video-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.video-modal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.video-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
    background: #111111;
}

.video-modal-close {
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: #E21E28;
}

.video-modal-body {
    position: relative;
    width: 100%;
}

/* ====================================================
   SECTIONS: GIẢI PHÁP TƯƠNG TỰ (RELATED PRODUCTS GRID)
   ==================================================== */
.related-products-section {
    padding: 60px 0 40px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: 50px;
}

.related-products-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark, #222222);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 12px;
}

.related-products-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color, #E21E28);
    border-radius: 2px;
}

.related-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .related-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .related-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Card styling cho sản phẩm tương tự */
.related-product-grid .product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.related-product-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color, #E21E28);
}

.related-product-grid .product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    background-color: #f1f5f9;
}

.related-product-grid .product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-product-grid .product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

.related-product-grid .product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 18px 20px 20px;
    text-align: center;
}

.related-product-grid .product-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark, #222222);
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-product-grid .product-card:hover .product-content h4 {
    color: var(--primary-color, #E21E28);
}

.related-product-grid .btn-detail {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
    margin-top: auto;
    align-self: center;
}

.related-product-grid .product-card:hover .btn-detail {
    background: var(--primary-color, #E21E28);
    color: #ffffff;
    border-color: var(--primary-color, #E21E28);
}

