:root {
    /* --- 1. BẢNG MÀU CHUẨN --- */
    --primary: #3c4fa1;
    --primary-dark: #1a237e;
    --accent: #f59e0b;
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --border-light: #e2e8f0;

    /* --- 2. QUY CHUẨN TYPOGRAPHY (Roboto - Base 16px) --- */
    --font-main: 'Roboto', sans-serif;
    
    /* Hệ thống Size (dựa trên 16px) */
    --text-xs: 0.875rem;   /* 14px - Dùng cho ghi chú nhỏ */
    --text-base: 1rem;     /* 16px - Size chuẩn body */
    --text-lg: 1.125rem;   /* 18px - Dùng cho intro/button lớn */
    --text-xl: 1.25rem;    /* 20px - Dùng cho tiêu đề thẻ (H3) */
    --text-2xl: 2.25rem;   /* 36px - Dùng cho tiêu đề Section (H2) */
    --text-3xl: 3.5rem;    /* 56px - Dùng cho Hero Banner (H1) */

    /* --- 3. HIỆU ỨNG --- */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* RESET CƠ BẢN */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    font-size: 16px; /* QUY CHUẨN: 1rem = 16px */
    scroll-behavior: smooth;
}

body { 
    font-family: var(--font-main); 
    color: var(--text-dark); 
    background-color: var(--bg-body); 
    line-height: 1.6; 
    font-size: var(--text-base); /* Áp dụng size 16px toàn trang */
}

/* TYPOGRAPHY CHUNG */
h1, h2, h3, h4, .btn, .badge { 
    font-family: var(--font-main); 
    font-weight: 700; 
    text-transform: uppercase; 
}

h1 { font-size: var(--text-3xl); line-height: 1.2; letter-spacing: -1px; }
h2 { font-size: var(--text-2xl); color: var(--text-dark); margin-bottom: 40px; }
h3 { font-size: var(--text-xl); margin-bottom: 10px; }
p { margin-bottom: 15px; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-primary { color: var(--primary); }
.hidden { display: none !important; }

/* --- NAVBAR --- */
.navbar {
    background: var(--bg-white);
    height: 70px; width: 100%;
    position: fixed; top: 0; left: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
/* --- CẬP NHẬT LOGO ẢNH --- */
.logo a {
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px; /* Chiều cao cố định (Navbar cao 70px nên để 50px là đẹp) */
    width: auto;  /* Tự động chỉnh chiều rộng theo tỷ lệ ảnh */
    object-fit: contain; /* Đảm bảo ảnh không bị méo */
}
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: var(--text-base); transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn-nav { background: var(--primary); color: #fff !important; padding: 8px 20px; border-radius: 5px; font-weight: 700; }
.btn-nav:hover { background: var(--primary-dark); transform: translateY(-2px); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO BANNER (CĂN TRÁI + TEXT LỚN) --- */
#hero {
    margin-top: 70px;
    height: 540px; 
    min-height: 540px;
    /* Gradient che 45% bên trái */
    background: linear-gradient(to right, 
                    rgba(241, 245, 249, 0.98) 0%, 
                    rgba(241, 245, 249, 0.95) 45%, 
                    rgba(241, 245, 249, 0) 65%), 
                url('img/banner_landingpage.jpg') no-repeat center center/cover;
    display: flex; align-items: center; position: relative;
}

#hero .container { width: 100%; display: flex; justify-content: flex-start; }

/* --- CẬP NHẬT HERO CONTENT (DESKTOP) --- */
.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 750px; 
    padding-top: 20px;
    text-align: left; 
}

/* Điều chỉnh lại chữ H1 để đảm bảo ngắt dòng đẹp */
.hero-content h1 { 
    font-size: 3.5rem; /* Giữ nguyên hoặc giảm nhẹ xuống 3.2rem nếu màn hình laptop nhỏ */
    line-height: 1.2; 
    margin: 20px 0; 
    letter-spacing: -1px;
    
    /* Thêm thuộc tính này để tránh chữ bị ngắt giữa từ (nếu có) */
    word-wrap: break-word;
}
.hero-content h1 span { color: var(--primary); }
.hero-content p { 
    font-size: 1.125rem; /* 18px - Lớn hơn body thường chút để dễ đọc */
    color: var(--text-gray); 
    margin-bottom: 35px; 
    font-weight: 400;
}

.badge { 
    background: var(--accent); color: white; padding: 6px 15px; border-radius: 4px; 
    font-size: 0.875rem; display: inline-block; font-weight: 700; letter-spacing: 0.5px;
}

/* --- RESPONSIVE HERO (MOBILE - CẬP NHẬT MỚI) --- */
@media (max-width: 768px) {
    #hero {
        /* Tăng chiều cao để hiển thị hết ảnh dọc mobile */
        height: 90vh; 
        max-height: 800px;
        
        /* QUAN TRỌNG: Chỉ để ảnh nền gốc, XÓA gradient phủ toàn bộ để lộ tòa nhà */
        background: url('img/banner_mobile.jpg') no-repeat center top/cover;
        
        /* Đẩy nội dung xuống đáy (vùng khoanh đỏ) */
        align-items: flex-end; 
        
        /* Căn chỉnh khoảng cách */
        padding-top: 0;
        padding-bottom: 30px; /* Cách mép dưới màn hình 30px */
    }

    #hero .container {
        justify-content: center;
        padding: 0 15px; /* Padding 2 bên lề */
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        
        /* CẬP NHẬT Ở ĐÂY: */
        /* Giảm độ đục từ 0.85 xuống 0.65 (hoặc 0.6 tùy bạn thích trong hơn nữa không) */
        background: rgba(255, 255, 255, 0.65); 
        
        /* Hiệu ứng làm mờ hậu cảnh (giữ nguyên để tạo cảm giác kính mờ) */
        backdrop-filter: blur(1px); 
        -webkit-backdrop-filter: blur(1px); 
        
        padding: 25px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        /* Viền cũng cho trong suốt hơn */
        border: 1px solid rgba(255,255,255,0.3); 
    }

    /* Chỉnh lại font chữ mobile cho cân đối trong khối này */
    .hero-content h1 {
        font-size: 1.8rem; /* Giảm size chữ tiêu đề một chút cho gọn */
        margin: 15px 0;
        color: var(--primary); /* Dùng màu xanh thương hiệu cho nổi bật trên nền trắng */
    }
    
    .hero-content p {
        font-size: 1rem;
        color: var(--text-dark);
        margin-bottom: 20px;
    }
    
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

/* --- BUTTONS --- */
.btn { 
    display: inline-block; padding: 14px 28px; border-radius: 6px; 
    text-decoration: none; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; 
    font-size: var(--text-base); font-weight: 700;
}
.btn-primary {
    background-color: var(--primary); /* Màu xanh thương hiệu #2e3792 */
    color: #ffffff !important; /* QUAN TRỌNG: Ép chữ màu trắng */
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: #1a237e; /* Màu đậm hơn khi di chuột */
    color: #ffffff !important; /* Vẫn giữ chữ trắng khi hover */
    box-shadow: 0 4px 15px rgba(46, 55, 146, 0.4); /* Thêm chút bóng đổ cho nút nổi lên */
}
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; text-align: center; font-size: 1.125rem; margin-top: 20px; }

/* --- SECTIONS --- */
section { padding: 80px 0; }
.section-title { text-align: center; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 15px auto 0; }

/* PAIN POINT CARDS */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
/* --- PAIN POINT SECTION (STYLE MỚI - CARD ẢNH) --- */
.card-pain {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    overflow: hidden; /* Để bo góc ảnh và cắt phần ảnh phóng to */
    height: 100%; /* Giúp các thẻ cao bằng nhau */
    display: flex;
    flex-direction: column;
}

/* Hiệu ứng nhấc thẻ lên khi hover */
.card-pain:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* Khu vực chứa ảnh */
.pain-img {
    width: 100%;
    height: 220px; /* Chiều cao cố định cho ảnh */
    overflow: hidden; /* Cắt phần ảnh thừa */
    position: relative;
}

.pain-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh luôn lấp đầy khung mà không bị méo */
    transition: transform 0.5s ease; /* Hiệu ứng mượt mà */
}

/* Zoom ảnh khi hover vào thẻ cha */
.card-pain:hover .pain-img img {
    transform: scale(1.1);
}

/* Khu vực nội dung chữ */
.pain-content {
    padding: 30px 25px; /* Padding rộng rãi */
    flex-grow: 1; /* Đẩy nội dung lấp đầy khoảng trống còn lại */
    text-align: center;
}

.pain-content h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

/* Gạch chân nhỏ dưới tiêu đề thẻ */
.pain-content h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.pain-content p {
    color: var(--text-gray);
    font-size: var(--text-base);
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- CONFIGURATOR TOOL --- */
#setup-tool { background: #fff; }
.configurator-wrapper { background: var(--bg-body); border-radius: 16px; padding: 40px; border: 1px solid var(--border-light); }
.sub-title { text-align: center; color: var(--text-gray); margin-bottom: 40px; margin-top: -30px; font-size: var(--text-base); }

/* SELECT BOX */
.step-1 label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--primary); font-size: 1.125rem; }
.select-wrapper { position: relative; }
/* --- CẬP NHẬT CSS CHO SELECT BOX --- */
select { 
    width: 100%; 
    padding: 15px; 
    border-radius: 8px; 
    border: 2px solid var(--border-light); 
    font-size: var(--text-base); 
    font-family: var(--font-main); 
    font-weight: 500; 
    color: var(--text-dark); 
    background: #fff; 
    cursor: pointer; 
    
    /* THÊM 3 DÒNG NÀY ĐỂ ẨN MŨI TÊN MẶC ĐỊNH CỦA TRÌNH DUYỆT */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
select:focus { outline: none; border-color: var(--primary); }
.select-wrapper i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; font-size: 1.25rem; }

/* EQUIPMENT GRID */
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 25px 0; max-height: 500px; overflow-y: auto; padding: 5px; }

.empty-state { 
    grid-column: 1 / -1; color: var(--text-gray); padding: 30px; 
    background: var(--bg-body); border-radius: 10px; border: 2px dashed var(--border-light); 
    display: flex; align-items: center; justify-content: center; gap: 15px; 
}
.empty-state i { font-size: 2rem; color: var(--primary); opacity: 0.7; }
.empty-state p { margin: 0; font-weight: 600; font-size: 1.125rem; }

/* ITEM CARD */
.equip-item { 
    background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border-light); 
    cursor: pointer; transition: 0.2s; display: flex; justify-content: space-between; align-items: center; 
}
.equip-item:hover { border-color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.equip-item.active { background: var(--primary); color: white; border-color: var(--primary); }

.equip-item h4 { font-size: var(--text-base); margin-bottom: 4px; font-weight: 700; }
.equip-item p { font-size: var(--text-xs); color: var(--text-gray); } /* Text nhỏ 14px */
.equip-item.active p { color: rgba(255,255,255,0.8); }

/* ICON ACTIONS */
.add-icon { 
    width: 28px; height: 28px; background: var(--bg-body); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1rem; color: var(--text-gray); transition: all 0.2s ease; 
}
.equip-item.active .add-icon { background: var(--accent); color: white; }
.equip-item.active .add-icon::before { content: '\EB7A'; font-family: 'remixicon'; font-weight: normal; }
.equip-item:not(.active) .add-icon::before { content: '\EB30'; font-family: 'remixicon'; font-weight: normal; }
.list-actions { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- FORM --- */
.consultation-form { margin-top: 40px; border-top: 2px dashed var(--border-light); padding-top: 40px; }
.consultation-form h3 { text-align: center; margin-bottom: 30px; color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

input, textarea { 
    width: 100%; padding: 15px; border: 1px solid var(--border-light); border-radius: 6px; 
    font-size: var(--text-base); font-family: var(--font-main); transition: 0.3s; 
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 55, 146, 0.1); }
.form-group { margin-bottom: 20px; }
textarea { height: 120px; resize: none; }
.checkbox-group { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: var(--text-base); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* --- REAL PROJECTS SECTION --- */
#projects {
    background-color: #fff; /* Nền trắng để tách biệt với phần trên */
}

/* Video Box */
.video-box {
    background: var(--bg-body);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 chuẩn Youtube */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-container iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}
.video-caption { margin-top: 20px; text-align: left; }
.video-caption h3 { font-size: 1.25rem; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.video-caption p { font-size: var(--text-base); color: var(--text-gray); margin-top: 5px; }

/* Image Grid */
/* Cập nhật trong file style.css */

/* Đảm bảo container cha (project-wrapper) sử dụng grid và các phần tử con có chiều cao bằng nhau */
.project-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Tỷ lệ cột như cũ */
    gap: 40px;
    align-items: stretch; /* QUAN TRỌNG: Kéo giãn các cột để bằng chiều cao */
}

/* Cập nhật cho lưới ảnh bên phải */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cột ảnh */
    /* QUAN TRỌNG: Tạo 2 hàng có chiều cao bằng nhau và lấp đầy container cha */
    grid-template-rows: 1fr 1fr; 
    gap: 15px;
    height: 100%; /* Chiếm toàn bộ chiều cao của cột chứa nó */
}

/* Cập nhật cho từng item ảnh */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    /* Xóa bỏ aspect-ratio cũ nếu có, vì giờ chiều cao sẽ do grid quản lý */
    /* aspect-ratio: 4/3;  <-- XÓA DÒNG NÀY */
    height: 100%; /* Chiếm toàn bộ chiều cao của ô grid */
}

/* Đảm bảo ảnh lấp đầy khung hình mà không bị méo */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ảnh sẽ được cắt (crop) để lấp đầy khung, giữ nguyên tỷ lệ 16:9 */
    transition: transform 0.5s ease;
}

/* Hiệu ứng Hover vào ảnh */
.gallery-item:hover img {
    transform: scale(1.1); /* Phóng to ảnh nhẹ */
}

/* Lớp phủ tên dự án */
.overlay-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px 10px 10px 10px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0; /* Ẩn mặc định */
    transition: 0.3s;
    transform: translateY(10px);
}
.gallery-item:hover .overlay-info {
    opacity: 1; /* Hiện khi hover */
    transform: translateY(0);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .project-wrapper {
        grid-template-columns: 1fr; /* Về 1 cột */
        gap: 30px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr; /* Mobile vẫn giữ 2 cột ảnh nhỏ cho đẹp */
    }
    .overlay-info {
        opacity: 1; /* Trên mobile luôn hiện tên dự án */
        transform: translateY(0);
        padding: 10px 5px; font-size: 0.75rem;
    }
}

/* --- CSS CHO LAZY LOAD VIDEO --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer; /* Biến con trỏ thành hình bàn tay */
    background: #000; /* Nền đen đề phòng ảnh thumb chưa load kịp */
}

/* Ảnh thumb phủ kín container */
.video-thumb {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Làm tối ảnh một chút để nổi bật nút play */
    transition: opacity 0.3s;
}

/* Nút Play ở giữa */
.play-button {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%); /* Căn giữa tuyệt đối */
    width: 70px; height: 70px;
    background: rgba(255, 0, 0, 0.8); /* Màu đỏ Youtube bán trong suốt */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 36px;
    margin-left: 4px; /* Chỉnh nhẹ icon play cho cân */
}

/* Hiệu ứng khi di chuột vào */
.video-container:hover .play-button {
    background: red; /* Màu đỏ tươi */
    transform: translate(-50%, -50%) scale(1.1); /* Phóng to nhẹ */
}
.video-container:hover .video-thumb {
    opacity: 1; /* Ảnh sáng lên */
}

/* CSS cho iframe khi đã load (để nó đè lên ảnh thumb) */
.video-container iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5; /* Đảm bảo iframe nằm trên cùng */
}

/* --- SECTION WHY US (Năng lực) --- */
#why-us {
    background-color: var(--bg-body);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cột đều nhau */
    gap: 30px;
}

.why-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: 0.3s;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.icon-box {
    width: 70px; height: 70px;
    background: rgba(60, 79, 161, 0.1); /* Màu primary nhạt */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 2rem;
}

.why-item h3 { font-size: 1.125rem; margin-bottom: 10px; }
.why-item p { font-size: 0.95rem; color: var(--text-gray); }

/* --- SECTION PROCESS (Quy trình) --- */
.process-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px; height: 50px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid #eef2ff; /* Viền nhạt bao quanh */
}

.step-content h3 { font-size: 1.125rem; margin-bottom: 10px; color: var(--text-dark); }
.step-content p { font-size: 0.9rem; color: var(--text-gray); }

/* Mũi tên nối giữa các bước */
.step-arrow {
    flex: 0 0 30px; /* Chiều rộng cố định */
    display: flex; align-items: center; justify-content: center;
    height: 50px; /* Ngang hàng với step-number */
    color: var(--border-light);
    font-size: 1.5rem;
}

/* RESPONSIVE CHO 2 SECTION MỚI */
@media (max-width: 992px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); } /* Tablet: 2 cột */
}

@media (max-width: 768px) {
    /* Mobile Why Us */
    .why-grid { grid-template-columns: 1fr; } /* Mobile: 1 cột */
    
    /* Mobile Process */
    .process-wrapper {
        flex-direction: column; /* Xếp dọc */
        gap: 30px;
    }
    .step-arrow {
        transform: rotate(90deg); /* Xoay mũi tên xuống dưới */
        margin: -15px auto; /* Kéo lại gần */
    }
    .process-step { padding: 0; }
}

/* --- SECTION FAQ --- */
.faq-wrapper {
    max-width: 800px; /* Giới hạn chiều rộng để dễ đọc */
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.05rem; /* ~17px */
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-main);
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary);
    background-color: #f8fafc;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

/* Class active khi đang mở */
.faq-question.active .faq-icon {
    transform: rotate(45deg); /* Xoay dấu + thành dấu x */
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- TỔNG TIỀN DỰ TOÁN --- */
#listActions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Để xuống dòng trên mobile */
    gap: 15px;
}

.total-estimate {
    background: #fff;
    padding: 8px 15px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-estimate strong {
    color: #d32f2f; /* Màu đỏ cho tiền */
    font-size: 1.25rem;
    font-weight: 800;
}

/* Hiển thị giá tiền nhỏ trên từng thẻ sản phẩm */
.item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .total-estimate {
        width: 100%;
        justify-content: space-between;
        order: -1; /* Đưa tổng tiền lên trên các nút bấm */
    }
}

/* --- FOOTER (PHIÊN BẢN COMPACT - GỌN GÀNG) --- */
footer {
    background-color: #0f0f0f; /* Màu đen sâu */
    color: #ccc;
    padding-top: 50px; /* Giảm padding trên một chút */
    font-size: 0.9rem; /* Giảm size chữ xuống 0.9rem cho tinh tế */
    text-align: left;
}

.footer-grid {
    display: grid;
    /* Tỷ lệ cột: 1.1 phần - 1.3 phần - 0.6 phần (Để cột giữa rộng vừa đủ) */
    grid-template-columns: 1.1fr 1.3fr 0.6fr; 
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h3 {
    font-size: 1rem; /* Tiêu đề nhỏ lại một chút */
    color: #fff;
    margin-bottom: 15px; /* Kéo tiêu đề sát nội dung hơn */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- CỘT 1: LOGO & INFO --- */
.footer-logo img {
    height: 50px; 
    margin-bottom: 15px;
    object-fit: contain;
}

.company-desc {
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.85rem; /* Chữ mô tả nhỏ hơn */
}

.contact-info p {
    margin-bottom: 8px; /* Giảm khoảng cách dòng liên hệ */
    display: flex; align-items: center; gap: 8px;
    color: #fff;
}

.contact-info i { color: var(--primary); font-size: 1rem; }

.social-links { 
    display: flex; gap: 10px; margin-top: 15px; 
}
.social-links a {
    width: 32px; height: 32px; /* Icon nhỏ lại chút */
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}
.social-links a:hover { background: var(--primary); }

/* --- CỘT 2: ĐỊA CHỈ (ĐÃ ÉP DÒNG SÁT LẠI) --- */
.address-list { list-style: none; padding: 0; margin: 0; }

.address-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    /* QUAN TRỌNG: Giảm margin-bottom từ 18px xuống 12px */
    margin-bottom: 12px; 
    line-height: 1.4; /* Giảm độ cao dòng */
}

/* Kéo icon lên cao một chút để cân với dòng text đầu tiên */
.address-list li i {
    color: var(--primary);
    font-size: 1.1rem; 
    margin-top: 2px; 
    flex-shrink: 0;
}

.address-list li div {
    /* Container chứa text */
}

.address-list li strong { 
    color: #fff; 
    display: block; 
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px; /* Tên chi nhánh và địa chỉ dính gần nhau hơn */
}

/* --- CẬP NHẬT LẠI CỘT 3 (XÓA DẤU CHẤM) --- */
.footer-links {
    list-style: none !important; /* Lệnh quan trọng để xóa dấu chấm */
    padding: 0;
    margin: 0;
}

.footer-links li { 
    list-style-type: none; /* Khai báo thêm ở đây cho chắc chắn */
    margin-bottom: 8px; 
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    display: flex; align-items: center; gap: 6px;
    font-size: 0.9rem;
}

.footer-links a:hover { 
    color: var(--primary); 
    padding-left: 3px; 
}

/* --- COPYRIGHT --- */
.copyright {
    text-align: center;
    padding: 15px 0;
    color: #555;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}