:root {
    /* Colors matching the screenshots */
    --bg-main: #000000;
    --bg-dark-gray: #111111;
    --gold-solid: #eab308;
    --gold-light: #fef08a;
    --gold-gradient: linear-gradient(180deg, #fdf6cc 0%, #eab308 50%, #ca8a04 100%);

    /* New gold text gradient requested by user */
    --gold-text-gradient: linear-gradient(180deg, #fcf9b1 20%, #fcf9ac 50%, #f3c91a 80%);

    --text-white: #ffffff;
    --text-muted: #d1d5db;
    --border-gold: #b45309;

    /* Typography */
    --font-main: 'Kanit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern resembling the diagonal lines in screenshots */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        linear-gradient(45deg, rgba(234, 179, 8, 0.05) 1px, transparent 1px) 0 0,
        linear-gradient(-45deg, rgba(234, 179, 8, 0.05) 1px, transparent 1px) 0 0;
    background-size: 150px 150px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

/* Utilities */
.gold-text {
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 600;
    font-size: 25px;
}

/* Buttons (matching example screenshots precisely) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 12px;
    /* Rectangular-rounded look */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-xl {
    padding: 14px 50px;
    font-size: 1.3rem;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000000;
    border: 2px solid #ffffff;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.6);
}

.btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.8), 0 0 5px #ffffff;
}

.btn-outline-white {
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold-solid);
    border-color: var(--gold-solid);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

.btn-yellow {
    background-color: var(--gold-solid);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-solid);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: 0.3s;
}

/* Unified Top Theme Wrapper (Hero to Promotions) */
.top-theme-wrapper {
    position: relative;
    background-image: url('https://g2g123.co/wp-content/uploads/2022/01/08.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #0c0c0c;
    overflow: hidden;
}

.top-theme-wrapper::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.05) 55%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.top-theme-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #000000 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Utilities */
.mobile-only {
    display: none;
}

.mobile-break {
    display: inline;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    text-align: center;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.floating-dice {
    position: absolute;
    width: 60px;
    /* Size for mobile */
    animation: float 6s ease-in-out infinite;
    z-index: -1;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.8));
}

.dice-left {
    top: -20px;
    left: 10px;
    transform: rotate(-15deg);
}

.dice-right {
    top: 40px;
    right: 10px;
    transform: rotate(15deg);
    width: 70px;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.hero-main-logo {
    max-width: 350px;
    margin: 0 auto;
    display: block;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* Features Bar */
.features-bar {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(234, 179, 8, 0.15);
    border-bottom: 1px solid rgba(234, 179, 8, 0.15);
    padding: 30px 0;
    position: relative;
    z-index: 5;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.features-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.feature-text h3 {
    margin: 15px 0 5px;
    font-size: 1.1rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-divider {
    display: none;
}

/* Ribbon Menu with custom serve background image */
.ribbon-menu {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('image/background_serve.jpg') no-repeat center center;
    background-size: cover;
    border-bottom: 2px solid var(--gold-solid);
    border-top: 2px solid var(--gold-solid);
    padding: 20px 0;
    margin-bottom: 20px;
}

.ribbon-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.ribbon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.3s;
}

.ribbon-item:hover {
    transform: translateY(-5px);
}

.ribbon-item span {
    margin-top: 5px;
    font-size: 1rem;
    color: var(--gold-solid);
    font-weight: 500;
}

/* Swiper Promotions & Articles */
.promotions-section {
    background: transparent;
}

.swiper {
    width: 100%;
    padding-bottom: 40px;
    /* Space for pagination */
    position: relative;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--gold-solid);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--gold-solid) !important;
}

.split-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px 0;
}

.split-img img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Info Split Section (New) */
.info-split .split-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.info-split .split-row.reverse {
    flex-direction: row-reverse;
}

.info-split .split-img {
    flex: 1;
}

.info-split .split-img img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.info-split .split-text {
    flex: 1;
}

.info-split .split-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-split .split-text p {
    color: var(--text-muted);
    font-weight: 300;
}

/* Content Section (Text paragraphs) */
.content-container {
    max-width: 900px;
}

.h1-style {
    font-size: 2rem;
    line-height: 1.4;
}

.text-content p {
    margin-bottom: 20px;
    color: #d1d5db;
    font-weight: 300;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.faq-item p {
    color: #a1a1aa;
    padding-left: 20px;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.1) 0%, rgba(0, 0, 0, 0) 50%, rgba(234, 179, 8, 0.1) 100%);
    border-top: 1px solid rgba(234, 179, 8, 0.3);
    border-bottom: 1px solid rgba(234, 179, 8, 0.3);
    padding: 50px 0;
    text-align: center;
}

.welcome-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.welcome-box p {
    font-size: 1.2rem;
}

/* Footer & Bank Logos */
.footer {
    padding: 60px 0 30px;
    background: #050505;
}

.footer-badge span {
    display: inline-block;
    background: linear-gradient(117deg, #f3c838, #a76e0b);
    font-size: 28px;
    font-weight: 400;
    border-radius: 6px;
    padding: 0 20px;
}

.bank-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.bank-logos img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background-color: transparent;
    border-radius: 50%;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-bottom img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Lightbox Modal CSS */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.4);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--gold-solid);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
        /* For dice images */
    }

    .mobile-break {
        display: none;
        /* Hide the <br> for mobile text wrapping */
    }

    .nav-container {
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
        order: 1;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .logo {
        order: 2;
        margin-right: auto;
        flex-shrink: 0;
    }

    .logo img {
        height: 25px !important;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: flex;
        order: 3;
        gap: 6px;
        flex-shrink: 0;
    }

    /* New glowing buttons as requested */
    .nav-actions .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 8px;
        border: 2px solid #fff;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        color: #fff;
        white-space: nowrap;
        line-height: 1.2;
    }

    .nav-actions .btn-outline-white {
        background: #1e1e24;
        /* Dark background */
    }

    .nav-actions .btn-gold {
        background: linear-gradient(180deg, #fcd34d 0%, #b45309 100%);
    }

    /* Hero Mobile Updates */
    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 30px;
    }

    .hero-main-logo {
        max-width: 220px;
        filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.3));
    }

    .hero-title {
        font-size: 1.2rem;
        margin-top: 15px;
        color: var(--gold-solid) !important;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        color: #fff !important;
    }

    .hero-buttons .btn-gold {
        padding: 8px 30px;
        font-size: 1.3rem;
        font-weight: bold;
        color: #fcebb6;
        background: rgba(30, 30, 35, 0.8);
        border: 3px solid #fcebb6;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.3);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }

    /* Features Mobile Updates */
    .features-bar {
        background: #0f0f0f;
        padding: 25px 15px;
        border-radius: 20px 20px 0 0;
        margin-top: -15px;
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
        border: none;
        backdrop-filter: none;
        border: 1px solid rgba(234, 179, 8, 0.2);
    }

    .features-grid {
        flex-direction: column;
        gap: 12px;
    }

    .feature-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        /* background: rgba(255, 255, 255, 0.05); */
        /* BOX FRAME */
        /* border: 1px solid rgba(234, 179, 8, 0.2); */
        border-radius: 12px;
        padding: 10px 15px;
        gap: 12px;
    }

    .feature-icon img {
        margin-bottom: 0;
        width: 55px;
        /* Make icon smaller */
        height: 55px;
    }

    .feature-text {
        flex: 1;
        text-align: left;
    }

    .feature-text h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 400;
        color: #fff;
    }

    .feature-divider {
        display: block;
        height: 1px;
        width: 80%;
        background: linear-gradient(90deg, rgba(234, 179, 8, 1) 0%, rgba(234, 179, 8, 0) 100%);
        margin: 5px 0;
    }

    .feature-text p {
        margin: 0;
        color: #a1a1aa;
        font-size: 0.75rem;
    }

    .ribbon-grid {
        gap: 30px;
    }

    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .h1-style {
        font-size: 1.5rem;
    }

    .info-split .split-row,
    .info-split .split-row.reverse {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        max-width: 95%;
    }
}

/* Mobile Sidebar Styles */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #0d0d0d;
    z-index: 2001;
    transition: left 0.3s ease;
    padding-top: 40px;
    border-right: 1px solid rgba(234, 179, 8, 0.2);
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-links a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, color 0.3s;
}

.sidebar-links a:hover {
    color: var(--gold-solid);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-close {
    position: fixed;
    top: 15px;
    left: 265px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2001;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, background 0.3s;
}

.sidebar-close:hover {
    transform: scale(1.1);
    background: #fff;
}

.sidebar-close.active {
    display: flex;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

.section-divider {
    height: 1.5px;
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient(90deg, transparent, #ffe06e 30%, #ffe077 70%, transparent);
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: transparent;
    border: none;
    z-index: 1000;
    padding: 0 10px 5px 10px;
}

.mobile-nav-svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
    /* Adjust to align with bottom nav height */
    z-index: -1;
    width: 2000px;
    /* Large width to cover all screen sizes */
    height: 85px;
    /* 70px height + 15px overlap */
    filter: drop-shadow(0 -2px 10px rgba(0, 0, 0, 0.5));
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Align to bottom */
    padding-bottom: 8px;
    /* Space from bottom edge */
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.75rem;
    flex: 1;
    transition: all 0.3s;
    z-index: 1001;
}

.mobile-bottom-nav .nav-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 5px;
}

.mobile-bottom-nav .nav-item-center {
    flex: 1.2;
    /* Slightly larger flex base to make room for dice */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

@keyframes spin360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mobile-bottom-nav .center-btn {
    position: absolute;
    bottom: 10px;
    /* Float above the cutout */
    width: 80px;
    /* Large dice */
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    border: none;
}

.mobile-bottom-nav .center-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spin360 8s linear infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.8));
}

/* Justified Text Content to match screenshot perfectly */
.text-content p {
    text-align: justify;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
        /* Space for fixed nav */
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        /* Align items at the bottom */
    }
}