/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main for dark background */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* General container for content sections */
.page-tai-xiu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-tai-xiu__section {
    padding: 40px 0;
}

/* Section titles */
.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Custom Gold for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

/* Sub-titles */
.page-tai-xiu__sub-title {
    font-size: 1.8em;
    color: #57E38D; /* Custom Glow for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Text blocks */
.page-tai-xiu__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #F2FFF6; /* Custom Text Main */
}

/* Highlighted text */
.page-tai-xiu__highlight {
    color: #F2C14E; /* Custom Gold */
    font-weight: bold;
}

/* Inline links */
.page-tai-xiu__inline-link {
    color: #57E38D; /* Custom Glow */
    text-decoration: underline;
}

.page-tai-xiu__inline-link:hover {
    color: #2AD16F; /* Lighter green on hover */
}

/* Lists */
.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
    margin-bottom: 20px;
    padding-left: 25px;
}

.page-tai-xiu__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #F2FFF6; /* Custom Text Main */
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-tai-xiu__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-tai-xiu__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 600px; /* Ensure image doesn't exceed container height */
}

.page-tai-xiu__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
    color: #F2C14E; /* Custom Gold */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tai-xiu__hero-description {
    font-size: 1.2em;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Crucial for button max-width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
    color: #F2FFF6; /* Custom Text Main */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: #57E38D; /* Custom Glow */
    border: 2px solid #57E38D; /* Custom Glow for border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-tai-xiu__btn-secondary:hover {
    background: #57E38D; /* Custom Glow */
    color: #08160F; /* Custom Background */
    border-color: #57E38D;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Content Images */
.page-tai-xiu__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Specific styling for app download section */
.page-tai-xiu__app-download {
    background-color: #11271B; /* Custom Card BG */
    padding: 60px 0;
    margin-top: 40px;
}

.page-tai-xiu__app-download-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.page-tai-xiu__app-image {
    max-width: 400px;
    margin: 0;
    border-radius: 15px;
}

.page-tai-xiu__app-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-tai-xiu__cta-buttons--vertical {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* FAQ Section */
.page-tai-xiu__faq {
    background-color: #08160F; /* Custom Background */
    padding: 60px 0;
}

.page-tai-xiu__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__faq-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker for details summary */
}

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

.page-tai-xiu__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #57E38D; /* Custom Glow */
    transition: transform 0.3s ease;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-question::after {
    content: '-';
    transform: rotate(0deg);
}

.page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05em;
    color: #A7D9B8; /* Custom Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-answer {
    max-height: 500px; /* Arbitrary large value to allow content to show */
    transition: max-height 0.5s ease-in;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 0 15px;
    }

    .page-tai-xiu__section {
        padding: 30px 0;
    }

    /* Hero Section */
    .page-tai-xiu__hero-section {
        padding-bottom: 40px;
    }

    .page-tai-xiu__hero-image {
        max-height: 300px; /* Adjust hero image height for mobile */
    }

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

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

    .page-tai-xiu__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Buttons */
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .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 20px;
        font-size: 1em;
    }

    /* General content images and containers */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-tai-xiu__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    /* App download section */
    .page-tai-xiu__app-download-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-tai-xiu__app-image {
        max-width: 100%;
    }

    .page-tai-xiu__app-info {
        text-align: center;
        min-width: unset;
    }

    .page-tai-xiu__cta-buttons--vertical {
        align-items: center;
    }

    /* FAQ */
    .page-tai-xiu__faq-question {
        padding: 15px;
    }
}