/* style/tai-xiu.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-light: #F5F7FA;
    --border-color: #E0E0E0;
}

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

.page-tai-xiu__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-tai-xiu__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-main-color);
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

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

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

.page-tai-xiu__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-tai-xiu__cta-buttons--center {
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--background-light);
}

.page-tai-xiu__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 24px;
}

.page-tai-xiu__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--text-main-color);
    text-align: left;
}

.page-tai-xiu__hero-title {
    font-size: 3.2em;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--primary-color);
}

.page-tai-xiu__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--text-main-color);
}

.page-tai-xiu__hero-image {
    flex: 1 1 45%;
    text-align: center;
}

.page-tai-xiu__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Intro Section */
.page-tai-xiu__intro-section {
    background-color: var(--card-bg-color);
    padding: 60px 0;
}

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

.page-tai-xiu__icon-box {
    background: var(--background-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-tai-xiu__icon-box:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__icon-box-media {
    width: 200px;
    height: 200px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--secondary-color);
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

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

.page-tai-xiu__icon-box-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* How to Play Section */
.page-tai-xiu__how-to-play-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-tai-xiu__how-to-play-section .page-tai-xiu__section-title,
.page-tai-xiu__how-to-play-section .page-tai-xiu__text-block {
    color: #ffffff;
}

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

.page-tai-xiu__guide-step {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tai-xiu__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-tai-xiu__guide-step-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-tai-xiu__guide-step p {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Strategies Section */
.page-tai-xiu__strategies-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.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: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-tai-xiu__strategy-card:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__strategy-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-tai-xiu__strategy-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

/* Why cl88 Section */
.page-tai-xiu__why-cl88-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-tai-xiu__why-cl88-section .page-tai-xiu__section-title,
.page-tai-xiu__why-cl88-section .page-tai-xiu__text-block {
    color: #ffffff;
}

.page-tai-xiu__advantages-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-tai-xiu__advantages-list li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px 25px;
    border-radius: 8px;
    position: relative;
    padding-left: 45px;
}

.page-tai-xiu__advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-tai-xiu__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

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

.page-tai-xiu__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 15px;
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
}

/* Bottom CTA Section */
.page-tai-xiu__cta-bottom-section {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-tai-xiu__cta-bottom-section .page-tai-xiu__section-title,
.page-tai-xiu__cta-bottom-section .page-tai-xiu__text-block {
    color: #ffffff;
}

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

/* Image global styles */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-title {
        font-size: 2.8em;
    }
    .page-tai-xiu__hero-description {
        font-size: 1.1em;
    }
    .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;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-tai-xiu__hero-container {
        padding: 20px 15px;
        gap: 20px;
    }
    .page-tai-xiu__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-tai-xiu__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 0.95em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-tai-xiu__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-tai-xiu__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-tai-xiu__container {
        padding: 30px 15px;
    }

    /* Module 1: Three columns with perfect circular images */
    .page-tai-xiu__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-tai-xiu__icon-box-media {
        width: 180px;
        height: 180px;
        margin-bottom: 15px;
    }
    .page-tai-xiu__icon-box-title {
        font-size: 1.3em;
    }

    /* How to Play Section */
    .page-tai-xiu__guide-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-tai-xiu__guide-step {
        padding: 20px;
    }
    .page-tai-xiu__guide-step-title {
        font-size: 1.2em;
    }

    /* Strategies Section */
    .page-tai-xiu__strategy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-tai-xiu__strategy-card {
        padding: 20px;
    }
    .page-tai-xiu__strategy-title {
        font-size: 1.2em;
    }

    /* Why cl88 Section */
    .page-tai-xiu__advantages-list {
        margin: 30px auto;
        font-size: 1em;
    }
    .page-tai-xiu__advantages-list li {
        padding: 12px 15px 12px 40px;
        margin-bottom: 10px;
    }
    .page-tai-xiu__advantages-list li::before {
        left: 10px;
        font-size: 1.1em;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-list {
        margin-top: 30px;
    }
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 1.3em;
    }
    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Bottom CTA Section */
    .page-tai-xiu__cta-bottom-content {
        padding: 30px 15px;
    }

    /* General image and container responsive rules */
    .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__hero-cta-buttons,
    .page-tai-xiu__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-tai-xiu__cta-buttons > * {
        flex-grow: 1;
    }
}