/* style/tai-xiu.css */

:root {
    --page-primary-color: #017439;
    --page-secondary-color: #FFFFFF;
    --page-text-dark: #333333;
    --page-text-light: #ffffff;
    --page-bg-light: #ffffff;
    --page-btn-register: #C30808;
    --page-btn-login: #C30808;
    --page-btn-font: #FFFF00;
}

.page-tai-xiu {
    font-family: Arial, sans-serif;
    color: var(--page-text-dark);
    background-color: var(--page-bg-light);
}

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

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Fixed spacing below header */
    padding-bottom: 60px;
    background-color: var(--page-bg-light);
    color: var(--page-text-dark);
}

.page-tai-xiu__hero-section .page-tai-xiu__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

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

.page-tai-xiu__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-primary-color);
}

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

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-tai-xiu__btn-primary {
    background-color: var(--page-btn-register);
    color: var(--page-btn-font);
    border: 2px solid var(--page-btn-register);
}

.page-tai-xiu__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

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

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

.page-tai-xiu__hero-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* General Section Styles */
.page-tai-xiu__intro-section,
.page-tai-xiu__rules-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__guide-section,
.page-tai-xiu__faq-section {
    padding: 60px 0;
    background-color: var(--page-bg-light);
    color: var(--page-text-dark);
}

.page-tai-xiu__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--page-primary-color);
    text-align: center;
    margin-bottom: 20px;
}

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

.page-tai-xiu__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-tai-xiu__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-tai-xiu__text-block {
    flex: 1 1 50%;
    min-width: 300px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-tai-xiu__text-block p {
    margin-bottom: 15px;
}

.page-tai-xiu__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.page-tai-xiu__list li {
    margin-bottom: 8px;
}

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

.page-tai-xiu__image-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
}

/* Benefits Section */
.page-tai-xiu__benefits-section {
    background-color: var(--page-primary-color);
    color: var(--page-text-light);
    padding: 80px 0;
}

.page-tai-xiu__section-title--light {
    color: var(--page-text-light);
}

.page-tai-xiu__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-tai-xiu__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-tai-xiu__benefit-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-tai-xiu__benefit-img {
    width: 100%;
    
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-text-light);
}

.page-tai-xiu__benefit-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-text-light);
    opacity: 0.9;
}

/* Guide Section */
.page-tai-xiu__guide-section {
    padding-bottom: 80px;
}

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

.page-tai-xiu__guide-step-item {
    background-color: var(--page-secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__guide-step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--page-primary-color);
    margin-bottom: 15px;
    background-color: rgba(1, 116, 57, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__guide-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--page-primary-color);
    margin-bottom: 15px;
}

.page-tai-xiu__guide-step-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-text-dark);
    margin-bottom: 20px;
}

.page-tai-xiu__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.page-tai-xiu__guide-image {
    text-align: center;
}

/* FAQ Section */
.page-tai-xiu__faq-section {
    padding-top: 40px;
    padding-bottom: 80px;
}

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

.page-tai-xiu__faq-item {
    background-color: var(--page-secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-primary-color);
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    user-select: none;
    list-style: none;
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

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

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    content: '−';
}

.page-tai-xiu__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--page-text-dark);
    background-color: var(--page-secondary-color);
}

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

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

    .page-tai-xiu__cta-buttons {
        justify-content: center;
    }

    .page-tai-xiu__content-grid {
        flex-direction: column;
    }

    .page-tai-xiu__content-grid--reverse {
        flex-direction: column;
    }
}

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

    .page-tai-xiu__main-title {
        font-size: 2rem;
    }

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

    .page-tai-xiu__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        width: 100%;
    }

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

    .page-tai-xiu__section-title {
        font-size: 1.8rem;
    }

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

    .page-tai-xiu__intro-section,
    .page-tai-xiu__rules-section,
    .page-tai-xiu__strategy-section,
    .page-tai-xiu__guide-section,
    .page-tai-xiu__faq-section,
    .page-tai-xiu__benefits-section {
        padding: 40px 0;
    }

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

    /* General image responsive */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tai-xiu__text-block {
        font-size: 0.95rem;
    }

    .page-tai-xiu__benefits-grid {
        grid-template-columns: 1fr;
    }

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

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

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