/* style/tai-xiu.css */

/* General styles for the page */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #FFF1E8; /* Text Main for dark background */
    background-color: #140C0C; /* Background */
    line-height: 1.6;
}

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

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #F3C54D; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-tai-xiu h3 {
    color: #C61F1F; /* Main color for sub-titles */\    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-tai-xiu p {
    margin-bottom: 1em;
}

.page-tai-xiu ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-tai-xiu li {
    margin-bottom: 0.5em;
}

.page-tai-xiu a {
    color: #FFB04A; /* A lighter orange for links for contrast */
    text-decoration: none;
}

.page-tai-xiu a:hover {
    text-decoration: underline;
}

/* Button styles */
.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.page-tai-xiu__cta-buttons--center {
    justify-content: center;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #140C0C; /* Dark text for light button */
    border: none;
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
    background: #2A1212; /* Card BG */
    color: #FFF1E8; /* Text Main */
    border: 2px solid #6A1E1E; /* Border color */
}

.page-tai-xiu__btn-secondary:hover {
    background: #6A1E1E; /* Deep Red */
    color: #FFF1E8;
    transform: translateY(-2px);
}

/* Image styles */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 60px;
    background-color: #140C0C; /* Ensure dark background for the section */
}

.page-tai-xiu__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 15px;
}

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-tai-xiu__main-title {
    font-size: 3.2em;
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-tai-xiu__main-description {
    font-size: 1.1em;
    color: #FFF1E8;
    margin-bottom: 30px;
}

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

.page-tai-xiu__side-image {
    border-radius: 12px;
}

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

/* How to Play Section */
.page-tai-xiu__how-to-play-section {
    padding: 60px 0;
    background-color: #140C0C;
}

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

.page-tai-xiu__guide-item {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E;
}

.page-tai-xiu__guide-title {
    color: #F3C54D; /* Gold */
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Strategies Section */
.page-tai-xiu__strategies-section {
    padding: 60px 0;
    background-color: #2A1212;
}

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

.page-tai-xiu__strategy-card {
    background-color: #140C0C;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E;
}

.page-tai-xiu__strategy-title {
    color: #F3C54D;
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Why Z888 Section */
.page-tai-xiu__why-z888-section {
    padding: 60px 0;
    background-color: #140C0C;
}

.page-tai-xiu__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-tai-xiu__benefits-list li {
    background-color: #2A1212;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #6A1E1E;
    position: relative;
    padding-left: 45px;
    color: #FFF1E8;
}

.page-tai-xiu__benefits-list li::before {
    content: '✅';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

/* Promotions Section */
.page-tai-xiu__promo-section {
    padding: 60px 0;
    background-color: #2A1212;
}

.page-tai-xiu__promo-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-tai-xiu__promo-list li {
    background-color: #140C0C;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #6A1E1E;
    position: relative;
    padding-left: 45px;
    color: #FFF1E8;
}

.page-tai-xiu__promo-list li::before {
    content: '🎁';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

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

.page-tai-xiu__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__faq-item {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #F3C54D; /* Gold */
    font-size: 1.2em;
    list-style: none; /* Hide default marker */
}

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

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFB04A; /* Lighter orange for toggle */
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    color: #FFF1E8;
}

/* Final CTA Section */
.page-tai-xiu__cta-final-section {
    padding: 60px 0;
    background-color: #2A1212;
    text-align: center;
}

.page-tai-xiu__cta-final-content {
    max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: 2.8em;
    }
    .page-tai-xiu__section-title {
        font-size: 2em;
    }
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tai-xiu__hero-content {
        text-align: center;
    }
    .page-tai-xiu__hero-image {
        order: -1; /* Image above text on medium screens */
    }
}

@media (max-width: 768px) {
    /* Fixed Header & Body Padding - only small padding top */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding */
    }

    /* General responsive for images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure containers have padding and max-width */
    .page-tai-xiu__container,
    .page-tai-xiu__intro-section > div,
    .page-tai-xiu__how-to-play-section > div,
    .page-tai-xiu__strategies-section > div,
    .page-tai-xiu__why-z888-section > div,
    .page-tai-xiu__promo-section > div,
    .page-tai-xiu__faq-section > div,
    .page-tai-xiu__cta-final-section > div {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Buttons responsive */
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center; /* Center buttons when stacked */
    }
    .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-left: 15px !important; /* Ensure padding inside button */
        padding-right: 15px !important;
    }

    /* Hero Section */
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .page-tai-xiu__hero-content {
        text-align: center;
    }
    .page-tai-xiu__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-tai-xiu__main-description {
        font-size: 1em;
    }
    .page-tai-xiu__hero-image {
        order: -1; /* Image above text */
        width: 100%;
    }

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

    /* Guide Steps */
    .page-tai-xiu__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Strategy Grid */
    .page-tai-xiu__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Benefits List */
    .page-tai-xiu__benefits-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-tai-xiu__benefits-list li {
        padding-left: 40px;
    }
    .page-tai-xiu__benefits-list li::before {
        left: 10px;
    }

    /* Promo List */
    .page-tai-xiu__promo-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-tai-xiu__promo-list li {
        padding-left: 40px;
    }
    .page-tai-xiu__promo-list li::before {
        left: 10px;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px;
    }
}