/* style/faq.css */

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

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--page-faq-text-main); /* Default text color for the page */
    background-color: var(--page-faq-background); /* Ensure consistent background for main content */
    line-height: 1.6;
}

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

.page-faq__dark-bg {
    background-color: var(--page-faq-background);
    color: var(--page-faq-text-main);
}

.page-faq__deep-green-bg {
    background-color: var(--page-faq-deep-green-color);
    color: var(--page-faq-text-main);
}

.page-faq__gold-text {
    color: var(--page-faq-gold-color);
}

.page-faq__text-secondary {
    color: var(--page-faq-text-secondary);
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--page-faq-deep-green-color); /* Fallback/base color */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 400px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 30px 20px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: var(--page-faq-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
}

.page-faq__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--page-faq-button-gradient);
    color: var(--page-faq-text-main);
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--page-faq-glow-color);
}

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

.page-faq__btn-secondary:hover {
    background: var(--page-faq-primary-color);
    color: var(--page-faq-background);
    box-shadow: 0 0 15px var(--page-faq-glow-color);
}

/* Section Titles */
.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--page-faq-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Introduction Section */
.page-faq__introduction-section {
    padding: 60px 0;
    background-color: var(--page-faq-background);
}

.page-faq__introduction-section .page-faq__text-block {
    font-size: 1.05em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: var(--page-faq-background);
}

.page-faq__faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border: 1px solid var(--page-faq-border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.page-faq__faq-item[open] {
    box-shadow: 0 0 20px rgba(var(--page-faq-primary-color), 0.3);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-faq-text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
    -webkit-tap-highlight-color: transparent;
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--page-faq-gold-color);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

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

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

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

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-faq-deep-green-color);
    color: var(--page-faq-text-main);
}

.page-faq__cta-section .page-faq__section-title {
    margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Image Styling (ensuring min-size and no filters) */
.page-faq img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    object-position: center;
    /* Allowed styles */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    /* Explicitly prohibiting filter to change color */
    filter: none !important; 
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.6;
    }

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

    .page-faq__hero-section,
    .page-faq__introduction-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        padding: 40px 0; /* Adjust section padding for mobile */
    }

    .page-faq__hero-content {
        padding: 20px 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__hero-cta-buttons,
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-faq__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    /* Image, Video, and general container responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__hero-image-wrapper {
        max-height: 250px;
    }

    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__introduction-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-faq__hero-section {
        padding-top: 10px !important;
    }
}