        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

    /* ขนาดปกติ (desktop/tablet) */
    .swal2-popup.swal2-small {
        font-size: 0.9rem;
        width: 320px !important;
        padding: 1.25rem;
    }

    /* ขนาดเล็กสำหรับมือถือ */
    @media screen and (max-width: 480px) {
        .swal2-popup.swal2-small {
            font-size: 0.8rem;
            width: 85vw !important;
            padding: 1rem;
        }
    }
    
    body {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f5f5f5;
        position: relative;
        overflow-x: hidden;
        min-height: 100vh; /* ตั้งค่าความสูงขั้นต่ำเท่ากับ viewport */
        display: flex; /* ใช้ flexbox */
        flex-direction: column; /* เรียงตามแนวตั้ง */
        margin: 0;
        padding: 0;
    }
        /* Header styles remain unchanged */
        .header {
            position: sticky;
            top: 0;
            z-index: 1000;
            /* background: linear-gradient(90deg, #c2002f 0%, #3a3aeb 100%); */
            background:white;
            color:rgb(97, 97, 97);
            padding: 12px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
           
        }

        .header::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            width: 100%;
            background: linear-gradient(90deg, #c2002f, #214099);
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            width: 50px;
            height: 50px;
            background: radial-gradient(circle, #f39c12 0%, #e67e22 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
            border: 3px solid white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .header-text {
            display: flex;
            flex-direction: column;
        }

        .header-title {
            font-size: 18px;
            font-weight: bold;
            color: #c2002f;
            margin-bottom: 2px;
        }

        .header-subtitle {
            font-size: 14px;
            color: #214099;
            font-weight: 300;
        }

        .header-controls {
            display: flex;
            align-items: center;
            /*gap: 15px;*/
        }

        .lang-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .lang-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .lang-toggle2 {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .lang-toggle2:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .user {
            width: 20px;
            height: 30px;
            color: #555555;
        }

        .flag {
            width: 20px;
            height: 15px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .theme-toggle {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            color: #f39c12;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(180deg);
        }

        .navbar {
            position: sticky;
            top: 74px;
            z-index: 999;
            background: white;
            border-bottom: 1px solid #e0e0e0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .navbar-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            padding: 0 20px;
            flex-wrap: wrap;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            flex-wrap: wrap;
            justify-content: center;

        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 18px 25px;
            text-decoration: none;
            color: #555;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }

        .nav-link:hover {
            color: #2c3e50;
            background: linear-gradient(to bottom, transparent, rgba(52, 152, 219, 0.05));
           border-bottom-color: #c2002f;
        }

        .nav-link.active {
            color: #2c3e50;
            background: linear-gradient(to bottom, transparent, rgba(52, 152, 219, 0.1));
            border-bottom-color: #c2002f;
            font-weight: 600;
        }

        .nav-icon {
            font-size: 16px;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: #204099;
            font-size: 20px;
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .mobile-menu-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .mobile-menu-btn.active {
            background: rgba(255, 255, 255, 0.2);
        }

        .mobile-menu-btn.active .menu-icon {
            transform: rotate(180deg);
        }

        /* Mobile Menu Overlay */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Mobile Menu Sidebar */
        .mobile-menu-sidebar {
            position: fixed;
            top: 0;
            left: -100%; /* เดิมคือ right: -100% */
            width: 300px;
            max-width: 80vw;
            height: 100vh;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1); /* เปลี่ยนทิศทางเงา */
            z-index: 1000;
            transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* เปลี่ยนจาก right เป็น left */
            overflow-y: auto;
        }


        .mobile-menu-sidebar.active {
            left: 0;
        }

        .mobile-menu-header {
            padding: 13px;
            position: relative;
        }

        .mobile-menu-title {
            font-size: 18px;
            font-weight: bold;
            color: #c2002f;
            margin-bottom: 2px;
        }

        .mobile-menu-subtitle {
            font-size: 14px;
            color: #214099;
            font-weight: 300;
        }

        .mobile-menu-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: #214099;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .mobile-menu-close:hover {
            background: rgba(255, 255, 255, 0.2);
            /*transform: rotate(90deg);*/
        }

        .mobile-nav-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            overflow-y: auto; /* เพิ่ม scrollbar แนวตั้งเมื่อจำเป็น */
            overflow-x: hidden; /* ปิด scrollbar แนวนอน */
            max-height: calc(100vh - 180px); /* จำกัดความสูงเพื่อให้ footer อยู่ด้านล่าง */
        }

        .mobile-nav-item {
            border-bottom: 1px solid #f0f0f0;
        }

        .mobile-nav-link {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            text-decoration: none;
            color: #555;
            font-weight: 500;
            font-size: 16px;
            transition: all 0.3s ease;
            position: relative;
        }

        .mobile-nav-link:hover {
            background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
            color: #2c3e50;
            transform: translateX(5px);
        }

        .mobile-nav-link.active {
            background: linear-gradient(90deg, rgba(52, 152, 219, 0.15), rgba(155, 89, 182, 0.15));
            color: #2c3e50;
            font-weight: 600;
        }

        .mobile-nav-link.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(90deg, #c2002f, #3a3aeb);
        }

        .mobile-nav-icon {
            font-size: 20px;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-footer {
            padding: 20px;
            border-top: 1px solid #f0f0f0;
            background: #f8f9fa;
            margin-top: auto;
        }

        .mobile-lang-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: white;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
        }

        .mobile-lang-toggle:hover {
            background: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        @media (max-width: 1200px) {
            .header-content {
                padding: 0 15px;
            }

            .header-text {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .navbar-content {
                display: none;
            }

            .lang-toggle:not(.is-show) {
                display: none;
            }
        }

        /* CAROUSEL STYLES */
        .content {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
            flex: 1; /* ทำให้ส่วนเนื้อหา expand เพื่อดัน footer ลงล่าง */
        }


        .carousel-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: auto;
        }

        .carousel-slide {
            min-width: 100%;
            position: relative;
        }

        .carousel-slide img {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
        }


        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 30px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
        }

        .slide-title {
            font-size: 28px;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .slide-description {
            font-size: 16px;
            max-width: 600px;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        .slide-link {
            display: inline-block;
            padding: 10px 20px;
            background: #c2002f;
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .slide-link:hover {
            background: #214099;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.2);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .carousel-nav:hover {
            background: rgba(255,255,255,0.4);
        }

        .carousel-nav.prev {
            left: 20px;
        }

        .carousel-nav.next {
            right: 20px;
        }

        .carousel-nav-icon {
            font-size: 30px;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .carousel-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }

        .carousel-dot {
            width: 15px;
            height: 3px;
            border-radius: 10px;
            background: rgba(255,255,255,0.5);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .carousel-dot.active {
            background: white;
            transform: scale(1.2);
        }

        .carousel-indicators {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
            z-index: 10;
        }

        .carousel-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 4px;
            background: rgba(255,255,255,0.5);
            width: 100%;
        }

        .progress-bar {
            height: 100%;
            background: #c2002f;
            width: 0%;
            transition: width 0.1s linear;
        }

        @media (max-width: 768px) {
            .carousel-track {
                height: auto;
            }
            
            .slide-content {
                padding: 20px;
            }
            
            .carousel-nav {
                width: 40px;
                height: 40px;
                display: none;
            }

            .carousel-indicators {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .carousel-track {
                height: auto;
            }
            
            .slide-content {
                padding: 15px;
            }
        }

/* news styles */
        
        .news-section {
            margin-top: 40px;
             border-bottom: 1px solid #ccc;
              margin-bottom: 40px;
        }

        .news-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 0 20px;
        }

        .news-title {
            color: #2c3e50;
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .news-filter {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .filter-dropdown {
            padding: 10px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            background: white;
            color: #666;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .filter-dropdown:hover {
            border-color: #f39c12;
            box-shadow: 0 2px 10px rgba(243, 156, 18, 0.2);
        }

        .filter-dropdown::after {
            content: "?";
            margin-left: 10px;
            font-size: 10px;
            transition: transform 0.3s ease;
        }

        .filter-dropdown.open::after {
            transform: rotate(180deg);
        }

        .view-toggle {
            display: flex;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 4px;
        }

        .view-btn {
            padding: 8px 12px;
            border: none;
            background: transparent;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            color: #666;
        }

        .view-btn.active {
            background: white;
            color: #2c3e50;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }



        /* เพิ่มสไตล์สำหรับส่วนแสดงข่าว - แถวละ 2 ข่าว */
        .news-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 columns */
            gap: 25px;
            padding: 0 20px 40px;
        }

        .card-link {
            display: block;
            text-decoration: none;
            color: inherit;
            height: 100%;
        }
        

        .news-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .news-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

 .news-date {
    background: rgb(247, 247, 247);
    color: #800000;
    padding: 2px 20px;
    font-size: 12px;
    
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* เพิ่มไว้รองรับการขึ้นบรรทัดใหม่ */
}

.newsender {
        display: flex;
    align-items: center;
    color: #c2002f;
}

.newdate {
    display: flex;
    align-items: center;
    color: #214099;
}

.newsender::before {
    content: "campaign";
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    margin-right: 10px;
}

.newdate::before {
    content: "event";
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    margin-right: 10px;
}


/* .news-date::before {
    content: "campaign";
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
} */

/* ?? เพิ่มส่วนนี้ */
@media (max-width: 600px) {
    .news-date {
        flex-direction: column;
        align-items: flex-start;
    }
}


        .news-card-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .news-card-title {
            font-size: 14px;
            margin-bottom: 15px;
            color: #214099;
            line-height: 1.4;
            font-weight: 600;
        }

        .news-card-description {
            font-size: 12px;
            color: #555;
            line-height: 1.6;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .news-card-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #c2002f;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 8px 16px;
            background: rgba(194, 0, 47, 0.05);
            border-radius: 6px;
            width: fit-content;
        }

        .news-card-link:hover {
            color: white;
            background: linear-gradient(90deg, #c2002f, #214099);
            text-decoration: none;
        }

        .no-news {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: #777;
            background: #f9f9f9;
            border-radius: 12px;
            margin-top: 20px;
        }

        .news-section-title {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #c2002f;
            font-size: 22px;
            padding-left: 20px;
            margin-bottom: 25px;
            border-left: 5px solid #214099;
            height: 40px;
        }

        /* Responsive design */
        @media (max-width: 900px) {
            .news-container {
                grid-template-columns: 1fr; /* 1 column on smaller screens */
            }
        }

        @media (max-width: 480px) {
            .news-card {
                border-radius: 10px;
            }
            
            .news-card-content {
                padding: 20px;
            }
            
            .news-card-title {
                font-size: 17px;
            }
        }


 /* Styles for View Toggle Button */
.view-all-container {
    text-align: center;
    margin: 20px 0 40px;
}

.view-toggle-btn {
    display: inline-flex;
    width: 30%;
    align-items: center;
    justify-content: center; /* <<< สำคัญ! จัดกลางแนวนอน */
    gap: 8px;
    background: #214099 !important;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2px;
    color:white;
    border: none;
}

.view-toggle-btn:hover {
    background: #c2002f !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 58, 235, 0.2);
}

.view-toggle-btn:active {
    transform: translateY(1px);
}

.view-toggle-btn.expanded {
    background: #214099!important;
    color: white;
    border: none;
}

.view-toggle-btn.expanded:hover {
   background:rgb(6, 41, 145)!important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Hidden news items */
.hidden-news {
    display: none;
}
        /* Footer styles */
    .footer {
        
        background: linear-gradient(90deg, #214099, #2c3e50);
        border-top: 3px solid #c2002f;
        color: white;
        padding: 20px 20px;
        margin-top: auto; /* ให้ footer อยู่ล่างสุด */
        width: 100%;
    }


        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .footer-section h3 {
            font-size: 20px;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50%;
            height: 3px;
            background: #c2002f;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #ddd;
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .footer-links a:hover {
            color: #c2002f;
            transform: translateX(5px);
        }


        .footer-bottom {
            max-width: 1200px;
            margin: 30px auto 0;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            text-align: center;
            font-size: 14px;
            color: #aaa;
        }

        .footer-contact p {
            color: #ddd;
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        /* Add these styles to your existing CSS */
.lang-toggle-container {
    position: relative;
    display: inline-block;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    gap: 10px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

.lang-dropdown a:hover {
    background: #f5f5f5;
    color: #c2002f;
}

.lang-dropdown.show {
    display: block;
}




.lang-dropdown2 {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.lang-dropdown2 a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    gap: 10px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.lang-dropdown2 a:last-child {
    border-bottom: none;
}

.lang-dropdown2 a:hover {
    background: #f5f5f5;
    color: #c2002f;
}

.lang-dropdown2.show {
    display: block;
}


.lang-toggle span.material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.lang-toggle.active span.material-symbols-outlined:not(.no-rotate) {
    transform: rotate(180deg);
}

.lang-toggle2 span.material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.lang-toggle2.active span.material-symbols-outlined:not(.no-rotate) {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* เพิ่มสไตล์สำหรับ mobile lang dropdown */
.lang-toggle-container.mobile {
    position: relative;
    width: 100%;
}

.mobile-lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    width: 100%;
    text-align: left;
}

.mobile-lang-toggle:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-dropdown.mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 5px;
}

.lang-dropdown.mobile a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    gap: 10px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.lang-dropdown.mobile a:last-child {
    border-bottom: none;
}

.lang-dropdown.mobile a:hover {
    background: #f5f5f5;
    color: #c2002f;
}

.lang-dropdown.mobile.show {
    display: block;
}





.main {
  width: 90vw;
  max-width: 1200px;
  padding: 24px;
  box-sizing: border-box;
  background-color: #ffffff;
  min-height: 58vh;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

}







/* ---- CSSสุดโหดเมามาก ---- */
select {
	margin-bottom: 2px;
	margin-top: 2px;
	width:100%;
    max-width: max-content;
	padding: 4px;
	border-radius:10px;
	border:1px solid #7ac9b7;
   font-size: 14px;
   font-family: "tahoma";

}


.pagename {
	font-family: "tahoma";
	font-size:18px;
	font-weight: bold;
	color:#FF8000;
}


/* ---- ตัวอักษรเมนู ---- */
.style4 {
	font: bold .72em "tahoma";
	color: #FFFFFF;
	text-decoration:none;
	  
}
/* ตัวอักษรเมนู FOOTER */
.footermenu {
	font-family: "tahoma";
	font-size:12px;
}

/* ชื่อเรื่องแต่ละหน้า*/
.pagename {
	font-family: "tahoma";
	font-size:18px;
	font-weight: bold;
	color:#FF8000;
}
/* ตัวอักษรแสดงชื่อ Login*/
.username {
	font-family: "tahoma";
	font-size:14px;
	font-weight: bold;
	color: #000000;
}
/* ตัวอักษรหัวเรื่องทั่วไป*/
.HeaderDetail {
	font-family: "tahoma";
	font-size:14px;
	font-weight: bold;
	color: #000000;
    align-content: center;
}
/* ตัวอักษรหัวเรื่องของตาราง*/
.tableHeaderDetail {
	font-family: "tahoma";
	font-size:13px;
	color: #FFFFFF;
	font-weight: bold;
}
/* ตัวอักษรขนาดปกติ*/
.normalDetail {
	font-family: "tahoma";
	font-size:14px;
	color: #000000;
    
}

    table.normaldetail td, 
    table.normaldetail th {
        padding: 3px;

    }



.danger {background-color: #f44336;  color: white;
  padding: 10px;box-shadow: inset 0 0 0 0px !important;white-space: nowrap;display: block;} /* Orange */

.success {background-color: #4CAF50;  color: white;
  padding: 10px;box-shadow: inset 0 0 0 0px !important;white-space: nowrap;display: block;} /* Green */
.successHome {background-color: #4CAF50;  color: white;
  padding: 10px;box-shadow: inset 0 0 0 0px !important;display: block;} /* Green */
#happywtlz {
    font-family: "tahoma";
	font-size:14px;
    border-collapse: collapse;
    width: 100%;
}


#happywtlz td, #happywtlz th {
    border: 1px solid #ddd;
 /*   padding: 6px; */
}

#happywtlz tr:nth-child(even){background-color: #f2f2f2 !important;}

#happywtlz tr:hover {background-color: #ddd !important;}

#happywtlz th {
    padding-top: 7px;
    padding-bottom: 7px;
   /* text-align: center;*/
    background-color: #606080;
    color: white;
}

.thx {
    background-color: #3090C0 !important;  
    color: white;
    padding: 10px;box-shadow: inset 0 0 0 0px !important;
    white-space: nowrap;
    word-break: break-word;
    /* display: none; */
} /* Orange */
 
.thdepartmentx{
background-color:#E4E4F0 !important;  color: black !important; text-align: left;
  padding: 10px;box-shadow: inset 0 0 0 0px !important;white-space: nowrap;/*display: block*/;
}
.button-ac {
  padding: 5px 25px;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  outline: none;
  color: #fff;
  background-color: #4CAF50;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px #999;
}

.button-ac:hover {background-color: #3e8e41}

.button-ac:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}
.errormsgfile {
    font-family: "tahoma";
	font-size:11px;
	color: RED;
    border-collapse: collapse;
    width: 100%;
}

.userbar {
	font-family: "tahoma";
	font-size:14px;
	font-weight: bold;
	color: #000000;
}



input[type='text'], input[type='password']{
	margin-bottom: 2px;
	margin-top: 2px;
	width:100%;
    max-width: 300px;
	padding: 4px;
	border-radius:10px;
	border:1px solid #7ac9b7;
   font-size: 14px;
   font-family: "tahoma";
   /* min-width: 100px; */
}


input[type='SUBMIT']{
	margin-bottom: 3px;
	margin-top: 3px;
/*	width:100%; */
	padding: 5px;
	border-radius:13px;
	border:1px solid #7ac9b7;
   font-size: 14px;
   font-family: "tahoma";
   min-width: 130px;
   cursor: pointer;
}
input[type='button']{
	margin-bottom: 3px;
	margin-top: 3px;
/*	width:100%; */
	padding: 5px;
	border-radius:13px;
	border:1px solid #7ac9b7;
   font-size: 14px;
   font-family: "tahoma";
   min-width: 130px;
   cursor: pointer;
}


.colornomalfix {
	font-family: "tahoma";
	font-size:14px;
	font-weight: bold;
	color: #000000;
    margin-right: 15px;
}

.menuheadtable {
    max-width: 1110px;
    margin: auto;
	
    background: #e5e5e5;
    padding: 0px;
}




.tdimport{
  padding: 3px;
}


input[type="file"] {
    display: none;
}
.custom-file-upload {
    border: 1px solid #ccc;
    /*display: inline-block;*/
	display: block;
    padding: 6px 12px;
    cursor: pointer;
	margin: 5px;
    

}

@media screen and (max-width: 450px) {
    .custom-file-upload {
        max-width: 130px;
        text-wrap: auto;
    }
}
object {
   margin: 0;
   padding: 0;
}
.LBPRINT {
    border: 1px solid #ccc;
    /*display: inline-block;*/
	display: block;
    padding: 6px 12px;
    cursor: pointer;
	margin: 5px;

}

.LBPRINTNOPAY {
    border: 1px solid #ccc;
    /*display: inline-block;*/
	display: block;
    padding: 6px 12px;
    cursor: pointer;
	margin: 5px;
	background-color: #f44336;
    max-width: max-content;
}
a.highlight:hover {
  color: cornflowerblue;

} 
.Nopay {
    color: white  !important;
}
.Nopay:hover {
    color: yellow !important;
	    background-color: transparent;
}

TABLE {

    width: 100%;
}

.button-app {
  padding: 5px 20px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  outline: none;
  color: #fff;
  background-color: #4CAF50;
  border: none;
  border-radius: 5px;
  box-shadow: 0 3px #999;
}

.button-app:hover {background-color: #3e8e41}

.button-app:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
  }


textarea{
    width: 100%;
}