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

.page-tai-xiu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tai-xiu__hero-section {
    padding-top: 10px; /* Adjusted to 10px as per instruction */
    padding-bottom: 40px;
    text-align: center;
    background-color: #f0f8ff; /* Light blue tint for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-tai-xiu__hero-content {
    order: 2; /* Content below image on desktop */
}

.page-tai-xiu__hero-image-wrap {
    order: 1; /* Image above content on desktop */
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    border-radius: 8px;
}

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

.page-tai-xiu__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

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

.page-tai-xiu__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-primary:hover {
    background-color: #1a8cc7;
    transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

.page-tai-xiu__section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.page-tai-xiu__article-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tai-xiu__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
}

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

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

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

.page-tai-xiu__figure {
    margin: 40px auto;
    text-align: center;
    max-width: 100%;
    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__figcaption {
    font-style: italic;
    font-size: 0.95em;
    color: #666;
    margin-top: 10px;
}

.page-tai-xiu__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-tai-xiu__dark-section p,
.page-tai-xiu__dark-section .page-tai-xiu__list-item {
    color: #f0f8ff;
}

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

.page-tai-xiu__step-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-tai-xiu__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__step-card p {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-tai-xiu__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: auto; /* Pushes image to bottom if content above is shorter */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-tai-xiu__promo-box {
    background-color: #e0f2ff;
    border: 2px solid #26A9E0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 50px auto;
    max-width: 800px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-tai-xiu__promo-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-tai-xiu__promo-box p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
}

.page-tai-xiu__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question {
    background-color: #26A9E0;
    color: #FFFFFF;
    border-bottom: 1px solid #26A9E0;
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    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: 20px 25px;
    font-size: 1em;
    color: #555;
    background-color: #FFFFFF;
}

.page-tai-xiu__faq-answer p {
    margin-bottom: 15px;
}

.page-tai-xiu__faq-answer .page-tai-xiu__btn-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.page-tai-xiu__faq-answer .page-tai-xiu__btn-link:hover {
    background-color: #1a8cc7;
}

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: 2.5em;
    }

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

    .page-tai-xiu__hero-section {
        padding-bottom: 30px;
    }

    .page-tai-xiu__section {
        padding: 50px 0;
    }

    .page-tai-xiu__promo-box {
        padding: 25px;
    }

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

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Top section (title + CTA) */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 25px;
        gap: 20px;
        flex-direction: column; /* Ensure image is above content */
    }

    .page-tai-xiu__hero-content {
        order: 2 !important; /* Content below image */
        padding: 0 15px;
    }

    .page-tai-xiu__hero-image-wrap {
        order: 1 !important; /* Image above content */
    }

    .page-tai-xiu__main-title {
        font-size: 2em;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .page-tai-xiu__description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px; /* Added padding for text */
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        width: 100%;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. Single-column long text container */
    .page-tai-xiu__section {
        padding: 30px 0;
    }

    .page-tai-xiu__article-wrap {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
        text-align: left;
        padding: 0 15px;
    }

    .page-tai-xiu__section p,
    .page-tai-xiu__list-item {
        font-size: 0.95em;
        padding: 0 15px;
    }

    .page-tai-xiu__list {
        padding-left: 35px; /* Adjust for disc marker */
        margin-right: 15px;
    }

    /* 3. General images and figure */
    .page-tai-xiu__figure {
        margin: 25px auto;
        padding: 0 15px;
    }

    .page-tai-xiu__image,
    .page-tai-xiu__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__figcaption {
        font-size: 0.85em;
        padding: 0 15px;
    }

    /* 4. Buttons and button containers (already covered in top section, but ensure general application) */
    .page-tai-xiu__promo-box .page-tai-xiu__btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__faq-answer .page-tai-xiu__btn-link {
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Registration tutorial and FAQ blocks */
    .page-tai-xiu__step-by-step {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 15px;
    }

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

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

    .page-tai-xiu__promo-box {
        padding: 20px;
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-tai-xiu__promo-box p {
        font-size: 1em;
    }

    .page-tai-xiu__faq-list {
        margin-top: 25px;
        padding: 0 15px;
    }

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

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

    .page-tai-xiu__faq-answer p {
        padding: 0;
    }
}