.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #ffffff; /* Explicitly set for light theme */
}

.page-tai-xiu__dark-section {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-tai-xiu__light-bg {
    background-color: #ffffff; /* Auxiliary brand color / default light */
    color: #333333;
}

.page-tai-xiu__highlight {
    color: #FFFF00; /* For login/register fonts, here used as highlight */
    font-weight: bold;
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 40px;
    overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-tai-xiu__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 800px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    padding: 20px;
    box-sizing: border-box;
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

.page-tai-xiu__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-tai-xiu__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

/* General Section Styles */
.page-tai-xiu__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: inherit; /* Inherit color from parent section */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

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

.page-tai-xiu__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__subsection-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: inherit;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tai-xiu__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

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

.page-tai-xiu__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-tai-xiu__table th,
.page-tai-xiu__table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
    color: #333333;
}

.page-tai-xiu__table th {
    background-color: #017439;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.page-tai-xiu__table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.page-tai-xiu__table tbody tr:hover {
    background-color: #f0f0f0;
}

.page-tai-xiu__link {
    color: #C30808; /* Link color for internal navigation */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-tai-xiu__link:hover {
    color: #a00606;
}

/* Process Section */
.page-tai-xiu__process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-tai-xiu__process-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
    box-sizing: border-box;
}

.page-tai-xiu__process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__process-title {
    font-size: 1.4rem;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__process-description {
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    margin-top: 30px;
}

.page-tai-xiu__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #333333; /* Default text for FAQ items */
}

.page-tai-xiu__faq-item[open] {
    background-color: #f0f0f0;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439;
    color: #ffffff;
    list-style: none; /* Hide default marker */
    position: relative;
    transition: background-color 0.3s ease;
}

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

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

.page-tai-xiu__faq-qtext {
    flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    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: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    color: #333333;
}

/* Final CTA Section */
.page-tai-xiu__cta-final {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding: 30px 15px;
    }
    .page-tai-xiu__hero-content {
        padding: 15px;
    }
    .page-tai-xiu__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-tai-xiu__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    }
    .page-tai-xiu__process-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General content area */
    .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;
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 20px;
    }
    .page-tai-xiu__hero-image {
        max-height: 400px;
    }
    .page-tai-xiu__hero-content {
        width: 95%;
        padding: 10px;
    }
    .page-tai-xiu__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-tai-xiu__hero-description {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* Buttons (General Mobile Adaption) */
    .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;
    }

    /* Button containers mobile adaptation */
    .page-tai-xiu__hero-buttons,
    .page-tai-xiu__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Force vertical stacking */
        gap: 10px;
    }

    /* General Images (Mandatory) */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Section Titles */
    .page-tai-xiu__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-tai-xiu__subsection-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* Table Responsiveness */
    .page-tai-xiu__table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .page-tai-xiu__table thead, .page-tai-xiu__table tbody, .page-tai-xiu__table th, .page-tai-xiu__table td, .page-tai-xiu__table tr {
        display: block;
    }
    .page-tai-xiu__table th {
        position: sticky;
        left: 0;
        z-index: 1;
        background-color: #017439; /* Ensure header background is visible */
    }
    .page-tai-xiu__table td {
        border: none;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    .page-tai-xiu__table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }
    /* Hide the original table headers on mobile if using data-label */
    .page-tai-xiu__table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* Process Steps */
    .page-tai-xiu__process-steps {
        grid-template-columns: 1fr; /* Stack process items vertically */
        gap: 20px;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-tai-xiu__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 1.5rem;
    }
}