/* style/tai-xiu.css */

:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --card-bg: #2A1212;
    --main-bg: #140C0C;
    --text-main: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red: #7E0D0D;
}

.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--main-bg); /* Inherited from body in shared.css, but setting here for explicit context */
    line-height: 1.6;
}

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

.page-tai-xiu__top-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    background-color: var(--deep-red);
    padding-bottom: 40px;
    text-align: center;
}

.page-tai-xiu__hero-image {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__hero-content {
    padding: 20px 0;
}

.page-tai-xiu__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

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

.page-tai-xiu__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    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: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-tai-xiu__btn--secondary {
    background: var(--card-bg);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn--secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-tai-xiu__btn--inline {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1em;
}

.page-tai-xiu__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-tai-xiu__section:last-of-type {
    border-bottom: none;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

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

.page-tai-xiu p {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: var(--text-main);
}

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

.page-tai-xiu__ordered-list {
    list-style-type: decimal;
}

.page-tai-xiu__list li,
.page-tai-xiu__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-tai-xiu__list li strong,
.page-tai-xiu__ordered-list li strong {
    color: var(--gold-color);
}

.page-tai-xiu__wp-caption {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

.page-tai-xiu__wp-caption img {
    width: 100%;
    max-width: 680px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__wp-caption-text {
    font-size: 0.9em;
    color: rgba(255, 241, 232, 0.7);
    margin-top: 10px;
}

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

.page-tai-xiu__feature-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-tai-xiu__feature-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-tai-xiu__feature-item p {
    font-size: 1em;
    color: var(--text-main);
}

.page-tai-xiu__faq-section {
    background-color: var(--deep-red);
}

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

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

.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(--gold-color);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-question:hover {
    background-color: rgba(42, 18, 18, 0.8);
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg);
}

.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;
    margin-left: 15px;
}

.page-tai-xiu__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.1em;
    color: var(--text-main);
    background-color: rgba(42, 18, 18, 0.6);
}

.page-tai-xiu__cta-bottom {
    text-align: center;
    padding-bottom: 60px;
}

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

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Top Section (Title + CTA) */
    .page-tai-xiu__top-section {
        padding-top: 10px !important; /* Explicitly small top padding */
        padding-bottom: 30px;
    }

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

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

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

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

    /* 2. Single Column Long Article Container */
    .page-tai-xiu__article-wrap {
        padding: 0 15px;
    }

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

    .page-tai-xiu__section-title {
        font-size: 2em;
        margin-bottom: 30px;
        padding: 0 10px;
    }

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

    .page-tai-xiu p,
    .page-tai-xiu__list li,
    .page-tai-xiu__ordered-list li {
        font-size: 1em;
    }

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

    .page-tai-xiu__wp-caption {
        margin: 20px auto;
    }

    .page-tai-xiu__wp-caption-text {
        font-size: 0.85em;
    }

    /* 4. Buttons and Button Containers (already covered in top section, but reinforce) */
    .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;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-tai-xiu__feature-grid {
        grid-template-columns: 1fr; /* Stack features vertically */
        gap: 20px;
        padding: 0 15px;
    }

    .page-tai-xiu__feature-item {
        padding: 20px;
    }

    /* 5. FAQ Section (adjusting text/padding for h3-based FAQ) */
    .page-tai-xiu__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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

    .page-tai-xiu__list,
    .page-tai-xiu__ordered-list {
        margin-left: 15px;
    }

    .page-tai-xiu__cta-bottom {
        padding-bottom: 40px;
    }
}

/* Tablet (max-width: 1024px) - General adjustments if needed, but 768px is primary mobile focus */
@media (max-width: 1024px) {
    .page-tai-xiu__article-wrap {
        padding: 0 25px;
    }

    .page-tai-xiu__main-title {
        font-size: 2.8em;
    }

    .page-tai-xiu__description {
        font-size: 1.1em;
    }

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

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

    .page-tai-xiu__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}