/* style/tai-xiu.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-highlight: #FFFF00;
    --border-light: #e0e0e0;
}

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

.page-tai-xiu__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    color: var(--text-light);
    overflow: hidden;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for the image wrapper */
    overflow: hidden;
}

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

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 30px;
    padding: 0 20px;
}

.page-tai-xiu__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.page-tai-xiu__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 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-color: var(--button-register-bg);
    color: var(--button-text-highlight);
    border: 2px solid var(--button-register-bg);
}

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

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

.page-tai-xiu__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-tai-xiu__section {
    padding: 60px 0;
    text-align: center;
}

.page-tai-xiu__introduction {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-tai-xiu__rules {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-tai-xiu__strategies {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-tai-xiu__benefits {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-tai-xiu__how-to-play {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-tai-xiu__faq {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

.page-tai-xiu__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-tai-xiu__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.page-tai-xiu__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-tai-xiu__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.page-tai-xiu__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-tai-xiu__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.7;
}

.page-tai-xiu__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

.page-tai-xiu__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
}

.page-tai-xiu__figcaption {
    font-size: 0.9em;
    color: inherit;
    margin-top: 10px;
    opacity: 0.8;
}

.page-tai-xiu__steps-list {
    list-style-type: none;
    padding: 0;
    counter-reset: step-counter;
    margin-top: 30px;
}

.page-tai-xiu__steps-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
    text-align: left;
}

.page-tai-xiu__steps-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--button-register-bg);
    color: var(--button-text-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: bold;
}

.page-tai-xiu__steps-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: inherit;
}

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

.page-tai-xiu__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-tai-xiu__faq-question:hover {
    background-color: #f0f0f0;
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--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 25px 20px;
    font-size: 1.05em;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: 2.5em;
    }
    .page-tai-xiu__hero-description {
        font-size: 1.1em;
    }
    .page-tai-xiu__btn {
        padding: 12px 24px;
        font-size: 1em;
    }
    .page-tai-xiu__section-title {
        font-size: 2em;
    }
    .page-tai-xiu__paragraph,
    .page-tai-xiu__list-item {
        font-size: 1em;
    }
    .page-tai-xiu__steps-title {
        font-size: 1.3em;
    }
    .page-tai-xiu__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }
    .page-tai-xiu__main-title {
        font-size: 1.8em;
        line-height: 1.3;
    }
    .page-tai-xiu__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-tai-xiu__btn {
        padding: 12px 15px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-tai-xiu__section {
        padding: 40px 0;
    }
    .page-tai-xiu__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-tai-xiu__paragraph,
    .page-tai-xiu__list-item,
    .page-tai-xiu__figcaption,
    .page-tai-xiu__faq-answer p {
        font-size: 0.95em;
        line-height: 1.6;
    }
    .page-tai-xiu__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-tai-xiu__steps-item {
        padding-left: 50px;
        margin-bottom: 30px;
    }
    .page-tai-xiu__steps-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }
    .page-tai-xiu__steps-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px;
    }
}