:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg-color: #17191F;
    --background-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

/* Placeholder for homepage-specific modules, adapted with page prefix for compliance */
.page-tai-xiu-luat-choi__home-content {
    border: 1px solid var(--border-color, #A84F0C);
    border-radius: 10px;
    padding: 20px;
    margin: 40px auto;
    max-width: 1200px;
    background-color: var(--card-bg-color, #17191F);
    color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu-luat-choi__row-games,
.page-tai-xiu-luat-choi__row-sport,
.page-tai-xiu-luat-choi__row-coop {
    background-color: var(--background-color, #0D0E12);
    padding: 40px 20px;
    max-width: 1330px;
    margin: 0 auto;
}

.page-tai-xiu-luat-choi__games-title,
.page-tai-xiu-luat-choi__sport-title,
.page-tai-xiu-luat-choi__coop-title {
    color: var(--text-main-color, #FFF3E6);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.page-tai-xiu-luat-choi__slider-wrapper {
    overflow: hidden;
    margin: 30px 0;
}

.page-tai-xiu-luat-choi__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 10px; /* For potential scrollbar */
}

.page-tai-xiu-luat-choi__game-slide {
    flex: 0 0 200px;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-tai-xiu-luat-choi__banner-item img {
    
    
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.page-tai-xiu-luat-choi__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-tai-xiu-luat-choi__blog-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 30px;
}

.page-tai-xiu-luat-choi__blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background-color: var(--card-bg-color, #17191F);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.page-tai-xiu-luat-choi__blog-card-link:hover {
    transform: translateY(-5px);
}

.page-tai-xiu-luat-choi__btn-outline {
    margin-top: auto;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color, #FF8C1A);
    border-radius: 5px;
    color: var(--primary-color, #FF8C1A);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-tai-xiu-luat-choi__btn-outline:hover {
    background-color: var(--primary-color, #FF8C1A);
    color: #ffffff;
}

.page-tai-xiu-luat-choi__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding-bottom: 10px;
}

.page-tai-xiu-luat-choi__blog-slide {
    flex: 0 0 calc(33.333% - 14px); /* Approx 3 items with gap */
    max-width: calc(33.333% - 14px);
}


/* Main page styles */
.page-tai-xiu-luat-choi {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF3E6); /* Default text color for dark background */
    background-color: var(--background-color, #0D0E12); /* Main background color */
}

.page-tai-xiu-luat-choi__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-tai-xiu-luat-choi__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--background-color, #0D0E12);
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
}

.page-tai-xiu-luat-choi__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-tai-xiu-luat-choi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-tai-xiu-luat-choi__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-tai-xiu-luat-choi__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--text-main-color, #FFF3E6);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-tai-xiu-luat-choi__description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-main-color, #FFF3E6);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu-luat-choi__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for mobile */
}

.page-tai-xiu-luat-choi__cta-buttons--single {
    max-width: 400px; /* For single button rows */
}

.page-tai-xiu-luat-choi__btn-primary,
.page-tai-xiu-luat-choi__btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 250px; /* Max width for individual buttons */
}

.page-tai-xiu-luat-choi__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-tai-xiu-luat-choi__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
}

.page-tai-xiu-luat-choi__btn-secondary {
    background-color: transparent;
    color: var(--primary-color, #FF8C1A);
    border: 2px solid var(--border-color, #A84F0C);
}

.page-tai-xiu-luat-choi__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    color: #FFB04D;
    border-color: #FFB04D;
}

/* General Sections */
.page-tai-xiu-luat-choi__introduction-section,
.page-tai-xiu-luat-choi__how-to-play-section,
.page-tai-xiu-luat-choi__conclusion-section {
    padding: 60px 0;
    background-color: var(--background-color, #0D0E12); /* Dark background */
    color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu-luat-choi__rules-section,
.page-tai-xiu-luat-choi__strategy-section,
.page-tai-xiu-luat-choi__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg-color, #17191F); /* Card background for contrast */
    color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu-luat-choi__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--primary-color, #FF8C1A);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.page-tai-xiu-luat-choi__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFA53A 0%, #D96800 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-tai-xiu-luat-choi__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--secondary-color, #FFA53A);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu-luat-choi__text-block {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu-luat-choi__highlight {
    color: var(--glow-color, #FFB04D);
    font-weight: bold;
}

.page-tai-xiu-luat-choi__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu-luat-choi__list li {
    margin-bottom: 8px;
}

.page-tai-xiu-luat-choi__image-wrapper {
    text-align: center;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-tai-xiu-luat-choi__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* FAQ Section */
.page-tai-xiu-luat-choi__faq-list {
    margin-top: 30px;
}

.page-tai-xiu-luat-choi__faq-item {
    background-color: var(--card-bg-color, #17191F);
    border: 1px solid var(--border-color, #A84F0C);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu-luat-choi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.15rem;
    cursor: pointer;
    background-color: rgba(255, 140, 26, 0.1);
    color: var(--secondary-color, #FFA53A);
    list-style: none; /* Hide default marker */
}

/* Hide default details marker for Webkit browsers */
.page-tai-xiu-luat-choi__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-tai-xiu-luat-choi__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-tai-xiu-luat-choi__faq-item[open] .page-tai-xiu-luat-choi__faq-toggle {
    transform: rotate(45deg); /* Change to X when open */
}

.page-tai-xiu-luat-choi__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-main-color, #FFF3E6);
}

.page-tai-xiu-luat-choi__faq-answer p {
    margin-bottom: 0;
}


/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    /* Homepage placeholders mobile adjustments */
    .page-tai-xiu-luat-choi__home-content {
        height: auto;
        overflow-y: visible;
        margin: 20px auto;
        padding: 15px;
    }
    .page-tai-xiu-luat-choi__row-games,
    .page-tai-xiu-luat-choi__row-sport,
    .page-tai-xiu-luat-choi__row-coop {
        padding: 20px 0; /* Padding handled by container */
    }
    .page-tai-xiu-luat-choi__games-title,
    .page-tai-xiu-luat-choi__sport-title,
    .page-tai-xiu-luat-choi__coop-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .page-tai-xiu-luat-choi__slider-track {
        overflow-x: auto; /* Enable horizontal scroll for games */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
    .page-tai-xiu-luat-choi__game-slide {
        flex: 0 0 160px;
        max-width: 160px;
        scroll-snap-align: start;
    }
    .page-tai-xiu-luat-choi__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns for mobile */
        gap: 8px;
        padding: 10px 0;
    }
    .page-tai-xiu-luat-choi__banner-item img {
         /* Smaller size for mobile banners */
        
    }
    .page-tai-xiu-luat-choi__blog-masonry {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 15px;
    }
    .page-tai-xiu-luat-choi__blog-slide {
        flex: 0 0 100%; /* Single slide width */
        max-width: 100%;
    }
    .page-tai-xiu-luat-choi__blog-slider-track {
        overflow-x: auto; /* Enable horizontal scroll for blog slider */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    /* Main page mobile styles */
    .page-tai-xiu-luat-choi {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-tai-xiu-luat-choi__container {
        padding: 15px;
    }

    /* Hero Section */
    .page-tai-xiu-luat-choi__hero-section {
        padding-top: 10px; /* Still small top padding */
        padding-bottom: 30px;
    }

    .page-tai-xiu-luat-choi__hero-image-wrapper {
        max-height: 300px; /* Adjust height for mobile */
        margin-bottom: 15px;
    }

    .page-tai-xiu-luat-choi__main-title {
        font-size: 2rem; /* Specific font size for mobile H1 */
        margin-bottom: 10px;
    }

    .page-tai-xiu-luat-choi__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-tai-xiu-luat-choi__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-tai-xiu-luat-choi__btn-primary,
    .page-tai-xiu-luat-choi__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1rem;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Sections */
    .page-tai-xiu-luat-choi__introduction-section,
    .page-tai-xiu-luat-choi__how-to-play-section,
    .page-tai-xiu-luat-choi__conclusion-section,
    .page-tai-xiu-luat-choi__rules-section,
    .page-tai-xiu-luat-choi__strategy-section,
    .page-tai-xiu-luat-choi__faq-section {
        padding: 40px 0;
    }

    .page-tai-xiu-luat-choi__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-tai-xiu-luat-choi__sub-title {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-tai-xiu-luat-choi__text-block,
    .page-tai-xiu-luat-choi__list li {
        font-size: 0.95rem;
    }

    .page-tai-xiu-luat-choi__image-wrapper {
        margin: 20px 0;
    }

    .page-tai-xiu-luat-choi__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure all image containers are responsive */
    .page-tai-xiu-luat-choi__hero-image-wrapper,
    .page-tai-xiu-luat-choi__image-wrapper,
    .page-tai-xiu-luat-choi__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* FAQ Section */
    .page-tai-xiu-luat-choi__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-tai-xiu-luat-choi__faq-answer {
        padding: 0 20px 15px;
    }
}