.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background from shared.css is dark, so light text */
}

/* Base container styling */
.page-tai-xiu__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Section titles */
.page-tai-xiu__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #FF8C1A; /* Main color for titles */
    line-height: 1.2;
}

/* Text blocks */
.page-tai-xiu__text-block {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #FFF3E6; /* Text Main */
}

.page-tai-xiu__text-block strong {
    color: #FFB04D; /* Glow color for emphasis */
}

/* Lists */
.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
    margin-bottom: 20px;
    padding-left: 25px;
    color: #FFF3E6; /* Text Main */
}

.page-tai-xiu__ordered-list li,
.page-tai-xiu__unordered-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-tai-xiu__ordered-list li strong,
.page-tai-xiu__unordered-list li strong {
    color: #FFB04D; /* Glow color for emphasis */
}

/* Links within text */
.page-tai-xiu a {
    color: #FFA53A; /* Accent color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tai-xiu a:hover {
    color: #FFB04D; /* Glow on hover */
    text-decoration: underline;
}

/* Buttons */
.page-tai-xiu__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Default for desktop, important for mobile */
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: #FFA53A; /* Accent color for text */
    border: 2px solid #FFA53A; /* Accent color for border */
    box-shadow: 0 2px 10px rgba(255, 165, 58, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #FFA53A;
    color: #0D0E12; /* Dark text on hover for contrast */
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-tai-xiu__button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Image styling */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #0D0E12; /* Background */
}

.page-tai-xiu__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
    flex-wrap: wrap;
}

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* H1 with clamp for responsiveness */
    font-weight: 900;
    color: #FF8C1A; /* Main color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
}

.page-tai-xiu__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tai-xiu__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

/* Intro Section (dark background) */
.page-tai-xiu__intro-section {
    padding: 60px 0;
    background-color: #17191F; /* Card BG */
}
.page-tai-xiu__dark-section {
    background-color: #17191F; /* Card BG */
}


/* How to Play & Strategy Sections */
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__strategy-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.page-tai-xiu__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-tai-xiu__text-content {
    flex: 1 1 55%;
    min-width: 300px;
}

.page-tai-xiu__image-wrapper {
    flex: 1 1 35%;
    min-width: 280px;
    text-align: center;
}

/* Why W188 Section */
.page-tai-xiu__why-w188-section {
    padding: 60px 0;
    background-color: #17191F; /* Card BG */
}

.page-tai-xiu__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C; /* Border color */
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFB04D; /* Glow color */
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes content down */
}

.page-tai-xiu__feature-description {
    font-size: 1em;
    line-height: 1.5;
    color: #FFF3E6; /* Text Main */
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background */
}

.page-tai-xiu__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-tai-xiu__faq-item {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}