/* Navigation Styles */
.main-nav ul li a {
    font-family: 'Noto Sans Thai', sans-serif;
    padding: 0 30px;
}

.main-nav {
    background: linear-gradient(to right, #202d01 0%, #202d01 100%);
    font-weight: 800;
    padding: 15px 0;
    position: relative;
    z-index: 9999;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #fbbf24;
}

.main-nav ul li {
    border-right: 1px dashed rgba(255, 255, 255, 0.3);
}

.main-nav ul li:last-child {
    border-right: none;
}

.menu-hero-wrapper {
    background-color: transparent;
    position: relative;
    opacity: 1;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 0;
}

.menu-hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: 
        linear-gradient(to bottom, #b4ff00 5%, rgba(208, 255, 0, 0.8) 20%, rgba(185, 255, 0, 0) 100%),
        url('../img/menu/menu_bg_img.webp'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(100%) contrast(110%) saturate(120%);
    z-index: -1;
}

/* ทำให้เนื้อหาอยู่ด้านบน overlay */
.menu-hero-wrapper nav,
.menu-hero-wrapper .hero-section {
    position: relative;
    z-index: 1;
}

.hero-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section h1 {
    font-size: 50px;
    padding: 50px 0 0 0;
    font-weight: 900;
    color: #000;
    text-shadow: 0 0 10px #CFFB50,
                 0 0 20px #CFFB50,
                 0 0 30px #CFFB50;
}

.hero-section p {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0px;
}


.hero-section button {
    background-color: #9FD201;
    color: #000000;
    font-weight: 600;
    padding: 8px 30px;
    font-size: 16px; 
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0px 0px 8px 2px #F7FF00 inset;
    cursor: pointer;
}

.hero-section button:hover {
    background-color: #8BB701;
    color: #fff;
    box-shadow: 0px 0px 8px 2px #F7FF00 inset;
}

.payment-img {
    margin-top: 50px;
    margin-bottom: 20px;
    max-width: 80%;
    height: auto;
}

.menu-toggle {
    display: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #202d01;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1001;
}

.arrow-icon {
    display: inline-block;
    transition: transform 0.3s;
}

/* เมื่อหน้าจอเล็กกว่า 992px */
@media (max-width: 992px) {
    .main-nav {
        background: linear-gradient(to right, #202d01 0%, #202d01 100%);
        position: relative;
        min-height: 50px;
        z-index: 100;
    }

    .menu-toggle {
        position: absolute;
        display: block;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background: #202d01;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 99999 !important;
        transition: background-color 0.3s;
    }

    .menu-toggle:hover {
        background: #364f01;
    }

    .menu-text {
        font-size: 14px;
        margin-right: 10px;
    }

    .menu-items {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #202d01;
        z-index: 99999 !important;
        padding: 20px 0;
        flex-direction: column !important;
        align-items: center;
    }

    .menu-items li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
        padding: 0 15px;
    }

    .menu-items li:last-child {
        border-bottom: none;
    }

    .menu-items a {
        color: white;
        padding: 10px 20px;
        display: block;
        transition: background-color 0.3s;
    }

    .menu-items a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .menu-toggle.active .arrow-icon {
        transform: rotate(180deg);
    }
}

/* ส่วนของ container ที่ครอบเมนูทั้งหมด */
.container {
    position: relative;
    z-index: 9999;
}

.main-nav {
    position: relative;
    z-index: 9999;
}

@media (max-width: 992px) {
    .main-nav {
        position: relative;
        min-height: 50px;
    }

    .menu-items {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 99999 !important;
        padding: 20px 0;
        flex-direction: column !important;
        align-items: center;
    }

    .menu-items li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .menu-items a {
        color: white;
        padding: 10px 20px;
        display: block;
    }
}

/* ปรับ z-index ของ elements อื่นๆ */
.text-center, 
.payment-img,
.img-fluid {
    position: relative;
    z-index: 1;
}

/* สร้าง stacking context ใหม่สำหรับเมนู */
body {
    position: relative;
}

/* ส่วนของเมนู */
.main-nav {
    position: relative;
    z-index: 99999 !important; /* ใช้ !important เพื่อให้แน่ใจว่าจะ override ค่าอื่นๆ */
}

.container {
    position: relative;
}

@media (max-width: 992px) {
    .main-nav {
        min-height: 50px;
    }

    .menu-items {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(to right, #202d01 0%, #202d01 100%);
        z-index: 99999 !important;
        padding: 20px 0;
        flex-direction: column !important;
        align-items: center;
    }

    .menu-toggle {
        position: absolute;
        display: block;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background: #202d01;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 99999 !important;
    }

    .menu-items li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .menu-items a {
        color: white;
        padding: 10px 20px;
        display: block;
    }
}