/* style/tai-xiu.css */

/* Global styles for the page content */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    box-sizing: border-box;
}

.page-tai-xiu__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main color */
    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: #FFF6D6; /* Text Main */
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #0A0A0A 0%, #111111 100%); /* Card BG as background base */
}

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

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
    color: #FFF6D6; /* Text Main */
}

.page-tai-xiu__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
    color: #FFD36B; /* Glow */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #FFF6D6; /* Text Main */
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.page-tai-xiu__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.5); /* Glow */
    display: block;
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Glow */
    border: 2px solid #F2C14E; /* Main color as border */
}

.page-tai-xiu__btn-secondary:hover {
    background: #F2C14E; /* Main color */
    color: #111111; /* Card BG */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.3);
}

.page-tai-xiu__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Intro Section */
.page-tai-xiu__intro-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
}

.page-tai-xiu__icon-box-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__icon-box {
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    background-color: #0A0A0A; /* Background */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__icon-box-media {
    width: 240px; /* Specific size for circular image */
    height: 240px; /* Specific size for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #F2C14E; /* Main color */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-tai-xiu__icon-box-title {
    font-size: 1.5em;
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
}

.page-tai-xiu__icon-box-text {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
}

/* Guide Section */
.page-tai-xiu__guide-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-tai-xiu__guide-item {
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
    display: block;
}

.page-tai-xiu__guide-step-title {
    font-size: 1.4em;
    color: #FFD36B; /* Glow */
    margin-bottom: 10px;
}

.page-tai-xiu__guide-step-text {
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
}

.page-tai-xiu__guide-cta {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 60px 0;
    background-color: #111111; /* Card BG */
}

.page-tai-xiu__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-tai-xiu__faq-item {
    background-color: #0A0A0A; /* Background */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6; /* Text Main */
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #FFD36B; /* Glow */
    cursor: pointer;
    background-color: #111111; /* Card BG */
    list-style: none; /* Hide default marker */
    user-select: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg); /* Change + to x or rotate for open state */
}

.page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
}

/* Final CTA Section */
.page-tai-xiu__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #111111 0%, #0A0A0A 100%); /* Card BG to Background */
}

.page-tai-xiu__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        padding: 30px 16px;
        gap: 30px;
    }
    .page-tai-xiu__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-tai-xiu__hero-image {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-tai-xiu__hero-cta-buttons {
        justify-content: center;
    }
    .page-tai-xiu__icon-box-grid {
        gap: 20px;
    }
    .page-tai-xiu__icon-box {
        flex: 1 1 280px;
        max-width: 300px;
    }
    .page-tai-xiu__icon-box-media {
        width: 200px;
        height: 200px;
    }
    .page-tai-xiu__guide-steps {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }
    .page-tai-xiu__hero-title {
        font-size: 2.2em;
        text-align: center;
    }
    .page-tai-xiu__hero-description {
        font-size: 1em;
        text-align: center;
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%; /* Button container width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .page-tai-xiu__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Sections and Titles */
    .page-tai-xiu__content-area {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    .page-tai-xiu__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-tai-xiu__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* Module 1: Intro Section (Circular Images) */
    .page-tai-xiu__icon-box-grid {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .page-tai-xiu__icon-box {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px;
    }
    .page-tai-xiu__icon-box-media {
        width: 180px; /* Maintain square aspect ratio */
        height: 180px; /* Maintain square aspect ratio */
        border-width: 2px;
    }
    .page-tai-xiu__icon-box-media img {
        height: 100% !important; /* Important to keep circular images from stretching */
        object-fit: cover !important;
    }

    /* Guide Section */
    .page-tai-xiu__guide-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-tai-xiu__guide-item {
        padding: 20px;
    }
    .page-tai-xiu__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__guide-step-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__guide-step-text {
        font-size: 0.95em;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-list {
        margin-top: 25px;
    }
    .page-tai-xiu__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95em;
    }

    /* Final CTA Section */
    .page-tai-xiu__cta-section {
        padding: 50px 0;
    }
    .page-tai-xiu__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Universal Image Adaptation */
    .page-tai-xiu img:not(.page-tai-xiu__icon-box-media img) {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Button Adaptation */
    .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% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__button-group,
    .page-tai-xiu__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }
    
    /* Ensure no horizontal scroll */
    .page-tai-xiu {
        overflow-x: hidden;
    }
}