/* style/tai-xiu.css */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF;
}

.page-tai-xiu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-tai-xiu__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    position: relative;
    overflow: hidden;
    background-color: #f0f8ff; /* Light blue tint for hero background */
}

.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 {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-top: -80px; /* Overlap image slightly for visual appeal */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-tai-xiu__hero-description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-tai-xiu__section-title {
    font-size: 2.5rem;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-tai-xiu__subsection-title {
    font-size: 1.8rem;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-tai-xiu__text-block {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444444;
}

.page-tai-xiu__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #444444;
}

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

.page-tai-xiu__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-tai-xiu__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title,
.page-tai-xiu__dark-bg .page-tai-xiu__subsection-title {
    color: #ffffff;
}

.page-tai-xiu__dark-bg .page-tai-xiu__text-block,
.page-tai-xiu__dark-bg .page-tai-xiu__list-item {
    color: #f0f0f0;
}

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

.page-tai-xiu__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-tai-xiu__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

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

.page-tai-xiu__feature-card,
.page-tai-xiu__tip-card,
.page-tai-xiu__guide-step {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-tai-xiu__feature-card:hover,
.page-tai-xiu__tip-card:hover,
.page-tai-xiu__guide-step:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__feature-icon,
.page-tai-xiu__step-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__feature-title,
.page-tai-xiu__tip-title,
.page-tai-xiu__step-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__feature-description,
.page-tai-xiu__tip-description,
.page-tai-xiu__step-description {
    font-size: 1rem;
    color: #555555;
}

.page-tai-xiu__promotion-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-tai-xiu__promotion-image {
    width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-tai-xiu__promotion-text {
    flex: 1;
}

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

.page-tai-xiu__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.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: #26A9E0;
    cursor: pointer;
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
}

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

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    color: #26A9E0;
    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: 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
}

/* Ensure all images maintain original color */
.page-tai-xiu img {
    filter: none;
}

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

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

    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }

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

    .page-tai-xiu__hero-image {
        object-fit: contain; /* Ensure image is fully visible, not cropped */
        height: auto !important;
        max-height: 300px;
    }

    .page-tai-xiu__hero-content {
        margin-top: -40px;
        padding: 20px 15px;
    }

    .page-tai-xiu__hero-title {
        font-size: 1.8rem;
    }

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

    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        padding-right: 15px;
    }

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

    .page-tai-xiu__subsection-title {
        font-size: 1.5rem;
    }

    .page-tai-xiu__features-grid,
    .page-tai-xiu__tips-grid,
    .page-tai-xiu__guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__feature-icon,
    .page-tai-xiu__step-icon {
        width: 150px;
        height: 150px;
    }

    .page-tai-xiu__promotion-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-tai-xiu__promotion-image {
        width: 100%;
    }

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

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

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

    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding: 30px 25px;
    }

    .page-tai-xiu__hero-title {
        font-size: 2.5rem;
    }

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

    .page-tai-xiu__features-grid,
    .page-tai-xiu__tips-grid,
    .page-tai-xiu__guide-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-tai-xiu__promotion-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-tai-xiu__promotion-image {
        width: 80%;
    }
}