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

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

.page-tai-xiu__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-tai-xiu__hero-content {
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content slightly over the image for visual flow */
    position: relative; /* Ensure content is above image if z-index is used, but not overlapping significantly */
    background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-tai-xiu__tagline {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #FFF6D6;
    margin-bottom: 30px;
    max-width: 700px;
    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: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Glow */
    border: 2px solid #FFD36B; /* Glow */
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    background: #FFD36B; /* Glow */
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-tai-xiu__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: #0A0A0A;
}

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.page-tai-xiu p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #FFF6D6; /* Text Main */
}

.page-tai-xiu strong {
    color: #FFD36B;
}

.page-tai-xiu__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: #FFF6D6; /* Text Main */
}

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

.page-tai-xiu__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 800px; /* Max width for content images */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-tai-xiu__figcaption {
    font-style: italic;
    font-size: 0.95rem;
    color: #999;
    padding: 10px 15px;
    background-color: #111111; /* Card BG */
    border-top: 1px solid #3A2A12;
}

.page-tai-xiu__info-card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__card-title {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

/* FAQ Section */
.page-tai-xiu__faq {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-tai-xiu__faq-item {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFD36B; /* Auxiliary color */
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

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

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    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: 0 25px 20px;
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
    border-top: 1px solid #3A2A12;
}

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

/* Footer Content */
.page-tai-xiu__footer-content {
    padding: 30px 0;
    background-color: #0A0A0A;
    text-align: center;
    border-top: 1px solid #3A2A12;
}

.page-tai-xiu__copyright {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

/* --- Responsive Styles (Desktop First, then Mobile) --- */

/* Mobile @media (max-width: 768px) */
@media (max-width: 768px) {
    .page-tai-xiu {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. Top Section (Hero) */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 30px;
    }

    .page-tai-xiu__hero-content {
        margin-top: -50px; /* Adjust for smaller screens */
        padding: 20px 15px;
        border-radius: 10px;
    }

    .page-tai-xiu__main-title {
        font-size: 2rem !important;
        margin-bottom: 10px;
    }

    .page-tai-xiu__tagline {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    /* 4. Buttons and Button Containers */
    .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 {
        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;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.3rem !important;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-tai-xiu p, .page-tai-xiu__list-item {
        font-size: 1rem !important;
    }

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

    /* 3. General Images and Figure */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Allow images to shrink below 200px if needed for mobile */
        min-height: unset !important;
    }

    .page-tai-xiu__figure {
        margin: 20px auto;
        max-width: 100% !important;
        border-radius: 8px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-tai-xiu__card-title {
        font-size: 1.2rem !important;
    }

    /* FAQ */
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

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

    .page-tai-xiu__footer-content {
        padding: 20px 15px;
    }
}