/* General variables and setup */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --white: #FFFFFF;
    --goldOne: #C49851;
    --goldTwo: #AD792B;
    --goldThree: #CCA25A;
    --purple: #13043c;
    --gray: #BDBDBD;
}

body {
    font-family: "IBM Plex Sans Thai", sans-serif;
    background-color: var(--purple);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    /* outline: solid 1px red; */
}


/* navbar */
.navbar {
    position: fixed;
    z-index: 999;
    width: 100%;
    top: 56px;
    left: 0;
    transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.navbar.scrolled {
    top: 0;
    background-color: var(--purple);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-con {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-con .logo a img {
    width: 250px;
}

.navbar-con .menu ul {
    display: flex;
}

.navbar-con .menu ul li {
    margin-right: 40px;
    list-style: none;
}

.navbar-con .menu ul li a {
    text-decoration: none;
    color: var(--gray);
    font-size: clamp(10px, 5vw, 16px);
    transition: color 0.3s;
}

.navbar-con .menu ul li a.active {
    color: var(--white);
}


.navbar-con .hello {
    margin-left: 40px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #0d0229;
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    padding: 20px;
}

.mobile-menu-container.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .logo img {
    width: 120px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu-links ul {
    list-style: none;
    padding-top: 20px;
}

.mobile-menu-links ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 18px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


@media (max-width: 1240px) {

    .navbar-con .logo a img {
        width: 80px;
    }

    .navbar-con .logo {
        margin-left: 40px;
    }

    .navbar-con .hello {
        display: none;
    }
}

@media (max-width: 991px) {
    .navbar-con .logo a img {
        width: 120px;
    }

    .navbar {
        top: 20px;
    }
}

@media (max-width: 768px) {

    .navbar {
        top: 20px;
    }

    .navbar-con .logo a img {
        width: 120px;
    }

    .navbar-con .menu,
    .navbar-con .hello {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar-con {
        margin: 0 40px;
    }

    .navbar-con .logo {
        margin-left: -1px;
    }
}



/* Hero */
.hero {
    height: 100vh;
    background-size: cover;
    background-image: url(assets/Hero-BG.png);
    justify-items: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-con .text .welcome-text {
    font-size: 18px;
    background: linear-gradient(to right, rgba(121, 1, 252, 0), #7901fc, rgba(121, 1, 252, 0));
    padding: 5px 30px;
    display: inline-block;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-con .text .title-text {
    font-size: clamp(40px, 5vw, 78px);
    font-weight: bold;
}

.hero-con .text .title-text .text-white {
    color: var(--white);
}

.hero-con .text .title-text .text-color {
    color: var(--goldOne);
    background-image: linear-gradient(45deg, var(--goldOne), var(--goldTwo) 50%, var(--goldThree) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-con .text .desc-text-con {
    width: 85%;
    margin: 0 auto;
}

.hero-con .text .desc-text-con .desc-text {
    font-size: clamp(8px, 4vw, 18px);
    color: var(--white);
}

/* Container for the buttons */
.hero-con .hero-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

/* Common styles for BOTH buttons */
.hero-con .hero-btn a {
    text-decoration: none;
    color: #ffffff;
    padding: 12px 45px;
    border-radius: 5px;
    font-weight: bold;
    /* font-size: 16px; */
    font-size: clamp(8px, 3vw, 16px);
    transition: all 0.3s ease;
}

/* Style for the LEFT button (สมัครสมาชิก) */
.hero-con .hero-btn .btnL {
    background: linear-gradient(to right, #5d0bcb, #7a01fe, #5d0bcb);
    border: 1px solid transparent;
}

/* Style for the RIGHT button (เข้าสู่ระบบ) */
.hero-con .hero-btn .btnR {
    background: transparent;
    border: 1px solid #ffffff;
}

.hero-con .hero-btn .btnL:hover {
    filter: brightness(1.2);
}

.hero-con .hero-btn .btnR:hover {
    background-color: rgba(255, 255, 255, 0.1);
}




/* slider */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 5));
    }
}

.slider {
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    background-image: url(assets/Slider.png);
    background-size: cover;
}

.slider::before,
.slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
}

.slider::before {
    top: 0;
}

.slider::after {
    bottom: 0;
}

.slider-track {
    display: flex;
    width: calc(350px * 10);
    animation: scroll 20s linear infinite;
}

.slider-con {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 350px;
    flex-shrink: 0;
}

.slider-con .logo-img {
    height: 80px;
}

.slider-con .logo-img img {
    width: 80px;
    border-radius: 50%;
}

.slider-con .text p {
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}


/* jinfo section styles */
.jcontent {
    min-height: 100vh;
    background-size: cover;
    background-image: url(assets/Transparent\ BG.png);
    display: flex;
    align-items: center;
    overflow: hidden;
    /* padding: 40px 0; */
}

.jcontent-bg {
    background-size: cover;
    width: 100%;
    background-image: url(assets/Frame\ 52.png);
}

.j-content-con .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.j-content-con .title .text-logo {
    /* font-size: 60px; */
    font-size: clamp(40px, 5vw, 60px);
    text-transform: uppercase;
    font-weight: 500;
    padding: 0 40px;
}

.j-content-con .title .text-logo .text-color {
    color: var(--goldOne);
    background-image: linear-gradient(45deg, var(--goldOne), var(--goldTwo) 50%, var(--goldThree) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.j-content-con .title .text-logo .text-white {
    color: var(--white);
}

.j-content-con .title .title-desc {
    color: var(--white);
    width: 500px;
}

/* --- Banner Layout --- */
.content-jplay {
    margin-bottom: 80px;
    position: relative;
    height: 750px;
    margin-top: 100px;
    outline: solid 1px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    padding: 50px;
    /* overflow: hidden; */
}

.content-jplay .logo-bg {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* right: 430px; */
    right: 220px;
    margin-top: -70px;
    /* outline: solid 1px red; */
}


.content-jplay .logo-bg .img-logo-bg img {
    /* width: 150%; */
    z-index: 888;
    width: auto;
    margin-left: 500px;
    height: auto;
}

.content-jplay .info1,
.content-jplay .info2,
.content-jplay .info3,
.content-jplay .info4 {
    position: absolute;
    color: var(--white);
    width: 40%;
    z-index: 3;
}

.content-jplay .info1 {
    top: 50px;
    left: 50px;
}

.content-jplay .info2 {
    top: 50px;
    right: 50px;
    text-align: right;
}

.content-jplay .info3 {
    bottom: 50px;
    left: 50px;
}

.content-jplay .info4 {
    bottom: 50px;
    right: 50px;
    text-align: right;
}

.title-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.desc-info p {
    font-size: 18px;
    line-height: 1.6;
    color: #f0f0f0;
}

.line-connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.line-connector::before,
.line-connector::after {
    content: '';
    position: absolute;
    background-color: #D8BFD8;
}

.line-1::before {
    width: 1px;
    height: 20%;
    top: 25%;
    left: 25%;
}

.line-1::after {
    width: 25%;
    height: 1px;
    top: 45%;
    left: 25%;
}

.line-2::before {
    width: 1px;
    height: 20%;
    top: 25%;
    right: 25%;
}

.line-2::after {
    width: 25%;
    height: 1px;
    top: 45%;
    right: 25%;
}

.line-3::before {
    width: 1px;
    height: 20%;
    bottom: 25%;
    left: 25%;
}

.line-3::after {
    width: 25%;
    height: 1px;
    bottom: 45%;
    left: 25%;
}

.line-4::before {
    width: 1px;
    height: 20%;
    bottom: 25%;
    right: 25%;
}

.line-4::after {
    width: 25%;
    height: 1px;
    bottom: 45%;
    right: 25%;
}

/* --- Responsive Design --- */


@media (max-width: 1240px) {

    .content-jplay .logo-bg .img-logo-bg {
        /* outline: solid 1px red; */
        height: 500px;
    }

    .content-jplay .logo-bg .img-logo-bg img {
        margin-top: -240px;
        /* height: 100%; */
    }

    .title {
        margin-bottom: 40px;
    }

    .content-jplay {
        height: auto;
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
        margin: 0 40px;
    }

    .line-connector {
        display: none;
    }

    .content-jplay .info1,
    .content-jplay .info2,
    .content-jplay .info3,
    .content-jplay .info4 {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        text-align: center;
    }

    .title-info h2,
    .desc-info p {
        text-align: start;
    }
}

@media (max-width: 991px) {

    .content-jplay .logo-bg .img-logo-bg {
        /* outline: solid 1px red; */
        height: 300px;
    }

    .content-jplay .logo-bg .img-logo-bg img {
        margin-top: -90px;
        margin-right: -170px;
        height: 170%;
    }

    .title {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        margin-bottom: 40px;
    }

    .title .title-desc {
        max-width: 80%;
    }

    .promo-con .title-promo {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .promo-con .title-promo .title-desc-promo {
        width: 80%;
    }




    .faq-con .title-promo {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .faq-con .title-promo .title-desc-promo {
        max-width: 80%;
    }
}

/* promotion */
.promo {
    min-height: 100vh;
    padding: 40px 0;
    background-image: url(assets/BG-3.png);
    background-size: cover;
}

.promo-con .title-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
    /* outline: solid 1px red; */
}

.promo-con .title-promo .text-logo-promo {
    /* font-size: 60px; */
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 500;
    padding: 0 40px;
}

.promo-con .title-promo .text-logo-promo .text-color-promo {
    color: var(--goldOne);
    background-image: linear-gradient(45deg, var(--goldOne), var(--goldTwo) 50%, var(--goldThree) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-con .title-promo .text-logo-promo .text-white-promo {
    color: var(--white);
}

.promo-con .title-promo .title-desc-promo {
    color: var(--white);
    max-width: 500px;
}

/* --- Slider Core Styles --- */
.promo-box {
    overflow: hidden;
    position: relative;
}

.promo-slider-container {
    position: relative;
    width: 100%;
}

.promo-box-warp {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 10px 0;
    min-height: 450px;
}

.promo-box-bg {
    text-decoration: none;
    box-shadow: 0px 10px 100px 21px #13043c;
    /* box-shadow: inset 0px 10px 100px 37px #13043c; */
    height: 210px;
    width: 310px;
}

.bg {
    height: 210px;
    background-image: url(assets/Box.svg);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promp-box-items {
    text-align: center;
}

.promp-box-items .title-text {
    font-size: clamp(8px, 5vw, 12px);
    margin-bottom: -5px;
    color: var(--white);
}

.promp-box-items .title-text h2 {
    font-weight: 500;
}

.promp-box-items .desc-text-promo {
    margin-bottom: -10px;
    /* font-size: 13px; */
    font-size: clamp(8px, 5vw, 13px);
    color: var(--white);
    font-weight: 300;
}

.promp-box-items .gold-text {
    color: var(--goldOne);
    background-image: linear-gradient(45deg, var(--goldOne), var(--goldTwo) 50%, var(--goldThree) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: -10px;
}

.promp-box-items .gold-text h1 {
    /* font-size: 50px; */
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
}

.promp-box-items .promotion-mini-banner {
    font-size: 8px;
    background: linear-gradient(to right, rgba(121, 1, 252, 0), #7901fc, rgba(121, 1, 252, 0));
    padding: 5px 30px;
    display: inline-block;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
}

/* --- Slider Controls --- */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    /* background: #7901fc; */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.prev-btn:hover,
.next-btn:hover {
    background: #5d0bcb;
}

.prev-btn:disabled,
.next-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.prev-btn img,
.next-btn img {
    width: 20px;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4a4a4a;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    padding: 0;
}

.dot.active {
    background-color: #7901fc;
}

/* --- Responsive Slider --- */
@media (max-width: 1045px) {

    .promo-box-bg {
        box-shadow: 0px 10px 100px 21px #13043c;
        /* box-shadow: inset 0px 10px 100px 37px #13043c; */
        /* outline: solid 1px red; */
        height: 150px;
        width: 210px;
    }

    .bg {
        height: 150px;
        background-image: url(assets/Box.svg);
        background-size: cover;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .prev-btn,
    .next-btn {
        position: static;
        transform: none;
        width: 45px;
        height: 45px;
    }

    .prev-btn img,
    .next-btn img {
        width: 18px;
    }

    .slider-controls {
        gap: 20px;
    }
}



/* logo slider */
.logo-slider-section {
    /* padding: 50px 0; */
    overflow-x: hidden;
}

.logo-slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.logo-slider {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}

.logo-banner {
    width: 182px;
    height: 116px;
    background: radial-gradient(circle, #5f02cc, #3d0185);
    position: relative;
    display: inline-block;
    vertical-align: top;
    padding: 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.logo-banner img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-banner .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: white;
    border-style: solid;
}

.logo-banner .tl {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.logo-banner .tr {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
}

.logo-banner .bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
}

.logo-banner .br {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}


/* FAQ */
.faq {
    min-height: 100vh;
    padding: 40px 0;
    background-image: url(assets/BG-4.png);
    background-size: cover;
}


.faq-con .title-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.faq-con .title-promo .text-logo-promo {
    /* font-size: 60px; */
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 500;
    padding: 0 40px;
}

.faq-con .title-promo .text-logo-promo .text-color-promo {
    color: var(--goldOne);
    background-image: linear-gradient(45deg, var(--goldOne), var(--goldTwo) 50%, var(--goldThree) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-con .title-promo .text-logo-promo .text-white-promo {
    color: var(--white);
}

.faq-con .title-promo .title-desc-promo {
    color: var(--white);
    width: 500px;
}


.faq-warp {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-items {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 20px;
}

.faq-text-title h2 {
    font-size: clamp(16px, 5vw, 20px);
    color: var(--white);
    font-weight: 500;
}

.faq-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.faq-toggle-btn img {
    width: 24px;
    height: 24px;
}

.faq-toggle-btn .minus-icon {
    display: none;
}

.faq-text-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out;
}

.faq-text-desc p {
    color: var(--gray);
    font-size: clamp(14px, 5vw, 16px);
    width: 95%;
    line-height: 1.7;
}

/* --- Active State --- */
.faq-items.active .faq-text-desc {
    max-height: 500px;
    padding-top: 15px;
    transition: max-height 0.5s ease-in, padding-top 0.5s ease-in;
}

.faq-items.active .plus-icon {
    display: none;
}

.faq-items.active .minus-icon {
    display: block;
}

/* footer */
.faq-con {
    .footer {
        text-align: center;
        margin: 60px 0 40px 0;

        p {
            color: var(--gray);
            font-weight: 300;
            font-size: clamp(12px, 5vw, 18px);
        }
    }
}