/* style/tai-xiu.css */

/* Base styles for the page content */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Body background is white */
}

/* Reusable container for content areas */
.page-tai-xiu__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Section titles */
.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

.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: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 300px; /* Limit button width on desktop */
    min-width: 180px;
    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: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

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

/* HERO Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #ffffff; /* Consistent with body background */
}

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

.page-tai-xiu__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333; /* Dark text for light background */
}

.page-tai-xiu__main-title {
    font-size: 3.2em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-tai-xiu__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
}

/* Intro Section (Light Background) */
.page-tai-xiu__intro-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

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

.page-tai-xiu__feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__icon-box-media {
    width: 240px; /* Desktop size */
    height: 240px; /* Desktop size */
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #017439;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0f2f1;
}

.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.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-tai-xiu__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Guide Section (Dark Background) */
.page-tai-xiu__guide-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

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

.page-tai-xiu__guide-section .page-tai-xiu__section-description {
    color: #e0e0e0;
}

.page-tai-xiu__guide-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-tai-xiu__guide-text {
    flex: 1 1 55%;
    min-width: 300px;
}

.page-tai-xiu__guide-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-tai-xiu__guide-subtitle {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for subheadings on dark background */
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-tai-xiu__guide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Tips Section (Light Background) */
.page-tai-xiu__tips-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-tai-xiu__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.page-tai-xiu__tip-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__tip-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-tai-xiu__tip-item p {
    font-size: 1em;
    color: #555555;
}

.page-tai-xiu__tips-image {
    max-width: 800px;
    margin: 40px auto 0;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: auto;
}

/* Platform Section (Dark Background) */
.page-tai-xiu__platform-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

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

.page-tai-xiu__platform-section .page-tai-xiu__section-description {
    color: #e0e0e0;
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 1.1em;
}

/* FAQ Section (Light Background) */
.page-tai-xiu__faq-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

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

.page-tai-xiu__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-tai-xiu__faq-item[open] {
    background-color: #e0f2f1; /* Light green when open */
    border-color: #017439;
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
    color: #017439;
}

/* Hide default details marker for WebKit browsers */
.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.5em;
    font-weight: normal;
    margin-left: 15px;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or similar */
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: 2.8em;
    }
    .page-tai-xiu__hero-description {
        font-size: 1.1em;
    }
    .page-tai-xiu__section-title {
        font-size: 2.2em;
    }
    .page-tai-xiu__guide-subtitle {
        font-size: 1.6em;
    }
    .page-tai-xiu__tips-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .page-tai-xiu__icon-box-media {
        width: 200px;
        height: 200px;
    }
}


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

    .page-tai-xiu__content-area {
        padding: 20px 15px !important; /* Mobile padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }

    .page-tai-xiu__hero-container {
        flex-direction: column; /* Stack content and image vertically */
        padding: 20px 15px !important;
        gap: 20px;
    }
    .page-tai-xiu__hero-content,
    .page-tai-xiu__hero-image {
        flex: 1 1 100%; /* Full width for mobile */
        min-width: unset;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Responsive font size */
        text-align: center;
    }
    .page-tai-xiu__hero-description {
        font-size: 1em;
        text-align: center;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button container */
        overflow: hidden;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text to wrap */
        word-wrap: break-word !important;
        padding: 12px 15px;
    }
    .page-tai-xiu__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Module 1: Intro Section - Circular Images */
    .page-tai-xiu__intro-section {
        padding: 40px 0 !important;
    }
    .page-tai-xiu__section-title {
        font-size: 1.8em !important;
    }
    .page-tai-xiu__section-description {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-tai-xiu__icon-box-media {
        width: 200px !important; /* Ensure circularity on mobile */
        height: 200px !important;
        margin: 0 auto 15px !important;
    }
    .page-tai-xiu__icon-box-media img {
        max-width: 100% !important; /* Ensure image fits */
        height: 100% !important; /* Maintain circularity */
        object-fit: cover !important; /* Keep aspect ratio */
    }
    .page-tai-xiu__feature-title {
        font-size: 1.3em;
    }
    .page-tai-xiu__feature-text {
        font-size: 0.95em;
    }

    /* Guide Section */
    .page-tai-xiu__guide-section {
        padding: 40px 0 !important;
    }
    .page-tai-xiu__guide-content {
        flex-direction: column; /* Stack text and image vertically */
        gap: 20px;
    }
    .page-tai-xiu__guide-text,
    .page-tai-xiu__guide-image {
        flex: 1 1 100%;
        min-width: unset;
    }
    .page-tai-xiu__guide-text p {
        font-size: 1em;
    }
    .page-tai-xiu__guide-subtitle {
        font-size: 1.4em;
    }
    .page-tai-xiu__guide-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Tips Section */
    .page-tai-xiu__tips-section {
        padding: 40px 0 !important;
    }
    .page-tai-xiu__tips-list {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 15px;
    }
    .page-tai-xiu__tip-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__tip-item p {
        font-size: 0.95em;
    }
    .page-tai-xiu__tips-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 30px !important;
    }

    /* Platform Section */
    .page-tai-xiu__platform-section {
        padding: 40px 0 !important;
    }
    .page-tai-xiu__platform-section .page-tai-xiu__section-description {
        font-size: 1em;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-section {
        padding: 40px 0 !important;
    }
    .page-tai-xiu__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-tai-xiu__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px;
    }

    /* Generic image response */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

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