/* Base styles for the page content, considering body background #0A0A0A */
.page-tai-xiu {
    color: #FFF6D6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #0A0A0A; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: #0A0A0A;
    text-align: center;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to maintain aspect ratio */
    overflow: hidden;
}

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

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

.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__description {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 30px;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
    color: #111111; /* Dark text for bright button */
    border: none;
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-tai-xiu__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111;
}

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

.page-tai-xiu__text-block {
    margin-bottom: 20px;
    color: #FFF6D6;
}

.page-tai-xiu__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    object-fit: cover;
}

/* How to Play Section */
.page-tai-xiu__how-to-play-section {
    background-color: #111111; /* Card BG */
    padding: 60px 0;
}

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

.page-tai-xiu__step-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #3A2A12; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure cards are same height */
}

.page-tai-xiu__step-title {
    font-size: 1.5em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__step-description {
    color: #FFF6D6;
    font-size: 1em;
}

.page-tai-xiu__step-description a {
    color: #F2C14E;
    text-decoration: none;
}

.page-tai-xiu__step-description a:hover {
    text-decoration: underline;
}

.page-tai-xiu__btn-centered {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* Strategies Section */
.page-tai-xiu__strategies-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.page-tai-xiu__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-tai-xiu__strategy-card {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.page-tai-xiu__card-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-tai-xiu__card-description {
    color: #FFF6D6;
    flex-grow: 1; /* Pushes content down for consistent card height */
}

/* Why E88 Section */
.page-tai-xiu__why-e88-section {
    background-color: #111111;
    padding: 60px 0;
}

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

.page-tai-xiu__feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Feature icons are content images, must be >= 200x200 */
.page-tai-xiu__feature-icon {
    width: 200px; /* Enforcing min-size */
    height: 200px; /* Enforcing min-size */
    min-width: 200px; 
    min-height: 200px; 
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-tai-xiu__feature-title {
    font-size: 1.3em;
    color: #FFD36B;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-tai-xiu__feature-description {
    color: #FFF6D6;
    font-size: 0.95em;
    flex-grow: 1;
}

.page-tai-xiu__feature-description a {
    color: #F2C14E;
    text-decoration: none;
}

.page-tai-xiu__feature-description a:hover {
    text-decoration: underline;
}

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

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

.page-tai-xiu__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: #F2C14E;
    list-style: none; /* Hide default marker */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate it */
}

.page-tai-xiu__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #FFF6D6;
    border-top: 1px solid #3A2A12;
}

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

.page-tai-xiu__faq-answer a {
    color: #F2C14E;
    text-decoration: none;
}

.page-tai-xiu__faq-answer a:hover {
    text-decoration: underline;
}

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

.page-tai-xiu__cta-bottom-section .page-tai-xiu__container {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12;
    border-radius: 15px;
    padding: 50px 30px;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-title {
    color: #F2C14E;
    margin-top: 0;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__description {
    color: #FFF6D6;
    margin-bottom: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding: 20px 30px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-tai-xiu__section-title {
        font-size: 2em;
    }
}

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

    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Still small padding */
        padding-bottom: 20px;
    }

    .page-tai-xiu__hero-content {
        padding: 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-tai-xiu__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        margin-top: 40px;
    }

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

    .page-tai-xiu__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}