/* style/tai-xiu.css */

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #F5F7FA; /* Background color for the page */
}

.page-tai-xiu__content-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
}

.page-tai-xiu__section-title {
    font-size: clamp(28px, 4vw, 36px); /* Responsive font size for H2 */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #E53935; /* Brand color for titles */
    line-height: 1.2;
}

.page-tai-xiu__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #333333;
}

/* HERO Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #F5F7FA 0%, #ffffff 100%); /* Light background for hero */
}

.page-tai-xiu__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 24px;
}

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #333333;
}

.page-tai-xiu__main-title {
    font-size: clamp(36px, 5vw, 48px); /* Responsive H1 font size */
    font-weight: 800;
    margin-bottom: 20px;
    color: #E53935; /* Brand color */
    line-height: 1.1;
    max-width: 700px;
}

.page-tai-xiu__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    color: #333333;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.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%);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

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

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

.page-tai-xiu__hero-image {
    flex: 1 1 45%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px; /* Minimum size for image container */
}

.page-tai-xiu__hero-side-image {
    max-width: 600px;
    width: 100%;
    height: 600px; /* Keep aspect ratio for hero image */
    object-fit: contain; /* Ensure the image fits well */
    border-radius: 12px;
    display: block;
}

/* Intro Section */
.page-tai-xiu__intro-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Light background */
}

.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-item {
    text-align: center;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-tai-xiu__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FF5A4F; /* Accent border */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-tai-xiu__feature-text {
    font-size: 16px;
    color: #333333;
}

/* Rules Section */
.page-tai-xiu__rules-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-tai-xiu__rules-item {
    background-color: #F5F7FA;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    color: #333333;
}

.page-tai-xiu__rules-subtitle {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #E53935;
}

.page-tai-xiu__rules-item ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-tai-xiu__rules-item li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-tai-xiu__rules-item li::before {
    content: '•';
    color: #FF5A4F;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-tai-xiu__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Bet Types Section */
.page-tai-xiu__bet-types-section {
    padding: 60px 0;
    background-color: #E53935; /* Brand primary color background */
    color: #ffffff; /* White text for dark background */
}

.page-tai-xiu__bet-types-section .page-tai-xiu__section-title,
.page-tai-xiu__bet-types-section .page-tai-xiu__section-description {
    color: #ffffff; /* White text */
}

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

.page-tai-xiu__bet-type-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-tai-xiu__bet-type-card .page-tai-xiu__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FF5A4F; /* Accent color for card titles */
}

.page-tai-xiu__bet-type-card .page-tai-xiu__card-text {
    font-size: 16px;
    color: #f0f0f0;
}

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

/* Tips Section */
.page-tai-xiu__tips-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-tai-xiu__tip-card {
    background-color: #F5F7FA;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
    color: #333333;
}

.page-tai-xiu__tip-card .page-tai-xiu__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-tai-xiu__tip-card .page-tai-xiu__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #E53935;
}

.page-tai-xiu__tip-card .page-tai-xiu__card-text {
    font-size: 16px;
    color: #333333;
}

/* Benefits Section */
.page-tai-xiu__benefits-section {
    padding: 60px 0;
    background-color: #E53935; /* Brand primary color background */
    color: #ffffff; /* White text for dark background */
}

.page-tai-xiu__benefits-section .page-tai-xiu__section-title,
.page-tai-xiu__benefits-section .page-tai-xiu__section-description {
    color: #ffffff;
}

.page-tai-xiu__benefit-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0;
}

.page-tai-xiu__benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 15px;
}

.page-tai-xiu__benefit-icon {
    font-size: 28px;
    color: #FF5A4F; /* Accent color for icons */
    line-height: 1;
    flex-shrink: 0;
}

.page-tai-xiu__benefit-item p {
    font-size: 17px;
    color: #f0f0f0;
    margin: 0;
}

.page-tai-xiu__benefit-item strong {
    color: #ffffff;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Light background */
}

.page-tai-xiu__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.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;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: #E53935;
}

.page-tai-xiu__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-tai-xiu__faq-toggle {
    font-size: 24px;
    font-weight: normal;
    margin-left: 15px;
    color: #FF5A4F;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or 'minus' */
}

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

/* CTA Section */
.page-tai-xiu__cta-section {
    padding: 60px 0;
    background-color: #E53935; /* Brand primary color background */
    color: #ffffff;
    text-align: center;
}

.page-tai-xiu__cta-section .page-tai-xiu__section-title,
.page-tai-xiu__cta-section .page-tai-xiu__section-description {
    color: #ffffff;
}

.page-tai-xiu__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
    .page-tai-xiu {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-tai-xiu__content-container,
    .page-tai-xiu__hero-container,
    .page-tai-xiu__rules-section .page-tai-xiu__content-area,
    .page-tai-xiu__bet-types-section .page-tai-xiu__content-container,
    .page-tai-xiu__tips-section .page-tai-xiu__content-area,
    .page-tai-xiu__benefits-section .page-tai-xiu__content-container,
    .page-tai-xiu__faq-section .page-tai-xiu__content-container,
    .page-tai-xiu__cta-section .page-tai-xiu__content-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent horizontal scroll */
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px !important;
    }

    .page-tai-xiu__hero-container {
        flex-direction: column;
        padding: 20px 15px !important;
        gap: 20px;
    }

    .page-tai-xiu__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }

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

    .page-tai-xiu__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-tai-xiu__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-tai-xiu__hero-image {
        flex: 1 1 100%;
    }

    .page-tai-xiu__hero-side-image {
        max-width: 400px;
        height: auto;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Intro Section */
    .page-tai-xiu__intro-section {
        padding: 40px 0 !important;
    }

    .page-tai-xiu__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__icon-box-media {
        width: 200px !important;
        height: 200px !important;
        margin-bottom: 15px;
        border-width: 3px;
    }
    .page-tai-xiu__icon-box-media img {
        min- /* Ensure minimum size */
        min- /* Ensure minimum size */
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Rules Section */
    .page-tai-xiu__rules-section {
        padding: 40px 0 !important;
    }

    .page-tai-xiu__rules-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-tai-xiu__rules-subtitle {
        font-size: 20px;
    }

    /* Bet Types Section */
    .page-tai-xiu__bet-types-section {
        padding: 40px 0 !important;
    }

    .page-tai-xiu__bet-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__bet-type-card .page-tai-xiu__card-title {
        font-size: 20px;
    }

    /* Tips Section */
    .page-tai-xiu__tips-section {
        padding: 40px 0 !important;
    }

    .page-tai-xiu__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tai-xiu__tip-card .page-tai-xiu__card-title {
        font-size: 20px;
    }

    /* Benefits Section */
    .page-tai-xiu__benefits-section {
        padding: 40px 0 !important;
    }

    .page-tai-xiu__benefit-item {
        flex-direction: column; /* Stack on mobile */
        align-items: center; /* Center items when stacked */
        text-align: center;
        padding: 15px !important;
        gap: 10px;
        margin-bottom: 15px;
    }

    .page-tai-xiu__benefit-icon {
        font-size: 24px;
    }

    .page-tai-xiu__benefit-item p {
        font-size: 16px;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-section {
        padding: 40px 0 !important;
    }

    .page-tai-xiu__faq-item summary {
        padding: 15px 20px !important;
        font-size: 16px;
    }

    .page-tai-xiu__faq-toggle {
        font-size: 20px;
    }

    .page-tai-xiu__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 15px;
    }

    /* CTA Section */
    .page-tai-xiu__cta-section {
        padding: 40px 0 !important;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Universal image responsiveness for content area */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    /* Exception for icon-box-media img which should maintain square aspect, already handled above */
}