/* style/tai-xiu.css */

:root {
    --s8bet-primary-color: #26A9E0;
    --s8bet-secondary-color: #FFFFFF;
    --s8bet-text-dark: #333333;
    --s8bet-text-light: #ffffff;
    --s8bet-bg-light: #ffffff;
    --s8bet-btn-login: #EA7C07;
}

.page-tai-xiu {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--s8bet-text-dark);
    background-color: var(--s8bet-bg-light);
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Specific small top padding, not --header-offset */
    padding-bottom: 40px;
    background-color: var(--s8bet-bg-light);
}

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

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

.page-tai-xiu__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--s8bet-primary-color);
}

.page-tai-xiu__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

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

/* General Buttons */
.page-tai-xiu__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background-color: var(--s8bet-primary-color);
    color: var(--s8bet-text-light);
    border: 2px solid var(--s8bet-primary-color);
}

.page-tai-xiu__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

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

.page-tai-xiu__btn-secondary:hover {
    background-color: var(--s8bet-primary-color);
    color: var(--s8bet-text-light);
}

/* Section Titles */
.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--s8bet-primary-color);
    line-height: 1.3;
}

.page-tai-xiu__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--s8bet-primary-color);
}

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

.page-tai-xiu__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--s8bet-text-dark);
}

.page-tai-xiu__text-block:last-child {
    margin-bottom: 0;
}

.page-tai-xiu__highlight {
    font-weight: 700;
    color: var(--s8bet-primary-color);
}

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

.page-tai-xiu__content-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page-tai-xiu__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-tai-xiu__text-content {
    flex: 1 1 50%;
    min-width: 300px;
}

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

.page-tai-xiu__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--s8bet-text-dark);
}

.page-tai-xiu__list li {
    margin-bottom: 10px;
}

/* Tips Section */
.page-tai-xiu__tips-section {
    padding: 60px 0;
    background-color: var(--s8bet-primary-color);
    color: var(--s8bet-text-light);
}

.page-tai-xiu__tips-section .page-tai-xiu__section-title,
.page-tai-xiu__tips-section .page-tai-xiu__sub-title {
    color: var(--s8bet-text-light);
}

.page-tai-xiu__tips-section .page-tai-xiu__text-block,
.page-tai-xiu__tips-section .page-tai-xiu__list li {
    color: var(--s8bet-text-light);
}

.page-tai-xiu__tips-section .page-tai-xiu__highlight {
    color: var(--s8bet-secondary-color);
}

/* Features Section */
.page-tai-xiu__features-section {
    padding: 60px 0;
    background-color: var(--s8bet-bg-light);
}

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

.page-tai-xiu__feature-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-tai-xiu__feature-item:hover {
    transform: translateY(-5px);
}

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

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

.page-tai-xiu__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--s8bet-text-dark);
}

/* Promo Section */
.page-tai-xiu__promo-section {
    padding: 60px 0;
    background-color: var(--s8bet-primary-color);
    color: var(--s8bet-text-light);
    text-align: center;
}

.page-tai-xiu__promo-section .page-tai-xiu__section-title {
    color: var(--s8bet-text-light);
}

.page-tai-xiu__promo-section .page-tai-xiu__text-block {
    color: var(--s8bet-text-light);
    margin-bottom: 30px;
}

.page-tai-xiu__promo-section .page-tai-xiu__highlight {
    color: var(--s8bet-secondary-color);
}

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

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

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

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

.page-tai-xiu__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--s8bet-primary-color);
    position: relative;
}

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

.page-tai-xiu__faq-item summary::marker {
    display: none;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: var(--s8bet-primary-color);
    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 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--s8bet-text-dark);
}

/* Final CTA Section */
.page-tai-xiu__cta-final {
    padding: 60px 0;
    background-color: var(--s8bet-primary-color);
    color: var(--s8bet-text-light);
    text-align: center;
}

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

.page-tai-xiu__cta-final .page-tai-xiu__section-title {
    color: var(--s8bet-text-light);
    margin-bottom: 20px;
}

.page-tai-xiu__cta-final .page-tai-xiu__text-block {
    color: var(--s8bet-text-light);
    margin-bottom: 40px;
}

.page-tai-xiu__cta-final .page-tai-xiu__highlight {
    color: var(--s8bet-secondary-color);
}

/* Image responsiveness for all images within .page-tai-xiu */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-tai-xiu__hero-content,
    .page-tai-xiu__hero-image-wrapper {
        flex: 1 1 100%;
    }

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

    .page-tai-xiu__content-grid {
        flex-direction: column;
        align-items: center;
    }

    .page-tai-xiu__content-grid--reverse {
        flex-direction: column;
    }

    .page-tai-xiu__text-content,
    .page-tai-xiu__image-wrapper {
        flex: 1 1 100%;
    }

    .page-tai-xiu__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__container,
    .page-tai-xiu__hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-tai-xiu__hero-title {
        font-size: 2rem;
    }

    .page-tai-xiu__hero-description {
        font-size: 1rem;
    }

    /* Buttons */
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-tai-xiu__btn,
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu a[class*="button"],
    .page-tai-xiu a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__cta-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

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

    .page-tai-xiu__sub-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    /* General Content Sections */
    .page-tai-xiu__intro-section,
    .page-tai-xiu__how-to-play-section,
    .page-tai-xiu__tips-section,
    .page-tai-xiu__features-section,
    .page-tai-xiu__promo-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__cta-final {
        padding: 40px 0;
    }

    .page-tai-xiu__text-block {
        font-size: 0.95rem;
    }

    .page-tai-xiu__list {
        font-size: 0.95rem;
        margin-left: 20px;
    }

    /* Images */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ */
    .page-tai-xiu__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

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

    /* Ensure content containers don't overflow */
    .page-tai-xiu__container,
    .page-tai-xiu__content-grid,
    .page-tai-xiu__feature-grid,
    .page-tai-xiu__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden;
    }

    /* Specific for feature grid */
    .page-tai-xiu__feature-grid {
        grid-template-columns: 1fr;
    }
}