* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-image: url('img/wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0 0;
    min-height: 100vh;
}

/* Discord Banner (ซ้าย) */
.discord-banner {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-420px);
    z-index: 1000;
    animation: floatDiscord 3s ease-in-out infinite;
}

.discord-banner img {
    width: 220px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.discord-banner:hover img {
    transform: scale(1.15) rotate(5deg);
}

/* Facebook Banner (ขวา) */
.facebook-banner {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(200px);
    z-index: 1000;
    animation: floatFacebook 3s ease-in-out infinite;
}

.facebook-banner img {
    width: 220px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.facebook-banner:hover img {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

/* โลโก้ตรงกลาง */
.logo-container {
    position: absolute;
    left: 50%;
    top: 150px;
    transform: translateX(-50%);
    z-index: 1000;
    animation: floatLogo 4s ease-in-out infinite;
}

.logo-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    /* 💥 แก้ไขสีพื้นหลังหลักเป็นโทนม่วง */
    background: linear-gradient(45deg, #FFD700, #000000, #B8860B);
    padding: 15px;
    /* 💥 แก้ไขเงาเป็นโทนม่วง */
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6);
    border: 5px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.logo-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    /* 💥 แก้ไขขอบนอก (rotateBorder) เป็นโทนม่วง/น้ำเงิน */
    background: linear-gradient(45deg, #FFD700, #B8860B, #FFF8DC, #FFD700);
    border-radius: 50%;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

.logo-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 💥 แก้ไขไฟวิ่งด้านใน (rotateFire) เป็นสีม่วงสว่าง */
    background: conic-gradient(from 0deg, #FFF8DC, #B8860B, #FFD700, #FFF8DC);
    border-radius: 50%;
    z-index: -1;
    animation: rotateFire 2s linear infinite;
    opacity: 0.7;
}

.logo-frame:hover {
    transform: scale(1.1) rotate(10deg);
    /* 💥 แก้ไขเงาตอน hover เป็นโทนม่วงสว่าง */
    box-shadow: 0 20px 45px rgba(255, 215, 0, 0.8);
}

.logo-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* อนิเมชั่นไฟวิ่ง */
@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotateFire {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* อนิเมชั่นโลโก้ */
@keyframes floatLogo {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* อนิเมชั่นลอย */
@keyframes floatDiscord {
    0%, 100% {
        transform: translateX(-420px) translateY(0px);
    }
    50% {
        transform: translateX(-420px) translateY(-8px);
    }
}

@keyframes floatFacebook {
    0%, 100% {
        transform: translateX(200px) translateY(0px);
    }
    50% {
        transform: translateX(200px) translateY(-8px);
    }
}

/* เอฟเฟคแสงส่อง */
.discord-banner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #7289da, #5865f2, #7289da);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: pulseDiscord 2s ease-in-out infinite;
}

.facebook-banner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #1877f2, #42a5f5, #1877f2);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: pulseFacebook 2s ease-in-out infinite;
}

.facebook-banner:hover::before {
    opacity: 0.3;
}

/* ส่วนเนื้อหาหลัก */
.content-section {
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 100;
    max-width: 1200px;
    width: 90%;
    margin: 360px auto 30px;
}

/* ส่วนปุ่มต่างๆ ด้านซ้าย */
.buttons-section {
    flex: 1;
    max-width: 500px;
}

.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
}

.game-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
}

.game-button:nth-child(1) {
    animation: bounceButton 2s ease-in-out infinite;
    animation-delay: 0s;
}

.game-button:nth-child(2) {
    animation: bounceButtonAlt 2.2s ease-in-out infinite;
    animation-delay: 0.5s;
}

.game-button:nth-child(3) {
    animation: bounceButtonRotate 2.1s ease-in-out infinite;
    animation-delay: 1s;
}

.game-button:nth-child(4) {
    animation: bounceButtonElastic 2.3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-button:hover::before {
    left: 100%;
}

.game-button:hover {
    transform: translateY(-8px) scale(1.1) rotate(2deg);
    animation-play-state: paused;
}

.game-button:hover img {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.2) drop-shadow(0 8px 16px rgba(255, 255, 255, 0.3));
}

.game-button img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ส่วนรูป footer ด้านขวา */
.footer-section {
    flex: 1;
    max-width: 600px;
}

.footer-image {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* ลูกไฟลอยไปมา */
.fire-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.fire-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ff6b35, #f7931e, #ffcc02, #ff4500);
    box-shadow: 
        0 0 10px #ff6b35,
        0 0 20px #f7931e,
        0 0 30px #ffcc02,
        0 0 40px #ff4500,
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: floatFire 8s linear infinite;
    filter: blur(0.5px);
}

.fire-1 {
    width: 6px;
    height: 6px;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 4s;
    animation-name: floatFire;
}

.fire-2 {
    width: 10px;
    height: 10px;
    left: 15%;
    animation-delay: 0.5s;
    animation-duration: 6s;
    animation-name: floatFireAlt;
}

.fire-3 {
    width: 4px;
    height: 4px;
    left: 25%;
    animation-delay: 1s;
    animation-duration: 5s;
    animation-name: floatFireRotate;
}

.fire-4 {
    width: 8px;
    height: 8px;
    left: 35%;
    animation-delay: 1.5s;
    animation-duration: 7s;
    animation-name: floatFire;
}

.fire-5 {
    width: 12px;
    height: 12px;
    left: 45%;
    animation-delay: 2s;
    animation-duration: 5.5s;
    animation-name: floatFireAlt;
}

.fire-6 {
    width: 5px;
    height: 5px;
    left: 55%;
    animation-delay: 2.5s;
    animation-duration: 6.5s;
    animation-name: floatFireRotate;
}

.fire-7 {
    width: 9px;
    height: 9px;
    left: 65%;
    animation-delay: 3s;
    animation-duration: 5.5s;
    animation-name: floatFire;
}

.fire-8 {
    width: 7px;
    height: 7px;
    left: 75%;
    animation-delay: 3.5s;
    animation-duration: 4.5s;
    animation-name: floatFireAlt;
}

.fire-9 {
    width: 11px;
    height: 11px;
    left: 85%;
    animation-delay: 4s;
    animation-duration: 6s;
    animation-name: floatFireRotate;
}

.fire-10 {
    width: 3px;
    height: 3px;
    left: 95%;
    animation-delay: 4.5s;
    animation-duration: 5s;
    animation-name: floatFire;
}

.fire-11 {
    width: 8px;
    height: 8px;
    left: 8%;
    animation-delay: 5s;
    animation-duration: 6.5s;
    animation-name: floatFireAlt;
}

.fire-12 {
    width: 6px;
    height: 6px;
    left: 18%;
    animation-delay: 5.5s;
    animation-duration: 5.5s;
    animation-name: floatFireRotate;
}

.fire-13 {
    width: 10px;
    height: 10px;
    left: 28%;
    animation-delay: 6s;
    animation-duration: 7s;
    animation-name: floatFire;
}

.fire-14 {
    width: 4px;
    height: 4px;
    left: 38%;
    animation-delay: 6.5s;
    animation-duration: 4s;
    animation-name: floatFireAlt;
}

.fire-15 {
    width: 9px;
    height: 9px;
    left: 48%;
    animation-delay: 7s;
    animation-duration: 6s;
    animation-name: floatFireRotate;
}

.fire-16 {
    width: 7px;
    height: 7px;
    left: 58%;
    animation-delay: 7.5s;
    animation-duration: 5.5s;
    animation-name: floatFire;
}

.fire-17 {
    width: 5px;
    height: 5px;
    left: 68%;
    animation-delay: 8s;
    animation-duration: 6.5s;
    animation-name: floatFireAlt;
}

.fire-18 {
    width: 11px;
    height: 11px;
    left: 78%;
    animation-delay: 8.5s;
    animation-duration: 7s;
    animation-name: floatFireRotate;
}

.fire-19 {
    width: 6px;
    height: 6px;
    left: 88%;
    animation-delay: 9s;
    animation-duration: 5s;
    animation-name: floatFire;
}

.fire-20 {
    width: 8px;
    height: 8px;
    left: 12%;
    animation-delay: 9.5s;
    animation-duration: 6s;
    animation-name: floatFireAlt;
}

/* อนิเมชั่นลูกไฟ */
@keyframes floatFire {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0.3);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    15% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(0.5);
    }
    85% {
        opacity: 1;
        transform: translateY(10vh) translateX(30px) scale(1.1);
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-50px) translateX(40px) scale(1.3);
        opacity: 0;
    }
}

/* อนิเมชั่นลูกไฟแบบสลับ */
@keyframes floatFireAlt {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0.2);
        opacity: 0;
    }
    8% {
        opacity: 0.7;
    }
    20% {
        opacity: 1;
        transform: translateY(85vh) translateX(-15px) scale(0.4);
    }
    80% {
        opacity: 1;
        transform: translateY(15vh) translateX(-25px) scale(1.2);
    }
    92% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-80px) translateX(-35px) scale(1.4);
        opacity: 0;
    }
}

/* อนิเมชั่นลูกไฟแบบหมุน */
@keyframes floatFireRotate {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0.25) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    25% {
        opacity: 1;
        transform: translateY(80vh) translateX(20px) scale(0.6) rotate(90deg);
    }
    75% {
        opacity: 1;
        transform: translateY(20vh) translateX(-20px) scale(1.0) rotate(270deg);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-60px) translateX(-30px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* อนิเมชั่นเด้งปุ่ม */
@keyframes bounceButton {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-5px) scale(1.02);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
    75% {
        transform: translateY(-5px) scale(1.02);
    }
}

/* อนิเมชั่นเด้งปุ่มแบบสลับ */
@keyframes bounceButtonAlt {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) scale(1.03) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) scale(1.06) rotate(2deg);
    }
    75% {
        transform: translateY(-6px) scale(1.03) rotate(1deg);
    }
}

/* อนิเมชั่นเด้งปุ่มแบบหมุน */
@keyframes bounceButtonRotate {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) scale(1.02) rotate(-1deg);
    }
    50% {
        transform: translateY(-7px) scale(1.04) rotate(-2deg);
    }
    75% {
        transform: translateY(-4px) scale(1.02) rotate(-1deg);
    }
}

/* อนิเมชั่นเด้งปุ่มแบบยืดหยุ่น */
@keyframes bounceButtonElastic {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    20% {
        transform: translateY(-3px) scale(1.01);
    }
    40% {
        transform: translateY(-6px) scale(1.03);
    }
    60% {
        transform: translateY(-8px) scale(1.05);
    }
    80% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes pulseFacebook {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.1;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .discord-banner {
        transform: translateX(-280px);
        animation: floatDiscordMobile 3s ease-in-out infinite;
    }
    
    .facebook-banner {
        transform: translateX(140px);
        animation: floatFacebookMobile 3s ease-in-out infinite;
    }
    
    .discord-banner img,
    .facebook-banner img {
        width: 150px;
    }
    
    .logo-container {
        top: 120px;
    }
    
    .logo-frame {
        width: 150px;
        height: 150px;
    }
    
    .content-section {
        flex-direction: column;
        gap: 20px;
        margin: 150px auto 30px;
    }
    
    .news-section {
        margin: 30px auto;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid.single-item {
        max-width: 100%;
    }
    
    .news-grid.single-item .news-card {
        max-width: 100%;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-title {
        font-size: 2rem;
    }
    
    .news-subtitle {
        font-size: 1rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .game-button {
        padding: 0;
    }
    
    .container {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .discord-banner {
        transform: translateX(-200px);
        animation: floatDiscordSmall 3s ease-in-out infinite;
    }
    
    .facebook-banner {
        transform: translateX(100px);
        animation: floatFacebookSmall 3s ease-in-out infinite;
    }
    
    .discord-banner img,
    .facebook-banner img {
        width: 100px;
    }
    
    .logo-container {
        top: 100px;
    }
    
    .logo-frame {
        width: 120px;
        height: 120px;
    }
    
    .content-section {
        top: 310px;
        width: 95%;
        margin: 120px auto 20px;
    }
    
    .news-section {
        width: 95%;
        margin: 20px auto;
    }
    
    .news-container {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.8rem;
    }
    
    .news-subtitle {
        font-size: 0.9rem;
    }
    
    .news-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .nav-btn {
        width: 200px;
        justify-content: center;
    }
    
    .news-image {
        height: 160px;
    }
    
    .overlay-title {
        font-size: 1.3rem;
    }
    
    .overlay-desc {
        font-size: 0.8rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer-btn {
        min-width: 80px;
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .footer-menu-title {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }
    
    .footer-menu-btn {
        padding: 4px 8px;
        font-size: 0.6rem;
        gap: 4px;
    }
    
    .footer-menu-btn i {
        font-size: 0.6rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .game-button {
        padding: 0;
    }
}

/* อนิเมชั่นสำหรับมือถือ */
@keyframes floatDiscordMobile {
    0%, 100% {
        transform: translateX(-220px) translateY(0px);
    }
    50% {
        transform: translateX(-220px) translateY(-6px);
    }
}

@keyframes floatFacebookMobile {
    0%, 100% {
        transform: translateX(100px) translateY(0px);
    }
    50% {
        transform: translateX(100px) translateY(-6px);
    }
}

@keyframes floatDiscordSmall {
    0%, 100% {
        transform: translateX(-160px) translateY(0px);
    }
    50% {
        transform: translateX(-160px) translateY(-4px);
    }
}

/* ส่วนข่าวสาร */
.news-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    z-index: 100;
}

.news-container {
    margin: 10px;
}

/* Header */
.news-header {
    text-align: center;
    margin-bottom: 30px;
}

.news-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.3);
    animation: glowTitle 2s ease-in-out infinite alternate;
}

.news-subtitle {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.2);
    animation: glowSubtitle 2.5s ease-in-out infinite alternate;
}

/* Navigation Menu */
.news-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.nav-icon {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.nav-text {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

/* เมื่อมีข่าวเพียง 1 อัน ให้แสดงแบบเล็กๆ */
.news-grid.single-item {
    grid-template-columns: 1fr;
    max-width: 400px;
    justify-content: center;
}

.news-grid.single-item .news-card {
    max-width: 350px;
    margin: 0 auto;
}

.news-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.overlay-text {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.overlay-title {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.overlay-desc {
    color: #f0f0f0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.news-content {
    padding: 20px;
}

.news-card-title {
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.news-card-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.news-date {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.page-btn {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.page-btn.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* อนิเมชั่นแสงส่องข้อความ */
@keyframes glowTitle {
    0% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

@keyframes glowSubtitle {
    0% {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 0.4);
    }
}

/* อนิเมชั่นสำหรับปุ่ม */
@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.main-footer {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #1a1a1a);
    padding: 20px 0 0;
    border-top: 2px solid #ff6b35;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0 20px 15px;
    align-items: center;
}

.footer-section {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ff6b35;
    animation: rotateLogo 4s linear infinite;
}

.footer-logo h3 {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-description {
    color: #cccccc;
    font-size: 0.7rem;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-btn {
    padding: 6px 15px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    min-width: 100px;
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #f7931e, #ff6b35);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.social-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ff6b35;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: #f7931e;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.footer-copyright {
    color: #999999;
    font-size: 0.6rem;
    margin: 0;
    text-align: center;
}

/* Footer Menu */
.footer-menu {
    text-align: center;
}

.footer-menu-title {
    color: #ff6b35;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.footer-menu-btn:hover::before {
    left: 100%;
}

.footer-menu-btn:hover {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.footer-menu-btn i {
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.footer-menu-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.footer-menu-btn span {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* อนิเมชั่นโลโก้ใน footer */
@keyframes rotateLogo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Download Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 2% auto;
    padding: 120px 80px 100px 80px;
    border-radius: 0;
    width: 90%;
    max-width: 1024px;
    height: 90vh;
    max-height: 1024px;
    overflow-y: auto;
    position: relative;
    box-shadow: none;
    border: none;
    animation: slideIn 0.3s ease;
    background-color: transparent;
    aspect-ratio: 1/1;
}

.modal-header {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.modal-close {
    color: #ff6b35;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
}

.modal-close:hover {
    color: white;
    background: #ff6b35;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.5);
}

.modal-body {
    padding: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: -20px;
    position: relative;
    z-index: 5;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    margin-top: -40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 6;
    text-align: left;
}

.breadcrumbs span {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Modal Title Section */
.modal-title-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 6;
}

.modal-main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    animation: glowText 2s ease-in-out infinite alternate;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Download Table */
.download-table-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    border: none;
    position: relative;
    z-index: 6;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.download-table th,
.download-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: none;
    vertical-align: middle;
}

.download-table th {
    background: rgba(255, 107, 53, 0.2);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #ff6b35;
}

.download-table td {
    color: white;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.download-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.download-table td:first-child {
    font-size: 1.2rem;
    color: #ff6b35;
}

.download-table td:nth-child(2) {
    font-weight: bold;
    color: #ffd700;
}

.download-table td:nth-child(3) {
    color: #87ceeb;
    font-weight: 500;
}

.download-table td:nth-child(4) {
    color: #98fb98;
    font-weight: 500;
}

.download-table td:nth-child(5) {
    text-align: left;
    padding-left: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Download Button in Table */
.download-btn-table {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.download-btn-table:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* Modal Tip Section */
.modal-tip {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.1);
    position: relative;
    z-index: 6;
}

.tip-icon {
    color: #ffc107;
    font-size: 1.5rem;
    margin-top: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.tip-text {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    flex: 1;
}

.tip-text strong {
    color: #ffc107;
    font-weight: bold;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glowText {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-width: 768px;
        height: 95vh;
        max-height: 768px;
        padding: 80px 50px 60px 50px;
        aspect-ratio: 1/1;
    }
    
    .modal-header {
        top: 20px;
        right: 20px;
    }
    
    .breadcrumbs {
        margin-top: -30px;
    }
    
    .modal-body {
        padding: 0;
    }
    
    .modal-main-title {
        font-size: 2rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .download-table th,
    .download-table td {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    .download-table td:nth-child(5) {
        padding-left: 10px;
        font-size: 0.75rem;
    }
    
    .modal-tip {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .tip-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-width: 480px;
        height: 98vh;
        max-height: 480px;
        padding: 60px 30px 40px 30px;
        aspect-ratio: 1/1;
    }
    
    .modal-header {
        top: 15px;
        right: 15px;
    }
    
    .breadcrumbs {
        margin-top: -25px;
    }
    
    .modal-body {
        padding: 0;
    }
    
    .modal-main-title {
        font-size: 1.8rem;
    }
    
    .modal-subtitle {
        font-size: 0.9rem;
    }
    
    .download-table {
        font-size: 0.7rem;
    }
    
    .download-table th,
    .download-table td {
        padding: 8px 3px;
        font-size: 0.7rem;
    }
    
    .download-table td:nth-child(5) {
        padding-left: 5px;
        font-size: 0.65rem;
    }
    
    .download-btn-table {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-tip {
        padding: 12px;
    }
    
    .tip-text {
        font-size: 0.8rem;
    }
    
    .tip-icon {
        font-size: 1.2rem;
    }
}

/* Server Info Modal Styles */
.server-info-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    border: none;
    position: relative;
    z-index: 6;
}

.server-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.server-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(3px);
}

.section-title {
    color: #ff6b35;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bullet {
    color: #98fb98;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-text {
    color: white;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.bottom-info-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-info-item {
    margin-bottom: 10px;
}

.bottom-info-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: block;
}

/* Server Info Modal Responsive Design */
@media (max-width: 768px) {
    .server-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .server-info-container {
        padding: 15px;
    }
    
    .info-section {
        padding: 12px;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .info-text {
        font-size: 0.85rem;
    }
    
    .bottom-info-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .server-info-container {
        padding: 12px;
    }
    
    .info-section {
        padding: 10px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .info-text {
        font-size: 0.8rem;
    }
    
    .bottom-info-text {
        font-size: 0.85rem;
    }
    
    .info-item {
        gap: 8px;
    }
    
    .bullet {
        font-size: 0.9rem;
    }
}
