/* style/tai-xiu.css */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
}

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

/* HERO Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding as per rules */
    padding-bottom: 40px;
    background-color: #F5F7FA; /* Background */
}

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

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

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

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #333333; /* Text Main */
}

.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #E53935; /* Main color for emphasis */
}

.page-tai-xiu__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333; /* Text Main */
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
    color: #ffffff;
    border: none;
}

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

.page-tai-xiu__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #E53935; /* Main color */
    border: 2px solid #E53935; /* Main color */
}

.page-tai-xiu__btn-secondary:hover {
    background: #E53935; /* Main color */
    color: #ffffff;
    transform: translateY(-2px);
}

.page-tai-xiu__btn-primary--large {
    padding: 16px 32px;
    font-size: 1.1em;
}

/* General Sections */
.page-tai-xiu__section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #E53935; /* Main color */
}

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

.page-tai-xiu__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333; /* Text Main */
}

.page-tai-xiu__text-block--white {
    color: #ffffff;
}

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

/* Intro Section */
.page-tai-xiu__intro-section {
    background-color: #ffffff; /* Card BG */
    padding: 60px 0;
}

/* Features Section */
.page-tai-xiu__features-section {
    background-color: #E53935; /* Main color */
    padding: 60px 0;
}

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

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

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-tai-xiu__feature-description {
    font-size: 0.95em;
    line-height: 1.8;
    color: #f0f0f0;
}

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

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

.page-tai-xiu__guide-step {
    background-color: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #E0E0E0; /* Border */
}

.page-tai-xiu__guide-step:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #E53935; /* Main color */
}

.page-tai-xiu__step-description {
    font-size: 0.95em;
    color: #333333; /* Text Main */
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    background-color: #ffffff; /* Card BG */
    padding: 60px 0;
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333333; /* Text Main */
    cursor: pointer;
    background-color: #ffffff; /* Card BG */
    border-bottom: 1px solid #E0E0E0; /* Border */
    list-style: none;
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
    border-bottom: none;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    color: #E53935; /* Main color */
    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: 15px 25px 20px;
    font-size: 0.95em;
    color: #333333; /* Text Main */
    line-height: 1.7;
    background-color: #F5F7FA; /* Background */
}

/* CTA Bottom Section */
.page-tai-xiu__cta-bottom {
    background-color: #E53935; /* Main color */
    padding: 60px 0;
    text-align: center;
}

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

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

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

/* Mobile responsive styles */
@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding-left: 25px;
        padding-right: 25px;
    }
    .page-tai-xiu__hero-container {
        gap: 30px;
    }
    .page-tai-xiu__hero-content {
        flex: 1 1 45%;
    }
    .page-tai-xiu__hero-image-wrapper {
        flex: 1 1 40%;
    }
    .page-tai-xiu__section-title {
        font-size: 2em;
    }
    .page-tai-xiu__features-grid,
    .page-tai-xiu__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

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

    .page-tai-xiu__container {
        padding: 30px 15px !important;
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-tai-xiu__hero-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        text-align: center;
    }

    .page-tai-xiu__description {
        text-align: center;
        margin-bottom: 25px;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

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

    /* General Section Titles */
    .page-tai-xiu__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    /* Features Section */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
    }

    /* Guide Section */
    .page-tai-xiu__guide-steps {
        grid-template-columns: 1fr;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-list {
        padding: 0 15px;
    }

    /* All images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* All image containers */
    .page-tai-xiu__hero-image-wrapper,
    .page-tai-xiu__content-image,
    .page-tai-xiu__features-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}