/* style/tai-xiu.css */

/* --- Base Styles --- */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main - light text for dark background */
    background-color: #0A0A0A; /* Background */
}

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

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

.page-tai-xiu__section:nth-child(even) {
    background-color: #111111; /* Card BG for alternating sections */
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #FFD36B; /* Glow color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-tai-xiu__sub-title {
    font-size: 1.8em;
    color: #F2C14E; /* Main color for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #FFF6D6;
}

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

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

.page-tai-xiu__list-highlight {
    color: #FFD36B;
}

/* --- Buttons --- */
.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

.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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for light button */
    border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Main color for text */
    border: 2px solid #F2C14E; /* Border color */
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111; /* Dark text for light button */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* --- Hero Section --- */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Minimum size */
}

.page-tai-xiu__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: -100px auto 0; /* Pull content up slightly over image for visual flow */
    position: relative;
    z-index: 2;
    background-color: rgba(17, 17, 17, 0.9); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 size */
    color: #FFD36B; /* Glow color */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

.page-tai-xiu__description {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Image Content --- */
.page-tai-xiu__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
    object-fit: cover;
}

/* --- FAQ Section (H3s only, no JS accordion) --- */
.page-tai-xiu__faq-question {
    font-size: 1.4em;
    color: #F2C14E;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: default; /* Not clickable for non-JS FAQ */
}

.page-tai-xiu__faq-answer {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #3A2A12; /* Border */
}


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

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

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

    .page-tai-xiu__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.5em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-tai-xiu__text-block {
        font-size: 1em;
    }

    /* Hero Section Mobile */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
    }

    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px; /* Adjust height for mobile */
    }

    .page-tai-xiu__hero-image {
        min-height: 200px !important; /* Ensure minimum size */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tai-xiu__hero-content {
        padding: 20px 15px;
        margin-top: -60px; /* Adjust pull-up for mobile */
        border-radius: 10px;
    }

    .page-tai-xiu__main-title {
        font-size: 2em; /* Ensure H1 is not too big */
        margin-bottom: 15px;
    }

    .page-tai-xiu__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Buttons Mobile */
    .page-tai-xiu__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* General Images Mobile */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
        box-sizing: border-box !important;
    }

    /* Placeholder for homepage carousel (as per "必写清单" even if not in HTML for this page) */
    .page-tai-xiu__hero-carousel-section {
        padding-top: 10px !important;
        position: relative;
        overflow: hidden;
    }
    .page-tai-xiu__hero-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    .page-tai-xiu__hero-slide {
        display: none;
        width: 100%;
        height: 250px; /* Fixed height for mobile carousel */
        background-size: cover;
        background-position: center;
        position: relative;
    }
    .page-tai-xiu__hero-slide.is-active {
        display: block;
    }
    .page-tai-xiu__hero-slider-prev,
    .page-tai-xiu__hero-slider-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        z-index: 10;
        font-size: 1.5em;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .page-tai-xiu__hero-slider-prev { left: 10px; }
    .page-tai-xiu__hero-slider-next { right: 10px; }
    .page-tai-xiu__hero-dots {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }
    .page-tai-xiu__hero-dot {
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
    }
    .page-tai-xiu__hero-dot.is-active {
        background-color: #FFD36B;
    }

    /* Placeholder for homepage guide box + five team cards (as per "必写清单") */
    .page-tai-xiu__guide-box {
        padding: 15px;
        background: #111111; /* Card BG */
        border-radius: 8px;
        margin-top: 30px;
    }
    .page-tai-xiu__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* 2 top, 3 bottom on 6-col grid */
        gap: 10px;
    }
    .page-tai-xiu__guide-card {
        padding-top: 0 !important; /* Reset specific desktop padding */
        text-align: center;
        background-color: transparent;
    }
    .page-tai-xiu__guide-card--pos-1,
    .page-tai-xiu__guide-card--pos-2 {
        grid-column: span 3; /* Two cards span 3 columns each (total 6) */
    }
    .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; /* Three cards span 2 columns each (total 6) */
    }
    .page-tai-xiu__guide-card img {
        aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical team images */
        object-fit: contain;
        width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
        border-radius: 5px;
    }
    /* No text under guide card images for homepage */

    /* Placeholder for homepage home_content box (as per "必写清单") */
    .page-tai-xiu__home-content-box {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
        padding: 10px 15px;
        border: 2px solid #3A2A12; /* Border */
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
        height: auto !important; /* Auto height on mobile */
        box-sizing: border-box !important;
    }
    .page-tai-xiu__home-content-inner {
        height: auto !important; /* Auto height on mobile */
        overflow: visible !important; /* Show all content on mobile */
    }

    /* Placeholder for homepage blog card section (as per "必写清单") */
    .page-tai-xiu__blog-section {
        padding: 40px 0;
        background-color: #0A0A0A; /* Background */
    }
    .page-tai-xiu__blog-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* Single column on mobile */
        gap: 20px;
        padding: 0 15px;
    }
    .page-tai-xiu__blog-card {
        background-color: #111111; /* Card BG */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
    }
    .page-tai-xiu__blog-card-image {
        width: 100% !important;
        height: 200px !important; /* Fixed height for blog card images on mobile */
        object-fit: cover;
        display: block;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-tai-xiu__blog-card-content {
        padding: 15px;
        flex-grow: 1;
    }
    .page-tai-xiu__blog-card-title {
        font-size: 1.2em;
        color: #F2C14E;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    .page-tai-xiu__blog-card-title a {
        color: inherit;
        text-decoration: none;
    }
    .page-tai-xiu__blog-card-title a:hover {
        text-decoration: underline;
    }
    .page-tai-xiu__blog-card-date {
        font-size: 0.85em;
        color: #FFD36B;
        margin-bottom: 10px;
    }
    .page-tai-xiu__blog-card-excerpt {
        font-size: 0.9em;
        color: #FFF6D6;
        margin-bottom: 15px;
    }
    .page-tai-xiu__blog-card-link {
        display: inline-block;
        color: #F2C14E;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.9em;
    }
    .page-tai-xiu__blog-card-link:hover {
        text-decoration: underline;
    }
    .page-tai-xiu__view-all-button {
        display: block;
        width: fit-content;
        margin: 30px auto 0;
        padding: 10px 25px;
        background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
        color: #111111;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        transition: opacity 0.3s ease;
    }
    .page-tai-xiu__view-all-button:hover {
        opacity: 0.9;
    }
}