/* ===================================================================== */
/* CSS HEADER & NAVIGATION (MEDITECH THIẾT BỊ Y TẾ)                      */
/* ===================================================================== */

/* --- CÀI ĐẶT CHUNG TOÀN HỆ THỐNG --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: Arial, sans-serif; 
}
body { 
    background-color: #f9f9f9; 
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* --- TOP BAR (Thanh xanh đậm trên cùng) --- */
.top-bar { 
    background: #1a633a; 
    color: white; 
    font-size: 12px; 
    padding: 5px 0; 
}
.top-bar .container { 
    display: flex; 
    justify-content: space-between; 
}

/* --- MAIN HEADER --- */
 .header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 15px; /* Giữ khoảng thở chuẩn PC */
    background: white; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- LOGO VÀ CHỮ --- */
.logo .logo-wrapper { 
    display: flex; 
    align-items: center; /* Căn giữa ảnh và chữ */
    text-decoration: none;
    gap: 12px;           
    transition: transform 0.2s ease;
}

.logo .logo-wrapper:hover {
    transform: scale(1.02); 
}

.logo .logo-image {
    max-height: 42px;    
    width: auto;
    object-fit: contain;
}

/* ĐÃ CHỈNH: Chữ to lên 32px và giữ nét thanh thoát */
.logo .logo-text { 
    color: #1a633a; 
    font-size: 32px;     /* Tăng kích thước chữ to hơn */
    font-weight: 700;    
    letter-spacing: 1.5px; 
    font-family: 'Segoe UI', Arial, sans-serif; 
}

/* Menu điều hướng */
.main-menu ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}
.main-menu a { 
    text-decoration: none; 
    color: #333; 
    font-weight: bold; 
    font-size: 15px; 
    transition: color 0.2s;
}
.main-menu a.active, .main-menu a:hover { 
    color: #2e8b57; 
}

/* --- NÚT GỌI TƯ VẤN --- */
/* ĐÃ CHỈNH: Trả lại chính xác 100% màu cam gốc #ff9800 của bạn */
.btn-zalo-header {
    display: inline-block;
    background-color: #ff9800; /* Trả lại màu cam gốc */
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 30px; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}
.btn-zalo-header:hover {
    background-color: #e68a00; /* Trả lại màu hover gốc */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}
.btn-zalo-header i {
    margin-right: 5px; 
}

/* --- THANH TÌM KIẾM --- */
.search-area { 
    background: #1a633a; 
    padding: 10px 0; 
}
.search-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.slogan { 
    color: white; 
    font-weight: bold; 
    font-size: 14px; 
    text-transform: uppercase; 
}
.search-box { 
    display: flex; 
}
.search-box input { 
    padding: 10px 15px; 
    border: none; 
    outline: none; 
    border-radius: 4px 0 0 4px; 
    width: 400px; 
    max-width: 100%; 
}
.search-box button { 
    padding: 10px 20px; 
    border: none; 
    background: #6c9c3e; 
    color: white; 
    cursor: pointer; 
    border-radius: 0 4px 4px 0; 
    transition: background 0.2s;
}
.search-box button:hover { 
    background: #5a8533; 
}
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #1a633a;
    cursor: pointer;
}


/* ===================================================================== */
/* GOM NHÓM RESPONSIVE HEADER DÀNH RIÊNG CHO ĐIỆN THOẠI                  */
/* ===================================================================== */
@media (max-width: 900px) { 
    /* --- 1. TOP BAR ÉP MỎNG --- */
    .top-bar .container {
        flex-direction: column; 
        gap: 2px;
        text-align: center;
        padding: 5px 0;
    }
    .top-bar span.contact-info,
    .top-bar .user-login {
        font-size: 11px;
        line-height: 1.2;
    }

    /* --- 2. HEADER CHÍNH --- */
    .header {
        flex-wrap: wrap; 
        padding: 15px 20px !important; /* Khoảng thở thụt 2 bên 20px */
    }
    
    .logo .logo-text {
        font-size: 24px; 
    }

    .contact-header {
        display: none !important; 
    }

    /* Đẩy Logo và Nút bấm lên tầng cao nhất để không bị menu màng trắng che mất */
    .logo, .mobile-menu-btn {
        position: relative;
        z-index: 10000;
    }

    .mobile-menu-btn {
        display: block; 
    }

    /* --- 3. MENU PHỦ TOÀN MÀN HÌNH (FULLSCREEN OVERLAY) NHƯ FUJIFILM --- */
    .main-menu {
        display: none; 
        position: fixed; 
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98); /* Màng trắng hơi trong suốt sang trọng */
        z-index: 9999; 
        margin-top: 0;
    }

    .main-menu.active {
        display: flex !important;
        flex-direction: column;
        justify-content: center; /* Đẩy chữ ra giữa màn hình dọc */
        align-items: center;     /* Đẩy chữ ra giữa màn hình ngang */
        animation: fadeIn 0.3s ease-out forwards; /* Hiệu ứng mờ dần ra */
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .main-menu ul {
        flex-direction: column;
        padding: 0;
        width: 100%;
        text-align: center;
    }
    
    .main-menu ul li {
        margin: 15px 0; /* Khoảng cách giữa các mục rộng ra */
        border-bottom: none; /* Bỏ đường kẻ ngang */
    }
    
    .main-menu ul li a {
        display: inline-block;
        padding: 10px 20px;
        font-size: 24px; 
        font-weight: 500; 
        font-family: 'Roboto', Arial, sans-serif !important;
        color: #222222 !important; /* MẶC ĐỊNH MÀU ĐEN TUYỆT ĐỐI */
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s ease; /* Bỏ hiệu ứng phóng to, chỉ giữ lại hiệu ứng đổi màu mềm mại */
        text-decoration: none;
    }

    /* CHỈ ĐỔI MÀU XANH KHI RÊ CHUỘT (HOVER) */
    .main-menu ul li a:hover {
        color: #1a633a !important; 
    }

    /* --- 4. KHU VỰC TÌM KIẾM --- */
    .search-area {
        padding: 20px 0;
    }
    
    .search-container {
        flex-direction: column; 
        gap: 15px; 
        text-align: center;
    }

    .search-area .slogan {
        font-size: 15px; 
        line-height: 1.4;
    }

    .search-box {
        width: 100%; 
        justify-content: center;
    }
    
    .search-box input {
        width: calc(100% - 60px); 
        font-size: 14px; 
    }
}