/* --- Cấu hình chung --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Navbar Container --- */
.navbar  {
    background: #ffffff; 
    /* Nền trắng sạch sẽ */
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    position: sticky;
    /* Dính trên cùng khi cuộn */
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    /* Giới hạn chiều rộng để nhìn gọn hơn */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Logo --- */
.nav-logo {
    color: #67b8e3;
    /* Màu xanh chủ đạo của bạn */
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

/* --- Menu Links (Desktop) --- */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.nav-links {
    color: #333;
    text-decoration: none;
    padding: 0 1.5rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-links:hover {
    color: #67b8e3;
}

/* Class active để highlight trang đang xem */
.nav-links.highlight {
    color: #67b8e3;
    border-bottom: 2px solid #67b8e3;
    padding-bottom: 5px;
}

/* Nút Đăng nhập nổi bật (Ví dụ) */
.nav-btn {
    padding: 10px 20px;
    background-color: #67b8e3;
    color: #fff;
    border-radius: 4px;
}

.nav-btn:hover {
    background-color: #4fa0c9;
    color: #fff;
}

/* --- Mobile Menu (Nút 3 gạch) --- */
.menu-toggle {
    display: none;
    /* Ẩn trên Desktop */
}

/* --- RESPONSIVE: Giao diện điện thoại & Tablet --- */
@media screen and (max-width: 1250px) {
    .navbar {
        position: relative;
        /* Để menu con đè lên nội dung */
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        /* Bằng chiều cao navbar */
        left: -100%;
        /* Giấu menu sang bên trái màn hình */
        opacity: 0;
        transition: all 0.5s ease;
        background-color: #ffffff;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
        /* Trượt ra giữa màn hình */
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 998;
    }

    .nav-links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    .nav-links:hover {
        background-color: #f0f8ff;
        color: #67b8e3;
    }

    /* Hiển thị nút 3 gạch */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: #333;
    }

    /* Hiệu ứng biến 3 gạch thành dấu X khi click */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}