:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --background-color-page: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --light-text-color: #f0f0f0;
    --dark-text-color: #333333;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for the page, assuming dark body background */
    background-color: var(--background-color-page);
}

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

.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top spacing as body handles main header offset */
    background-color: var(--background-color-page);
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.page-tai-xiu__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-tai-xiu__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--background-color-page);
    position: relative;
    z-index: 1;
    color: var(--text-main-color);
}

.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-tai-xiu__hero-description {
    font-size: clamp(1em, 1.5vw, 1.3em);
    color: var(--light-text-color);
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-tai-xiu__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: var(--card-bg);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: var(--card-bg);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

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

.page-tai-xiu__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-tai-xiu__intro-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__guide-section,
.page-tai-xiu__cta-section {
    background-color: var(--background-color-page);
    padding: 80px 0;
    color: var(--text-main-color);
}

.page-tai-xiu__rules-section,
.page-tai-xiu__benefits-section,
.page-tai-xiu__faq-section {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    padding: 80px 0;
    color: var(--light-text-color);
}

/* Ensure titles in dark sections are light, and in light sections are dark */
.page-tai-xiu__dark-bg .page-tai-xiu__section-title {
    color: var(--secondary-color);
}

.page-tai-xiu__light-bg .page-tai-xiu__section-title {
    color: var(--secondary-color);
}

.page-tai-xiu__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

.page-tai-xiu__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-tai-xiu__text-block a:hover {
    color: var(--secondary-color);
}

.page-tai-xiu__image-content-block {
    text-align: center;
    margin: 40px 0;
}

.page-tai-xiu__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-tai-xiu__grid-rules,
.page-tai-xiu__strategy-grid,
.page-tai-xiu__benefits-grid,
.page-tai-xiu__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--light-text-color);
}

.page-tai-xiu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-tai-xiu__card-text {
    font-size: 1em;
    line-height: 1.5;
    color: inherit;
}

.page-tai-xiu__benefit-item .page-tai-xiu__card-title,
.page-tai-xiu__step-card .page-tai-xiu__card-title {
    color: var(--primary-color);
}

.page-tai-xiu__step-card {
    position: relative;
    padding-top: 50px;
}

.page-tai-xiu__step-number {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--card-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid var(--border-color);
    box-shadow: 0 0 15px var(--glow-color);
}

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

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

.page-tai-xiu__faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-text-color);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: #1a1a1a; /* Slightly lighter dark for question background */
    list-style: none;
}

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

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

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

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--light-text-color);
}

.page-tai-xiu__cta-content {
    text-align: center;
    color: var(--text-main-color);
}

.page-tai-xiu__cta-content .page-tai-xiu__section-title {
    margin-bottom: 20px;
}

.page-tai-xiu__cta-content .page-tai-xiu__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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