/* style/tai-xiu.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-tai-xiu {
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--background-dark);
}

/* --- Hero Section --- */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: var(--background-dark);
}

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

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-tai-xiu__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.page-tai-xiu__hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

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

.page-tai-xiu__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* --- General Section Styling --- */
.page-tai-xiu__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-tai-xiu__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-tai-xiu__section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

/* --- Intro Section --- */
.page-tai-xiu__intro-section {
    background-color: var(--deep-green);
    padding: 60px 0;
}

.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: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.page-tai-xiu__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-tai-xiu__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure circular shape */
    display: block;
}

.page-tai-xiu__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-tai-xiu__feature-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- How To Play Section --- */
.page-tai-xiu__how-to-play-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-tai-xiu__how-to-play-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

.page-tai-xiu__guide-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page-tai-xiu__guide-content {
    flex: 1 1 55%;
    min-width: 300px;
}

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

.page-tai-xiu__guide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-tai-xiu__guide-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.page-tai-xiu__guide-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
    position: relative;
    padding-left: 40px;
}

.page-tai-xiu__guide-list li strong {
    color: var(--primary-color);
}

.page-tai-xiu__guide-list li::before {
    content: counter(list-item);
    counter-increment: list-item;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- Tips Section --- */
.page-tai-xiu__tips-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

.page-tai-xiu__tips-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

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

.page-tai-xiu__tips-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
    position: relative;
    padding-left: 40px;
}

.page-tai-xiu__tips-list li strong {
    color: var(--gold-color);
}

.page-tai-xiu__tips-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

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

/* --- Promo Section --- */
.page-tai-xiu__promo-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-tai-xiu__promo-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: center;
}

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

.page-tai-xiu__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__promo-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-tai-xiu__promo-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-color);
    margin: 20px 15px 10px;
}

.page-tai-xiu__promo-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* --- Why VZ88 Section --- */
.page-tai-xiu__why-vz88-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

.page-tai-xiu__why-vz88-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: center;
}

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

.page-tai-xiu__why-vz88-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding-bottom: 20px;
}

.page-tai-xiu__why-vz88-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-tai-xiu__why-vz88-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-color);
    margin: 0 15px 10px;
}

.page-tai-xiu__why-vz88-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0 15px;
}

/* --- FAQ Section --- */
.page-tai-xiu__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

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

.page-tai-xiu__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    list-style: none; /* For details/summary */
}

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

.page-tai-xiu__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

.page-tai-xiu__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding-top: 10px;
}

/* --- Final CTA Section --- */
.page-tai-xiu__cta-final-section {
    padding: 60px 0;
    background-color: var(--deep-green);
    text-align: center;
}

.page-tai-xiu__cta-final-section .page-tai-xiu__section-title {
    color: var(--gold-color);
}

.page-tai-xiu__cta-final-section .page-tai-xiu__section-description {
    color: var(--text-secondary);
    margin-bottom: 50px;
}

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

/* --- Buttons --- */
.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;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-tai-xiu__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-tai-xiu__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.7);
}

.page-tai-xiu__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-tai-xiu__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .page-tai-xiu__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-tai-xiu__hero-content {
        text-align: center;
    }

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

    .page-tai-xiu__guide-flex {
        flex-direction: column;
        align-items: center;
    }

    .page-tai-xiu__guide-content, .page-tai-xiu__guide-image {
        flex: 1 1 100%;
        max-width: 600px; /* Constrain width on smaller desktops/tablets */
    }

    .page-tai-xiu__promo-card img {
        
    }

    .page-tai-xiu__why-vz88-item img {
        
    }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

    .page-tai-xiu__hero-description {
        font-size: 1rem;
    }

    .page-tai-xiu__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-tai-xiu__cta-button, .page-tai-xiu a[class*="button"], .page-tai-xiu a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .page-tai-xiu__hero-cta-group, .page-tai-xiu__cta-final-section .page-tai-xiu__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px !important;
    }

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

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

    .page-tai-xiu__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Module 1: Intro Section - Three Column Feature */
    .page-tai-xiu__intro-section, .page-tai-xiu__how-to-play-section, .page-tai-xiu__tips-section, .page-tai-xiu__promo-section, .page-tai-xiu__why-vz88-section, .page-tai-xiu__faq-section, .page-tai-xiu__cta-final-section {
        padding: 40px 0;
    }

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

    .page-tai-xiu__icon-box-media {
        width: 200px;
        height: 200px;
        margin: 0 auto 15px;
    }

    .page-tai-xiu__feature-title {
        font-size: 1.3rem;
    }

    .page-tai-xiu__feature-text {
        font-size: 0.95rem;
    }

    /* How to Play section */
    .page-tai-xiu__guide-flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-tai-xiu__guide-content, .page-tai-xiu__guide-image {
        min-width: unset;
        width: 100%;
    }

    .page-tai-xiu__guide-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tai-xiu__guide-list li {
        font-size: 1rem;
        padding: 12px 15px 12px 40px;
    }

    /* Tips section */
    .page-tai-xiu__tips-list li {
        font-size: 1rem;
        padding: 12px 15px 12px 40px;
    }

    /* Promo section */
    .page-tai-xiu__promo-card img {
        
    }

    .page-tai-xiu__promo-card-title {
        font-size: 1.2rem;
    }

    .page-tai-xiu__promo-card-text {
        font-size: 0.9rem;
    }

    /* Why VZ88 section */
    .page-tai-xiu__why-vz88-item img {
        
    }

    .page-tai-xiu__why-vz88-title {
        font-size: 1.2rem;
    }

    .page-tai-xiu__why-vz88-text {
        font-size: 0.9rem;
    }

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

    .page-tai-xiu__faq-qtext {
        font-size: 1rem;
    }

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

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

    /* Universal image and container adaptation */
    .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-container,
    .page-tai-xiu__feature-item,
    .page-tai-xiu__promo-card,
    .page-tai-xiu__why-vz88-item,
    .page-tai-xiu__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tai-xiu__hero-content, .page-tai-xiu__hero-image {
        padding-left: 0;
        padding-right: 0;
    }

    .page-tai-xiu__hero-image .page-tai-xiu__hero-side-image {
        padding-left: 0;
        padding-right: 0;
    }
}

/* --- General elements for contrast and spacing --- */
.page-tai-xiu h1, .page-tai-xiu h2, .page-tai-xiu h3, .page-tai-xiu h4, .page-tai-xiu h5, .page-tai-xiu h6 {
    color: var(--gold-color);
}

.page-tai-xiu p, .page-tai-xiu li {
    color: var(--text-secondary);
}

.page-tai-xiu__cta-button {
    max-width: 100%;
    box-sizing: border-box;
}

.page-tai-xiu__cta-group {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-tai-xiu__section,
.page-tai-xiu__card,
.page-tai-xiu__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}