/* style/tai-xiu-app-faq.css */

/* Base styles for the specific page content */
.page-tai-xiu-app-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Ensure consistency with shared body background */
}

.page-tai-xiu-app-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-tai-xiu-app-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Hero Section */
.page-tai-xiu-app-faq__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-tai-xiu-app-faq__hero-section.page-tai-xiu-app-faq__dark-bg {
    background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Gradient with main brand color */
    color: #ffffff;
}

.page-tai-xiu-app-faq__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 700;
}

.page-tai-xiu-app-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-tai-xiu-app-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

/* CTA Buttons */
.page-tai-xiu-app-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tai-xiu-app-faq__cta-buttons--inline {
    margin-top: 20px;
    justify-content: flex-start;
}

.page-tai-xiu-app-faq__btn-primary,
.page-tai-xiu-app-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-tai-xiu-app-faq__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-tai-xiu-app-faq__btn-primary:hover {
    background-color: #d16b00;
    border-color: #d16b00;
    transform: translateY(-2px);
}

.page-tai-xiu-app-faq__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-tai-xiu-app-faq__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
    transform: translateY(-2px);
}

.page-tai-xiu-app-faq__hero-section .page-tai-xiu-app-faq__btn-secondary {
    color: #FFFFFF; /* Ensure white text on dark hero background */
    border-color: #FFFFFF;
}
.page-tai-xiu-app-faq__hero-section .page-tai-xiu-app-faq__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

/* Video Section */
.page-tai-xiu-app-faq__video-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}

.page-tai-xiu-app-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    width: 100%; /* Ensure wrapper is 100% width */
}

.page-tai-xiu-app-faq__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: block;
}

.page-tai-xiu-app-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.page-tai-xiu-app-faq__video-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: #555555;
}

/* FAQ Section */
.page-tai-xiu-app-faq__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-tai-xiu-app-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-tai-xiu-app-faq__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-tai-xiu-app-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #FFFFFF;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: #26A9E0;
    border-bottom: 1px solid #e0e0e0;
}

.page-tai-xiu-app-faq__faq-item[open] .page-tai-xiu-app-faq__faq-question {
    border-bottom: 1px solid #d0d0d0;
    background-color: #eaf7ff; /* Lighter background when open */
}

.page-tai-xiu-app-faq__faq-question:hover {
    background-color: #eaf7ff;
}

.page-tai-xiu-app-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-tai-xiu-app-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-tai-xiu-app-faq__faq-item[open] .page-tai-xiu-app-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

/* Hide default details marker */
.page-tai-xiu-app-faq__faq-item summary {
    list-style: none;
}
.page-tai-xiu-app-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-tai-xiu-app-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #555555;
    background-color: #fcfcfc;
}

.page-tai-xiu-app-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-tai-xiu-app-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-tai-xiu-app-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    min-height: 200px;
}

/* Bottom CTA Section */
.page-tai-xiu-app-faq__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Gradient with main brand color */
    color: #ffffff;
}

.page-tai-xiu-app-faq__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.page-tai-xiu-app-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-tai-xiu-app-faq__hero-title {
        font-size: 2.8em;
    }
    .page-tai-xiu-app-faq__section-title {
        font-size: 2em;
    }
    .page-tai-xiu-app-faq__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu-app-faq__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-tai-xiu-app-faq__hero-title {
        font-size: 2.2em;
    }
    .page-tai-xiu-app-faq__hero-description {
        font-size: 1em;
    }
    .page-tai-xiu-app-faq__section-title {
        font-size: 1.8em;
    }
    .page-tai-xiu-app-faq__cta-title {
        font-size: 2em;
    }
    .page-tai-xiu-app-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-tai-xiu-app-faq__btn-primary,
    .page-tai-xiu-app-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-tai-xiu-app-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-tai-xiu-app-faq__container,
    .page-tai-xiu-app-faq__section,
    .page-tai-xiu-app-faq__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile video responsiveness */
    .page-tai-xiu-app-faq video,
    .page-tai-xiu-app-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-tai-xiu-app-faq__video-section,
    .page-tai-xiu-app-faq__video-container,
    .page-tai-xiu-app-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-tai-xiu-app-faq__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-tai-xiu-app-faq__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-tai-xiu-app-faq__faq-answer {
        font-size: 1em;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-tai-xiu-app-faq__hero-title {
        font-size: 1.8em;
    }
    .page-tai-xiu-app-faq__section-title {
        font-size: 1.5em;
    }
    .page-tai-xiu-app-faq__cta-title {
        font-size: 1.6em;
    }
}

/* Ensure content images are not small icons and respect min-size */
.page-tai-xiu-app-faq img:not(.shared-logo) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Contrast Fixes */
.page-tai-xiu-app-faq__light-bg {
  color: #333333; /* For sections with light backgrounds */
  background: #ffffff;
}
.page-tai-xiu-app-faq__dark-bg {
  color: #ffffff; /* For sections with dark backgrounds */
  background: #26A9E0;
}
.page-tai-xiu-app-faq__dark-bg .page-tai-xiu-app-faq__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}
.page-tai-xiu-app-faq__dark-bg .page-tai-xiu-app-faq__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}
.page-tai-xiu-app-faq__cta-bottom .page-tai-xiu-app-faq__btn-secondary {
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.page-tai-xiu-app-faq__cta-bottom .page-tai-xiu-app-faq__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}