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

.page-faq {
    color: var(--color-text-main);
    background-color: var(--color-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* body handles --header-offset */
    background-color: var(--color-deep-green);
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text-main);
}

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

.page-faq__intro-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
    border: 2px solid var(--color-primary);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-faq__introduction-section,
.page-faq__faq-list-section,
.page-faq__promotion-highlight-section,
.page-faq__video-section,
.page-faq__contact-support-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-faq__section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__text-block {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* FAQ Specific Styles */
.page-faq__faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-faq__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--color-gold);
}

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

.page-faq__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.page-faq__promotion-image,
.page-faq__contact-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
    object-fit: cover;
}

/* Video Section Specific Styles */
.page-faq__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
}

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

/* Image and Video General Responsive */
.page-faq img,
.page-faq video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content area images should be at least 200x200 */
.page-faq__introduction-section img,
.page-faq__promotion-highlight-section img,
.page-faq__contact-support-section img {
    min-width: 200px;
    min-height: 200px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-faq__hero-content {
        padding: 30px 15px;
    }

    .page-faq__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-faq__introduction-section,
    .page-faq__faq-list-section,
    .page-faq__promotion-highlight-section,
    .page-faq__video-section,
    .page-faq__contact-support-section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px;
    }

    .page-faq img,
    .page-faq video {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .page-faq__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-faq__video-section {
        padding-top: 10px !important;
    }

    .page-faq__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding: 15px;
        padding-top: 0;
    }

    /* Ensure all containers with images/videos/buttons adapt to mobile */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__video-container,
    .page-faq__video-wrapper,
    .page-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}