/* รีเซ็ตสไตล์ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* สไตล์ Navbar */
.navbar {
    width: 100%;
    background: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* โลโก้ */
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* ลิงก์เมนู */
.navbar-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.navbar-links li {
    position: relative;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s;
}

/* เอฟเฟกต์ Hover */
.navbar-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

/* เมนูย่อย (Dropdown) */
.submenu {
    display: none;
    position: absolute;
    background: #444;
    border-radius: 5px;
    top: 100%;
    left: 0;
    min-width: 150px;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px;
    color: white;
}

/* แสดง Dropdown เมื่อ Hover */
.dropdown:hover .submenu {
    display: block;
}

/* ปุ่มเมนู Hamburger */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 24px;
}

/* 📱 Responsive สำหรับมือถือ */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
        background: #333;
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links a {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }
}
