/* style/tai-xiu.css */

/* Base styles for the page */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set body background as per instruction */
}

/* Sections */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding-top */
    padding-bottom: 60px;
    background-color: #FFFFFF; /* Light background for hero */
}

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

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #333333;
}

.page-tai-xiu__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439; /* Brand color for main title */
}

.page-tai-xiu__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Custom button colors for Login/Register */
.page-tai-xiu__cta-buttons .page-tai-xiu__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register/Login font color */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}
.page-tai-xiu__cta-buttons .page-tai-xiu__btn-primary:hover {
    background-color: #e02020;
}

.page-tai-xiu__cta-buttons .page-tai-xiu__btn-secondary {
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}
.page-tai-xiu__cta-buttons .page-tai-xiu__btn-secondary:hover {
    background-color: #e02020;
}

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

.page-tai-xiu__hero-main-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* General content sections */
.page-tai-xiu__intro-section,
.page-tai-xiu__guide-section,
.page-tai-xiu__faq-section {
    padding: 60px 0;
}

.page-tai-xiu__features-section,
.page-tai-xiu__tips-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
}

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

.page-tai-xiu__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

.page-tai-xiu__paragraph {
    font-size: 17px;
    margin-bottom: 15px;
    text-align: justify;
}

/* Feature Grid (Module 1 equivalent) */
.page-tai-xiu__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-tai-xiu__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__icon-box-media {
    width: 200px; /* Fixed width for square */
    height: 200px; /* Fixed height for square */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FFFFFF; /* White border for contrast */
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fills the circle */
    display: block;
    border-radius: 50%; /* Keep image circular */
}

.page-tai-xiu__feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-tai-xiu__feature-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* Guide Section */
.page-tai-xiu__guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-tai-xiu__guide-step {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-tai-xiu__guide-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.page-tai-xiu__guide-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #017439;
}

/* Tips Section */
.page-tai-xiu__tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-tai-xiu__tip-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__tip-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-tai-xiu__tip-item .page-tai-xiu__paragraph {
    font-size: 16px;
    color: #f0f0f0;
    text-align: left;
}

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

.page-tai-xiu__cta-bottom .page-tai-xiu__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}
.page-tai-xiu__cta-bottom .page-tai-xiu__btn-primary:hover {
    background-color: #e02020;
}

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

.page-tai-xiu__faq-item {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #FFFFFF;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    user-select: none;
    list-style: none; /* Remove default marker for summary */
}
.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}
.page-tai-xiu__faq-question:hover {
    background-color: #f0f0f0;
}

.page-tai-xiu__faq-qtext {
    flex-grow: 1;
}

.page-tai-xiu__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-tai-xiu__faq-answer {
    padding: 15px 25px 20px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #555555;
    text-align: left;
}

/* General image styling for content areas */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tai-xiu__hero-content {
        order: 2; /* Content below image on smaller screens */
    }
    .page-tai-xiu__hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    .page-tai-xiu__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-container {
        padding: 15px;
        gap: 20px;
    }
    .page-tai-xiu__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-tai-xiu__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-tai-xiu__cta-buttons .page-tai-xiu__btn-primary,
    .page-tai-xiu__cta-buttons .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
    }
    .page-tai-xiu__hero-main-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Sections */
    .page-tai-xiu__intro-section,
    .page-tai-xiu__features-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__tips-section,
    .page-tai-xiu__faq-section {
        padding: 40px 0;
    }
    .page-tai-xiu__container {
        padding: 0 15px !important; /* Ensure consistent side padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-tai-xiu__paragraph {
        font-size: 15px;
    }

    /* Feature Grid (Module 1 equivalent) */
    .page-tai-xiu__feature-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-tai-xiu__feature-item {
        padding: 20px !important;
    }
    .page-tai-xiu__icon-box-media {
        width: 150px !important; /* Smaller square */
        height: 150px !important; /* Smaller square */
        border-width: 2px;
    }
    .page-tai-xiu__feature-title {
        font-size: 20px;
    }
    .page-tai-xiu__feature-description {
        font-size: 15px;
    }

    /* Guide Section */
    .page-tai-xiu__guide-content {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-tai-xiu__guide-step {
        padding: 20px !important;
    }
    .page-tai-xiu__guide-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__guide-title {
        font-size: 20px;
    }

    /* Tips Section */
    .page-tai-xiu__tip-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }
    .page-tai-xiu__tip-item {
        padding: 20px !important;
    }
    .page-tai-xiu__tip-title {
        font-size: 18px;
    }
    .page-tai-xiu__tip-item .page-tai-xiu__paragraph {
        font-size: 15px;
    }
    .page-tai-xiu__cta-bottom {
        margin-top: 30px;
    }
    .page-tai-xiu__cta-bottom .page-tai-xiu__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 16px;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-question {
        padding: 15px 20px !important;
        font-size: 16px;
    }
    .page-tai-xiu__faq-answer {
        padding: 10px 20px 15px !important;
        font-size: 15px;
    }

    /* Universal image and container rules for mobile */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__feature-item,
    .page-tai-xiu__guide-step,
    .page-tai-xiu__tip-item,
    .page-tai-xiu__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}