/* ========================================= */
/* --- แก้ไข Footer ให้กลับมาสวยเนี้ยบ --- */
/* ========================================= */
footer { 
    background-color: #0a0f18 !important; 
    color: white !important; 
    padding: 50px 10% !important; 
}
.footer-content { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    max-width: 1200px !important; 
    margin: 0 auto !important; 
}
.footer-left { 
    display: flex !important; 
    align-items: center !important; 
    gap: 25px !important; 
}
.footer-logo img { 
    width: 80px !important; 
    height: 80px !important; 
    object-fit: contain !important; 
    background-color: white !important; 
    border-radius: 50% !important; 
    padding: 4px !important; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important; 
    margin: 0 !important; /* บังคับไม่ให้ภาพโลโก้มีขอบล้น */
}
.footer-text { 
    text-align: left !important; 
}
.footer-text p { 
    margin: 5px 0 !important; 
    font-size: 15px !important; 
    color: #cbd5e1 !important; 
    line-height: 1.4 !important;
}
.footer-text strong { 
    color: #ffffff !important; 
    font-size: 18px !important; 
    letter-spacing: 0.5px !important; 
}
.footer-social { 
    display: flex !important; 
    gap: 15px !important; 
    align-items: center !important;
}
.footer-social a { 
    color: white !important; 
    transition: transform 0.3s ease !important; 
    display: inline-block !important; 
}
.footer-social a:hover { 
    transform: translateY(-3px) !important; 
}
.footer-social svg { 
    width: 36px !important; 
    height: 36px !important; 
    transition: color 0.3s !important; 
}
.footer-social svg:hover { 
    color: #1877F2 !important; 
}
.footer-play-badge { 
    width: 120px !important; 
    margin-left: 10px !important;
}

/* รองรับมือถือ (Mobile Responsive) สำหรับ Footer */
@media (max-width: 768px) {
    .footer-content { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 30px !important; 
    }
    .footer-left { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 15px !important; 
    }
    .footer-text { 
        text-align: center !important; 
    }
    .footer-social { 
        flex-direction: column !important; 
        gap: 20px !important; 
        justify-content: center !important; 
        width: 100% !important; 
    }
    .footer-play-badge { 
        margin-left: 0 !important; 
    }
}
/* จัดทรงปุ่มเปลี่ยนภาษาของ Polylang ให้เข้ากับดีไซน์เดิม */
.pll-lang-list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; text-transform: uppercase; font-size: 14px; }
.pll-lang-list li a { color: inherit; text-decoration: none; opacity: 0.6; transition: 0.3s; }
.pll-lang-list li.current-lang a { font-weight: 600; opacity: 1; color: #e63946 !important; }
.pll-lang-list li a:hover { opacity: 1; }

header:not(.scrolled):not(.menu-open) .nav-wrapper .pll-lang-list li a { color: white; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
body.subpage header .nav-wrapper .pll-lang-list li a { color: var(--text-main); text-shadow: none; }

.mobile-menu .pll-lang-list { font-size: 20px; }
.mobile-menu .pll-lang-list li a { color: var(--text-main); text-shadow: none; }
/* ========================================= */
/* --- แก้ไขรูปบุคลากรหน้า About --- */
/* ========================================= */
.team-img {
    color: transparent !important; /* ซ่อนคำว่า Staff ที่ล้นออกมา */
    position: relative;
    background-color: var(--icon-bg) !important;
}
.team-img::before {
    content: '👤';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: var(--text-light);
    background-color: var(--icon-bg);
    z-index: 1;
}
/* ========================================= */
/* --- จัดปุ่มภาษาและธีม (เอาธีมไว้ด้านล่าง) --- */
/* ========================================= */
.mobile-menu .controls-group {
    display: flex !important;
    flex-direction: column !important; /* สั่งให้จัดเรียงแบบบนลงล่าง */
    justify-content: center !important;
    align-items: center !important;
    gap: 25px !important; /* ระยะห่างระหว่าง TH EN กับ ไอคอนพระอาทิตย์ */
    width: 100% !important;
    margin-top: 15px !important;
    padding-bottom: 50px !important; /* ดันปุ่มให้ลอยขึ้นหนีปุ่มแชทสีม่วง */
}

.mobile-menu .pll-lang-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 15px !important; /* ระยะห่างระหว่าง TH กับ EN */
}

.mobile-menu .theme-toggle {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important; /* ขยายไอคอนให้กดง่ายขึ้น */
    cursor: pointer;
}