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

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

.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #E53935;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.page-tai-xiu__hero-content {
    padding: 40px 20px;
    text-align: center;
    background: #FFFFFF; /* Card BG from custom settings */
    border-radius: 8px;
    margin-top: -80px; /* Overlap with image for visual effect */
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: calc(100% - 30px);
    max-width: 900px;
}

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

.page-tai-xiu__hero-description {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

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

.page-tai-xiu__content-area {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.page-tai-xiu__text-block--light p {
    color: #ffffff;
}

.page-tai-xiu__sub-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E53935;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

.page-tai-xiu__sub-list {
    list-style: circle;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-tai-xiu__dark-section {
    background-color: #E53935; /* Main color from custom settings */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-tai-xiu__card {
    background: #FFFFFF; /* Card BG from custom settings */
    border: 1px solid #E0E0E0; /* Border color from custom settings */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-tai-xiu__card--dark {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-tai-xiu__card--dark .page-tai-xiu__card-title {
    color: #FF5A4F;
}

.page-tai-xiu__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
}

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

.page-tai-xiu__image--right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 50%;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

/* FAQ Styles */
details.page-tai-xiu__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #E0E0E0; /* Border color from custom settings */
    overflow: hidden;
    background: #FFFFFF; /* Card BG from custom settings */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
    background: #f5f5f5;
}

.page-tai-xiu__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}

.page-tai-xiu__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #E53935; /* Main color from custom settings */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-image-wrapper {
        max-height: 500px;
    }
    .page-tai-xiu__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-tai-xiu__hero-description {
        font-size: 1rem;
    }
    .page-tai-xiu__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.2rem);
    }
    .page-tai-xiu__sub-title {
        font-size: 1.4rem;
    }
    .page-tai-xiu__image--right {
        float: none;
        margin: 20px auto;
        max-width: 80%;
    }
    .page-tai-xiu__btn-primary, .page-tai-xiu__btn-secondary {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 15px;
    }
    .page-tai-xiu__hero-section {
        padding-top: 10px;
    }
    .page-tai-xiu__hero-image-wrapper {
        max-height: 300px;
    }
    .page-tai-xiu__hero-image {
        object-fit: contain !important; /* Force contain for mobile hero */
        aspect-ratio: unset !important;
    }
    .page-tai-xiu__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        width: calc(100% - 20px) !important;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-tai-xiu__hero-description {
        font-size: 0.95rem;
    }
    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-tai-xiu__btn-primary, .page-tai-xiu__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-tai-xiu__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
        padding-top: 10px;
    }
    .page-tai-xiu__sub-title {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-tai-xiu__content-area {
        font-size: 0.95rem;
    }
    .page-tai-xiu__grid-three-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-tai-xiu__card {
        padding: 20px;
    }
    .page-tai-xiu__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .page-tai-xiu__image--right {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }
    .page-tai-xiu__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
        padding: 15px;
    }
    .page-tai-xiu__faq-qtext {
        font-size: 1rem;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
    }
    .page-tai-xiu__content-area p,
    .page-tai-xiu__list li {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__intro-section,
    .page-tai-xiu__rules-section,
    .page-tai-xiu__bet-types-section,
    .page-tai-xiu__strategies-section,
    .page-tai-xiu__advantages-section,
    .page-tai-xiu__registration-guide-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__conclusion-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-tai-xiu__intro-section .page-tai-xiu__container,
    .page-tai-xiu__rules-section .page-tai-xiu__container,
    .page-tai-xiu__bet-types-section .page-tai-xiu__container,
    .page-tai-xiu__strategies-section .page-tai-xiu__container,
    .page-tai-xiu__advantages-section .page-tai-xiu__container,
    .page-tai-xiu__registration-guide-section .page-tai-xiu__container,
    .page-tai-xiu__faq-section .page-tai-xiu__container,
    .page-tai-xiu__conclusion-section .page-tai-xiu__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}