.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
    padding-bottom: 40px;
}

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

/* HERO Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column; /* Image block first, then text block */
    align-items: center;
    text-align: center;
    overflow: hidden;
}

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

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

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

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 3.5vw, 3.2rem); /* H1 font-size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FF8C1A; /* Main color for emphasis */
}

.page-tai-xiu__hero-description {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* Buttons */
.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: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #FFF3E6; /* Text Main */
    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%, #A84F0C 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: #FF8C1A; /* Main color */
    border: 2px solid #FF8C1A; /* Border color */
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #FF8C1A;
    color: #FFF3E6;
}

/* Section Titles */
.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #FF8C1A; /* Main color */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.page-tai-xiu__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: #FFA53A; /* Auxiliary color */
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-tai-xiu__highlight {
    color: #FFA53A; /* Auxiliary color for highlights */
    font-weight: 700;
}

.page-tai-xiu__text-link {
    color: #FF8C1A;
    text-decoration: none;
    font-weight: 600;
}

.page-tai-xiu__text-link:hover {
    text-decoration: underline;
}

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

/* Advantages Section */
.page-tai-xiu__advantages-section {
    padding: 40px 0;
}

.page-tai-xiu__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-tai-xiu__card {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF3E6;
}

.page-tai-xiu__card-image {
    width: 100%;
    height: 200px; /* Fixed height for cards, object-fit will ensure no distortion */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure it behaves as a block element */
}

.page-tai-xiu__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFA53A;
    margin-bottom: 10px;
}

.page-tai-xiu__card-text {
    font-size: 1rem;
    color: #FFF3E6;
}

/* Guide Section */
.page-tai-xiu__guide-section {
    padding: 40px 0;
    background-color: #0D0E12;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
    margin-left: 25px;
    margin-bottom: 20px;
    color: #FFF3E6;
}

.page-tai-xiu__ordered-list li,
.page-tai-xiu__unordered-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Bet Types Section */
.page-tai-xiu__bet-types-section {
    padding: 40px 0;
    background-color: #17191F;
}

.page-tai-xiu__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-tai-xiu__promo-card {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #FFF3E6;
}

/* Strategy Section */
.page-tai-xiu__strategy-section {
    padding: 40px 0;
    background-color: #0D0E12;
}

.page-tai-xiu__main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block;
}

/* Promotions Section */
.page-tai-xiu__promotions-section {
    padding: 40px 0;
    background-color: #17191F;
}

.page-tai-xiu__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* App Section */
.page-tai-xiu__app-section {
    padding: 40px 0;
    background-color: #0D0E12;
}

.page-tai-xiu__app-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-tai-xiu__app-text-block {
    flex: 1;
}

.page-tai-xiu__app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tai-xiu__app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 40px 0;
    background-color: #17191F;
}

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

.page-tai-xiu__faq-item {
    background-color: #0D0E12; /* Background */
    border: 1px solid #A84F0C; /* 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: 15px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFA53A; /* Auxiliary color */
    cursor: pointer;
    background-color: #0D0E12;
    list-style: none; /* For details/summary */
}

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

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

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

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

.page-tai-xiu__faq-answer {
    padding: 0 20px 15px;
    font-size: 1rem;
    color: #FFF3E6;
}

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

/* CTA Section */
.page-tai-xiu__cta-section {
    padding: 40px 0;
    text-align: center;
    background-color: #0D0E12;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* --- Responsive Design --- */
/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 0 15px !important; /* Mobile padding */
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 20px !important;
    }

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

    .page-tai-xiu__main-title {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

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

    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Section Titles */
    .page-tai-xiu__section-title {
        font-size: 1.6rem !important;
        margin-bottom: 20px !important;
        padding-top: 20px !important;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.2rem !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }

    .page-tai-xiu__text-block,
    .page-tai-xiu__ordered-list li,
    .page-tai-xiu__unordered-list li {
        font-size: 1rem !important;
    }

    /* Cards and Grids */
    .page-tai-xiu__grid-3-cols,
    .page-tai-xiu__grid-2-cols {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
    }

    .page-tai-xiu__card,
    .page-tai-xiu__promo-card {
        padding: 20px !important;
    }

    .page-tai-xiu__card-image {
        height: 180px !important;
    }

    /* General Images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* App Section */
    .page-tai-xiu__app-content {
        flex-direction: column !important; /* Stack app content vertically */
        gap: 20px !important;
    }

    .page-tai-xiu__app-image-wrapper {
        order: -1; /* Image on top */
    }

    .page-tai-xiu__app-image {
        max-width: 300px !important;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-question {
        font-size: 1rem !important;
        padding: 12px 15px !important;
    }

    .page-tai-xiu__faq-toggle {
        font-size: 1.2rem !important;
    }

    .page-tai-xiu__faq-answer {
        padding: 0 15px 12px !important;
    }

    /* CTA Section */
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}