.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    background-color: var(--secondary-color, #FFFFFF); /* Body background color from shared */
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 40px;
    background-color: #f8f8f8; /* Light background for the section */
}

.page-tai-xiu__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
    align-items: center;
}

.page-tai-xiu__hero-image-container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

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

.page-tai-xiu__hero-text-container {
    text-align: center;
    max-width: 800px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size */
    color: #017439; /* Brand color for H1 */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-tai-xiu__subtitle {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-tai-xiu__btn-primary {
    background-color: #C30808; /* Register/Login 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: #017439; /* Main brand color */
    color: #FFFFFF; /* Auxiliary color */
    border: 2px solid #017439;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #005f2f;
    border-color: #005f2f;
}

/* General Section Styling */
.page-tai-xiu__section {
    padding: 50px 20px;
    margin-bottom: 30px;
}

.page-tai-xiu__dark-section {
    background-color: #017439; /* Main brand color for dark sections */
    color: #FFFFFF; /* White text for dark sections */
}

.page-tai-xiu__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-tai-xiu__section-title {
    font-size: 2.2rem;
    color: #017439; /* Brand color for section titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.3;
}

.page-tai-xiu__dark-section .page-tai-xiu__section-title {
    color: #FFFFFF; /* White for section titles in dark sections */
}

.page-tai-xiu__sub-title {
    font-size: 1.6rem;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__dark-section .page-tai-xiu__sub-title {
    color: #FFFFFF;
}

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

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

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

.page-tai-xiu__list-item {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.page-tai-xiu__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-tai-xiu__faq-item {
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
}

.page-tai-xiu__faq-item:last-child {
    margin-bottom: 0;
}

.page-tai-xiu__faq-question {
    font-size: 1.2rem;
    color: #017439;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-tai-xiu__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #444444;
}

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

.page-tai-xiu__cta-button,
.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%;
  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;
}


/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-tai-xiu__hero-content-wrapper {
        padding: 15px;
        gap: 20px;
    }

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

    .page-tai-xiu__subtitle {
        font-size: 1rem;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-tai-xiu__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__section {
        padding: 30px 15px;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.4rem;
        margin-top: 20px;
    }

    .page-tai-xiu__text-block,
    .page-tai-xiu__list-item,
    .page-tai-xiu__faq-answer {
        font-size: 0.95rem;
    }

    .page-tai-xiu__faq-question {
        font-size: 1.1rem;
    }

    /* Mobile Image Adapation (General) */
    .page-tai-xiu img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      box-sizing: border-box !important;
    }

    .page-tai-xiu__section,
    .page-tai-xiu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* --- MANDATORY MOBILE RULES FOR NON-EXISTENT HOMEPAGE ELEMENTS (AS PER PROMPT) --- */
    /* 1. Top Carousel (dummy for this page, uses hero-section rules) */
    .page-tai-xiu__hero-carousel-section { /* Placeholder for a carousel if it were present */
        padding-top: 10px !important; 
    }
    .page-tai-xiu__hero-slider {
        /* Placeholder for slider specific styles */
    }
    .page-tai-xiu__hero-slide {
        /* Placeholder for slide specific styles */
    }

    /* 2. Guide Box + Five Team Vertical Cards (dummy for this page) */
    .page-tai-xiu__guide-box {
        padding: 10px !important;
    }
    .page-tai-xiu__guide-grid {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important; /* As per requirement for 5 cards */
        gap: 8px !important;
    }
    .page-tai-xiu__guide-card {
        padding-top: 0 !important;
        grid-column: span 3; /* Default for first two */
        max-width: 100% !important;
    }
    .page-tai-xiu__guide-card--pos-1, .page-tai-xiu__guide-card--pos-2 {
        grid-column: span 3 !important;
    }
    .page-tai-xiu__guide-card--pos-3, .page-tai-xiu__guide-card--pos-4, .page-tai-xiu__guide-card--pos-5 {
        grid-column: span 2 !important;
    }
    .page-tai-xiu__guide-card img {
        aspect-ratio: 250/350 !important;
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 3. Home Content Box (dummy for this page) */
    .page-tai-xiu__home-content-box {
        max-width: 100% !important;
        height: auto !important;
        padding: 10px !important;
        border: none !important; /* Resetting desktop border for mobile */
        box-shadow: none !important;
    }
    .page-tai-xiu__home-content-inner {
        height: auto !important;
        overflow: visible !important;
    }

    /* 4. Blog Card Section (dummy for this page) */
    .page-tai-xiu__blog-section {
        padding: 30px 15px !important;
    }
    .page-tai-xiu__blog-grid {
        grid-template-columns: repeat(1, 1fr) !important; /* 1 column on mobile */
        gap: 15px !important;
    }
}