/* style/tai-xiu.css */

/* General page styles */
.page-tai-xiu {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    padding-top: 10px; /* Fixed header spacing */
}

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

.page-tai-xiu__container--center {
    text-align: center;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 40px 20px;
    background-color: #111111; /* Card BG */
    border-bottom: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    color: #FFD36B; /* Glow color for emphasis */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tai-xiu__description {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 30px;
}

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

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 211, 107, 0.4); /* Glow effect */
}

/* Common Section Styles */
.page-tai-xiu__section {
    padding: 60px 0;
    border-bottom: 1px solid #3A2A12; /* Border */
}

.page-tai-xiu__section:last-of-type {
    border-bottom: none;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-tai-xiu__section-title--light {
    color: #FFF6D6; /* Text Main for light titles on dark backgrounds */
}

.page-tai-xiu__sub-title {
    font-size: 1.8em;
    color: #FFD36B; /* Auxiliary color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tai-xiu__mini-title {
    font-size: 1.4em;
    color: #F2C14E; /* Main color */
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-tai-xiu__text-block {
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
}

.page-tai-xiu__text-block--light {
    color: #FFF6D6; /* Ensure light text on dark sections */
}

.page-tai-xiu__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.3); /* Main color glow */
}

.page-tai-xiu__content-image {
    width: 100%;
    height: auto;
    display: block;
}

/* List Styles */
.page-tai-xiu__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #FFF6D6; /* Text Main */
}

.page-tai-xiu__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
}

.page-tai-xiu__list-item strong {
    color: #FFD36B; /* Auxiliary color for emphasis */
}

.page-tai-xiu__list--light .page-tai-xiu__list-item {
    color: #FFF6D6; /* Ensure light text on dark sections */
}

/* CTA Buttons */
.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tai-xiu__cta-buttons--inline {
    justify-content: flex-start;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 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: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.5);
}

.page-tai-xiu__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.7);
}

.page-tai-xiu__btn-secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Glow color */
    border: 2px solid #F2C14E; /* Main color border */
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.3);
}

.page-tai-xiu__btn-secondary:hover {
    background: #F2C14E; /* Main color */
    color: #111111; /* Card BG for text */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.5);
}

.page-tai-xiu__link-button {
    background: transparent;
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color border */
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 20px;
}

.page-tai-xiu__link-button:hover {
    background: #F2C14E;
    color: #111111;
}

/* Dark Section (for promo and final CTA) */
.page-tai-xiu__dark-section,
.page-tai-xiu__dark-bg {
    background-color: #111111; /* Card BG */
    color: #FFF6D6; /* Text Main */
    padding: 60px 0;
}

/* FAQ Section */
.page-tai-xiu__faq-list {
    margin-top: 30px;
}

.page-tai-xiu__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD36B; /* Auxiliary color */
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__container {
        padding: 15px;
    }

    .page-tai-xiu__hero-content {
        margin-bottom: 20px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-tai-xiu__description {
        font-size: 1.1em;
    }

    .page-tai-xiu__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-tai-xiu__sub-title {
        font-size: 1.6em;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu {
        padding-top: 10px !important; /* Ensure minimal top padding */
    }

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

    /* Hero Section - Mobile */
    .page-tai-xiu__hero-section {
        padding: 30px 15px;
    }

    .page-tai-xiu__hero-content {
        margin-bottom: 20px;
    }

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

    .page-tai-xiu__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-tai-xiu__hero-image-wrapper,
    .page-tai-xiu__image-wrapper,
    .page-tai-xiu__section,
    .page-tai-xiu__introduction-section,
    .page-tai-xiu__types-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__strategy-section,
    .page-tai-xiu__promo-section,
    .page-tai-xiu__live-casino-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: 0;
        padding-right: 0;
    }

    .page-tai-xiu__hero-image,
    .page-tai-xiu__content-image,
    .page-tai-xiu img { /* General image rule for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Common Section Titles & Text - Mobile */
    .page-tai-xiu__section {
        padding: 40px 0;
    }

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

    .page-tai-xiu__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-tai-xiu__mini-title {
        font-size: 1.2em;
    }

    .page-tai-xiu__text-block,
    .page-tai-xiu__list-item {
        font-size: 1em;
    }

    /* CTA Buttons - Mobile */
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        margin-top: 25px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__cta-buttons--inline {
        flex-direction: column !important;
        align-items: center;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu__link-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section - Mobile */
    .page-tai-xiu__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
        font-size: 1em;
    }
}