.page-tai-xiu {
    color: #F3F8FF; /* Text Main for dark background */
    background-color: #08162B; /* Deep Navy from shared.css */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #08162B;
}

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

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

.page-tai-xiu__hero-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(16, 35, 63, 0.8); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: -100px; /* Overlap slightly for visual effect, but not over the image */
    border: 1px solid #244D84; /* Border color */
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* H1 font size with clamp */
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-tai-xiu__hero-description {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    width: 100%;
}

.page-tai-xiu__btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    display: inline-block;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
    text-align: center;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

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

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Gold */
    border: 2px solid #F2C14E; /* Gold */
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #F2C14E; /* Gold */
    color: #113B7A; /* Main color */
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
    min-width: 200px;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-tai-xiu__section-description {
    font-size: 1.1em;
    color: #AFC4E8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__why-choose-us {
    background-color: #10233F; /* Card BG */
    border-bottom: 1px solid #1B3357; /* Divider */
}

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

.page-tai-xiu__feature-item {
    background-color: #08162B; /* Deep Navy */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #244D84; /* Border color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    color: #4FA8FF; /* Glow */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__feature-text {
    color: #AFC4E8; /* Text Secondary */
    font-size: 1em;
}

.page-tai-xiu__section-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

.page-tai-xiu__how-to-play .page-tai-xiu__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tai-xiu__content-block {
    background-color: #10233F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #244D84; /* Border color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.page-tai-xiu__content-block p {
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-tai-xiu__content-subtitle {
    font-size: 1.6em;
    color: #F2C14E; /* Gold */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-tai-xiu__text-link:hover {
    color: #2B73F6; /* Brighter blue */
}

.page-tai-xiu__promotions {
    background-color: #10233F; /* Card BG */
    border-top: 1px solid #1B3357; /* Divider */
}

.page-tai-xiu__promo-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-tai-xiu__promo-item {
    background-color: #08162B; /* Deep Navy */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #244D84; /* Border color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__promo-title {
    font-size: 1.4em;
    color: #4FA8FF; /* Glow */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-tai-xiu__promo-text {
    color: #AFC4E8; /* Text Secondary */
    font-size: 0.95em;
}

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

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    color: #F3F8FF; /* Text Main */
    font-weight: bold;
    cursor: pointer;
    background-color: #113B7A; /* Main color */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-question:hover {
    background-color: #1D5FD1; /* Auxiliary color */
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
    padding: 15px 25px 20px 25px;
    background-color: #10233F; /* Card BG */
    color: #AFC4E8; /* Text Secondary */
    font-size: 1em;
    border-top: 1px solid #244D84; /* Border color */
}

.page-tai-xiu__faq-answer p {
    margin: 0;
}

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

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

/* --- Mobile responsiveness --- */
@media (max-width: 768px) {
    .page-tai-xiu__section {
        padding: 40px 15px;
    }

    .page-tai-xiu__container {
        padding: 0; /* Remove horizontal padding as sections already have it */
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Small top padding */
        min-height: auto;
    }

    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 10px;
    }

    .page-tai-xiu__hero-title {
        font-size: 2em; /* Smaller H1 for mobile */
        margin-bottom: 10px;
    }

    .page-tai-xiu__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100%; /* Ensure container takes full width */
        box-sizing: border-box;
    }

    .page-tai-xiu__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__btn-center {
        width: 100%;
        min-width: unset;
        margin-left: 0;
        margin-right: 0;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8em; /* Smaller section titles */
        margin-bottom: 30px;
    }

    /* Why Choose Us Section */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

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

    .page-tai-xiu__feature-title {
        font-size: 1.3em;
    }

    .page-tai-xiu__feature-text {
        font-size: 0.9em;
    }

    /* How to Play & Strategies Sections */
    .page-tai-xiu__content-block {
        padding: 20px;
    }

    .page-tai-xiu__content-subtitle {
        font-size: 1.4em;
    }

    /* Promotions Section */
    .page-tai-xiu__promo-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-tai-xiu__promo-item {
        padding: 20px;
    }

    .page-tai-xiu__promo-title {
        font-size: 1.2em;
    }

    .page-tai-xiu__promo-text {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-tai-xiu__faq-toggle {
        font-size: 1.3em;
    }

    .page-tai-xiu__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.95em;
    }

    /* General image and container responsiveness for mobile */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Override min-width for mobile */
        min-height: unset !important; /* Override min-height for mobile */
    }
    
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container,
    .page-tai-xiu__hero-content-wrapper,
    .page-tai-xiu__content-block,
    .page-tai-xiu__feature-item,
    .page-tai-xiu__promo-item,
    .page-tai-xiu__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Ensure content is not glued to edges */
        padding-right: 15px; /* Ensure content is not glued to edges */
    }
}