/* style/tai-xiu.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-color: #0A0A0A;
    --card-background: #111111;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Light text on dark body background */
    background-color: var(--background-color); /* Fallback, actual body background from shared.css */
    line-height: 1.6;
}

.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, main padding from body */
    overflow: hidden;
    text-align: center;
    padding-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-tai-xiu__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-tai-xiu__description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 30px;
    color: var(--text-main-color);
    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-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    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: var(--button-gradient);
    color: #0A0A0A;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-tai-xiu__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
    opacity: 0.9;
}

.page-tai-xiu__btn--secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-tai-xiu__btn--secondary:hover {
    background: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

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

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

.page-tai-xiu__text-block {
    margin-bottom: 30px;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.page-tai-xiu__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.page-tai-xiu__sub-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu p {
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-tai-xiu strong {
    color: var(--primary-color);
}

.page-tai-xiu__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-tai-xiu__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-main-color);
}

.page-tai-xiu__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2em;
    line-height: 1;
}

.page-tai-xiu__figure {
    margin: 20px 0;
    text-align: center;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-tai-xiu__figcaption {
    font-size: 0.9em;
    color: var(--text-main-color);
    padding: 0 15px;
}

.page-tai-xiu__promo-box {
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
}

.page-tai-xiu__promo-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-tai-xiu__promo-box p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--text-main-color);
}

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

.page-tai-xiu__faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.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.5em;
    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: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.7;
}

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-content {
        padding: 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2em, 3.5vw, 3em);
    }

    .page-tai-xiu__description {
        font-size: clamp(0.9em, 1.3vw, 1.1em);
    }

    .page-tai-xiu__btn {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-tai-xiu__sub-title {
        font-size: 1.4em;
    }

    .page-tai-xiu__text-block {
        padding: 25px;
    }

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

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

    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

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

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

    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px;
    }

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

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

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

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

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

    .page-tai-xiu__text-block {
        padding: 20px !important;
        margin-bottom: 20px;
    }

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

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

    .page-tai-xiu p {
        font-size: 0.95em;
    }

    .page-tai-xiu__list li {
        padding-left: 20px;
        font-size: 0.95em;
    }

    /* General Images and Figure */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__figure {
        margin: 15px 0;
        padding-bottom: 10px;
    }

    .page-tai-xiu__figcaption {
        font-size: 0.85em;
    }

    /* Promo Box */
    .page-tai-xiu__promo-box {
        padding: 25px !important;
        margin-top: 30px;
    }

    .page-tai-xiu__promo-title {
        font-size: 1.5em !important;
        margin-bottom: 10px;
    }

    .page-tai-xiu__promo-box p {
        font-size: 1em !important;
        margin-bottom: 20px;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-question {
        font-size: 1em !important;
        padding: 15px 15px !important;
    }

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

    .page-tai-xiu__faq-toggle {
        font-size: 1.3em;
    }

    .page-tai-xiu__cta-buttons--faq, 
    .page-tai-xiu__cta-buttons--bottom {
        padding: 0 15px;
        margin-top: 25px;
    }

    .page-tai-xiu__cta-buttons--faq .page-tai-xiu__btn,
    .page-tai-xiu__cta-buttons--bottom .page-tai-xiu__btn {
        margin-bottom: 10px;
    }
}