/* General Resets and Base Styles */

:root {


    --main-bg: #212121;             /* Dark grey for main background */

    --header-bg: #323232;           /* Slightly lighter grey for header */

    --element-bg: #2b2b2b;          /* Darker grey for cards/sections */

    --footer-bg: #1c1c1c;           /* Even darker grey for footer */

    --main-text-color: #ffffff;     /* White for main text */

    --secondary-text-color: #bbbbbb;/* Light grey for subtle text */

    --primary-accent-color: #e8268c;/* Vibrant Pink/Magenta for highlights/buttons */

    --primary-accent-color-light: #ff40a8; /* Lighter ppaink for hover */

    --secondary-accent-bg: #c02073; /* Darker pink for certain backgrounds (if needed) */

    --border-color: #3d3d3d;        /* Subtle border for cards */



    --section-padding-y: 60px; /* Vertical padding for sections */

    --container-max-width: 1200px;

}



* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    /* CHANGED: Prioritize 'Kanit' for Thai language support */

    font-family: 'Kanit', 'Poppins', 'Noto Sans SC', sans-serif;

    background-color: var(--main-bg);

    color: var(--main-text-color);

    line-height: 1.6;

    overflow-x: hidden;

}



body.no-scroll {

    overflow: hidden;

}



.container {

    max-width: var(--container-max-width);

    margin: 0 auto;

    padding: 0 20px;

}



a {

    text-decoration: none;

    color: inherit;

}



ul {

    list-style: none;

}



section {

    padding: var(--section-padding-y) 0;

    position: relative;

    z-index: 1;

}



h1, h2, h3 {

    color: var(--main-text-color);

    font-weight: 600; /* Kanit looks better with slightly less bold weight */

    margin-bottom: 20px;

}



h1 {

    font-size: 3.2rem; /* Adjusted for Thai readability */

    line-height: 1.3;

    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);

}

h2 {

    font-size: 2.4rem; /* Adjusted for Thai */

    margin-top: 30px;

    text-align: center;

}

h3 {

    font-size: 1.5rem;

}



p.section-description {

    font-size: 1.1rem;

    text-align: center;

    margin-bottom: 40px;

    max-width: 800px;

    margin-left: auto;

    margin-right: auto;

    color: var(--secondary-text-color);

}



/* Buttons */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 15px 35px; /* Adjusted padding */

    border-radius: 50px;

    font-weight: 500; /* Adjusted font weight for Kanit */

    transition: all 0.3s ease;

    cursor: pointer;

    border: none;

    font-size: 1.1rem;

    letter-spacing: 0.5px;

    /* text-transform: uppercase; Removed for better Thai typography */

}



.btn-primary {

    background-color: var(--primary-accent-color);

    color: var(--main-text-color);

    box-shadow: 0 8px 25px rgba(232, 38, 140, 0.5);

}



.btn-primary:hover {

    background-color: var(--primary-accent-color-light);

    box-shadow: 0 10px 30px rgba(255, 64, 168, 0.7);

    transform: translateY(-3px);

}



.btn-secondary {

    background-color: transparent;

    color: var(--primary-accent-color);

    border: 2px solid var(--primary-accent-color);

    box-shadow: 0 5px 15px rgba(232, 38, 140, 0.2);

}



.btn-secondary:hover {

    background-color: var(--primary-accent-color);

    color: var(--main-text-color);

    box-shadow: 0 8px 20px rgba(232, 38, 140, 0.4);

    transform: translateY(-3px);

}



/* Header */

header {

    background-color: var(--header-bg);

    padding: 15px 0;

    position: sticky;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);

}



.header-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    max-width: 1400px;

}



.logo {

    display: flex;

    align-items: center;

    height: 40px;

}



.header-logo-img {

    height: 100%;

    width: auto;

    max-width: 180px;

}



/* DESKTOP NAV */

.main-nav {

    display: flex; /* Default to flex for desktop */

}

.main-nav ul {

    display: flex;

    gap: 30px;

}



.main-nav ul li a {

    color: var(--main-text-color);

    font-weight: 400;

    font-size: 1.05rem;

    transition: color 0.3s ease;

}



.main-nav ul li a:hover {

    color: var(--primary-accent-color);

}



/* Desktop auth buttons */

.auth-buttons-desktop {

    display: flex; /* Default to flex for desktop */

    gap: 15px;

    margin-left: 30px; /* Space from nav links */

}

.auth-buttons-desktop .btn {

    padding: 10px 25px;

    font-size: 1rem;

    text-transform: capitalize;

}



/* Mobile specific elements (hidden by default on desktop) */

.menu-toggle {

    display: none; /* Hidden by default on desktop */

    font-size: 1.8rem;

    color: var(--primary-accent-color);

    cursor: pointer;

    z-index: 1001;

}



.auth-buttons-mobile {

    display: none; /* Crucial: Hidden by default (on desktop and when mobile nav is collapsed) */

    flex-direction: column;

    gap: 15px;

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid rgba(232,38,140,0.2);

    align-items: center;

}

.auth-buttons-mobile .btn {

    width: 80%;

    padding: 15px 0;

}





/* Hero Section */

.hero-section {

    padding-top: 0;

    min-height: auto;

    background: var(--main-bg);

    position: relative;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

}



.hero-image-full-width {

    width: 100%;

    overflow: hidden;

    padding-bottom: 30%; /* Default aspect ratio for wide banners on desktop */

    position: relative;

    background-color: var(--element-bg);

}

.hero-main-image {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    filter: drop-shadow(0 0 15px rgba(232, 38, 140, 0.3));

}



.hero-text-content-below {

    padding-top: 40px;

    padding-bottom: 60px;

    z-index: 1;

    text-align: center;

}



.hero-text-content-below h1 {

    font-size: 2.8rem;

    margin-bottom: 20px;

    color: var(--main-text-color);

    text-align: center;

}



.hero-text-content-below p {

    font-size: 1.1rem;

    margin-bottom: 35px;

    color: var(--secondary-text-color);

    max-width: 800px;

    margin-left: auto;

    margin-right: auto;

    text-align: center;

}



.hero-ctas {

    display: flex; /* Ensured display flex is active */

    gap: 20px;

    justify-content: center;

}



.hero-ctas .btn-play,

.hero-ctas .btn-register {

    padding: 15px 35px;

    font-size: 1rem;

    border-radius: 8px;

    text-transform: capitalize;

}



.hero-ctas .btn-play {

    background-color: var(--primary-accent-color);

    color: var(--main-text-color);

    box-shadow: 0 5px 15px rgba(232, 38, 140, 0.4);

}

.hero-ctas .btn-play:hover {

    background-color: var(--primary-accent-color-light);

    box-shadow: 0 8px 20px rgba(255, 64, 168, 0.6);

}



.hero-ctas .btn-register {

    background-color: transparent;

    color: var(--primary-accent-color);

    border: 2px solid var(--primary-accent-color);

    box-shadow: 0 3px 10px rgba(232, 38, 140, 0.2);

}

.hero-ctas .btn-register:hover {

    background-color: var(--primary-accent-color);

    color: var(--main-text-color);

    box-shadow: 0 5px 15px rgba(232, 38, 140, 0.4);

}





/* About Section */

.about-section {

    background-color: var(--element-bg);

    padding: var(--section-padding-y) 0;

}



.about-container {

    display: flex;

    align-items: center;

    gap: 60px;

}



.about-text-content {

    flex: 1;

    text-align: left;

    padding-right: 30px;

}



.about-signup-content {

    text-align: center;

    padding: 20px;

    border-radius: 15px;

}



.about-signup-content .icon {

    font-size: 3rem;

    margin-bottom: 15px;

    color: var(--primary-accent-color);

}



.about-signup-content h2 {

    font-size: 2.2rem;

    margin-bottom: 15px;

    color: var(--main-text-color);

    text-align: center;

}



.about-signup-content p {

    font-size: 1.05rem;

    line-height: 1.6;

    text-align: center;

    margin-bottom: 25px;

    color: var(--secondary-text-color);

    max-width: 600px;

    margin-left: auto;

    margin-right: auto;

}



.btn-about-signup {

    display: inline-flex;

    margin-top: 10px;

}



.about-image-content {

    flex: 0 0 45%;

    text-align: center;

    position: relative;

}



.about-main-image {

    max-width: 100%;

    height: auto;

    filter: drop-shadow(0 0 20px rgba(232, 38, 140, 0.3));

}





/* Games Section */

.games-section {

    background-color: var(--main-bg);

    padding: var(--section-padding-y) 0;

}



.games-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 20px;

    margin-top: 40px;

}



.clickable-card {

    display: block;

    cursor: pointer;

    text-decoration: none;

    color: inherit;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.game-card {

    background-color: var(--element-bg);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    position: relative;

    padding-bottom: 60%; /* Aspect ratio for desktop/larger screens */

    height: 0;

    display: block;

}



.game-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(232, 38, 140, 0.2);

}



.game-card img {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    object-fit: cover; /* RESTORED to cover for filling effect */

    display: block;

    filter: brightness(0.95);

    transition: filter 0.3s ease;

}

.game-card:hover img {

    filter: brightness(1.05);

}





/* FAQ Section */

.faq-section {

    background-color: var(--element-bg);

    padding: var(--section-padding-y) 0;

}



.faq-accordion {

    max-width: 900px;

    margin: 0 auto;

}



.faq-item {

    background-color: var(--main-bg);

    border-radius: 8px;

    margin-bottom: 12px;

    overflow: hidden;

    border: 1px solid var(--border-color);

}



.faq-question {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 18px 25px;

    cursor: pointer;

    font-size: 1.1rem;

    font-weight: 500;

    color: var(--main-text-color);

    transition: background-color 0.3s ease;

}



.faq-question:hover {

    background-color: #2a2a2a;

}



.faq-question .icon {

    font-size: 1.2rem;

    color: var(--primary-accent-color);

    transition: transform 0.3s ease;

}



.faq-item.active .faq-question .icon {

    transform: rotate(45deg);

}



.faq-answer {

    padding: 0 25px 20px;

    font-size: 1rem;

    color: var(--secondary-text-color);

    display: none;

    line-height: 1.7;

}



.faq-item.active .faq-answer {

    display: block;

    border-top: 1px solid rgba(255,255,255,0.05);

}





/* Footer specific styles */

footer {

    background-color: var(--footer-bg);

    padding: 50px 0 20px;

    text-align: center;

    font-size: 0.9rem;

    color: var(--secondary-text-color);

    border-top: 1px solid rgba(232, 38, 140, 0.1);

}



.footer-grid-layout {

    display: grid;

    grid-template-columns: 1.5fr repeat(3, 1fr);

    gap: 25px;

    text-align: left;

    margin-bottom: 30px;

    align-items: flex-start;

}



.footer-column {

    padding: 0 10px;

}



.footer-column .footer-logo {

    color: var(--main-text-color);

    font-size: 1.5rem;

    font-weight: 700;

    letter-spacing: 1px;

    display: block;

    margin-bottom: 15px;

}



.footer-column p {

    font-size: 0.9rem;

    line-height: 1.6;

    color: var(--secondary-text-color);

    text-align: left;

    margin-bottom: 20px;

}



.social-icons {

    display: flex;

    gap: 12px;

    margin-top: 15px;

}



.social-icons a {

    color: var(--secondary-text-color);

    font-size: 1.3rem;

    transition: color 0.3s ease, transform 0.3s ease;

}



.social-icons a:hover {

    color: var(--primary-accent-color);

    transform: translateY(-2px);

}



.footer-column .footer-title {

    font-size: 1.1rem;

    color: var(--main-text-color);

    margin-bottom: 20px;

    text-align: left;

    position: relative;

    font-weight: 600;

    text-transform: uppercase;

}



.footer-column .footer-title::after {

    content: '';

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 40px;

    height: 2px;

    background-color: var(--primary-accent-color);

}



.footer-img-list {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 15px;

    align-items: center;

    justify-content: flex-start;

}



.footer-img-list img,

.footer-img-list svg {

    max-height: 30px;

    width: auto;

    max-width: 100%;

}



.footer-img-list img {

    filter: grayscale(0%) brightness(1) contrast(1);

    opacity: 0.7;

    transition: all 0.3s ease;

}



.footer-img-list img:hover {

    filter: grayscale(0%) brightness(1);

    opacity: 1;

}



.footer-img-list svg {

    vertical-align: middle;

}

.footer-img-list svg path {

    fill: #777;

    transition: fill 0.3s ease;

}

.footer-img-list a:hover svg path {

    fill: var(--primary-accent-color);

}





.footer-bottom-text {

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.05);

    font-size: 0.85rem;

}



/* Responsive adjustments */

@media (max-width: 992px) {

    .container {

        padding: 0 20px;

    }

    h1 { font-size: 2.5rem; }

    h2 { font-size: 2rem; margin-top: 30px; }



    /* Header - Mobile Menu */

    .header-content {

        justify-content: space-between;

        flex-wrap: nowrap;

    }

    .logo {

        margin-right: auto;

        height: 35px;

    }

    .header-logo-img {

        max-width: 140px;

    }

    .menu-toggle {

        display: block;

        padding: 10px;

    }

    .main-nav {

        display: none; /* Hidden by default, shown by JS when active */

        position: fixed;

        top: 0;

        left: 0;

        width: 100%;

        height: 100vh;

        background-color: rgba(20, 20, 20, 0.98);

        flex-direction: column;

        align-items: center;

        justify-content: flex-start;

        padding-top: 80px;

        z-index: 999;

        overflow-y: auto;

        transition: opacity 0.3s ease, transform 0.3s ease;

        opacity: 0;

        transform: translateX(100%);

    }

    .main-nav.active {

        display: flex; /* Show nav when active */

        opacity: 1;

        transform: translateX(0);

    }



    .menu-toggle {

        z-index: 1000;

    }



    .main-nav ul {

        flex-direction: column;

        gap: 20px;

        width: 100%;

        padding: 0 30px;

    }

    .main-nav ul li {

        margin: 0;

        width: 100%;

        text-align: center;

        border-bottom: 1px solid rgba(255,255,255,0.05);

    }

    .main-nav ul li:last-child {

        border-bottom: none;

    }

    .main-nav ul li a {

        padding: 15px 0;

        display: block;

        font-size: 1.3rem;

        font-weight: 500;

    }



    .auth-buttons-desktop {

        display: none; /* Hide desktop buttons on tablet/mobile */

    }



    .auth-buttons-mobile {

        display: flex; /* Show mobile buttons when main-nav is active */

        flex-direction: column;

        gap: 15px;

        margin-top: 30px;

        padding: 30px;

        width: 100%;

    }

    .auth-buttons-mobile .btn {

        width: 100%;

        padding: 15px 0;

        font-size: 1.1rem;

    }





    /* Hero section adjustment */

    .hero-image-full-width {

        padding-bottom: 50%;

    }

    .hero-text-content-below {

        padding-top: 30px;

        padding-bottom: 50px;

    }

    .hero-text-content-below h1 {

        font-size: 2.2rem;

    }

    .hero-text-content-below p {

        font-size: 1rem;

        max-width: 90%;

    }

    .hero-ctas {

        flex-direction: column;

        align-items: center;

        width: 100%;

        max-width: 300px;

        margin: 0 auto;

    }

    .hero-ctas .btn {

        width: 100%;

    }





    /* About section adjustment */

    .about-container {

        flex-direction: column;

        gap: 40px;

        text-align: center;

    }

    .about-text-content,

    .about-image-content {

        flex: none;

        width: 100%;

        padding: 0;

    }

    .about-text-content h2,

    .about-text-content p {

        text-align: center;

    }

    .about-signup-content h2 {

        font-size: 2rem;

    }

    .about-text-content .btn-join-now,

    .btn-about-signup {

        display: block;

        margin-left: auto;

        margin-right: auto;

        width: 100%;

        max-width: 300px;

    }

    .about-main-image {

        max-width: 80%;

        margin: 0 auto;

        display: block;

    }



    /* Games section adjustments */

    .games-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 15px;

    }

    .game-card {

        padding-bottom: 70%; /* Aspect ratio for tablet game cards, more vertical content */

    }





    /* Footer Responsive Adjustments for Tablets */

    .footer-grid-layout {

        grid-template-columns: 1fr 1fr;

        gap: 30px;

        padding-bottom: 20px;

    }

    .footer-column {

        padding: 0;

        margin-bottom: 20px;

    }

    .footer-column.brand-info {

        grid-column: 1 / -1;

        text-align: center;

    }

    .footer-column.brand-info p,

    .footer-column.brand-info .footer-logo {

        text-align: center;

        margin-left: auto;

        margin-right: auto;

    }

    .footer-column.brand-info .social-icons {

        justify-content: center;

    }



    .footer-column p,

    .footer-column .footer-title {

        text-align: left;

    }

    .footer-img-list {

        justify-content: flex-start;

    }

}



@media (max-width: 576px) {

    h1 { font-size: 2rem; }

    h2 { font-size: 1.6rem; }

    .section-description { font-size: 1rem; margin-bottom: 30px; }



    .header-logo-img {

        max-width: 120px;

    }



    /* Hero section adjustment for very small screens */

    .hero-image-full-width {

        padding-bottom: 70%;

    }

    .hero-text-content-below h1 {

        font-size: 1.8rem;

    }

    .hero-text-content-below p {

        font-size: 0.95rem;

        max-width: 95%;

    }

    .hero-ctas .btn {

        width: 90%;

    }



    /* Games section adjustments */

    .games-grid {

        grid-template-columns: 1fr;

        gap: 15px;

        max-width: 320px;

        margin-left: auto;

        margin-right: auto;

    }

    .game-card {

        padding-bottom: 65%; /* Adjusted for single column on smallest mobile */

    }



    /* FAQ adjustments */

    .faq-question {

        padding: 15px 20px;

        font-size: 1rem;

    }

    .faq-answer {

        padding: 0 20px 15px;

    }



    /* Footer Responsive Adjustments for Mobile */

    .footer-grid-layout {

        grid-template-columns: 1fr;

        gap: 30px;

        text-align: center;

    }

    .footer-column {

        padding: 0;

        margin-bottom: 0;

    }

    .footer-column + .footer-column {

        margin-top: 30px;

    }

    .footer-column p,

    .footer-column .footer-title {

        text-align: center;

    }

    .footer-column .footer-logo {

        margin-left: auto;

        margin-right: auto;

    }

    .footer-column .footer-title::after {

        left: 50%;

        transform: translateX(-50%);

    }

    .social-icons,

    .footer-img-list {

        justify-content: center;

    }

}