/* style/tai-xiu.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Body background is dark, so text is light */
    background-color: var(--deep-navy); /* From shared.css, explicitly set for context */
    line-height: 1.6;
    font-size: 16px;
}

.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    margin-top: -100px; /* Pull content up slightly over the bottom of the image for visual flow */
    background: linear-gradient(0deg, var(--deep-navy) 0%, rgba(8, 22, 43, 0.8) 50%, rgba(8, 22, 43, 0) 100%); /* Fading background to blend with hero image */
    border-radius: 10px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2em, 4vw, 3em);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    line-height: 1.2;
}

.page-tai-xiu__description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__section {
    padding: 60px 0;
    background-color: var(--deep-navy);
    position: relative;
}

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

.page-tai-xiu__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: var(--text-main-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-tai-xiu__content-block p {
    margin-bottom: 15px;
    color: var(--text-secondary-color);
}

.page-tai-xiu__content-block ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-tai-xiu__content-block ul li {
    position: relative;
    margin-bottom: 10px;
    color: var(--text-secondary-color);
}

.page-tai-xiu__content-block ul li::before {
    content: '•';
    color: var(--gold-color);
    position: absolute;
    left: -20px;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-tai-xiu__figure {
    margin: 30px auto;
    max-width: 800px;
    text-align: center;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-tai-xiu__figcaption {
    font-size: 0.9em;
    color: var(--text-secondary-color);
    margin-top: 10px;
    font-style: italic;
}

.page-tai-xiu__promo-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--gold-color);
    padding: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__promo-box p {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-tai-xiu__promo-box--alt {
    border-left: 5px solid var(--secondary-color);
}

.page-tai-xiu__info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__info-card-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__info-card p {
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-tai-xiu__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__faq-question {
    font-size: 1.15em;
    color: var(--text-main-color);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.page-tai-xiu__faq-answer {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-top: 10px;
}

.page-tai-xiu__cta-buttons--faq {
    margin-top: 40px;
}

.page-tai-xiu__conclusion .page-tai-xiu__content-block p {
    font-size: 1.05em;
}

/* --- Responsive Styles --- */

/* Tablet styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-content {
        margin-top: -80px;
        padding: 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2em, 3.5vw, 2.8em);
    }

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

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-tai-xiu__section-title {
        font-size: clamp(1.6em, 3vw, 2.5em);
    }

    .page-tai-xiu__sub-title {
        font-size: clamp(1.3em, 2.2vw, 1.6em);
    }

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

    .page-tai-xiu__container {
        padding: 0 15px;
    }

    .page-tai-xiu__figure {
        margin: 20px auto;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px;
    }

    .page-tai-xiu__hero-content {
        margin-top: -60px; /* Adjust pull-up for smaller screens */
        padding: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-tai-xiu__description {
        font-size: 0.95em;
        padding: 0 10px;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column !important; /* Force vertical stacking */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Buttons and button containers */
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu a[class*="button"],
    .page-tai-xiu a[class*="btn"] {
        padding: 12px 15px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons if not full width */
    }

    /* 2. Single column long text containers */
    .page-tai-xiu__section {
        padding: 30px 0;
    }

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

    .page-tai-xiu__section-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-tai-xiu__sub-title {
        font-size: clamp(1.2em, 5vw, 1.5em);
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-tai-xiu__content-block p,
    .page-tai-xiu__content-block ul li {
        font-size: 0.95em;
    }

    /* 3. Generic images and figures */
    .page-tai-xiu__figure {
        margin: 20px 0;
        padding: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .page-tai-xiu__promo-box,
    .page-tai-xiu__info-card {
        padding: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__promo-box p {
        font-size: 1em;
    }

    /* 5. Registration tutorial and FAQ sections */
    .page-tai-xiu__faq-item {
        padding: 15px;
        margin-bottom: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__faq-question {
        font-size: 1.05em;
    }

    .page-tai-xiu__faq-answer {
        font-size: 0.9em;
    }

    .page-tai-xiu__cta-buttons--faq {
        margin-top: 30px;
    }
}