.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--site-bg, #F5F7FA); /* Fallback to a light background */
}

.page-tai-xiu__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand color gradient */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

.page-tai-xiu__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

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

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-tai-xiu__hero-description {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-tai-xiu__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

/* General Section Styles */
.page-tai-xiu__content-area {
    padding: 60px 0;
}

.page-tai-xiu__section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #E53935; /* Main brand color */
}

.page-tai-xiu__dark-section {
    background-color: #E53935; /* Main brand color */
    color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
    color: #ffffff;
}

.page-tai-xiu__dark-section p,
.page-tai-xiu__dark-section li {
    color: #f0f0f0;
}

.page-tai-xiu__about-section p,
.page-tai-xiu__how-to-play-section p,
.page-tai-xiu__strategy-section p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

.page-tai-xiu__about-section img,
.page-tai-xiu__strategy-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.page-tai-xiu__list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    padding-left: 0;
}

.page-tai-xiu__list ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.page-tai-xiu__list li {
    margin-bottom: 10px;
}

.page-tai-xiu__list strong {
    color: #FF5A4F; /* Accent color for emphasis */
}

/* Feature Grid */
.page-tai-xiu__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-tai-xiu__dark-section .page-tai-xiu__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.page-tai-xiu__dark-section .page-tai-xiu__feature-item h3 {
    color: #ffffff;
}

.page-tai-xiu__feature-item:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FF5A4F; /* Accent color for titles */
}

.page-tai-xiu__features-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px auto 0;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-tai-xiu__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    margin-top: 40px;
}

.page-tai-xiu__faq-item {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #fdfdfd;
    transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-question:hover {
    background-color: #f5f5f5;
}

.page-tai-xiu__faq-qtext {
    flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53935;
    margin-left: 15px;
    line-height: 1;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: "−"; /* Changed by JS for better control */
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.8;
}

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom-section {
    background-color: #F5F7FA; /* Light background */
    padding: 80px 0;
    text-align: center;
}

.page-tai-xiu__cta-bottom-content .page-tai-xiu__section-title {
    color: #333333;
}

.page-tai-xiu__cta-bottom-content p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: #555555;
}

/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-tai-xiu {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
        gap: 30px;
    }

    .page-tai-xiu__hero-content {
        order: 2; /* Content below image on mobile */
        text-align: center;
    }

    .page-tai-xiu__hero-image {
        order: 1; /* Image above content on mobile */
        padding: 0 15px;
    }

    .page-tai-xiu__main-title {
        font-size: 2rem; /* Adjust H1 for mobile */
        margin-bottom: 15px;
    }

    .page-tai-xiu__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* General Section Styles */
    .page-tai-xiu__content-area {
        padding: 40px 0;
    }

    .page-tai-xiu__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__section-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .page-tai-xiu__about-section p,
    .page-tai-xiu__how-to-play-section p,
    .page-tai-xiu__strategy-section p {
        font-size: 0.95rem;
    }

    /* Images in content areas */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Feature Grid */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 30px;
    }

    .page-tai-xiu__feature-item {
        padding: 20px;
        text-align: center;
    }

    .page-tai-xiu__feature-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
}
}