/*
Theme Name: BuildShow Theme
Author: Techmu.net
Description: Theme dành cho công ty truyền thông xây dựng
Version: 1.0
*/

/* ================= BIẾN MÀU (HỖ TRỢ DARK MODE TỰ ĐỘNG) ================= */
:root {
    --primary-purple: #8b5cf6;
    --primary-red: #dc2626;
    --primary-blue: #0284c7;
    --primary-green: #22c55e;
    
    /* Giao diện Sáng */
    --bg-main: #f9fafb;
    --bg-body: #f8fafc;
    --bg-section: #ffffff;
    --bg-card: #ffffff;
    --bg-element: #f1f5f9;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --overlay-intro: rgba(255, 255, 255, 0.85);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Dành cho Footer */
    --f-bg-main: #f3f4f6; --f-bg-box: #ffffff; --f-bg-bottom: #e5e7eb;
    --f-text-main: #374151; --f-text-muted: #6b7280; --f-heading: #111827;
    --f-border: #d1d5db; --f-input-bg: #f9fafb; --f-btn-yellow: #facc15;
    --f-btn-yellow-hover: #eab308;
}

/* Giao diện Tối */
body.dark-mode {
    --bg-main: #0f172a;
    --bg-body: #0f172a;
    --bg-section: #1e293b;
    --bg-card: #1e293b;
    --bg-element: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --overlay-intro: rgba(30, 41, 59, 0.9);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    /* Dành cho Footer */
    --f-bg-main: var(--bg-main, #0f172a); 
    --f-bg-box: var(--bg-card, #1e293b);
    --f-bg-bottom: rgba(0, 0, 0, 0.2); 
    --f-text-main: #d1d5db;
    --f-text-muted: #9ca3af;
    --f-heading: #ffffff;
    --f-border: #3f3f3f;
    --f-input-bg: #3f3f3f;
    --f-btn-yellow: #fde047;
    --f-btn-yellow-hover: #facc15;
}

/* Ép màu nền cho tất cả các Popup Modal khi bật Dark Mode */
body.dark-mode .modal-content, 
body.dark-mode #modalBody,
body.dark-mode #partnerModal > div {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .btn-close-modal {
    background-color: var(--bg-element) !important;
    color: var(--text-main) !important;
}

/* ================= CƠ BẢN ================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; position: relative; z-index: 2;}
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: -1px; text-align: center;}

/* Reveal Animations */
.reveal { opacity: 1; transform: none; }
@media (min-width: 993px) {
    .reveal:not(.active) { opacity: 0; transform: translateY(30px); }
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Switch Toggle Style */
.switch-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.8rem; font-weight: 700; }
.switch { position: relative; display: inline-block; width: 34px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #22c55e; }
input:checked + .slider:before { transform: translateX(14px); }

/* ================= HEADER & GIAO DIỆN CHUNG ================= */
.main-header {
    position: sticky; top: 0; left: 0; width: 100%;
    background-color: var(--bg-card, #ffffff);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    z-index: 1000; box-shadow: var(--shadow-sm); transition: background-color 0.3s, border-color 0.3s;
}
.header-container { 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 20px; max-width: 1400px; margin: 0 auto; height: 70px;
}

.brand-logo { display: flex; align-items: center; text-decoration: none; color: var(--text-main); flex-shrink: 0; }
.brand-vietnam { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; margin-right: 6px; color: var(--text-muted); }
.brand-name { display: flex; flex-direction: column; font-size: 1.6rem; font-weight: 900; line-height: 0.9; }

.header-content { flex-grow: 0; margin-left: auto; margin-right: 20px; transition: all 0.3s ease;}
.main-menu ul { list-style: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; }
.main-menu ul li { position: relative; }
.main-menu a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; white-space: nowrap;}
.main-menu a:hover, .main-menu a.active { color: var(--primary-green); }

/* Right controls */
.header-right-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: 20px; z-index: 1000;}
.header-theme-toggle {
    background: var(--bg-element); color: var(--text-main); border: 1px solid var(--border-color);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.header-theme-toggle:hover { color: var(--primary-green); border-color: var(--primary-green); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* ================= HỆ THỐNG TÌM KIẾM (ĐÃ FIX LỖI MÀN HÌNH TRẮNG) ================= */
.header-search-center {
    position: relative; display: flex; align-items: center;
    background: var(--bg-element); border: 1px solid var(--border-color);
    border-radius: 30px; padding: 5px 15px; flex-grow: 1; max-width: 250px; margin: 0 15px; transition: all 0.3s;
}
.header-search-center input { border: none; background: transparent; color: var(--text-main); outline: none; font-size: 0.9rem; width: 100%; }
.header-search-center button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; }

/* Hộp Kết Quả Tìm Kiếm Chung */
.ajax-results {
    position: absolute;
    top: 120%; /* Nằm dưới thanh search 1 chút */
    left: 0;
    width: 100%;
    min-width: 300px; /* Đảm bảo không bị quá hẹp trên PC */
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    display: none; /* QUAN TRỌNG: ẨN MẶC ĐỊNH ĐỂ FIX LỖI */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.ajax-results.active {
    display: block; /* Chỉ hiện khi có kết quả */
    opacity: 1;
    transform: translateY(0);
}
.ajax-results .search-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    font-size: 0.95rem;
}
.ajax-results .search-item:hover {
    background: var(--bg-element);
    color: var(--primary-green);
}
.ajax-results .search-item:last-child { border-bottom: none; }

/* ================= RESPONSIVE MOBILE CHO HEADER & SEARCH ================= */
@media (max-width: 992px) {
    .header-container { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; }
    .brand-logo { grid-column: 1; }
    
    .header-search-center { 
        grid-column: 2; margin: 0; max-width: none; width: 100%; 
    }
    
    .header-right-controls { grid-column: 3; margin-left: 0;}
    .mobile-menu-btn { display: block; }
    
    /* Menu Mobile Fix */
    .header-content { 
        position: fixed; top: 70px; left: -100%; width: 280px; height: calc(100vh - 70px); 
        background: var(--bg-card); flex-direction: column; align-items: flex-start; justify-content: flex-start; 
        padding: 30px 20px; border-right: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
        visibility: hidden; opacity: 0; pointer-events: none; /* Khóa không cho chiếm diện tích ẩn */
    }
    .header-content.active { 
        left: 0; visibility: visible; opacity: 1; pointer-events: auto;
    }
    .main-menu ul { flex-direction: column; width: 100%; gap: 20px; align-items: stretch !important;}
}

@media (max-width: 768px) {
    /* Khung search Box trên mobile */
    .ajax-search-box { cursor: text; display: flex; align-items: center; width: 100%; }
    .ajax-search-box input { flex-grow: 1; height: 100%; background: transparent; }

    /* Màn hình kết quả tìm kiếm Full Màn hình (đã được fix hiển thị) */
    .ajax-results {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
        /* Vẫn giữ display: none mặc định ở trên nên sẽ không lỗi trắng màn hình nữa */
    }
}

/* ================= 1. TRANG GIỚI THIỆU ================= */
.intro-section { position: relative; background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2000&auto=format&fit=crop'); background-size: cover; background-position: center; background-attachment: fixed; }
.intro-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay-intro); z-index: 1; backdrop-filter: blur(3px); transition: all 0.3s ease; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.intro-text h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.2;}
.intro-text h1 span { color: var(--primary-purple); }
.intro-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.cta-group { display: flex; gap: 15px; margin-top: 30px; }
.btn { padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s;}
.btn-primary { background: var(--primary-purple); color: white; border: 2px solid var(--primary-purple); }
.btn-primary:hover { background: transparent; color: var(--primary-purple); }
.btn-outline { background: transparent; color: var(--text-main); border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--text-main); }
.core-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-card { background: var(--bg-card); padding: 30px; border-radius: 16px; border-top: 4px solid var(--primary-purple); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: all 0.3s; cursor: default; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.value-card:hover { transform: translateY(-8px); box-shadow: 0 15px 20px -5px rgba(0,0,0,0.1); border-color: var(--primary-purple); }
.value-card i { font-size: 2rem; color: var(--primary-purple); margin-bottom: 15px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; text-transform: uppercase; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ================= 2. TẦM NHÌN - SỨ MỆNH ================= */
.vision-section { background-color: var(--bg-section); color: var(--text-main); padding: 100px 20px; margin-top: 80px; text-align: center; position: relative; overflow: hidden; border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); }
.tech-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.particle { position: absolute; background: rgba(252, 165, 165, 0.8); box-shadow: 0 0 12px 2px rgba(220, 38, 38, 0.6); border-radius: 50%; animation: floatNode ease-in-out infinite alternate; }
@keyframes floatNode { 0% { transform: translate(0, 0) scale(0.8); opacity: 0.2; } 100% { transform: translate(25px, -35px) scale(1.2); opacity: 0.9; } }
.vision-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.vision-content h5 { color: var(--primary-red); letter-spacing: 2px; margin-bottom: 10px; font-size: 1rem; font-weight: 600;}
.vision-content h2 { font-size: 2.8rem; margin-bottom: 40px; background: linear-gradient(to right, #fca5a5, var(--primary-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mission-list { text-align: left; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.mission-list li { font-size: 1.2rem; display: flex; align-items: flex-start; gap: 15px; background: var(--bg-main); padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.mission-list li i { color: var(--primary-red); font-size: 1.5rem; margin-top: 3px; }
body.dark-mode .mission-list li { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); box-shadow: none; }

/* ================= 3. ĐỘI NGŨ NHÂN SỰ ================= */
.team-section { background: var(--bg-main); padding-top: 80px;}
.team-section .section-title { color: var(--primary-red); }
.team-image-placeholder { width: 100%; height: 400px; background: url('https://buildshow.vn/wp-content/uploads/2026/10/Nhan-su-Buildshow.jpg') center/cover; border-radius: 16px; margin-bottom: 40px; position: relative; display: flex; align-items: flex-end; }
.team-image-overlay { background: linear-gradient(transparent, rgba(0,0,0,0.8)); width: 100%; padding: 30px; border-radius: 0 0 16px 16px; color: white; font-size: 1.5rem; font-weight: 700; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.team-box { border: 1px solid var(--primary-red); padding: 20px; border-radius: 12px; text-align: center; background: var(--bg-card); transition: transform 0.3s; }
.team-box:hover { transform: translateY(-5px); }
.team-box-header { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: var(--primary-red); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px dashed #fca5a5; }
.team-box-header i { font-size: 1.5rem; }
.team-box p { font-weight: 600; font-size: 1.1rem; }
.team-footer { border: 1px solid var(--border-color); padding: 25px; border-radius: 12px; background: var(--bg-section); }
.team-footer h3 { margin-bottom: 15px; font-weight: 600; color: var(--text-main); }
.team-footer h4 { color: var(--primary-red); margin-bottom: 10px; }
.team-footer ul { list-style-position: inside; color: var(--text-muted); }

/* ================= 4. NĂNG LỰC THIẾT BỊ ================= */
.equipment-section { background: rgba(2, 132, 199, 0.05); } 
body.dark-mode .equipment-section { background: var(--bg-main); }
.equipment-section .section-title { color: var(--primary-blue); }
.table-responsive { overflow-x: auto; background: var(--bg-card); border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-color);}
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 20px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
th { background-color: var(--primary-blue); color: white; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.eq-img { width: 45px; height: 45px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-color); display: block;}
tr:last-child { font-weight: 700; background-color: rgba(2, 132, 199, 0.1); }
tr:last-child td { color: var(--primary-blue); border-bottom: none; }
tbody tr:hover { background-color: rgba(125, 125, 125, 0.05); }

/* ================= 5. HỒ SƠ NĂNG LỰC ================= */
.profile-section { background-color: var(--bg-section); color: var(--text-main); padding: 80px 0; position: relative; text-align: center; }
.profile-content { max-width: 800px; margin: 0 auto; }
.profile-content h2 { font-size: 2rem; font-weight: 400; margin-bottom: 10px; color: var(--text-muted); }
.profile-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 40px; line-height: 1.2; color: var(--text-main); }
.contact-info { display: flex; flex-direction: column; gap: 15px; text-align: left; max-width: 650px; margin: 0 auto 50px; }
.contact-info p { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; color: var(--text-main); }
.contact-info i { color: var(--primary-blue); font-size: 1.2rem; width: 20px; text-align: center; }
.pdf-container { width: 100%; max-width: 900px; margin: 0 auto; height: 500px; border-radius: 16px; overflow: hidden; border: 1px dashed var(--border-color); background: var(--bg-main); display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.pdf-container i { font-size: 4rem; color: var(--text-muted); margin-bottom: 20px; }
.pdf-container h3 { margin-bottom: 15px; color: var(--text-main); }
.pdf-container p { color: var(--text-muted); font-size: 0.9rem; }
body.dark-mode .pdf-container { background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); box-shadow: none; }
body.dark-mode .profile-section { background-color: var(--bg-main); }

/* ================= CHUYÊN TRANG DỊCH VỤ ================= */
.services-wrapper { position: relative; background-image: url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?q=80&w=2000&auto=format&fit=crop'); background-size: cover; background-position: center; background-attachment: fixed; padding-bottom: 80px; }
.services-wrapper::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); transition: background 0.3s; z-index: 1; }
@media (min-width: 993px) { .services-wrapper::before { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); } }
.services-wrapper .container { position: relative; z-index: 2; }
body.dark-mode .services-wrapper::before { background: rgba(15, 23, 42, 0.9); }
.page-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; padding-top: 40px;}
.page-header h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; color: var(--primary-green); text-transform: uppercase; letter-spacing: 1px;}
.page-header p { font-size: 1.1rem; color: var(--text-muted); font-weight: 500;}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; position: relative; z-index: 2; }
.svc-card { border-radius: 16px; padding: 50px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 1px solid var(--border-color); aspect-ratio: 1 / 1; }
.svc-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.svc-icon { font-size: 3.5rem; margin-bottom: 20px; transition: transform 0.3s;}
.svc-card:hover .svc-icon { transform: scale(1.1); }
.svc-title { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; line-height: 1.4; letter-spacing: 0.5px;}

.svc-card.style-accent { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); border: 1px solid #cbd5e1; color: #1e293b; }
body.dark-mode .svc-card.style-accent { background: linear-gradient(135deg, #334155, #1e293b); border-color: #475569; color: #f8fafc; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.svc-card.style-white { background: var(--bg-card); color: var(--text-main); }
.click-note { display: inline-block; margin-top: 15px; padding: 8px 25px; background: rgba(34, 197, 94, 0.1); color: var(--primary-green); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: 30px; font-size: 0.95rem; font-weight: 600; animation: bounceNote 2s infinite; }
body.dark-mode .click-note { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
@keyframes bounceNote { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } 60% { transform: translateY(-3px); } }

/* ================= MODAL POPUP ================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 1100px; height: 90vh; border-radius: 20px; overflow-y: auto; position: relative; transform: scale(0.95) translateY(30px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.btn-close-modal { position: absolute; top: 20px; right: 20px; width: 45px; height: 45px; border-radius: 50%; border: none; background: var(--bg-element); color: var(--text-main); font-size: 1.5rem; cursor: pointer; z-index: 100; transition: 0.3s; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }
.btn-close-modal:hover { background: #ef4444; color: white; transform: rotate(90deg);}
.modal-body { padding: 60px; text-align: center;}
.modal-body.no-padding { padding: 0 !important; overflow-x: hidden; border-radius: 20px;}

/* ================= 5. STYLE FOOTER 4 CỘT ================= */
.main-footer { background-color: var(--f-bg-main); color: var(--f-text-main); font-family: 'Inter', sans-serif; border-top: 1px solid var(--f-border); position: relative; z-index: 2;}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 40px; }
.footer-heading { color: var(--f-heading); font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--f-border); padding-bottom: 10px; }
.footer-logo { display: flex; flex-direction: column; text-decoration: none; margin-bottom: 20px; display: inline-block; }
.f-vietnam { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 2px; color: var(--f-heading); line-height: 1; margin-left: 2px; }
.f-buildshow { font-size: 2.5rem; font-weight: 900; color: var(--f-heading); line-height: 1; letter-spacing: -1px; }
.footer-desc { font-size: 0.95rem; color: var(--f-text-muted); margin-bottom: 20px; line-height: 1.6; }
.footer-contact-list { list-style: none; padding: 0; margin-bottom: 25px; }
.footer-contact-list li { font-size: 0.9rem; margin-bottom: 10px; color: var(--f-text-muted); line-height: 1.5; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 35px; height: 35px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: 0.3s; }
.social-btn:hover { opacity: 0.8; }
.social-btn.yt { background-color: #dc2626; } .social-btn.mail { background-color: #4b5563; } .social-btn.rss { background-color: #f97316; }

.newsletter-box { background-color: var(--f-bg-box); border: 1px solid var(--f-border); padding: 20px; border-radius: 8px; }
.newsletter-box p { font-size: 0.9rem; color: var(--f-text-muted); margin-bottom: 20px; }
.newsletter-form input { width: 100%; padding: 12px 15px; background-color: var(--f-input-bg); border: 1px solid var(--f-border); color: var(--f-text-main); border-radius: 4px; margin-bottom: 15px; outline: none; }
.newsletter-form button { width: 100%; padding: 12px; background-color: var(--f-btn-yellow); color: #111827; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; transition: 0.3s; }

.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: var(--f-text-muted); text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.footer-menu a:hover { color: var(--f-heading); transform: translateX(5px); }
.footer-bottom { background-color: var(--f-bg-bottom); border-top: 1px solid var(--f-border); }
.bottom-flex { padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.copyright { font-size: 0.85rem; color: var(--f-text-muted); }
.bottom-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.bottom-menu a { color: var(--f-text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; }

/* ================= FLOATING CONTACT BUTTON ================= */
.floating-contact-wrapper { position: fixed; bottom: 30px; left: 30px; z-index: 999; display: flex; flex-direction: column; align-items: center; }
.floating-phone-list { position: absolute; bottom: 70px; left: 0; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.floating-phone-list.active { opacity: 1; visibility: visible; transform: translateY(0); }
.phone-item { background-color: #0284c7; color: white; text-decoration: none; padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 15px rgba(2, 132, 199, 0.3); white-space: nowrap; transition: background-color 0.3s; }
.phone-item:hover { background-color: #0369a1; color: white; }
.floating-contact-btn { width: 60px; height: 60px; background-color: #059669; color: white; border: none; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4); transition: transform 0.3s; position: relative; }
.floating-contact-btn i { font-size: 1.5rem; margin-bottom: 2px; }
.floating-contact-btn .btn-label { font-size: 0.65rem; font-weight: 600; }
.noti-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; background-color: #22c55e; border-radius: 50%; border: 2px solid #fff; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.back-to-top-btn { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background-color: #4b5563; color: white; border: none; border-radius: 4px; font-size: 1.2rem; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; }
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background-color: #374151; }

/* ================= MENU DROPDOWN (SUB-MENU) HOÀN THIỆN ================= */
.main-menu ul { align-items: center; }
.main-menu ul li { position: relative; list-style: none; }
.main-menu ul li.menu-item-has-children > a::after { display: none !important; }
.submenu-toggle { position: absolute; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-main); z-index: 20; transition: all 0.3s; }
.submenu-toggle:hover { color: #22c55e; }
.main-menu ul li.open > .submenu-toggle i { transform: rotate(180deg); }
.main-menu ul ul { list-style: none; margin: 0; padding: 0; }
.main-menu ul ul a { font-size: 0.9rem; font-weight: 500; }

@media (min-width: 993px) {
    .main-menu ul li.menu-item-has-children { padding-right: 20px; }
    .submenu-toggle { top: 0; right: -5px; height: 100%; width: 30px; }
    .main-menu ul li:hover > .submenu-toggle i { transform: rotate(180deg); }
    .main-menu ul ul { position: absolute; top: 100%; left: 0; width: 230px; background-color: var(--bg-card); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-color); border-radius: 8px; display: flex; flex-direction: column; padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 999; }
    .main-menu ul li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
    .main-menu ul ul a { padding: 10px 20px; display: block; white-space: nowrap; }
    .main-menu ul ul a:hover { background-color: var(--bg-main); color: #22c55e; }
}

@media (max-width: 992px) {
    .main-menu ul li { width: 100%; position: relative; }
    .main-menu a { display: block; padding: 12px 0; }
    .main-menu ul li.menu-item-has-children > a { padding-right: 65px; }
    .submenu-toggle { top: 0; right: 0; width: 60px; height: 48px; border-left: 1px dashed var(--border-color); display: flex; align-items: center; justify-content: center; }
    .main-menu ul ul { display: none; padding-left: 20px; border-left: 2px solid var(--border-color); margin-left: 10px; margin-bottom: 10px; }
    .main-menu ul li.open > ul { display: flex; flex-direction: column; }
}

/* ================= ĐIỀU CHỈNH RESPONSIVE TỔNG THỂ ================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .intro-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .pdf-container { height: 400px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
    .svc-card { aspect-ratio: auto; padding: 60px 20px; } 
    
    /* Ép Body luôn hiển thị tự nhiên, không bị khóa scroll */
    html, body { height: auto !important; overflow: visible !important; position: relative !important; }
}

@media (max-width: 768px) {
    .core-values { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .intro-text h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .vision-content h2 { font-size: 2rem; }
    .profile-content h1 { font-size: 2.2rem; }
    .container { padding: 50px 15px; }
    .vision-section, .profile-section { padding: 50px 15px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-flex { flex-direction: column; text-align: center; }
    .bottom-menu { justify-content: center; flex-wrap: wrap; }
    .back-to-top-btn { bottom: 15px; right: 15px; width: 40px; height: 40px; }
    .floating-contact-wrapper { bottom: 15px; left: 15px; }
    .floating-contact-btn { width: 50px; height: 50px; }
    .floating-contact-btn .btn-label { display: none; }
    .floating-contact-btn i { margin-bottom: 0; }
    .floating-phone-list { bottom: 60px; left: 0; }
    
    .service-grid { grid-template-columns: 1fr; }
    .modal-content { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
    .modal-body { padding: 30px 20px; margin-top: 40px;}
}

/* ========================================================
   FIX RESPONSIVE: MENU & CÁC TRANG BỊ TRÀN KHUNG (OVERFLOW)
   ======================================================== */

/* ------- 1. ĐIỀU CHỈNH MENU MOBILE (Khoảng cách gần hơn) ------- */
@media (max-width: 992px) {
    /* Giảm khoảng cách giữa các mục menu */
    .main-menu ul { gap: 5px !important; }
    
    /* Giữ padding 12px để ngón tay dễ bấm (chuẩn UI/UX), nhưng nhìn tổng thể sẽ sát nhau hơn do đã giảm gap */
    .main-menu a { padding: 10px 0 !important; }
    
    /* Thu gọn khoảng cách của menu con */
    .main-menu ul ul { margin-bottom: 5px !important; }
}


/* ------- 2. MÀN HÌNH TABLET (Dưới 992px) ------- */
@media (max-width: 992px) {
    /* Fix Trang Single Video: Chuyển từ 2 cột (2.8fr 1.2fr) về 1 cột */
    .v-content-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .v-details-wrapper { padding: 20px !important; }
    .v-top-bar { flex-direction: column; align-items: flex-start !important; gap: 15px; }
    .v-controls { flex-wrap: wrap; } /* Tránh các nút switch bị tràn */

    /* Fix Trang Dịch vụ: Ghi đè inline-style, ép từ 3 cột về 2 cột */
    .service-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

    /* Fix Trang Đối tác: Ghi đè inline-style, ép từ 4 cột về 3 cột */
    .partner-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
}


/* ------- 3. MÀN HÌNH ĐIỆN THOẠI (Dưới 768px) ------- */
@media (max-width: 768px) {
    
    /* Fix Trang Dịch Vụ (archive-service.php) */
    .service-grid { grid-template-columns: 1fr !important; } /* Ép về 1 cột */
    .page-header h1 { font-size: 2.2rem !important; } /* Thu nhỏ tiêu đề */
    
    /* Fix Modal Popup Dịch vụ tràn viền */
    #serviceModalContent { width: 100% !important; border-radius: 0 !important; height: 100vh !important; }
    #serviceModalContent .modal-body { padding: 20px 15px !important; }

    
    /* Fix Trang Đối Tác (archive-partner.php) */
    .partner-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important;} /* Ép về 2 cột cho gọn */
    .partner-card { padding: 15px 10px !important; }
    .partner-card h3 { font-size: 0.9rem !important; } /* Thu nhỏ chữ tên đối tác */
    
    /* Fix Modal Popup Đối Tác */
    #partnerModal > div { padding: 25px 15px 15px 15px !important; width: 95% !important; }
    
    /* Căn chỉnh lại nội dung bên trong Popup đối tác (chuyển hàng ngang thành dọc) */
    #modalBody > div[style*="display:flex"] { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 15px !important; 
        padding-bottom: 15px !important; 
    }
    #modalBody > div[style*="display:flex"] img { 
        margin: 0 auto; 
        width: 120px !important; 
        height: 120px !important; 
    }
    #modalBody h2 { font-size: 1.5rem !important; }
    
    /* Khắc phục lỗi tràn bảng giá ở trang Đối tác */
    .pricing-section { margin-top: 40px !important; }
    .pricing-section table { min-width: 600px; /* Ép bảng có thể vuốt ngang */ }
    
    /* Ngăn chặn tuyệt đối mọi thành phần vuợt quá chiều ngang màn hình */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
}