/* style/tai-xiu.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg-color: #D32F2F;
    --background-color: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Body background is dark, so text is light */
    background-color: var(--background-color);
    line-height: 1.6;
    padding-bottom: 40px;
}

.page-tai-xiu__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px 40px;
    background-color: var(--deep-red-color);
    border-bottom: 5px solid var(--border-color);
}

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

.page-tai-xiu__hero-content {
    max-width: 900px;
    width: 100%;
}

.page-tai-xiu__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.page-tai-xiu__hero-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-tai-xiu__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-tai-xiu__btn--primary {
    background: var(--button-gradient);
    color: var(--deep-red-color); /* Darker text for contrast on gold button */
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-tai-xiu__btn--secondary {
    background-color: var(--primary-color);
    color: var(--text-main-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background-color: var(--secondary-color);
}

.page-tai-xiu__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-tai-xiu__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tai-xiu__section-title {
    font-size: 2.2em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-tai-xiu__text-block {
    font-size: 1.05em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-tai-xiu__sub-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-tai-xiu__list-item {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 1.05em;
    line-height: 1.5;
}

.page-tai-xiu__list-item strong {
    color: var(--gold-color);
}

.page-tai-xiu__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-tai-xiu__cta-box {
    background-color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__cta-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-tai-xiu__cta-text {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.page-tai-xiu__cta-buttons--bottom {
    margin-top: 50px;
}

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

.page-tai-xiu__game-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-tai-xiu__game-iframe {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    border: none;
}

.page-tai-xiu__game-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin: 15px 10px 5px;
    font-weight: 700;
}

.page-tai-xiu__game-desc {
    font-size: 0.95em;
    color: var(--text-main-color);
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tai-xiu__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
    margin: 0 auto;
    max-width: 150px;
}

.page-tai-xiu__view-all-games {
    text-align: center;
    margin-top: 20px;
}

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

.page-tai-xiu__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    list-style: none;
}

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

.page-tai-xiu__faq-question .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-question .page-tai-xiu__faq-toggle {
    transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
    text-align: justify;
}

.page-tai-xiu__conclusion {
    text-align: center;
    padding-bottom: 60px;
}

.page-tai-xiu__final-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: 2.5em;
    }

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

    .page-tai-xiu__section-title {
        font-size: 2em;
    }

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

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

    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__final-cta {
        flex-direction: row;
        gap: 15px;
    }

    .page-tai-xiu__btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .page-tai-xiu__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__hero-section {
        padding-top: 10px !important; /* Specific override for mobile, adhering to 8-16px rule */
        padding-bottom: 30px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 10px;
    }

    .page-tai-xiu__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-tai-xiu__hero-cta-buttons,
    .page-tai-xiu__final-cta {
        flex-direction: column !important; /* Mobile: stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-tai-xiu__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-tai-xiu__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-tai-xiu__text-block,
    .page-tai-xiu__list-item,
    .page-tai-xiu__faq-answer {
        font-size: 0.9em;
        line-height: 1.6;
    }

    .page-tai-xiu__content-image,
    .page-tai-xiu__game-image,
    .page-tai-xiu__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__game-grid {
        grid-template-columns: 1fr; /* Single column for games on mobile */
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__game-iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__cta-box {
        padding: 20px;
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__cta-title {
        font-size: 1.5em;
    }

    .page-tai-xiu__cta-text {
        font-size: 1em;
    }

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

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

    .page-tai-xiu__faq-section,
    .page-tai-xiu__related-games,
    .page-tai-xiu__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}