.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #F3F8FF; /* Text Main for dark background */
    background-color: transparent; /* Body background from shared.css */
}

.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top margin, body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #1D5FD1 0%, #113B7A 100%);
    color: #F3F8FF;
}

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

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

.page-tai-xiu__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold */
}

.page-tai-xiu__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #F3F8FF;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #F3F8FF;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-secondary {
    background: #10233F; /* Card BG */
    color: #F3F8FF;
    border: 2px solid #244D84; /* Border */
}

.page-tai-xiu__btn-secondary:hover {
    background: #1B3357; /* Divider */
    border-color: #4FA8FF; /* Glow */
}

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

.page-tai-xiu__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-tai-xiu__dark-section {
    background-color: #10233F; /* Card BG */
    padding: 60px 0;
    color: #F3F8FF;
}

.page-tai-xiu__about-taixiu-section,
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__why-888to-section,
.page-tai-xiu__cta-bottom-section {
    padding: 60px 0;
    background-color: transparent;
}

.page-tai-xiu__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Gold */
    line-height: 1.3;
}

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

.page-tai-xiu__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: #AFC4E8; /* Text Secondary */
}

.page-tai-xiu__text-block strong {
    color: #F3F8FF;
}

.page-tai-xiu__text-block a {
    color: #4FA8FF; /* Glow */
    text-decoration: underline;
}

.page-tai-xiu__image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-tai-xiu__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__step-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-tai-xiu__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2C14E; /* Gold */
}

.page-tai-xiu__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #AFC4E8; /* Text Secondary */
}

.page-tai-xiu__tips-list,
.page-tai-xiu__benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    color: #AFC4E8; /* Text Secondary */
}

.page-tai-xiu__tips-list li,
.page-tai-xiu__benefits-list li {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #F2C14E; /* Gold */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.05rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__tips-list li strong,
.page-tai-xiu__benefits-list li strong {
    color: #F3F8FF;
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__faq-item {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F3F8FF; /* Text Main */
    cursor: pointer;
    background-color: #113B7A;
    border-bottom: 1px solid #1B3357; /* Divider */
    list-style: none; /* Hide default marker */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #F2C14E; /* Gold */
    margin-left: 15px;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: '−';
}

.page-tai-xiu__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #AFC4E8; /* Text Secondary */
    background-color: #10233F;
}

.page-tai-xiu__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__cta-buttons {
    justify-content: center;
}

/* General image responsiveness */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-tai-xiu__hero-container {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .page-tai-xiu__hero-content,
    .page-tai-xiu__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-tai-xiu__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        text-align: center;
    }

    .page-tai-xiu__hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu a[class*="button"],
    .page-tai-xiu a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__cta-buttons,
    .page-tai-xiu__button-group,
    .page-tai-xiu__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-tai-xiu__about-taixiu-section,
    .page-tai-xiu__how-to-play-section,
    .page-tai-xiu__tips-section,
    .page-tai-xiu__why-888to-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__cta-bottom-section {
        padding: 40px 0;
    }

    .page-tai-xiu__container {
        padding: 0 15px;
    }

    .page-tai-xiu__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-tai-xiu__text-block,
    .page-tai-xiu__step-description,
    .page-tai-xiu__tips-list li,
    .page-tai-xiu__benefits-list li,
    .page-tai-xiu__faq-answer p {
        font-size: 0.95rem;
    }

    .page-tai-xiu__step-item {
        padding: 25px;
    }

    .page-tai-xiu__step-title {
        font-size: 1.25rem;
    }

    .page-tai-xiu__tips-list,
    .page-tai-xiu__benefits-list {
        margin: 20px auto;
    }

    .page-tai-xiu__tips-list li,
    .page-tai-xiu__benefits-list li {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1.05rem;
    }

    .page-tai-xiu__faq-toggle {
        font-size: 1.5rem;
    }

    .page-tai-xiu__faq-answer {
        padding: 15px 20px;
    }

    /* General image responsiveness for content images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tai-xiu__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}