.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #333333;
    background-color: #F5F7FA;
    line-height: 1.6;
}

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

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

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.page-tai-xiu__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: #E53935;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-tai-xiu__description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-tertiary,
.page-tai-xiu a[class*="button"],
.page-tai-xiu a[class*="btn"] {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

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

.page-tai-xiu__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-tai-xiu__btn-tertiary {
    background-color: #f0f0f0;
    color: #E53935;
    border: 1px solid #E0E0E0;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-tai-xiu__btn-tertiary:hover {
    background-color: #E53935;
    color: #ffffff;
    border-color: #E53935;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #E53935;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-tai-xiu__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF5A4F;
    border-radius: 2px;
}

.page-tai-xiu__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.page-tai-xiu__highlight {
    color: #E53935;
    font-weight: 600;
}

.page-tai-xiu__introduction-section,
.page-tai-xiu__why-choose-section,
.page-tai-xiu__rules-section,
.page-tai-xiu__bet-types-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__registration-guide-section,
.page-tai-xiu__promotions-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__conclusion-section {
    padding: 60px 0;
}

.page-tai-xiu__introduction-section {
    background-color: #F5F7FA;
}

.page-tai-xiu__why-choose-section {
    background-color: #ffffff;
}

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

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

.page-tai-xiu__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
}

.page-tai-xiu__feature-title {
    font-size: 1.5em;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__feature-text {
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

.page-tai-xiu__rules-section {
    background-color: #F5F7FA;
}

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

.page-tai-xiu__list-item {
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-left: 5px solid #E53935;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333333;
}

.page-tai-xiu__list-item strong {
    color: #E53935;
}

.page-tai-xiu__bet-types-section {
    background-color: #ffffff;
}

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

.page-tai-xiu__bet-type-card {
    background-color: #FDFDFD;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-tai-xiu__bet-type-title {
    font-size: 1.4em;
    color: #E53935;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__bet-type-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

.page-tai-xiu__strategy-section {
    background-color: #F5F7FA;
}

.page-tai-xiu__registration-guide-section {
    background-color: #ffffff;
}

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

.page-tai-xiu__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    padding-left: 60px;
}

.page-tai-xiu__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.3em;
    box-shadow: 0 4px 8px rgba(229, 57, 53, 0.2);
}

.page-tai-xiu__step-title {
    font-size: 1.3em;
    color: #E53935;
    margin-bottom: 5px;
    font-weight: 600;
}

.page-tai-xiu__step-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

.page-tai-xiu__promotions-section {
    background-color: #F5F7FA;
}

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

.page-tai-xiu__promo-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-tai-xiu__promo-card h3,
.page-tai-xiu__promo-card p {
    padding: 0 20px;
}

.page-tai-xiu__promo-title {
    font-size: 1.4em;
    color: #E53935;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__promo-description {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tai-xiu__promo-card .page-tai-xiu__btn-tertiary {
    margin: 0 20px 20px;
    align-self: center;
    width: calc(100% - 40px);
}

.page-tai-xiu__faq-section {
    background-color: #ffffff;
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
}

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

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.3s ease;
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
    background-color: #f0f0f0;
    border-bottom-color: transparent;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935;
    width: 20px;
    text-align: center;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: '−';
}

.page-tai-xiu__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
    border-top: 1px solid #E0E0E0;
    margin-top: -1px; /* Overlap border with summary */
}

.page-tai-xiu__faq-item details > summary {
    list-style: none;
}

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

.page-tai-xiu__conclusion-section {
    background-color: #F5F7FA;
    text-align: center;
}

@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-tai-xiu__section-title {
        font-size: 2em;
    }
    .page-tai-xiu__feature-grid, .page-tai-xiu__bet-type-grid, .page-tai-xiu__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tai-xiu {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-tai-xiu__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-tai-xiu__hero-image-wrapper {
        max-height: unset;
    }
    .page-tai-xiu__hero-image {
        object-fit: contain !important; /* Mobile: contain to avoid cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__main-title {
        font-size: 2.2em;
    }
    .page-tai-xiu__description {
        font-size: 1em;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu__btn-tertiary,
    .page-tai-xiu a[class*="button"],
    .page-tai-xiu a[class*="btn"] {
        width: 100% !important;
        max-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-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-tai-xiu__section-title::after {
        width: 60px;
    }
    .page-tai-xiu__text-block {
        font-size: 1em;
    }
    .page-tai-xiu__feature-grid, .page-tai-xiu__bet-type-grid, .page-tai-xiu__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-tai-xiu__feature-card,
    .page-tai-xiu__bet-type-card,
    .page-tai-xiu__promo-card {
        padding: 20px;
    }
    .page-tai-xiu__feature-icon {
        max-width: 200px;
    }
    .page-tai-xiu__feature-title {
        font-size: 1.3em;
    }
    .page-tai-xiu__list-item {
        font-size: 1em;
        padding: 15px;
    }
    .page-tai-xiu__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    .page-tai-xiu__step-item::before {
        position: static;
        margin-bottom: 15px;
    }
    .page-tai-xiu__step-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__promo-image {
        height: 180px;
    }
    .page-tai-xiu__promo-title {
        font-size: 1.2em;
    }
    .page-tai-xiu__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-tai-xiu__faq-answer {
        padding: 10px 20px 15px;
    }
    /* Mobile image general */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}