/* style/tai-xiu.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg-color: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --text-dark-contrast: #333333;
    --text-light-contrast: #ffffff;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.page-tai-xiu__section-padding {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-tai-xiu__dark-bg {
    background-color: var(--card-bg-color);
    color: var(--text-light-contrast);
}

.page-tai-xiu__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-tai-xiu__section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

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

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

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Adjust as needed */
    overflow: hidden;
}

.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: 1;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-tai-xiu__hero-description {
    font-size: 1.3em;
    color: var(--text-light-contrast);
    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;
}

.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;
    text-align: center;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    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: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

/* General Image Styling */
.page-tai-xiu__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Lists */
.page-tai-xiu__feature-list,
.page-tai-xiu__ordered-list,
.page-tai-xiu__list-style-disc {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-tai-xiu__feature-list li,
.page-tai-xiu__ordered-list li,
.page-tai-xiu__list-style-disc li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05em;
}

.page-tai-xiu__feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-tai-xiu__ordered-list li::before {
    content: counter(list-item) ". ";
    counter-increment: list-item;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-tai-xiu__list-style-disc li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* Bet Types Grid */
.page-tai-xiu__bet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

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

.page-tai-xiu__bet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--glow-color);
}

.page-tai-xiu__bet-card .page-tai-xiu__card-title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-tai-xiu__bet-card p {
    color: var(--text-main-color);
    font-size: 1em;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    margin-top: 30px;
}

.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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #1a1a1a; /* Slightly lighter dark for question */
    user-select: none;
    list-style: none; /* For details/summary */
}

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

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 15px;
    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 25px 20px;
    font-size: 1.05em;
    color: var(--text-main-color);
    line-height: 1.7;
}

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

/* Conclusion Section */
.page-tai-xiu__conclusion-section {
    text-align: center;
}

.page-tai-xiu__conclusion-section .page-tai-xiu__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__section-padding {
        padding: 50px 30px;
    }

    .page-tai-xiu__hero-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }

    .page-tai-xiu__hero-description {
        font-size: 1.2em;
    }

    .page-tai-xiu__section-title {
        font-size: 2.2em;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.6em;
    }

    .page-tai-xiu__bet-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

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

    .page-tai-xiu__section-padding {
        padding: 30px 15px;
    }

    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-tai-xiu__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-tai-xiu__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__btn-primary,
    .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 20px;
        font-size: 1em;
    }

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

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

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

    .page-tai-xiu__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    .page-tai-xiu__bet-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-tai-xiu__bet-card {
        padding: 20px;
    }

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

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

    /* Ensure all image containers are responsive */
    .page-tai-xiu__hero-image-wrapper,
    .page-tai-xiu__introduction-section,
    .page-tai-xiu__rules-section,
    .page-tai-xiu__bet-types-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__strategy-section,
    .page-tai-xiu__promo-section,
    .page-tai-xiu__comparison-section,
    .page-tai-xiu__app-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* No specific carousel or guide-box for this page, so no explicit mobile rules needed for them */
    /* The prompt mentioned `__hero-carousel-section` and `__guide-box` as homepage elements. */
    /* This is a `tai-xiu` page, so these specific class names are not used for these content sections. */
    /* The general image/button rules will apply to the hero image and CTA buttons. */

    /* Placeholder for `__home-content-box` and `__home-content-inner` if they were used (not used on this page) */
    /* .page-tai-xiu__home-content-box { max-width: 100%; height: auto; } */
    /* .page-tai-xiu__home-content-inner { height: auto; overflow: visible; } */

    /* Placeholder for `__blog-grid` if it were used (not used on this page) */
    /* .page-tai-xiu__blog-grid { grid-template-columns: 1fr; } */
}