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

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

.page-tai-xiu__container--center {
    text-align: center;
}

.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    margin-bottom: 40px;
    background-color: #F5F7FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow for image */
}

.page-tai-xiu__hero-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-tai-xiu__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px 50px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly for visual effect, but content is below */
    background: #ffffff; /* Ensure content block has a solid background */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #E53935;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-tai-xiu__description {
    font-size: 1.15rem;
    color: #333333;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-tai-xiu__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.2);
}

.page-tai-xiu__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-tai-xiu__section--intro {
    background-color: #F5F7FA;
    box-shadow: none;
}

.page-tai-xiu__dark-section {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
    color: #ffffff;
}

.page-tai-xiu__dark-section .page-tai-xiu__description,
.page-tai-xiu__dark-section .page-tai-xiu__article-body p,
.page-tai-xiu__dark-section .page-tai-xiu__article-body li {
    color: #ffffff;
}

.page-tai-xiu__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-tai-xiu__sub-title {
    font-size: 1.5rem;
    color: #E53935;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__article-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
}

.page-tai-xiu__article-body p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-tai-xiu__article-body--narrow {
    max-width: 700px;
}

.page-tai-xiu__highlight {
    color: #E53935;
    font-weight: 600;
}

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

.page-tai-xiu__list li {
    margin-bottom: 10px;
}

.page-tai-xiu__nested-list {
    list-style: circle;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

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

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

.page-tai-xiu__strategy-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-tai-xiu__strategy-card img {
    width: 100%;
    height: 200px; /* Fixed height for cards */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-tai-xiu__card-title {
    font-size: 1.3rem;
    color: #E53935;
    padding: 20px 20px 10px;
    margin: 0;
    font-weight: 600;
}

.page-tai-xiu__strategy-card p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 1rem;
    color: #333333;
    flex-grow: 1; /* Allow paragraph to grow */
}

.page-tai-xiu__cta-bottom {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-tai-xiu__features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-tai-xiu__features-list li {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    position: relative;
    padding-left: 45px;
}

.page-tai-xiu__features-list li::before {
    content: '✔️';
    position: absolute;
    left: 15px;
    color: #E53935;
    font-size: 1.2rem;
    top: 20px;
}

.page-tai-xiu__steps-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
    counter-reset: step-counter;
}

.page-tai-xiu__steps-list li {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    position: relative;
    padding-left: 55px;
}

.page-tai-xiu__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 15px;
    top: 18px;
    background-color: #E53935;
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

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

details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333; /* Ensure text color */
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: #f5f5f5;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text color */
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Use brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure text color */
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer p {
    margin-bottom: 0; /* Adjust paragraph margin inside FAQ answer */
}


/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__hero-section {
        padding-top: 10px;
        margin-bottom: 30px;
    }

    .page-tai-xiu__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

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

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        min-width: unset !important;
    }
    
    .page-tai-xiu__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }

    .page-tai-xiu__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
        padding: 0 15px;
    }

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

    .page-tai-xiu__article-body p,
    .page-tai-xiu__article-body li {
        font-size: 0.95rem;
    }

    .page-tai-xiu__image-inline {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-tai-xiu__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__strategy-card img {
        
        min-width: 200px !important;
        min-
    }

    .page-tai-xiu__card-title {
        font-size: 1.2rem;
        padding: 15px 15px 5px;
    }

    .page-tai-xiu__strategy-card p {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }

    .page-tai-xiu__cta-bottom {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__features-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .page-tai-xiu__features-list li {
        font-size: 1rem;
        padding: 15px 15px 15px 40px;
    }

    .page-tai-xiu__features-list li::before {
        top: 15px;
        left: 10px;
    }

    .page-tai-xiu__steps-list {
        padding: 0 15px;
    }

    .page-tai-xiu__steps-list li {
        font-size: 1rem;
        padding: 15px 15px 15px 50px;
    }

    .page-tai-xiu__steps-list li::before {
        top: 13px;
        left: 10px;
    }

    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
        padding: 15px;
    }
    .page-tai-xiu__faq-qtext {
        font-size: 1rem;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
    }
}