/* .menu8 .menu8-recommended a {
    display: block !important;
    width: 200px !important;
    height: 200px !important;
    object-fit: contain !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 10px !important;
    border-radius: 100% !important;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    background-color: #fff !important;
} */

.menu8-recommended .menu8-img-hover {
    display: none !important;
}

.menu8-recommended a:hover .menu8-img-default {
    display: none !important;
}

.menu8-recommended a:hover .menu8-img-hover {
    display: inline-block !important;
}

.popup {
    display: none; /* เริ่มต้นซ่อนไว้ */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* พื้นหลังครึ่งโปร่งแสง */
    z-index: 9999; /* ให้ pop up อยู่ด้านบนสุด */
}

/* ปรับตำแหน่ง popup-content ให้อยู่ตรงกลางจอ */
.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* จัดให้ตรงกลาง */
    background-color: white;
    padding: 20px;
    max-width: 90%; /* ขนาด popup สูงสุด */
    max-height: 80%; /* จำกัดความสูง */
    overflow-y: auto; /* ให้ scroll ได้ถ้าข้อมูลยาวเกิน */
    border-radius: 8px;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* 8menu */
.containerBox8 {
    max-width: 1000px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

.containerBox8menu {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-around !important;
}

.box8menu-con {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
}

.menu8 {
    text-align: center !important;
}

.menu8 img {
    width: 100px !important;
    height: auto !important;
}

.menu8 p {
    margin-top: 10px !important;
    font-size: 1rem !important;
}

.menu8-icon-default {
    display: block;
    transition: opacity 0.2s ease;
    opacity: 1;
} 

.menu8-icon-default:hover {
    display: none;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.menu8-icon-hover {
    display: none;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.menu8-icon-hover:hover {
    display: block;
    transition: opacity 0.2s ease;
    opacity: 1;
}

.desktop-News-only {
display: none;
}

.mobile-News-only {
    display: none;
}

@media only screen and (min-width: 767px) {
    .desktop-News-only {
        display: block;
    }
}

@media only screen and (max-width: 766px) {
    .mobile-News-only {
        display: block;
    }
}

.swiper-pagination {
position: absolute;
bottom: 20px;
text-align: center;
width: 100%;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.7;
    transition: opacity 0.3s, background 0.3s;
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
}