:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg-color: #FFFFFF;
    --background-general: #F5F7FA;
    --text-main-color: #333333;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color);
    background-color: var(--background-general);
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Relies on body padding-top from shared.css */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
}

.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-tai-xiu__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-tai-xiu__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

.page-tai-xiu__btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-tai-xiu__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Content Sections */
.page-tai-xiu__content-section {
    padding: 60px 0;
}

.page-tai-xiu__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-tai-xiu__section-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
    color: #ffffff;
}

.page-tai-xiu__sub-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__sub-title {
    color: var(--secondary-color);
}

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

.page-tai-xiu__text-block strong {
    font-weight: bold;
    color: var(--primary-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__text-block strong {
    color: var(--secondary-color);
}

.page-tai-xiu__highlight {
    color: var(--primary-color);
    font-weight: bold;
}
.page-tai-xiu__dark-section .page-tai-xiu__highlight {
    color: var(--secondary-color);
}

.page-tai-xiu__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-tai-xiu__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-tai-xiu__list-item strong {
    color: var(--primary-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__list-item strong {
    color: var(--secondary-color);
}

/* Images */
.page-tai-xiu__image-wrapper {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-tai-xiu__image-caption {
    font-size: 0.9em;
    color: #666666;
    margin-top: 10px;
}

.page-tai-xiu__dark-section .page-tai-xiu__image-caption {
    color: #cccccc;
}

/* Feature Grid */
.page-tai-xiu__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__feature-card {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-main-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__feature-card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-tai-xiu__feature-icon {
    width: 200px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
}

.page-tai-xiu__feature-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__feature-title {
    color: var(--secondary-color);
}

.page-tai-xiu__feature-description {
    font-size: 0.95em;
    color: var(--text-main-color);
}

.page-tai-xiu__dark-section .page-tai-xiu__feature-description {
    color: #f0f0f0;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--primary-color);
    list-style: none;
}

.page-tai-xiu__faq-item > summary::-webkit-details-marker,
.page-tai-xiu__faq-item > summary::marker {
  display: none;
}

.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);
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main-color);
    text-align: justify;
}

.page-tai-xiu__faq-answer p {
    margin-top: 10px;
}

.page-tai-xiu__dark-section .page-tai-xiu__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__faq-question {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
}

/* Bottom CTA */
.page-tai-xiu__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

/* Links inside content */
.page-tai-xiu a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.page-tai-xiu__dark-section a {
    color: var(--secondary-color);
}

.page-tai-xiu__dark-section a:hover {
    color: #ffffff;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding: 0 15px;
    }

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

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

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

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Top Section & CTA */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

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

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

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* 2. Single Column Article Container */
    .page-tai-xiu__content-section {
        padding: 40px 0;
    }

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

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

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

    .page-tai-xiu__text-block,
    .page-tai-xiu__list-item,
    .page-tai-xiu__feature-description,
    .page-tai-xiu__faq-answer p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* 3. General Images and Figure */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-tai-xiu__image-wrapper {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-tai-xiu__image-caption {
        font-size: 0.85em;
    }

    /* Feature cards adjustments */
    .page-tai-xiu__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-tai-xiu__feature-icon {
        width: 150px;
        height: auto;
    }

    .page-tai-xiu__feature-title {
        font-size: 1.2em;
    }

    /* 4. Buttons and Button Containers */
    .page-tai-xiu__button-group,
    .page-tai-xiu__btn-container {
        display: flex;
        flex-direction: column !important;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 5. FAQ Section */
    .page-tai-xiu__faq-list {
        margin-top: 20px;
    }

    .page-tai-xiu__faq-item {
        margin-bottom: 10px;
    }

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

    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-tai-xiu__cta-bottom {
        padding: 40px 0;
    }
}