/* style/tai-xiu.css */

/* General page styles */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set body background as light */
}

.page-tai-xiu__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

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

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-tai-xiu__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

.page-tai-xiu__btn-primary:hover {
    background-color: #1a7fb8; /* Darker shade for hover */
    border-color: #1a7fb8;
}

.page-tai-xiu__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #e0f2f7; /* Lighter shade for hover */
    color: #1a7fb8;
    border-color: #1a7fb8;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, header offset handled by body */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #26A9E0, #40c0f0); /* Subtle gradient for hero background */
    color: #FFFFFF;
}

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

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #FFFFFF; /* White text for dark hero background */
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-tai-xiu__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-tai-xiu__hero-image {
    flex: 1 1 40%;
    text-align: center;
    min-width: 300px;
}

.page-tai-xiu__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* Introduction Section */
.page-tai-xiu__introduction-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

/* How to Play Section */
.page-tai-xiu__how-to-play-section {
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF;
    padding-bottom: 60px;
}

.page-tai-xiu__how-to-play-section .page-tai-xiu__section-title {
    color: #FFFFFF; /* White title for dark background */
}

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

.page-tai-xiu__guide-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-tai-xiu__guide-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-tai-xiu__guide-item p {
    color: #f0f0f0;
}

/* Bet Types Section */
.page-tai-xiu__bet-types-section {
    background-color: #f8f8f8; /* Light background */
    color: #333333;
    padding-bottom: 60px;
}

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

.page-tai-xiu__bet-card {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #26A9E0;
    transition: transform 0.3s ease;
}

.page-tai-xiu__bet-card:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__bet-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 10px;
}

/* Tips Section */
.page-tai-xiu__tips-section {
    background-color: #1e1e1e; /* Dark background */
    color: #FFFFFF;
    padding-bottom: 60px;
}

.page-tai-xiu__tips-section .page-tai-xiu__section-title {
    color: #FFFFFF;
}

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

.page-tai-xiu__tips-list li {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #EA7C07; /* Login color for accent */
    color: #f0f0f0;
}

.page-tai-xiu__tips-list li p strong {
    color: #FFFFFF;
    font-size: 1.1em;
}

/* Benefits Section */
.page-tai-xiu__benefits-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333;
    padding-bottom: 60px;
}

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

.page-tai-xiu__benefit-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding-bottom: 25px;
    text-align: center;
    overflow: hidden;
}

.page-tai-xiu__benefit-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

.page-tai-xiu__benefit-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-tai-xiu__benefit-card p {
    padding: 0 20px;
    color: #555555;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    background-color: #f0f8ff; /* Light blue tint background */
    color: #333333;
    padding-bottom: 60px;
}

.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: #26A9E0;
    cursor: pointer;
    background-color: #e6f7ff; /* Lighter blue for question background */
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Remove default marker for details */
}

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

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

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

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

.page-tai-xiu__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #f0f0f0;
}

.page-tai-xiu__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Global image responsiveness (applies to all images within .page-tai-xiu) */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images behave correctly with max-width */
}

/* Responsive styles for screens smaller than 1024px */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tai-xiu__hero-content,
    .page-tai-xiu__hero-image {
        flex: none;
        width: 100%;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-tai-xiu__section-title {
        font-size: 2em;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        margin-right: 0;
        width: 100%;
    }
}

/* Responsive styles for screens smaller than 768px (mobile) */
@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-tai-xiu__content-area {
        padding: 20px 15px !important;
    }

    /* HERO Section */
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Specific override for mobile */
        padding-bottom: 40px !important;
    }
    .page-tai-xiu__hero-container {
        padding: 20px 15px !important;
        gap: 20px !important;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important;
        margin-bottom: 15px !important;
    }
    .page-tai-xiu__hero-description {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        margin-right: 0 !important;
    }

    /* Section titles */
    .page-tai-xiu__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px !important;
    }

    /* How to Play Section */
    .page-tai-xiu__guide-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-tai-xiu__guide-item {
        padding: 20px !important;
    }
    .page-tai-xiu__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Bet Types Section */
    .page-tai-xiu__bet-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .page-tai-xiu__bet-card {
        padding: 20px !important;
    }

    /* Tips Section */
    .page-tai-xiu__tips-list li {
        padding: 15px 20px !important;
        font-size: 0.95em !important;
    }

    /* Benefits Section */
    .page-tai-xiu__benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-tai-xiu__benefit-card {
        padding-bottom: 15px !important;
    }
    .page-tai-xiu__benefit-image {
        height: 180px !important; /* Adjust height for mobile */
    }
    .page-tai-xiu__benefit-title {
        font-size: 1.2em !important;
    }

    /* FAQ Section */
    .page-tai-xiu__faq-question {
        padding: 15px 20px !important;
        font-size: 1em !important;
    }
    .page-tai-xiu__faq-answer {
        padding: 15px 20px !important;
        font-size: 0.95em !important;
    }

    /* Global image responsiveness for mobile */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container,
    .page-tai-xiu__hero-section,
    .page-tai-xiu__introduction-section,
    .page-tai-xiu__how-to-play-section,
    .page-tai-xiu__bet-types-section,
    .page-tai-xiu__tips-section,
    .page-tai-xiu__benefits-section,
    .page-tai-xiu__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-tai-xiu__cta-center {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}