/*
 * =========================================================================
 *  CSS TỐI ƯU HOÀN CHỈNH CHO SECTION "VISUAL GUIDE"
 * =========================================================================
 *  - Giải quyết triệt để vấn đề vỡ hình do xung đột CSS.
 *  - Sử dụng aspect-ratio để đảm bảo tỷ lệ khung hình nhất quán.
 *  - object-fit linh hoạt để ảnh hiển thị tối ưu trên PC và Mobile.
 *  - Đồng bộ hoàn toàn với phong cách theme Kang.
 */
/*
 * =========================================================================
 *  CSS CHO TẤT CẢ CÁC SECTION
 * =========================================================================
 */

/* --- BIẾN CSS VÀ STYLE CHUNG --- */
.sections-builder-shortcode {
    --brand-color: #009b49;
    --brand-color-dark: #007a3a;
    /* ... các biến khác ... */
}

/* 
 * === BẮT ĐẦU PHẦN BỔ SUNG ===
 * Style mặc định cho TẤT CẢ các nút .cta-button trong builder
 */
.sections-builder-shortcode .cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--brand-color); /* Nền màu xanh thương hiệu */
    color: #ffffff !important; /* Chữ màu trắng */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.sections-builder-shortcode .cta-button:hover {
    background-color: var(--brand-color-dark); /* Nền xanh đậm hơn khi hover */
    transform: translateY(-2px); /* Hiệu ứng nhấc nhẹ */
}
/* === KẾT THÚC PHẦN BỔ SUNG === */

/* --- 1. CSS CHO SECTION: HERO BANNER --- */
/* ... code của hero banner ... */
.sections-builder-shortcode .visual-guide {
    background-color: #fff; /* Màu nền xám nhạt của theme */
}

/* --- Tiêu đề của Section --- */
.sections-builder-shortcode .visual-guide .guide-header {
    text-align: center;
    margin-bottom: 10px;
}
.sections-builder-shortcode .visual-guide .guide-header h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-transform: uppercase;
    margin-bottom: 10px !important;
}
.sections-builder-shortcode .visual-guide .guide-header p {
   text-align:center;
}

/* --- Danh sách các bước --- */
.sections-builder-shortcode .visual-guide .step-list {
    list-style: none;

    
}

/* --- Bố cục cho mỗi bước (PC) --- */
.sections-builder-shortcode .visual-guide .step-item {
    display: flex;
    align-items: center;
    gap: 30px;
    
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.sections-builder-shortcode .visual-guide .step-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.sections-builder-shortcode .visual-guide .step-item:last-child {
    margin-bottom: 0;
}

/* --- Vùng chứa hình ảnh (Đã tối ưu) --- */
.sections-builder-shortcode .visual-guide .step-image-wrapper {
    flex: 0 0 40%; /* Ảnh chiếm 40% trên PC */
    background-color: #fff;
    
    /* Kỹ thuật hiện đại: Ép tỷ lệ khung hình 3:2. Trình duyệt sẽ tự tính toán chiều cao. */
    /* Điều này loại bỏ sự cần thiết của align-self: stretch và các kỹ thuật cũ. */
    aspect-ratio: 3 / 2;
}

/* --- Chính tấm ảnh (Đã tối ưu để chống xung đột) --- */
.sections-builder-shortcode .visual-guide .step-image-wrapper img {
    /* Ghi đè hoàn toàn style của theme để tránh xung đột */
    width: 100% !important;
    height: 100% !important;
    max-width: none !important; /* Vô hiệu hóa max-width của theme */
    padding:10px !important;
    display: block;
    /* Trên PC, crop ảnh để lấp đầy khung hình, tạo sự đồng đều và chuyên nghiệp */
    object-fit: contain; 
}

/* --- Vùng chứa nội dung (giữ nguyên) --- */
.sections-builder-shortcode .visual-guide .step-content-wrapper {
    flex: 1;
    padding: 25px !important;
}
.sections-builder-shortcode .visual-guide .step-title {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 20px !important;
    font-weight: 700;
    margin: 0 0 10px !important;
    color: #333 !important;
}
.sections-builder-shortcode .visual-guide .step-number {
    width: 70px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff6935;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 15px;
}
.sections-builder-shortcode .visual-guide .step-description {
    font-size: 15px !important;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px !important;
}
.sections-builder-shortcode .visual-guide .step-description p {
    margin-bottom: 0 !important;
}
.sections-builder-shortcode .visual-guide .step-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px !important;
}
.sections-builder-shortcode .visual-guide .toggle-details {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: Arial, sans-serif;
    text-transform: none;
    font-weight: normal;
}
.sections-builder-shortcode .visual-guide .toggle-details:hover {
    background-color: #e0e0e0;
}
.sections-builder-shortcode .visual-guide .detailed-text {
    margin-top: 20px !important;
    background-color: #f9f9f9 !important;
    padding: 15px !important;
    border: 1px solid #eee !important;
    border-left: 3px solid #009b49 !important;
    border-radius: 4px;
}

.sections-builder-shortcode .visual-guide .cta-button{
	 padding: 8px 20px;
    font-size: 14px;
    background-color: #da4735;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: normal;
}
.sections-builder-shortcode .visual-guide .cta-button:hover {
    background-color: #222;
}
.sections-builder-shortcode .visual-guide .section-title {
    padding:10px;
    font-size: 20px;
}

/*
 * =========================================================================
 *  RESPONSIVE CHO VISUAL GUIDE (Đã tối ưu)
 * =========================================================================
 */
@media (max-width: 768px) {
    .sections-builder-shortcode .visual-guide .step-item {
        flex-direction: column; /* Chuyển thành layout 1 cột */
        gap: 0;
    }

    .sections-builder-shortcode .visual-guide .step-image-wrapper {
        width: 100%;
        /* Thay đổi tỷ lệ khung hình thành 16:9, phù hợp hơn với mobile */
        aspect-ratio: 16 / 9;
        border-bottom: 1px solid #ddd;
    }

    .sections-builder-shortcode .visual-guide .step-image-wrapper img {
        /* Trên mobile, thay đổi chiến lược: hiển thị toàn bộ ảnh để không mất chi tiết */
        object-fit: cover; 
    }
	
	.sections-builder-shortcode .visual-guide .step-content-wrapper {
        width: 100%;
        padding: 20px 15px !important;
    }
    
    .sections-builder-shortcode .visual-guide .step-actions {
        flex-direction: column; /* Nút bấm xếp chồng lên nhau */
        align-items: stretch; /* Kéo dài nút cho bằng chiều rộng */
    }
    .sections-builder-shortcode .visual-guide .step-actions .cta-button,
    .sections-builder-shortcode .visual-guide .step-actions .toggle-details {
        text-align: center;
    }
}

/*
 * =========================================================================
 *  1. CSS CHO SECTION: HERO BANNER (PHIÊN BẢN KHÔNG CONTAINER)
 * =========================================================================
 */

.hero-banner {
    min-height: 500px;
    position: relative;
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    padding: 60px 15px; /* Dùng padding để tạo khoảng trống */
    box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều cao */

    /* === KỸ THUẬT CĂN CHỈNH KHI KHÔNG CÓ CONTAINER === */
    display: flex;
    flex-direction: column; /* << QUAN TRỌNG: Xếp các item theo chiều dọc */
    align-items: center; /* Căn giữa các item theo chiều ngang */
    justify-content: center; /* Căn giữa khối nội dung theo chiều dọc */
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* --- Tất cả các con trực tiếp của .hero-banner phải có z-index cao hơn overlay --- */
.hero-banner > * {
    position: relative;
    z-index: 2;
}

/* --- Tiêu đề chính --- */
.hero-headline {
    font-size: 48px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
    max-width: 800px; /* Giới hạn chiều rộng */
}

/* --- Đoạn mô tả --- */
.hero-description {
    font-size: 18px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.6);
    max-width: 650px; /* Giới hạn chiều rộng */
}

/* ... CSS cho nút giữ nguyên ... */

/* --- Nút Kêu gọi Hành động (CTA) --- */
.hero-button {
    /* Sử dụng lại style chung của .cta-button */
    padding: 15px 35px;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.hero-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/*
 * --- RESPONSIVE CHO HERO BANNER ---
 */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px; /* Giảm chiều cao trên mobile */
    }

    .hero-headline {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

/*
 * =========================================================================
 *  4. CSS CHO SECTION: CTA BANNER (PHIÊN BẢN KHÔNG CONTAINER)
 * =========================================================================
 */

/* --- Container chính của Section --- */
.cta-banner {
    background-color: var(--bg-light-gray);
    padding: 40px 20px; /* Thêm padding trái/phải để nội dung không dính sát lề */
    
    /* Áp dụng Flexbox trực tiếp vào section */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Các class con .cta-text và .cta-banner-button giữ nguyên */
/* ... */

/* --- RESPONSIVE CHO CTA BANNER --- */
@media (max-width: 768px) {
    .cta-banner {
        padding: 30px 15px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/*
 * =========================================================================
 *  5. CSS CHO SECTION: ALERT BOX (PHIÊN BẢN KHÔNG CONTAINER)
 * =========================================================================
 */


.alert-box { padding: 10px; border-radius: 5px; border: 1px solid transparent; border-left-width: 5px; margin-bottom: 15px; }
.alert-box.alert-info { background-color: #e7f5fe; border-color: #2196f3; }
.alert-box.alert-success { background-color: #e8f5e9; border-color: #4caf50; }
.alert-box.alert-warning { background-color: #fff8e1; border-color: #ffc107; }
.alert-box.alert-danger { background-color: #ffebee; border-color: #f44336; }

/*
 * =========================================================================
 *  6. CSS CHO SECTION: TOP LIST ITEM (REVIEW SẢN PHẨM)
 * =========================================================================
 *  - Thiết kế dạng card chuyên nghiệp, phân cấp thông tin rõ ràng.
 *  - Tối ưu cho việc đọc và so sánh.
 */

/* --- Container chính của Section --- */


/* --- Card chính chứa nội dung review --- */
.review-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px; /* Khoảng cách với sản phẩm tiếp theo */
    position: relative; /* Làm "neo" cho số thứ hạng */
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

/* --- Số thứ hạng, đặt nổi bật bên ngoài card --- */
.review-rank {
    position: absolute;
    top: -25px; /* Đẩy lên trên */
    left: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--brand-color);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    
    /* Căn giữa số bên trong vòng tròn */
    display: flex;
    align-items: center;
    justify-content: center;
    
    border: 4px solid #ffffff; /* Viền trắng để tách biệt khỏi card */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Khu vực Header (ảnh, tên, tag) --- */
.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    /* Phần padding-left để chừa không gian, tránh bị số thứ hạng đè lên chữ */
    /* Tuy nhiên, cách đặt số bên ngoài đã giải quyết vấn đề này */
}

.review-image img {
    width: 100px; /* Kích thước cố định cho ảnh */
    height: 100px;
    object-fit: contain; /* Hiển thị toàn bộ ảnh sản phẩm */
    border-radius: 5px;
   
}

.review-title-group {
    flex-grow: 1; /* Cho phép khối này chiếm hết không gian còn lại */
}

.review-product-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.review-highlight-tag {
    background-color: #fff8e1;
    color: #f57c00;
    padding: 5px 12px;
    border-radius: 20px; /* Bo tròn dạng "pill" */
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* --- Đoạn tóm tắt đánh giá --- */
.review-summary {
    color: var(--text-light);
    line-height: 1.8;
    border-bottom: 1px dashed var(--border-color);
    
}

/* --- Lưới chứa Ưu & Nhược điểm --- */
.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cột bằng nhau */
    gap: 30px;
    margin-bottom: 30px;
}

.review-pros h4,
.review-cons h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.review-pros h4 { color: var(--brand-color); }
.review-cons h4 { color: #d32f2f; }

.review-pros ul,
.review-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-pros li,
.review-cons li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Dùng Font Awesome cho icon */
.review-pros li::before {
    font-family: "FontAwesome";
    font-weight: 900;
    content: "\f00c"; /* Icon "check" */
    color: var(--brand-color);
    position: absolute;
    left: 0;
}
.review-cons li::before {
    font-family: "FontAwesome";
    font-weight: 900;
    content: "\f00d"; /* Icon "times" */
    color: #d32f2f;
    position: absolute;
    left: 0;
}

/* --- Khu vực nút CTA --- */
.review-cta {
    text-align: right;
}
.review-cta .cta-button {
    font-size: 16px;
}


/*
 * --- RESPONSIVE CHO TOP LIST ITEM ---
 */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .review-product-name {
        font-size: 22px;
    }
    .review-pros-cons {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    }
    .review-cta {
        text-align: center;
    }
}

/*
 * =========================================================================
 *  7. CSS CHO SECTION: PRODUCT HIGHLIGHT (SẢN PHẨM ĐỀ XUẤT)
 * =========================================================================
 *  - Thiết kế dạng card 2 cột (ảnh + nội dung) gọn gàng, chuyên nghiệp.
 *  - Tối ưu cho việc chèn xen kẽ vào nội dung bài viết.
 *  - Responsive hoàn chỉnh cho mobile.
 */

/* --- Container chính của Section --- */
.section-product-highlight {
    /* Section này không cần padding lớn vì box đã có style riêng */
    padding: 30px 0;
}

/* --- Box chính chứa nội dung --- */
.product-highlight-box {
    display: flex;
    align-items: center; /* Căn giữa nội dung theo chiều dọc */
    gap: 30px; /* Khoảng cách giữa ảnh và chữ */
    
    background-color: #ffffff; /* Nền trắng để nổi bật trên nền xám của bài viết */
    padding: 10px;
    border-radius: 10px; /* Bo góc lớn hơn cho mềm mại */
    border: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Đổ bóng rõ hơn */
    
    
}

/* --- Cột chứa ảnh sản phẩm --- */
.product-highlight-image {
    flex: 0 0 160px; /* Tăng nhẹ chiều rộng ảnh */
}
.product-highlight-image a {
    display: block;
}
.product-highlight-image img {
    width: 100%;
    height: 160px; /* Tăng chiều cao tương ứng */
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background-color: #f9f9f9; /* Nền xám nhạt cho ảnh, thay vì trắng tinh */
    border: 1px solid #eee;
}

/* --- Cột chứa nội dung chữ --- */
.product-highlight-content {
    flex: 1;
}

/* --- Tiêu đề sản phẩm --- */
.product-highlight-title {
    font-size: 16px; /* Tăng kích thước tiêu đề */
    font-weight: 700;
    margin: 0 0 15px 0; /* Tăng khoảng cách dưới */
}
.product-highlight-title a {
    color: var(--text-dark, #333);
    text-decoration: none;
    transition: color 0.3s ease;
}
.product-highlight-title a:hover {
    color: var(--brand-color, #009b49);
}

/* --- Mô tả/Lý do đề xuất/Excerpt --- */
.product-highlight-reason,
.product-highlight-excerpt {
    font-size: 16px;
    color: var(--text-light, #666);
    line-height: 1.7;
    margin-bottom: 25px; /* Tăng khoảng cách với nút bấm */
}
/* Xử lý thẻ <p> do the_excerpt() tự động tạo ra */
.product-highlight-excerpt p:last-child {
    margin-bottom: 0;
}

/* --- Nút bấm --- */
.product-highlight-box .cta-button {
    /* Kế thừa style chung, không cần ghi đè nhiều */
    padding: 12px 25px;
    font-size: 15px;
}

/*
 * --- RESPONSIVE CHO PRODUCT HIGHLIGHT ---
 */
@media (max-width: 600px) {
    .product-highlight-box {
        flex-direction: column; /* Chuyển sang layout cột */
        text-align: center; /* Căn giữa nội dung */
        padding: 20px;
        gap: 20px; /* Giảm khoảng cách */
    }

    .product-highlight-image {
        flex-basis: auto;
        width: 180px; /* Set width cố định cho ảnh trên mobile */
    }
    
    /* Đảm bảo ảnh vẫn giữ chiều cao tương ứng */
    .product-highlight-image img {
        height: 180px;
    }
}

/*
 * =========================================================================
 *  9. CSS CHO SECTION: CASE STUDY "TRƯỚC & SAU" (KHÔNG CONTAINER)
 * =========================================================================
 */

.section-before-after {
    /* Section này sẽ tự co giãn, nhưng chúng ta thêm padding ngang
       để nội dung không dính sát lề trên mobile */
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Lưới chứa 2 cột so sánh --- */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;

    /* Thêm các thuộc tính này để căn giữa lưới */
    max-width: 1140px; /* Chiều rộng tối đa giống container cũ */
    margin-left: auto;
    margin-right: auto;
}

/* --- Từng cột (Trước hoặc Sau) --- */
.before-after-item {
    margin: 0;
    text-align: center;
}

/* --- Hình ảnh --- */
.before-after-item img {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* --- Khối chú thích dưới ảnh --- */
.before-after-item figcaption {
    margin-top: 20px;
    padding: 0 10px;
}

/* --- Nhãn "Trước" và "Sau" --- */
.before-after-item .label {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 10px;
}
.before-after-item .label.before {
    background-color: #f44336;
}
.before-after-item .label.after {
    background-color: var(--brand-color);
}

/* --- Đoạn text chú thích --- */
.before-after-item figcaption p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* --- Khối tóm tắt kết quả ở dưới --- */
.before-after-summary {
    margin-top: 10px;
    background: #f0fff6;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #b2dfdb;
    border-left: 5px solid var(--brand-color);
    
}
.before-after-summary p:last-child {
    margin-bottom: 0;
}


/*
 * --- RESPONSIVE ---
 */
@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/*
 * =========================================================================
 *  10. CSS CHO SECTION: YOUTUBE VIDEO
 * =========================================================================
 *  - Kỹ thuật làm video iframe responsive hoàn hảo.
 *  - Giao diện sạch sẽ, tập trung vào nội dung video.
 */

/* --- Container chính của Section --- */
.section-youtube-video {
    /* Section này có thể đứng trên nền trắng hoặc xám */
}

/* --- Tiêu đề (nếu có) --- */
.section-youtube-video .section-title {
    margin-bottom: 25px; /* Giảm khoảng cách với video */
}

/* --- Kỹ thuật "Aspect Ratio Box" cho video responsive --- */
.video-responsive-wrapper {
    position: relative;
    /* 
     * padding-bottom: 56.25% là "phép thuật" chính.
     * Nó tạo ra một hộp có tỷ lệ khung hình 16:9 (vì 9 / 16 = 0.5625).
     * Chiều cao của hộp sẽ luôn bằng 56.25% chiều rộng của nó.
     */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    
    /* Style để hộp trông đẹp hơn */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #000; /* Nền đen trong lúc video đang tải */

    /* Giới hạn chiều rộng và căn giữa */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Style cho chính thẻ <iframe> bên trong --- */
.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Bỏ viền mặc định của iframe */
}

/* --- Chú thích cho video (nếu có) --- */
.video-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-light);
    font-style: italic;

    /* Căn giữa và giới hạn chiều rộng tương ứng với video */
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Thêm padding nhỏ trên mobile */
}

/*
 * --- RESPONSIVE ---
 * Kỹ thuật này đã tự responsive, không cần media query phức tạp.
 * Chúng ta chỉ cần đảm bảo section có padding ngang trên mobile.
 */
@media (max-width: 991px) {
    .section-youtube-video {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/*
 * =========================================================================
 *  11. CSS CHO SECTION: TESTIMONIALS (FIXED RESPONSIVE)
 * =========================================================================
 */

.section-testimonials {
    background-color: var(--bg-light-gray);
    
}

/* --- Lưới chứa các card đánh giá --- */
.testimonials-grid {
    display: grid;
    gap: 25px;
    
    /* === ĐÂY LÀ THAY ĐỔI QUAN TRỌNG NHẤT === */
    /*
     * Kỹ thuật auto-responsive grid:
     * - Trên mobile (rộng ~375px), minmax(250px, 1fr) sẽ chỉ đủ chỗ cho 1 cột.
     * - Trên mobile lớn hơn hoặc tablet nhỏ (rộng ~576px), sẽ có đủ chỗ cho 2 cột.
     * - Trên PC, sẽ có đủ chỗ cho 3 hoặc 4 cột.
     */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Từng card đánh giá --- */
.testimonial-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* ... các style còn lại của .testimonial-item và con của nó giữ nguyên như cũ ... */

/* --- Phần nội dung trích dẫn --- */
.testimonial-content { margin-bottom: 20px; flex-grow: 1; }
.quote-icon { display: none; }
.testimonial-quote { font-style: italic; color: var(--text-light); font-size: 15px; margin: 0; line-height: 1.7; }

/* --- Phần thông tin tác giả --- */
.testimonial-author { margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--border-color); display: flex; flex-direction: column; align-items: center; }
.testimonial-avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
.testimonial-avatar-placeholder { width: 70px; height: 70px; border-radius: 50%; background-color: #f0f0f0; color: #ccc; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 15px; }
.author-info { text-align: center; }
.testimonial-name { font-size: 16px; font-weight: 700; color: var(--text-dark); margin: 0; }
.testimonial-info { font-size: 13px; color: #888; margin: 4px 0 0; }

/* --- Phần xếp hạng sao --- */
.testimonial-rating { margin-top: 15px; }
.testimonial-rating .fa-star { color: #ffc107; font-size: 14px; }


/*
 * --- GHI ĐÈ CỤ THỂ CHO CÁC MÀN HÌNH LỚN ---
 * Chúng ta vẫn có thể dùng media query để "ép" số cột nếu cần.
 */
 
/* TABLET - Từ 768px trở lên: Hiển thị 3 cột */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PC - Từ 1200px trở lên: Hiển thị 4 cột */
@media (min-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/*
 * =========================================================================
 *  12. CSS CHO SECTION: TEAM MEMBERS (ĐỘI NGŨ CHUYÊN GIA)
 * =========================================================================
 *  - Giao diện card thành viên sạch sẽ, chuyên nghiệp.
 *  - Tập trung vào hình ảnh và thông tin cá nhân.
 */

/* --- Container chính của Section --- */
.section-team-members {
    /* Section này có thể đứng trên nền trắng hoặc xám */
}

/* --- Lưới chứa các card thành viên --- */
.team-grid {
    display: grid;
    /* Lưới đáp ứng: tự động điều chỉnh, mỗi cột tối thiểu 250px */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* --- Từng card thành viên --- */
.team-member-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.team-member-item:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

/* --- Ảnh chân dung --- */
.member-photo-wrapper {
    margin-bottom: 20px;
    position: relative; /* Cho phép định vị các element con */
    display: inline-block; /* Để wrapper chỉ rộng bằng ảnh */
}

.member-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%; /* Hình tròn */
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    border: 4px solid #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* --- Tên thành viên --- */
.member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

/* --- Chức vụ --- */
.member-title {
    color: var(--brand-color);
    font-size: 15px;
    font-weight: 500;
    /* font-style: italic; */ /* Bỏ italic để trông hiện đại hơn */
    margin: 0 0 15px 0;
}

/* --- Icon mạng xã hội --- */
.member-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    
    /* Mặc định ẩn, chỉ hiện khi hover vào card */
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* Hiển thị icon khi hover vào card cha */
.team-member-item:hover .member-socials {
    opacity: 1;
}

.member-socials a {
    color: var(--text-light);
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
    
    /* Style cho vòng tròn chứa icon */
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.member-socials a:hover {
    color: #ffffff;
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    transform: translateY(-3px);
}

/*
 * =========================================================================
 *  13. CSS CHO SECTION: PRICING TABLE (BẢNG GIÁ)
 * =========================================================================
 *  - Giao diện so sánh các gói rõ ràng, dễ hiểu.
 *  - Làm nổi bật gói "Phổ biến nhất" để hướng dẫn người dùng.
 */

/* --- Container chính của Section --- */
.section-pricing-table {
    background-color: var(--bg-light-gray);
}

/* --- Lưới chứa các cột giá --- */
.pricing-grid {
    display: grid;
    /* Lưới đáp ứng: tự động điều chỉnh, mỗi cột tối thiểu 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center; /* Căn các cột có chiều cao khác nhau vào giữa */
	margin-bottom:30px;
}

/* --- Từng cột giá (Card) --- */
.pricing-plan {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Style cho GÓI NỔI BẬT --- */
.pricing-plan.featured {
    border: 2px solid var(--brand-color);
    transform: scale(1.05); /* Phóng to nhẹ để nổi bật */
    box-shadow: 0 15px 40px rgba(0, 155, 73, 0.15); /* Đổ bóng màu thương hiệu */
    z-index: 10; /* Đảm bảo nó nằm trên các gói khác */
}

.featured-badge {
    position: absolute;
    top: -16px; /* Đặt huy hiệu nằm một nửa trong, một nửa ngoài */
    left: 50%;
    transform: translateX(-50%);
    
    background-color: var(--brand-color);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap; /* Đảm bảo chữ không bị xuống dòng */
}

/* --- Tên gói --- */
.plan-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

/* --- Phần hiển thị giá --- */
.plan-price {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
}

.plan-price .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.plan-price .period {
    color: var(--text-light);
    font-size: 16px;
    display: block; /* Cho đơn vị xuống dòng */
    margin-top: 5px;
}

/* --- Danh sách các tính năng --- */
.plan-features {
    text-align: left; /* Căn trái các tính năng để dễ đọc */
    margin-bottom: 30px;
    min-height: 150px; /* Chiều cao tối thiểu để các nút bấm thẳng hàng */
}
/* Style cho danh sách <ul> do WYSIWYG Editor tạo ra */
.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.plan-features li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-light);
}
/* Thêm icon check trước mỗi tính năng */
.plan-features li::before {
    font-family: "FontAwesome";
    font-weight: 900;
    content: "\f00c"; /* Icon "check" */
    color: var(--brand-color);
    position: absolute;
    left: 0;
    top: 3px;
}

/* --- Nút bấm --- */
.pricing-plan .cta-button {
    width: 100%; /* Kéo dài nút bằng chiều rộng của card */
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pricing-grid {
        gap: 50px 0; /* Tăng khoảng cách dọc giữa các gói */
    }
    .pricing-plan.featured {
        transform: scale(1); /* Bỏ hiệu ứng phóng to trên mobile để tiết kiệm không gian */
    }
}

/* === BỔ SUNG STYLE RIÊNG CHO "PROBLEM SECTION" === */



/* Button CTA trong mỗi box */
.value-content .btn-problem {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #27ae60;   /* xanh lá chủ đạo */
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}
.value-content .btn-problem:hover {
    background: #1e874b;
}

/* Điều chỉnh icon cho phù hợp hơn (emoji hoặc FontAwesome) */
.value-icon-wrapper.problem-icon {
    font-size: 28px;   /* nếu là emoji */
    line-height: 1;
}
.value-icon-wrapper.problem-icon i {
    font-size: 28px;   /* nếu là font-awesome */
}

/* Hover effect nâng cấp */
.value-item.problem-item:hover {
    background-color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

