/* style/tai-xiu.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-color: #0A0A0A;
    --card-bg-color: #111111;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --button-text-dark: #0A0A0A; /* For light gradient buttons */
}

.page-tai-xiu {
    color: var(--text-main-color);
    background-color: var(--background-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
}

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

.page-tai-xiu__section-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-tai-xiu__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-tai-xiu__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-tai-xiu__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-tai-xiu__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.7);
    margin-top: -100px; /* Overlap slightly for visual effect */
    position: relative;
    z-index: 1;
    border-radius: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-tai-xiu__hero-content .page-tai-xiu__description {
    font-size: 1.2em;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: var(--button-text-dark); /* Dark text on light gradient */
    border: none;
}

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

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-tai-xiu__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__dark-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-tai-xiu__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-tai-xiu__intro-section p,
.page-tai-xiu__rules-section p,
.page-tai-xiu__strategy-section p,
.page-tai-xiu__guide-section p {
    font-size: 1.05em;
    margin-bottom: 15px;
}

.page-tai-xiu__rules-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-tai-xiu__rules-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-tai-xiu__rules-section ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

.page-tai-xiu__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-tai-xiu__grid-two-cols--reverse .page-tai-xiu__text-content {
    order: 2;
}

.page-tai-xiu__grid-two-cols--reverse .page-tai-xiu__image-column {
    order: 1;
}

.page-tai-xiu__image-column {
    text-align: center;
}

.page-tai-xiu__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
    margin-bottom: 20px;
}

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

.page-tai-xiu__feature-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 211, 107, 0.3);
}

.page-tai-xiu__feature-icon {
    width: 100%;
    max-width: 150px; /* Smaller max-width for feature icons */
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__cta-buttons--center {
    text-align: center;
    margin-top: 40px;
}

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

.page-tai-xiu__step-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-tai-xiu__step-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
}

.page-tai-xiu__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05em;
    color: var(--text-main-color);
}

.page-tai-xiu__faq-answer p {
    margin-bottom: 10px;
}

.page-tai-xiu__faq-answer .page-tai-xiu__btn-primary {
    margin-top: 15px;
}

/* General image and button responsiveness */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-tai-xiu a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-tai-xiu {
        padding-top: 10px !important;
        font-size: 15px;
    }

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

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

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

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

    .page-tai-xiu__hero-content {
        padding: 20px;
        margin-top: -50px;
    }

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

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

    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-tai-xiu__dark-section,
    .page-tai-xiu__light-bg {
        padding: 40px 0;
    }

    .page-tai-xiu__grid-two-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-tai-xiu__grid-two-cols--reverse .page-tai-xiu__text-content {
        order: initial;
    }

    .page-tai-xiu__grid-two-cols--reverse .page-tai-xiu__image-column {
        order: initial;
    }

    .page-tai-xiu__features-grid,
    .page-tai-xiu__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__feature-card,
    .page-tai-xiu__step-card,
    .page-tai-xiu__faq-item {
        padding: 20px;
    }

    .page-tai-xiu__feature-title {
        font-size: 1.3em;
    }

    .page-tai-xiu__step-title {
        font-size: 1.4em;
    }

    .page-tai-xiu__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container,
    .page-tai-xiu__content-block,
    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__cta-buttons--center,
    .page-tai-xiu__features-grid,
    .page-tai-xiu__steps-grid,
    .page-tai-xiu__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__hero-section .page-tai-xiu__container { padding-left: 0; padding-right: 0; }
    .page-tai-xiu__hero-content { margin-left: 15px; margin-right: 15px; max-width: calc(100% - 30px); }

    /* Specific mobile rules from checklist (no carousel/guide grid on this page) */
    /* No specific rules for .page-tai-xiu__hero-carousel-section as it's not a carousel */
    /* No specific rules for .page-tai-xiu__guide-box as it's not present */
    /* No specific rules for .page-tai-xiu__home-content-box as it's not present */
    /* No specific rules for .page-tai-xiu__blog-grid as it's not present */
}