.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo */
.logo a {
    color: #ff6200; /* สีส้ม */
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #e65500;
}

/* Nav Menu */
.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin: 0 10px;
    position: relative;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ff6200; /* สีส้ม */
}

/* Hover Effect */
.nav-links a::after {
    content: '';
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Dropdown */
.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    top: 100%;
    left: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: slideIn 0.3s ease;
}

.dropdown-content li {
    margin: 5px 0;
}

.dropdown-content a {
    color: #333;
    padding: 10px 20px;
    display: block;
    font-weight: 400;
}

.dropdown-content a:hover {
    background: #ff6200;
    color: #fff;
}

/* CTA Button */
.cta-button {
    background: #ff6200; /* สีส้ม */
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #e65500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 98, 0, 0.3);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-toggle1 {
    display: none;

}
.toggle-circle {
    width: 100%;
    height: 100%;
    background: #ff6200;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 98, 0, 0.3);
}

.toggle-circle .bar {
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.menu-toggle.open .toggle-circle {
    background: #e65500;
    transform: rotate(90deg);
}

.menu-toggle.open .toggle-circle .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .toggle-circle .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .toggle-circle .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0; }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        flex: 1;
        text-align: center; /* จัด Logo อยู่ตรงกลาง */
    }

    .cta {
        display: none; /* ซ่อน CTA เพื่อให้ Navbar ดูสะอาด */
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto; /* ให้ปุ่มอยู่ขวาสุด */
    }
	.menu-toggle1 {
        display: flex;
    }
    .nav-menu {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0; /* เลื่อนจากซ้าย */
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
        animation: slideFromLeft 0.3s ease;
    }

    .nav-links:not(.active) {
        animation: slideOutLeft 0.3s ease forwards;
    }

    .nav-links li {
        margin: 5px 0;
        width: 100%;
        position: relative;
    }

    .nav-links a {
        font-size: 14px;
        padding: 12px 20px;
        background: #f7f7f7;
        border-radius: 6px;
        display: block;
        text-align: left;
        color: #333;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    /* Ripple Effect on Click */
    .nav-links a::before {
        content: '';
        position: absolute;
        width: 50px;
        height: 50px;
        background: rgba(255, 98, 0, 0.3);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: all 0.4s ease;
    }

    .nav-links a:active::before {
        animation: ripple 0.4s ease;
    }

    .nav-links a:hover {
        background: #ff6200;
        color: #fff;
        transform: translateX(5px);
    }

    .nav-links a::after {
        display: none;
    }

    /* Dropdown on Mobile */
    .dropdown {
        position: relative;
    }

    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        padding: 12px 20px;
        background: #ff6200;
        color: #fff;
        border-radius: 6px;
        position: relative;
        overflow: hidden;
    }

    .dropdown-toggle::after {
        content: '▼';
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .dropdown-toggle.active::after {
        transform: rotate(180deg);
    }

    .dropdown-content {
        display: none;
        position: relative;
        background: #f7f7f7;
        box-shadow: none;
        width: 100%;
        padding: 10px 15px;
        border-radius: 6px;
    }

    .dropdown-content.active {
        display: block;
    }

    .dropdown-content a {
        background: #fff;
        font-size: 14px;
        padding: 10px 15px;
        margin: 5px 0;
    }

    .dropdown-content a:hover {
        background: #ff6200;
        color: #fff;
        transform: translateX(5px);
    }
}