/* style/tai-xiu.css */

/* General styles for .page-tai-xiu scope */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333);
    background-color: var(--color-background, #F5F7FA);
}

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

.page-tai-xiu__content-area--center {
    text-align: center;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main, #333333);
    line-height: 1.2;
}

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

.page-tai-xiu__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-main, #333333);
}

.page-tai-xiu__section-description--light {
    color: #f0f0f0;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Crucial: Small top padding assuming body handles --header-offset */
    padding-bottom: 60px;
    background: var(--color-background, #F5F7FA);
}

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

.page-tai-xiu__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--text-main, #333333);
}

.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-main, #333333);
}

.page-tai-xiu__description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.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.1em;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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%);
    transform: translateY(-2px);
}

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

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

.page-tai-xiu__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-tai-xiu__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Intro Section (Module 1 - 3 columns with circular images) */
.page-tai-xiu__intro-section {
    padding: 80px 0;
    background: var(--card-bg, #ffffff);
}

.page-tai-xiu__feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.page-tai-xiu__feature-item {
    flex: 1 1 30%;
    max-width: 350px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-tai-xiu__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #E53935;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main, #333333);
}

.page-tai-xiu__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-tai-xiu__guide-section {
    padding: 80px 0;
    background: var(--color-background, #F5F7FA);
}

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

.page-tai-xiu__guide-step-item {
    background: var(--card-bg, #ffffff);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.page-tai-xiu__guide-step-number {
    font-size: 2.5em;
    font-weight: 900;
    color: #FF5A4F;
    margin-bottom: 15px;
}

.page-tai-xiu__guide-step-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main, #333333);
}

.page-tai-xiu__guide-step-text {
    font-size: 1em;
    color: #555555;
}

.page-tai-xiu__guide-image-wrapper {
    text-align: center;
}

.page-tai-xiu__guide-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Features Detail Section */
.page-tai-xiu__features-detail-section {
    padding: 80px 0;
    background: #E53935;
    color: #ffffff;
}

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

.page-tai-xiu__feature-detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-tai-xiu__feature-detail-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-tai-xiu__feature-detail-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-tai-xiu__feature-image-wrapper {
    text-align: center;
}

.page-tai-xiu__feature-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
}

/* Tips Section */
.page-tai-xiu__tips-section {
    padding: 80px 0;
    background: var(--card-bg, #ffffff);
}

.page-tai-xiu__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 900px;
}

.page-tai-xiu__tip-item {
    background: var(--color-background, #F5F7FA);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-left: 5px solid #FF5A4F;
}

.page-tai-xiu__tip-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main, #333333);
}

.page-tai-xiu__tip-text {
    font-size: 1em;
    color: #555555;
}

.page-tai-xiu__tips-image-wrapper {
    text-align: center;
}

.page-tai-xiu__tips-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 80px 0;
    background: var(--color-background, #F5F7FA);
}

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

.page-tai-xiu__faq-item {
    background: var(--card-bg, #ffffff);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main, #333333);
    list-style: none;
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question {
    background: #f8f8f8;
    color: #E53935;
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    font-weight: 900;
    color: #E53935;
    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;
    font-size: 1em;
    color: #555555;
}

/* Bottom CTA Section */
.page-tai-xiu__cta-bottom-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}

/* Universal image responsive styles */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tai-xiu__hero-content {
        order: 2;
    }
    .page-tai-xiu__hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-tai-xiu__description {
        font-size: 1.1em;
    }
    .page-tai-xiu__feature-item {
        flex: 1 1 45%;
        max-width: none;
    }
    .page-tai-xiu__icon-box-media {
        width: 200px;
        height: 200px;
    }
    .page-tai-xiu__guide-image,
    .page-tai-xiu__feature-image,
    .page-tai-xiu__tips-image {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-container {
        padding: 20px 15px;
        gap: 20px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        text-align: center;
    }
    .page-tai-xiu__description {
        font-size: 1em;
        text-align: center;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }
    .page-tai-xiu__hero-image {
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-side-image {
        border-radius: 8px;
    }

    /* Module 1 (Intro Section) */
    .page-tai-xiu__intro-section {
        padding: 40px 0;
    }
    .page-tai-xiu__content-area {
        padding: 20px 15px;
    }
    .page-tai-xiu__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-tai-xiu__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-tai-xiu__feature-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-tai-xiu__feature-item {
        max-width: 100%;
    }
    .page-tai-xiu__icon-box-media {
        width: 180px !important;
        height: 180px !important;
        margin-bottom: 15px;
    }
    .page-tai-xiu__feature-title {
        font-size: 1.3em;
    }

    /* Guide Section */
    .page-tai-xiu__guide-section {
        padding: 40px 0;
    }
    .page-tai-xiu__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    .page-tai-xiu__guide-step-item {
        padding: 25px;
    }
    .page-tai-xiu__guide-step-number {
        font-size: 2em;
    }
    .page-tai-xiu__guide-image-wrapper {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-tai-xiu__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    /* Features Detail Section */
    .page-tai-xiu__features-detail-section {
        padding: 40px 0;
    }
    .page-tai-xiu__feature-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    .page-tai-xiu__feature-detail-item {
        padding: 25px;
    }
    .page-tai-xiu__feature-image-wrapper {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-tai-xiu__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    /* Tips Section */
    .page-tai-xiu__tips-section {
        padding: 40px 0;
    }
    .page-tai-xiu__tips-list {
        margin-bottom: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__tip-item {
        padding: 20px;
        border-radius: 8px;
        border-left-width: 4px;
    }
    .page-tai-xiu__tips-image-wrapper {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-tai-xiu__tips-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-section {
        padding: 40px 0;
    }
    .page-tai-xiu__faq-list {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__faq-item {
        border-radius: 8px;
    }
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 1.3em;
    }
    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px;
    }

    /* Bottom CTA Section */
    .page-tai-xiu__cta-bottom-section {
        padding: 40px 0;
    }

    /* Universal image responsive styles */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Exclude circular image from height: auto override */
    .page-tai-xiu__icon-box-media img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    .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;
    }
}