.page-tai-xiu {
    color: var(--color-text-main, #FFF3E6); /* Text Main */
    background: var(--color-background, #0D0E12); /* Background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, not --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.page-tai-xiu__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability, not color change */
}

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #FFF3E6;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFB04D; /* Glow */
    text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-tai-xiu__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #FFF3E6;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button max-width */
    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, var(--color-auxiliary, #FFA53A) 0%, var(--color-deep-orange, #D96800) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-deep-orange, #D96800) 0%, var(--color-auxiliary, #FFA53A) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: #FFB04D; /* Glow */
    border: 2px solid #FFB04D; /* Glow */
    box-shadow: 0 0 10px rgba(255, 176, 77, 0.3);
}

.page-tai-xiu__btn-secondary:hover {
    background: #FFB04D; /* Glow */
    color: #0D0E12; /* Background */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 176, 77, 0.5);
}

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

.page-tai-xiu__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #FFB04D; /* Glow */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 176, 77, 0.3);
}

.page-tai-xiu__introduction-section,
.page-tai-xiu__how-to-play-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__why-daga6789-section,
.page-tai-xiu__cta-section,
.page-tai-xiu__faq-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 140, 26, 0.2); /* Main color with transparency */
}

.page-tai-xiu__introduction-section:last-of-type,
.page-tai-xiu__faq-section:last-of-type {
    border-bottom: none;
}

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

.page-tai-xiu__text-block:last-child {
    margin-bottom: 0;
}

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

.page-tai-xiu__card,
.page-tai-xiu__feature-card {
    background: var(--color-card-bg, #17191F); /* Card BG */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border, #A84F0C); /* Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__card:hover,
.page-tai-xiu__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__card-image,
.page-tai-xiu__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 140, 26, 0.3); /* Main color with transparency */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-tai-xiu__card-title,
.page-tai-xiu__feature-title {
    font-size: 1.5rem;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__card-text,
.page-tai-xiu__feature-text {
    font-size: 1rem;
    color: #FFF3E6; /* Text Main */
    text-align: justify;
}

.page-tai-xiu__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.page-tai-xiu__card-list li {
    font-size: 1rem;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.page-tai-xiu__card-list li::before {
    content: '•';
    color: #FF8C1A; /* Main color */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

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

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

.page-tai-xiu__strategy-item {
    background: var(--color-card-bg, #17191F); /* Card BG */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border, #A84F0C); /* Border */
}

.page-tai-xiu__strategy-title {
    font-size: 1.4rem;
    color: #FFB04D; /* Glow */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__strategy-text {
    font-size: 1rem;
    color: #FFF3E6; /* Text Main */
    text-align: justify;
}

.page-tai-xiu__faq-list {
    margin-top: 30px;
}

.page-tai-xiu__faq-item {
    background: var(--color-card-bg, #17191F); /* Card BG */
    border: 1px solid var(--color-border, #A84F0C); /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-tai-xiu__faq-item[open] {
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.2);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFB04D; /* Glow */
    cursor: pointer;
    background: rgba(255, 140, 26, 0.1); /* Main color with transparency */
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    list-style: none; /* Hide default summary marker */
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
    border-bottom-color: var(--color-border, #A84F0C); /* Border */
    background: rgba(255, 140, 26, 0.2);
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #FFB04D; /* Glow */
    transition: transform 0.3s ease;
}

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

.page-tai-xiu__faq-question::after {
    content: '+'; /* Custom marker */
    font-size: 1.5rem;
    line-height: 1;
    color: #FFB04D; /* Glow */
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question::after {
    content: '-';
}

.page-tai-xiu__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #FFF3E6; /* Text Main */
    text-align: justify;
}

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

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

    .page-tai-xiu__description {
        font-size: 1.1rem;
    }

    .page-tai-xiu__container {
        padding: 30px 20px;
    }

    .page-tai-xiu__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

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

    .page-tai-xiu__strategy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* General content area containers */
    .page-tai-xiu__container,
    .page-tai-xiu__hero-section,
    .page-tai-xiu__introduction-section,
    .page-tai-xiu__how-to-play-section,
    .page-tai-xiu__strategy-section,
    .page-tai-xiu__why-daga6789-section,
    .page-tai-xiu__cta-section,
    .page-tai-xiu__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* All images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All buttons */
    .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 !important;
        padding-right: 15px !important;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }

    /* Button containers */
    .page-tai-xiu__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-tai-xiu__hero-section {
        min-height: 400px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

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

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

    .page-tai-xiu__section-title {
        font-size: 1.8rem; /* Specific font size for mobile H2 */
        margin-bottom: 30px;
    }

    .page-tai-xiu__content-grid,
    .page-tai-xiu__feature-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-tai-xiu__card,
    .page-tai-xiu__feature-card {
        padding: 20px;
    }

    .page-tai-xiu__card-image,
    .page-tai-xiu__feature-image {
        max-height: 200px;
    }

    .page-tai-xiu__card-title,
    .page-tai-xiu__feature-title {
        font-size: 1.3rem;
    }

    .page-tai-xiu__strategy-grid {
        grid-template-columns: 1fr; /* Single column for strategy items */
        gap: 20px;
    }

    .page-tai-xiu__strategy-title {
        font-size: 1.3rem;
    }

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

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