:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg-color: #10233F;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --glow-color-transparent: rgba(79, 168, 255, 0.4); /* For card glow effect */
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
}

/* Ensure body text contrast, assuming shared.css sets body background to --deep-navy-color */
body {
    color: var(--text-main-color);
}

.page-tai-xiu {
    color: var(--text-main-color); /* #F3F8FF */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--deep-navy-color); /* From shared.css, ensures dark background */
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    margin-bottom: 40px;
    color: var(--text-main-color);
}

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

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

.page-tai-xiu__hero-content {
    text-align: center;
    padding: 30px 20px;
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for responsive H1 font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--gold-color); /* Using gold for prominence */
}

.page-tai-xiu__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary-color);
}

.page-tai-xiu__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-tai-xiu__btn {
    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;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-tai-xiu__btn--primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main-color); /* #F3F8FF */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__btn--secondary {
    background: var(--card-bg-color); /* #10233F */
    color: var(--text-main-color); /* #F3F8FF */
    border: 2px solid var(--border-color); /* #244D84 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn--secondary:hover {
    background: var(--deep-navy-color); /* #08162B */
    border-color: var(--glow-color); /* #4FA8FF */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Section Titles */
.page-tai-xiu__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold-color);
    position: relative;
    padding-bottom: 15px;
}

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

/* General Content Blocks */
.page-tai-xiu__content-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: justify;
    font-size: 1.05rem;
    color: var(--text-secondary-color);
}

.page-tai-xiu__content-block p {
    margin-bottom: 1em;
}

.page-tai-xiu__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Cards */
.page-tai-xiu__card {
    background-color: var(--card-bg-color); /* #10233F */
    border: 1px solid var(--border-color); /* #244D84 */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color); /* #F3F8FF */
    height: 100%; /* Ensure cards in grid have equal height */
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-tai-xiu__card p, .page-tai-xiu__card ul {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

.page-tai-xiu__card ul {
    list-style: disc inside;
    margin-left: 20px;
}

.page-tai-xiu__card li {
    margin-bottom: 5px;
}

/* Content Grid */
.page-tai-xiu__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Glow Card variation */
.page-tai-xiu__card--glow {
    border-color: var(--glow-color);
    box-shadow: 0 0 25px var(--glow-color-transparent); /* Semi-transparent glow */
}

/* CTA Center */
.page-tai-xiu__cta-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Dark Section */
.page-tai-xiu__dark-section {
    background-color: var(--card-bg-color); /* #10233F */
    padding: 60px 0;
    margin: 60px 0;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
    color: var(--gold-color);
}

/* Benefits Section */
.page-tai-xiu__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-tai-xiu__benefit-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
}

.page-tai-xiu__benefit-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-tai-xiu__benefit-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

/* CTA Banner */
.page-tai-xiu__cta-banner {
    background: var(--deep-navy-color); /* #08162B */
    padding: 60px 20px;
    text-align: center;
    color: var(--text-main-color);
    margin: 60px 0;
}

.page-tai-xiu__cta-container {
    max-width: 900px;
}

.page-tai-xiu__cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.page-tai-xiu__cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary-color);
}

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

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 60px 0;
}

.page-tai-xiu__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    list-style: none; /* Remove default marker for details summary */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-tai-xiu__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding-top: 10px;
}

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

/* Related Articles / Blog Section */
.page-tai-xiu__related-articles-section {
    padding: 60px 0;
    margin-top: 60px;
    background-color: var(--card-bg-color); /* #10233F */
}

.page-tai-xiu__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-tai-xiu__blog-card {
    background-color: var(--deep-navy-color); /* #08162B */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-tai-xiu__blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
}

.page-tai-xiu__blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    margin: 0;
    color: var(--gold-color);
    min-height: 60px; /* Ensure consistent title area */
}

.page-tai-xiu__blog-card-title:hover {
    color: var(--glow-color);
}

.page-tai-xiu__blog-card-meta {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    padding: 0 15px 15px;
    margin-top: auto; /* Push meta to bottom */
}

/* Global Image and Button Responsiveness */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__btn,
.page-tai-xiu a[class*="button"],
.page-tai-xiu a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__cta-buttons,
.page-tai-xiu__button-group,
.page-tai-xiu__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-tai-xiu__section-title {
        font-size: 2rem;
    }
    .page-tai-xiu__cta-title {
        font-size: 2.2rem;
    }
    .page-tai-xiu__container {
        padding: 15px;
    }
    .page-tai-xiu__content-grid,
    .page-tai-xiu__benefits-list,
    .page-tai-xiu__blog-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-tai-xiu {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-tai-xiu__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-content {
        padding: 20px 15px;
    }
    .page-tai-xiu__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-tai-xiu__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons Mobile */
    .page-tai-xiu__btn,
    .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 !important;
        padding-right: 15px !important;
    }
    .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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important;
    }

    /* Section Titles */
    .page-tai-xiu__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Content Blocks & Images */
    .page-tai-xiu__content-block {
        margin-bottom: 20px;
        font-size: 0.95rem;
    }
    .page-tai-xiu__image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Cards & Grids */
    .page-tai-xiu__content-grid,
    .page-tai-xiu__benefits-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-tai-xiu__card {
        padding: 20px;
    }
    .page-tai-xiu__card-title {
        font-size: 1.3rem;
    }
    .page-tai-xiu__card p, .page-tai-xiu__card ul {
        font-size: 0.9rem;
    }

    /* Dark Section */
    .page-tai-xiu__dark-section {
        padding: 40px 0;
        margin: 40px 0;
    }

    /* CTA Banner */
    .page-tai-xiu__cta-banner {
        padding: 40px 15px;
        margin: 40px 0;
    }
    .page-tai-xiu__cta-title {
        font-size: 2rem;
    }
    .page-tai-xiu__cta-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-section {
        padding: 40px 0;
    }
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }
    .page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
        padding-top: 5px;
    }

    /* Related Articles / Blog Section */
    .page-tai-xiu__related-articles-section {
        padding: 40px 0;
        margin-top: 40px;
    }
    .page-tai-xiu__blog-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-tai-xiu__blog-card-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-tai-xiu__blog-card-title {
        font-size: 1.1rem;
        padding: 10px 15px;
        min-height: auto;
    }
    .page-tai-xiu__blog-card-meta {
        padding: 0 15px 10px;
    }
}