/* style/tai-xiu.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --gradient-button: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    --header-offset: 120px; /* Default, will be overridden by shared.css if present */
}

.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
}

.page-tai-xiu__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background-color: var(--card-bg-color);
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

.page-tai-xiu__hero-content-area {
    max-width: 900px;
    padding: 20px;
    margin-top: 20px;
}

.page-tai-xiu__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-tai-xiu__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

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

.page-tai-xiu__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    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(--gradient-button);
    color: #ffffff;
    border: none;
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
    background-color: var(--card-bg-color);
    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__section {
    padding: 40px 0;
    background-color: var(--card-bg-color);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

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

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

.page-tai-xiu p a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-tai-xiu p a:hover {
    color: var(--secondary-color);
}

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

.page-tai-xiu__list li {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 8px;
}

.page-tai-xiu__figure {
    margin: 30px 0;
    text-align: center;
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.page-tai-xiu__figcaption {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}

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

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

.page-tai-xiu .highlight-keyword {
    color: var(--primary-color);
    font-weight: bold;
}

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

@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: 2.5em;
    }

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

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

@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 30px;
    }

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

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

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

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

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

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

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

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

    .page-tai-xiu p, .page-tai-xiu__list li {
        font-size: 0.95em !important;
        line-height: 1.6 !important;
    }

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

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

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

    .page-tai-xiu__cta-container {
        margin-top: 25px;
        margin-bottom: 15px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__cta-container--final {
        padding-bottom: 30px;
    }

    /* Ensure all content containers are responsive */
    .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;
    }
}

/* Global image responsiveness (already covered by .page-tai-xiu__image and .page-tai-xiu__figure) */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* No filter properties for images */
.page-tai-xiu img {
    filter: none; /* Ensure no filter is applied */
}