.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: #333333;
    background-color: #FFFFFF;
}

.page-tai-xiu__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Minimal top padding as body handles header offset */
    background-color: #017439;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 20px;
}

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

.page-tai-xiu__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Register and Login font color for main title for prominence */
}

.page-tai-xiu__lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 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: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-tai-xiu__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

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

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

.page-tai-xiu__section:nth-of-type(even) {
    background-color: #f8f8f8;
}

.page-tai-xiu__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-tai-xiu__light-text {
    color: #ffffff;
}

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

.page-tai-xiu__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: #017439;
}

.page-tai-xiu__dark-bg .page-tai-xiu__section-title {
    color: #ffffff;
}

.page-tai-xiu__sub-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439;
}

.page-tai-xiu__dark-bg .page-tai-xiu__sub-title {
    color: #f0f0f0;
}

.page-tai-xiu p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1em;
    color: #333333;
}

.page-tai-xiu__dark-bg p {
    color: #e0e0e0;
}

.page-tai-xiu__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-tai-xiu__bet-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-tai-xiu__bet-card .page-tai-xiu__card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #017439;
}

.page-tai-xiu__bet-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-tai-xiu__cta-center {
    margin-top: 40px;
    text-align: center;
}

.page-tai-xiu__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-tai-xiu__list-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    text-align: left;
    color: #333333;
}

.page-tai-xiu__list-item p {
    color: #555555;
}

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

.page-tai-xiu__step-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333;
}

.page-tai-xiu__step-card .page-tai-xiu__card-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #017439;
}

.page-tai-xiu__step-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

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

.page-tai-xiu__faq-list {
    margin-top: 30px;
    text-align: left;
}

.page-tai-xiu__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-tai-xiu__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #017439;
    list-style: none; /* Remove default marker */
}

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

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: #017439;
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

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

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
    }

    .page-tai-xiu__hero-image {
        object-fit: contain !important; /* Mobile hero image: contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-tai-xiu__lead-text {
        font-size: 1rem;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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__section {
        padding: 40px 15px;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8rem;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.3rem;
    }

    .page-tai-xiu p,
    .page-tai-xiu li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .page-tai-xiu__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-tai-xiu__bet-grid,
    .page-tai-xiu__steps-grid,
    .page-tai-xiu__advantages-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__bet-card,
    .page-tai-xiu__step-card,
    .page-tai-xiu__list-item {
        padding: 20px;
    }

    .page-tai-xiu__bet-card .page-tai-xiu__card-title,
    .page-tai-xiu__step-card .page-tai-xiu__card-title {
        font-size: 1.4rem;
    }

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

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

    /* Universal image and container rules */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container,
    .page-tai-xiu__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}