/* style/tai-xiu.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --text-black-color: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Default text color for light body background */
    line-height: 1.6;
    background-color: var(--background-color);
}

.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
    padding-top: 10px; /* Small top padding, main offset from body */
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    height: auto;
}

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

.page-tai-xiu__hero-content {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__description {
    font-size: 1.1rem;
    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;
}

.page-tai-xiu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    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: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

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

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

.page-tai-xiu__content-section {
    padding: 50px 0;
    background-color: var(--background-color);
}

.page-tai-xiu__content-section:nth-of-type(even) {
    background-color: #fcfdff;
}

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

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

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

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

.page-tai-xiu__list-numbered {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-tai-xiu__list-numbered li {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-tai-xiu__figure {
    margin: 30px auto;
    max-width: 680px;
    text-align: center;
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-bottom: 10px;
}

.page-tai-xiu__figcaption {
    font-size: 0.9rem;
    color: #666;
    padding: 5px 0;
}

.page-tai-xiu__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-tai-xiu__text-link:hover {
    text-decoration: underline;
}

.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;
    color: var(--text-main-color);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
    background-color: #f8faff;
    border-bottom: 1px solid var(--border-color);
}

.page-tai-xiu__faq-question:hover {
    background-color: #eef2ff;
}

.page-tai-xiu__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color);
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 10px;
    color: var(--primary-color);
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: '-';
}

.page-tai-xiu__faq-answer {
    padding: 15px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
}

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

.page-tai-xiu__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

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

    .page-tai-xiu__description {
        font-size: 1rem;
    }

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

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

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

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

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

    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

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

    .page-tai-xiu__main-title {
        font-size: 2rem; /* Adjusted for mobile */
        margin-bottom: 15px;
    }

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

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

    .page-tai-xiu__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-tai-xiu__section-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

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

    .page-tai-xiu p,
    .page-tai-xiu__list li,
    .page-tai-xiu__list-numbered li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

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

    .page-tai-xiu__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section Mobile */
    .page-tai-xiu__faq-item {
        margin-bottom: 10px;
    }

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

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

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