:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-dark: #0D0E12;
    --card-bg: #17191F;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

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

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

.page-tai-xiu__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Minimal top padding, body handles header offset */
    padding-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

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

.page-tai-xiu__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--glow-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 176, 77, 0.6);
}

.page-tai-xiu__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tai-xiu__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn--primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-tai-xiu__btn--primary:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

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

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

.page-tai-xiu__btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-tai-xiu__section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

.page-tai-xiu__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--glow-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__paragraph {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-tai-xiu__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-main);
}

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

.page-tai-xiu__figure {
    margin: 40px 0;
    text-align: center;
}

.page-tai-xiu__figure-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__figcaption {
    font-size: 0.9rem;
    color: rgba(255, 243, 230, 0.7);
    margin-top: 10px;
}

.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: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-tai-xiu__step-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__step-description {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tai-xiu__promo-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 {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-tai-xiu__promo-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__promo-description {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(255, 140, 26, 0.1);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-tai-xiu__faq-question:hover {
    background-color: rgba(255, 140, 26, 0.2);
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    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 25px;
    font-size: 1rem;
    color: var(--text-main);
    border-top: 1px solid rgba(255, 140, 26, 0.1);
}

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

.page-tai-xiu__faq-answer .page-tai-xiu__cta-buttons {
    margin-top: 20px;
}

.page-tai-xiu__conclusion .page-tai-xiu__cta-buttons {
    margin-top: 40px;
}

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

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-tai-xiu__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.5rem);
    }

    .page-tai-xiu__sub-title {
        font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    }

    .page-tai-xiu__hero-content {
        padding: 30px 15px;
    }

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

    .page-tai-xiu__step-by-step,
    .page-tai-xiu__promo-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-tai-xiu__btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Top Section (Hero) & CTA */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Fixed header offset handled by body, this is minimal top spacing */
        padding-bottom: 30px;
    }

    .page-tai-xiu__hero-content {
        padding: 25px 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-tai-xiu__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 4. Buttons and Button Containers */
    .page-tai-xiu__btn,
    .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;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center;
    }
    
    .page-tai-xiu__cta-buttons.page-tai-xiu__cta-buttons--faq {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    /* 2. Single Column Long Text Container */
    .page-tai-xiu__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-tai-xiu__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-tai-xiu__sub-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-tai-xiu__paragraph,
    .page-tai-xiu__list-item {
        font-size: 0.95rem;
    }

    .page-tai-xiu__list {
        margin-left: 20px;
    }

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

    .page-tai-xiu__figure {
        margin: 30px 0;
    }

    /* 5. Registration Tutorial and FAQ Blocks */
    .page-tai-xiu__step-by-step,
    .page-tai-xiu__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

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

    .page-tai-xiu__step-title,
    .page-tai-xiu__promo-title {
        font-size: 1.2rem;
    }

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

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