/* style/tai-xiu.css */

/* General Styles for .page-tai-xiu */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text on light body background #F5F7FA */
    line-height: 1.6;
    background-color: #F5F7FA;
}

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

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

.page-tai-xiu__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

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

.page-tai-xiu__cta-button--secondary:hover {
    background: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-tai-xiu__cta-button--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-tai-xiu__card {
    background: #FFFFFF;
    color: #333333;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    box-sizing: border-box;
}

.page-tai-xiu__dark-section {
    background-color: #E53935;
    color: #ffffff;
}
.page-tai-xiu__dark-section .page-tai-xiu__section-title,
.page-tai-xiu__dark-section .page-tai-xiu__section-description,
.page-tai-xiu__dark-section .page-tai-xiu__strategy-item-title {
    color: #ffffff;
}
.page-tai-xiu__dark-section .page-tai-xiu__cta-button--secondary {
    background: #ffffff;
    color: #E53935;
    border-color: #ffffff;
}
.page-tai-xiu__dark-section .page-tai-xiu__cta-button--secondary:hover {
    background: #FF5A4F;
    color: #ffffff;
    border-color: #FF5A4F;
}

.page-tai-xiu__light-bg {
    background-color: #F5F7FA;
    color: #333333;
}

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

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

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

.page-tai-xiu__hero-title {
    font-size: 3em;
    font-weight: 800;
    color: #E53935;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

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

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

.page-tai-xiu__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Intro Section */
.page-tai-xiu__intro-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

.page-tai-xiu__icon-box-media {
    width: 240px;
    height: 240px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Guide Section & Strategy Section (Content Area styles) */
.page-tai-xiu__guide-section,
.page-tai-xiu__strategy-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-tai-xiu__guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-tai-xiu__guide-step-item {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-tai-xiu__guide-step-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 10px;
}

.page-tai-xiu__guide-step-item p {
    color: #555555;
}

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

.page-tai-xiu__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-tai-xiu__strategy-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark section */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-tai-xiu__strategy-item p {
    color: #f0f0f0;
}

/* Promo Section */
.page-tai-xiu__promo-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-tai-xiu__promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-tai-xiu__promo-card-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-tai-xiu__promo-card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 10px;
}

.page-tai-xiu__promo-card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow and push button down */
}

.page-tai-xiu__view-all-promos {
    text-align: center;
    margin-top: 20px;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
    display: grid;
    gap: 15px;
}

.page-tai-xiu__faq-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-qtext {
    color: #ffffff;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    color: #ffffff;
}

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

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

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

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

.page-tai-xiu__faq-answer {
    padding: 15px 25px 20px;
    background-color: #f9f9f9;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #E0E0E0;
}

/* Bottom CTA Section */
.page-tai-xiu__cta-bottom-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

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

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 25px 15px; /* Adjust padding for mobile */
    }

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

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

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-container {
        flex-direction: column;
        gap: 30px;
        padding: 25px 15px;
    }
    .page-tai-xiu__hero-content {
        max-width: 100%;
        text-align: center;
    }
    .page-tai-xiu__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-tai-xiu__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    .page-tai-xiu__hero-image {
        max-width: 100%;
    }
    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-tai-xiu__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-tai-xiu__hero-cta-buttons .page-tai-xiu__cta-button {
        margin: 0; /* Remove potential margin conflicts */
    }

    /* Intro Section (Feature Grid) */
    .page-tai-xiu__intro-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-tai-xiu__icon-box-media {
        width: 180px; /* Adjust size for mobile, but keep square */
        height: 180px;
        margin-bottom: 15px;
    }
    .page-tai-xiu__feature-title {
        font-size: 1.3em;
    }

    /* Guide Section & Strategy Section */
    .page-tai-xiu__guide-section,
    .page-tai-xiu__strategy-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-tai-xiu__guide-steps {
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .page-tai-xiu__guide-step-item {
        padding: 20px;
    }
    .page-tai-xiu__guide-step-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__strategy-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-tai-xiu__strategy-item {
        padding: 20px;
    }
    .page-tai-xiu__strategy-item-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__content-image {
        margin: 30px auto;
    }

    /* Promo Section */
    .page-tai-xiu__promo-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-tai-xiu__promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .page-tai-xiu__promo-card-image {
        margin-bottom: 15px;
    }
    .page-tai-xiu__promo-card-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__promo-card-text {
        font-size: 0.95em;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-tai-xiu__faq-list {
        margin-top: 30px;
        gap: 10px;
    }
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 1.3em;
    }
    .page-tai-xiu__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }

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

    /* General image responsive override for content images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure all content containers are responsive */
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Button and button container responsive override */
    .page-tai-xiu__cta-button,
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu a[class*="button"],
    .page-tai-xiu a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-tai-xiu__cta-buttons,
    .page-tai-xiu__button-group,
    .page-tai-xiu__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* For vertical stacking of CTA buttons */
    }
}