.page-tai-xiu {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --background-dark: #140C0C;
    --card-background: #2A1212;
    --text-light: #FFF1E8;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red: #7E0D0D;

    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Main text color */
    background-color: var(--background-dark); /* Main background color */
}

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

.page-tai-xiu__section {
    padding: 60px 0;
}

.page-tai-xiu__section-title {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__sub-title {
    font-size: clamp(22px, 3vw, 28px);
    color: var(--gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__content-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-light);
}

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

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

.page-tai-xiu__image-inline {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-tai-xiu__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover */
    max-height: 70vh; /* Limit height for aesthetic */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--gold-color);
}

.page-tai-xiu__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    z-index: 1;
}

.page-tai-xiu__main-title {
    font-size: clamp(36px, 5.5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-tai-xiu__intro-text {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.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;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

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

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(243, 197, 77, 0.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__advantage-item.page-tai-xiu__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.page-tai-xiu__advantage-item.page-tai-xiu__card:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__advantage-item.page-tai-xiu__card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 5px;
    border: 1px solid var(--gold-color);
}

.page-tai-xiu__advantage-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__advantages-grid p {
    font-size: 16px;
    color: var(--text-light);
}

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

.page-tai-xiu__cta-bottom p {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--text-light);
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-background);
  color: var(--text-light);
}
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;
}
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: rgba(var(--deep-red), 0.5); /* Lighter hover for dark background */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  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: rgba(var(--deep-red), 0.2); /* Slightly different background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}
.page-tai-xiu__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-tai-xiu__call-to-action {
    background-color: var(--deep-red);
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.page-tai-xiu__cta-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* Links within content */
.page-tai-xiu__content-block a {
    color: var(--gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-tai-xiu__content-block a:hover {
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-image img {
        max-height: 60vh;
    }
    .page-tai-xiu__section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    /* Hero Section - Mobile */
    .page-tai-xiu__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
        min-height: auto;
    }
    .page-tai-xiu__hero-image {
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-image img {
        object-fit: contain !important; /* Force contain for mobile hero */
        aspect-ratio: unset !important; /* Remove aspect ratio for contain */
        max-height: 40vh;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(30px, 8vw, 40px);
        margin-bottom: 15px;
    }
    .page-tai-xiu__intro-text {
        font-size: clamp(16px, 4vw, 18px);
        margin-bottom: 25px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
}