
* { 
    box-sizing: border-box; /* Bắt buộc phải có dòng này */
}

:root {
    --primary-color: #2d3138;
    --font-main: 'Inter', sans-serif;
    --header-height: 70px; /* Giới hạn chiều cao header */
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: #f5f5f5;
    overflow-x: hidden; /* Chặn tuyệt đối thanh cuộn ngang dư thừa */
    width: 100%;
}

/* Xóa style mặc định */
ul { list-style: none !important; margin: 0; padding: 0; }
a { text-decoration: none !important; color: inherit; }
button { border: none; background: none; cursor: pointer; }

header, .site-header {
    top: 0; 
    z-index: 9999; 
    background-color: #ffffff; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* --- 2. HEADER CONTAINER (Đã thu gọn) --- */
.site-header {
    background: #fff;
    width: 100%;
    padding: 10px 20px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: relative; 
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- 3. LOGO (Thu nhỏ) --- */
.site-logo img, .custom-logo {
    height: 60px; /* Giảm từ 40px xuống 36px */
    width: auto;
    object-fit: contain;
    display: block;
}

/* --- 4. DESKTOP MENU --- */
.desktop-navigation .menu-list {
    display: flex;
    gap: 30px; /* Giảm khoảng cách các chữ */
    align-items: center;
}

.desktop-navigation .menu-list li a {
    font-weight: 500; /* Giảm độ đậm cho thanh thoát */
    color: #333;
    font-size: 15px; /* Giảm size chữ xuống 1 xíu */
    transition: color 0.2s;
}

.desktop-navigation .menu-list li a:hover { color: #000; }

/* --- 5. BUTTON "CONTACT US" (Thu nhỏ) --- */
.btn-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 16px 5px 10px; 
    border-radius: 10px;
    height: 48px; /* Giảm chiều cao nút từ 48px xuống 40px */
    transition: transform 0.2s;
}

.btn-contact:hover { transform: translateY(-1px); }

.icon-box {
    background: #fff;
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text { font-weight: 600; font-size: 14px; }

/* --- 6. MOBILE RESPONSIVE --- */
.mobile-toggle { display: none; }



@media (max-width: 1024px) {
    .desktop-navigation { display: none; }
    .mobile-toggle { display: block; }
    
    /* Header dạng Pill trên Mobile */
    .site-header {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%; 
        max-width: 400px; /* Giới hạn chiều rộng tối đa trên mobile */
        height: auto;
        background: #fff;
        border-radius: 50px;
        padding: 8px 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        z-index: 1000;
    }

    .header-container { padding: 0; }
    .site-logo { flex-grow: 1; display: flex; justify-content:first baseline; }

    /* Nút contact trên mobile */
    .btn-contact {
        height: 40px;
        padding: 10px 18px 10px 10px;
        border-radius: 50px;
    }
    .icon-box { width: 26px; height: 26px; border-radius: 50%; }
    .btn-text { font-size: 13px; }
}

/* --- 7. MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
}

.overlay-content {
    background: #fff;
    width: 280px;
    height: 100%;
    padding: 25px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-overlay.active .overlay-content { transform: translateX(0); }

.overlay-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 30px;
}

.mobile-list li { margin-bottom: 20px; }
.mobile-list li a { font-size: 16px; font-weight: 500; color: #222; }
/* --- MOBILE MENU OVERLAY STYLES --- */

/* 1. Khung nền trắng toàn màn hình */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full chiều cao màn hình */
    background: #fff;
    z-index: 999999; /* Đảm bảo nằm đè lên mọi thứ */
    padding: 20px 30px; /* Căn lề giống mẫu */
    
    /* Mặc định ẩn sang trái */
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

/* Class kích hoạt khi mở menu */
.mobile-menu-overlay.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* 2. Phần Header (Nút X và Logo) */
.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 20px; /* Khoảng cách giữa nút X và Logo */
    margin-bottom: 50px; /* Cách phần menu bên dưới */
}

.btn-close-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-logo img {
    width: auto;
    display: block;
        height: 100px;
}

/* 3. Danh sách Menu Links */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Khoảng cách giữa các dòng */
}

.mobile-nav-list li a {
    font-size: 22px; /* Chữ to giống thiết kế */
    font-weight: 700; /* In đậm */
    color: #334155; /* Màu xám đậm */
    text-decoration: none;
    font-family: 'Inter', sans-serif; /* Đảm bảo đúng font */
    transition: color 0.2s;
}

.mobile-nav-list li a:hover {
    color: #000; /* Hover chuyển màu đen */
}