/* style/faq.css */

/* Variables for colors from the prompt */
:root {
    --page-faq-primary-color: #11A84E; /* Main color */
    --page-faq-secondary-color: #22C768; /* Auxiliary color */
    --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; /* Custom deep green for CTA section */
}

.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-faq-text-main); /* Default text color for the page, suitable for dark background */
    background-color: var(--page-faq-background); /* Body background is dark */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--page-faq-background);
}

.page-faq__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filter changes image color */
}

.page-faq__hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--page-faq-card-bg); /* Use a dark background for text content */
    border-radius: 0 0 8px 8px;
    margin-top: -8px; /* Overlap slightly with image wrapper for smooth transition */
    box-sizing: border-box;
}

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

.page-faq__description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Using --page-faq-glow-color */
}

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

.page-faq__btn-secondary:hover {
    background-color: var(--page-faq-primary-color);
    color: var(--page-faq-text-main);
    transform: translateY(-3px);
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--page-faq-text-main);
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-faq__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--page-faq-text-main);
    transition: background-color 0.3s ease;
}

.page-faq__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-faq__faq-item summary:hover {
    background-color: rgba(var(--page-faq-primary-color), 0.1);
}

.page-faq__faq-item summary .page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-faq-primary-color);
}

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

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

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
}

.page-faq__faq-answer strong {
    color: var(--page-faq-text-main);
}

.page-faq__link-more {
    color: var(--page-faq-primary-color);
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.page-faq__link-more:hover {
    color: var(--page-faq-secondary-color);
}

.page-faq__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    filter: none; /* Ensure no filter changes image color */
}

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

.page-faq__cta-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--page-faq-text-main);
    margin-bottom: 20px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__container {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }

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

    .page-faq__main-title {
        font-size: clamp(1.8em, 8vw, 2.2em);
    }

    .page-faq__description {
        font-size: 1em;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Enforce full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__faq-list-section {
        padding: 40px 0;
    }

    .page-faq__section-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }

    .page-faq__section-description {
        font-size: 0.95em;
    }

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

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

    .page-faq__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Ensure all content containers are responsive */
    .page-faq__hero-section,
    .page-faq__faq-list-section,
    .page-faq__cta-section,
    .page-faq__hero-image-wrapper,
    .page-faq__hero-content,
    .page-faq__faq-item,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Apply padding to main sections to ensure content is not flush with edges */
    .page-faq__faq-list-section .page-faq__container,
    .page-faq__cta-section .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* For sections that need full width background but padded content */
    .page-faq__faq-list-section,
    .page-faq__cta-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-faq__cta-section {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }
}

/* Ensure no filter on images */
.page-faq img {
    filter: none;
}