/* General styles for .page-tai-xiu */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #FFF3E6; /* Text Main */
    background-color: var(--site-bg, #0D0E12); /* Body background from shared, fallback to custom */
}

.page-tai-xiu__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-tai-xiu__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFB04D; /* Glow color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-tai-xiu__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    color: #FFF3E6;
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6; /* Text Main */
    border: none;
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #E07B1A 100%);
    transform: translateY(-2px);
}

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

.page-tai-xiu__btn-secondary:hover {
    background-color: #FF8C1A;
    color: #FFF3E6;
    transform: translateY(-2px);
}

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

.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HERO Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #0D0E12; /* Background */
}

.page-tai-xiu__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 16px;
}

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Clamp for H1 */
    font-weight: 800;
    color: #FFB04D; /* Glow */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-tai-xiu__hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-tai-xiu__hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.page-tai-xiu__hero-image img {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

.page-tai-xiu__dark-section {
    background-color: #17191F; /* Card BG */
    color: #FFF3E6;
}

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

.page-tai-xiu__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-tai-xiu__icon-box-media {
    width: 200px; /* Fixed width/height for square */
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FF8C1A; /* Main color border */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.5); /* Glow */
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.page-tai-xiu__feature-title {
    font-size: 1.6rem;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
}

.page-tai-xiu__feature-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF3E6;
}

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

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

.page-tai-xiu__step-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.page-tai-xiu__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-tai-xiu__step-title {
    font-size: 1.5rem;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
}

.page-tai-xiu__step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFF3E6;
    margin-bottom: 20px;
}

.page-tai-xiu__step-item img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Strategy Section */
.page-tai-xiu__strategy-section {
    padding: 80px 0;
    background-color: #17191F; /* Card BG */
}

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

.page-tai-xiu__strategy-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.page-tai-xiu__strategy-card img {
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-tai-xiu__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #FFF3E6;
}

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

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

.page-tai-xiu__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFB04D; /* Glow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for summary */
}

.page-tai-xiu__faq-item summary::-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.5rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 15px;
    color: #FF8C1A; /* Main color */
}

.page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: #FFF3E6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding-top: 15px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tai-xiu__hero-content {
        text-align: center;
    }
    .page-tai-xiu__cta-buttons {
        justify-content: center;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-tai-xiu__section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-container {
        padding: 20px 15px; /* Adjust padding for mobile */
        gap: 30px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* More restrained on mobile */
    }
    .page-tai-xiu__hero-description {
        font-size: 1rem;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Intro Section (Module 1) */
    .page-tai-xiu__intro-section {
        padding: 60px 0;
    }
    .page-tai-xiu__content-area {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__section-title {
        font-size: 1.8rem;
    }
    .page-tai-xiu__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-tai-xiu__icon-box-media {
        width: 150px; /* Maintain square, slightly smaller */
        height: 150px;
        border: 2px solid #FF8C1A;
    }
    .page-tai-xiu__feature-title {
        font-size: 1.3rem;
    }
    .page-tai-xiu__feature-text {
        font-size: 0.9rem;
    }

    /* Guide Section */
    .page-tai-xiu__guide-section {
        padding: 60px 0;
    }
    .page-tai-xiu__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 30px;
    }
    .page-tai-xiu__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .page-tai-xiu__step-title {
        font-size: 1.3rem;
    }
    .page-tai-xiu__step-text {
        font-size: 0.9rem;
    }

    /* Strategy Section */
    .page-tai-xiu__strategy-section {
        padding: 60px 0;
    }
    .page-tai-xiu__strategy-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
    }
    .page-tai-xiu__card-title {
        font-size: 1.25rem;
    }
    .page-tai-xiu__card-text {
        font-size: 0.9rem;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-section {
        padding: 60px 0;
    }
    .page-tai-xiu__faq-list {
        margin-top: 30px;
    }
    .page-tai-xiu__faq-item summary {
        padding: 15px;
        font-size: 1rem;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 1.3rem;
    }
    .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95rem;
    }

    /* Universal image and container responsiveness for mobile */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container,
    .page-tai-xiu__feature-item,
    .page-tai-xiu__step-item,
    .page-tai-xiu__strategy-card,
    .page-tai-xiu__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Specific for button containers to ensure wrapping/stacking */
    .page-tai-xiu__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}