/* ตั้งค่าพื้นฐาน */
body {
    margin: 0;
    font-family: 'Prompt', sans-serif;
    background-color: #f9f9f9;
}

.contact {
    background-color: #2f2f2f;
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact li {
    margin-right: 10px;
}

.social-icons a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: color 0.3s;
}

.social-icons .line:hover {
    color: #25d366;
}

.social-icons .whatsapp:hover {
    color: #25d366;
}

.social-icons .tel:hover {
    color: #25d366;
}
.social-icons .wechat:hover {
    color: #25d366;
}
.social-icons a:hover {
    color: #25d366;
}

/* Navbar Styles */
.navbar {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
    z-index: 1000;
    top: 0;
}

.logo img {
    max-height: 50px; /* กำหนดความสูงสูงสุดของโลโก้ */
    height: auto; /* ให้ปรับความสูงแบบอัตโนมัติ */
    width: auto; /* ให้ขนาดกว้างสัมพันธ์กับสูง */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0; 
    transition: transform 0.3s ease;
    background-color: white;
}

.nav-links.active {
    transform: translateY(0); /* แสดงเมนู */
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff0000;
}

/* Hamburger Menu */
.menu-toggle {
    display: none; /* เริ่มต้นจะไม่แสดงบนหน้าจอใหญ่ */
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    position: absolute; /* เพื่อให้สามารถจัดตำแหน่งอิสระ */
    right: 20px; /* ปรับตำแหน่งชิดขวา (ปรับตัวเลขตามต้องการ) */
    
    
    
}

#menu-icon {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        float: right;
    }

    .nav-links {
        flex-direction: column;
        display: none;
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
        transform: translateY(-180%); /* ซ่อนเมนูโดยเลื่อนขึ้น */
        transition: transform 0.3s ease;
        position: absolute;
        top: 97px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        
    }
}
