.page-tai-xiu {
    background-color: #08160F;
    color: #F2FFF6;
    font-family: Arial, sans-serif;
}

.page-tai-xiu__main-title-section {
    padding-top: 10px; /* Adhering to the 10px rule for initial section */
    padding-bottom: 60px;
    background-color: #08160F;
    color: #F2FFF6;
}

.page-tai-xiu__main-title-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 15px;
}

.page-tai-xiu__main-title-image-wrapper {
    flex: 1 1 500px; /* Allow image to grow/shrink but prefer 500px base */
    order: 1;
    text-align: center;
}

.page-tai-xiu__main-title-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__main-title-content {
    flex: 1 1 400px; /* Allow content to grow/shrink but prefer 400px base */
    order: 2;
    text-align: left;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold for main title */
}

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

.page-tai-xiu__cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tai-xiu__cta-group--center {
    justify-content: center;
    margin-top: 40px;
}

.page-tai-xiu__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-tai-xiu__cta-button--secondary {
    background: #11271B; /* Card BG */
    border: 2px solid #2E7A4E; /* Border */
    color: #A7D9B8; /* Text Secondary */
}

.page-tai-xiu__cta-button--secondary:hover {
    background: #0A4B2C; /* Deep Green */
    border-color: #57E38D; /* Glow */
    color: #F2FFF6;
}

.page-tai-xiu__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    line-height: 1.7;
}

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 30px;
    text-align: center;
    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: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
    border-radius: 2px;
}

.page-tai-xiu__intro-section p,
.page-tai-xiu__guide-section p,
.page-tai-xiu__bet-types-section p,
.page-tai-xiu__tips-section p,
.page-tai-xiu__why-ee88-section p,
.page-tai-xiu__cta-final-section p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #F2FFF6;
}

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

.page-tai-xiu__guide-step-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
    transition: transform 0.3s ease;
}

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

.page-tai-xiu__guide-step-title {
    font-size: 1.4rem;
    color: #57E38D; /* Glow */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-tai-xiu__guide-step-item p {
    font-size: 1rem;
    color: #A7D9B8;
    line-height: 1.6;
}

.page-tai-xiu__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.page-tai-xiu__bet-types-list,
.page-tai-xiu__tips-list,
.page-tai-xiu__why-ee88-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-tai-xiu__bet-type-item,
.page-tai-xiu__tip-item,
.page-tai-xiu__why-ee88-item {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__bet-type-title,
.page-tai-xiu__tip-title,
.page-tai-xiu__why-ee88-title {
    font-size: 1.3rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tai-xiu__bet-type-item p,
.page-tai-xiu__tip-item p,
.page-tai-xiu__why-ee88-item p {
    font-size: 1rem;
    color: #A7D9B8;
    line-height: 1.6;
}

.page-tai-xiu__tips-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

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

.page-tai-xiu__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B;
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-tai-xiu__faq-item[open] > .page-tai-xiu__faq-question {
    background-color: #0A4B2C; /* Deep Green */
    color: #57E38D; /* Glow */
}

.page-tai-xiu__faq-question::-webkit-details-marker, /* Hide default marker */
.page-tai-xiu__faq-question::marker {
    display: none;
    content: "";
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg); /* Change + to X visually */
}

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

.page-tai-xiu__cta-final-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #0A4B2C; /* Deep Green */
    border-top: 1px solid #1E3A2A; /* Divider */
}

.page-tai-xiu__final-cta-description {
    font-size: 1.2rem;
    color: #A7D9B8;
    margin-bottom: 30px;
}

/* General image styling */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title-container {
        gap: 30px;
        padding: 20px;
    }

    .page-tai-xiu__main-title-image-wrapper,
    .page-tai-xiu__main-title-content {
        flex-basis: auto;
        width: 100%;
        order: initial;
    }

    .page-tai-xiu__main-title {
        text-align: center;
    }

    .page-tai-xiu__main-description {
        text-align: center;
    }

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

    .page-tai-xiu__content-area {
        padding: 30px 20px;
    }

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

    .page-tai-xiu__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-tai-xiu__cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .page-tai-xiu__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .page-tai-xiu__faq-toggle {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__main-title-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-tai-xiu__main-title-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-tai-xiu__main-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-tai-xiu__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-tai-xiu__cta-button,
    .page-tai-xiu__cta-button--secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 15px !important;
        font-size: 1.05rem !important;
    }

    .page-tai-xiu__content-area {
        padding: 25px 15px;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }

    .page-tai-xiu__section-title::after {
        width: 60px;
        height: 3px;
    }

    .page-tai-xiu__intro-section p,
    .page-tai-xiu__guide-section p,
    .page-tai-xiu__bet-types-section p,
    .page-tai-xiu__tips-section p,
    .page-tai-xiu__why-ee88-section p,
    .page-tai-xiu__cta-final-section p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .page-tai-xiu__guide-steps {
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .page-tai-xiu__guide-step-item {
        padding: 25px;
    }

    .page-tai-xiu__guide-step-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .page-tai-xiu__bet-type-item,
    .page-tai-xiu__tip-item,
    .page-tai-xiu__why-ee88-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-tai-xiu__bet-type-title,
    .page-tai-xiu__tip-title,
    .page-tai-xiu__why-ee88-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

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

    .page-tai-xiu__faq-toggle {
        font-size: 1.5rem;
    }

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

    .page-tai-xiu__cta-final-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .page-tai-xiu__final-cta-description {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    /* Universal image and container responsive styles */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tai-xiu__main-title-container,
    .page-tai-xiu__intro-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__bet-types-section,
    .page-tai-xiu__tips-section,
    .page-tai-xiu__why-ee88-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__cta-group {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}