:root {
    --page-tai-xiu-primary-color: #E53935;
    --page-tai-xiu-secondary-color: #FF5A4F;
    --page-tai-xiu-button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    --page-tai-xiu-card-bg: #FFFFFF;
    --page-tai-xiu-background-color: #F5F7FA;
    --page-tai-xiu-text-main: #333333;
    --page-tai-xiu-border-color: #E0E0E0;
    --page-tai-xiu-dark-text: #000000; /* For medium/light backgrounds */
    --page-tai-xiu-light-text: #ffffff; /* For dark backgrounds */
}

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

.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-tai-xiu-background-color);
    color: var(--page-tai-xiu-text-main); /* Assuming light background for hero */
}

.page-tai-xiu__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16px;
    gap: 40px;
}

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    padding-right: 20px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp for H1 font-size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-tai-xiu-primary-color);
}

.page-tai-xiu__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-tai-xiu__btn-primary {
    background: var(--page-tai-xiu-button-gradient);
    color: var(--page-tai-xiu-light-text);
    border: none;
}

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

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

.page-tai-xiu__btn-secondary:hover {
    background: var(--page-tai-xiu-primary-color);
    color: var(--page-tai-xiu-light-text);
}

.page-tai-xiu__btn-link {
    background: transparent;
    color: var(--page-tai-xiu-primary-color);
    border: 1px solid var(--page-tai-xiu-primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-tai-xiu__btn-link:hover {
    background: var(--page-tai-xiu-primary-color);
    color: var(--page-tai-xiu-light-text);
}


.page-tai-xiu__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-tai-xiu__hero-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.page-tai-xiu__intro-section,
.page-tai-xiu__guide-section,
.page-tai-xiu__promo-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__cta-section {
    padding: 60px 0;
}

.page-tai-xiu__light-bg {
    background-color: var(--page-tai-xiu-background-color);
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__dark-bg {
    background-color: var(--page-tai-xiu-primary-color);
    color: var(--page-tai-xiu-light-text);
}

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

.page-tai-xiu__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

.page-tai-xiu__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: inherit; /* Inherit color from section background */
}

.page-tai-xiu__feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-tai-xiu__feature-item {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background-color: var(--page-tai-xiu-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    box-sizing: border-box;
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__icon-box-media {
    width: 180px; 
    height: 180px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--page-tai-xiu-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-tai-xiu__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-tai-xiu-primary-color);
}

.page-tai-xiu__feature-text {
    font-size: 1rem;
    color: var(--page-tai-xiu-text-main);
}

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

.page-tai-xiu__guide-item {
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background for dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--page-tai-xiu-light-text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tai-xiu__guide-icon {
    width: 60px;
    height: 60px;
    background-color: var(--page-tai-xiu-light-text);
    color: var(--page-tai-xiu-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-tai-xiu__guide-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-tai-xiu-light-text);
}

.page-tai-xiu__guide-text {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-tai-xiu__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-top: auto; /* Push image to bottom if content varies */
}

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

.page-tai-xiu__promo-card {
    background-color: var(--page-tai-xiu-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
}

.page-tai-xiu__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__promo-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-tai-xiu-primary-color);
}

.page-tai-xiu__promo-text {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-tai-xiu__faq-item {
    background-color: rgba(255, 255, 255, 0.15); /* Lighter background for dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-tai-xiu-light-text);
}

.page-tai-xiu__faq-item summary {
    display: block; /* For details tag */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    list-style: none; /* Hide default marker */
}

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--page-tai-xiu-light-text);
}

.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: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-tai-xiu-light-text);
}

/* General image and container responsive styles */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-tai-xiu__section,
.page-tai-xiu__card,
.page-tai-xiu__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

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

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, as per instruction */
        padding-bottom: 40px;
    }

    .page-tai-xiu__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    .page-tai-xiu__hero-content {
        padding-right: 0;
        text-align: center;
    }

    .page-tai-xiu__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-tai-xiu__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}
}