.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: #333333;
    background-color: #F5F7FA;
    line-height: 1.6;
}

.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Adjusted to 10px as per shared.css body padding */
    padding-bottom: 40px;
    background-color: #F5F7FA;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-tai-xiu__hero-content {
    max-width: 900px;
    padding: 20px 15px;
    margin-top: -80px; /* Pull content slightly over image for visual appeal */
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
}

.page-tai-xiu__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-tai-xiu__description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    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: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 300px; /* Limit individual button width */
    width: 100%; /* Ensure width takes full space if needed */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-tai-xiu__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-tai-xiu__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.2);
}

.page-tai-xiu__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    box-sizing: border-box;
}

.page-tai-xiu__section:first-of-type {
    margin-top: 30px; /* Space after hero section */
}

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

.page-tai-xiu__sub-title {
    font-size: 1.8em;
    color: #FF5A4F;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__content-block p,
.page-tai-xiu__content-block li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333333;
}

.page-tai-xiu__content-block ul,
.page-tai-xiu__content-block ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-tai-xiu__content-block ol li {
    list-style-type: decimal;
}

.page-tai-xiu__content-block ul li {
    list-style-type: disc;
}

.page-tai-xiu__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Specific Styles */
.page-tai-xiu__faq-list {
    margin-top: 30px;
}

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-tai-xiu__faq-question:hover {
    background-color: #f0f0f0;
}

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

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

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

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #555555;
    line-height: 1.5;
}

/* Conclusion Section */
.page-tai-xiu__conclusion .page-tai-xiu__cta-buttons {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-content {
        margin-top: -60px;
    }

    .page-tai-xiu__main-title {
        font-size: 2.8em;
    }

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

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

    .page-tai-xiu__sub-title {
        font-size: 1.6em;
    }

    .page-tai-xiu__content-block p,
    .page-tai-xiu__content-block li {
        font-size: 1em;
    }

    .page-tai-xiu__faq-question {
        font-size: 1.1em;
    }
}

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

    .page-tai-xiu__hero-section {
        flex-direction: column;
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

    .page-tai-xiu__hero-image {
        object-fit: contain !important; /* Mobile: contain to avoid cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-tai-xiu__hero-content {
        margin-top: -40px; /* Adjust for smaller screens */
        padding: 15px;
        max-width: calc(100% - 30px);
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Clamp for responsive H1 */
        margin-bottom: 10px;
    }

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

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

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .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;
        padding-right: 15px;
        margin-bottom: 20px;
    }

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

    .page-tai-xiu__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
    }

    .page-tai-xiu__content-block p,
    .page-tai-xiu__content-block li {
        font-size: 0.95em;
    }

    .page-tai-xiu__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    /* FAQ Mobile */
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-tai-xiu__faq-toggle {
        font-size: 1.3em;
    }

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