/* style/faq.css */
/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Assuming body background is dark, use light text */
    background-color: var(--background); /* Main background color */
}

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

/* Container for general content */
.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
    background-color: var(--deep-green); /* Fallback background */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 1920px; /* Ensure it doesn't get too wide */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
}

.page-faq__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure text is above any potential background layers */
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

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

/* Call to Action Button */
.page-faq__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button is responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

.page-faq__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
}

.page-faq__cta-button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-faq__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-faq__faq-category-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 10px;
    text-align: center;
}

.page-faq__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--card-bg);
    color: var(--text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-faq__faq-question:hover {
    background-color: var(--deep-green);
}

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

/* For details tag, rotate plus/minus */
.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    max-height: 0; /* For JS based toggle */
    overflow: hidden; /* For JS based toggle */
    transition: max-height 0.3s ease-out; /* For JS based toggle */
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 1000px; /* Arbitrarily large for details tag */
    transition: max-height 0.3s ease-in;
}

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

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-faq__cta-title {
    font-size: 2.2em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-faq__cta-description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }

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

    .page-faq__main-title {
        font-size: 2em;
    }

    .page-faq__description,
    .page-faq__section-description,
    .page-faq__cta-description {
        font-size: 1em;
    }

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

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__faq-category-title {
        font-size: 1.5em;
    }

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

    .page-faq__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness (if any, although this page has no video) */
    .page-faq video,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__video-section,
    .page-faq__video-container,
    .page-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-faq__video-section {
        padding-top: 10px !important;
    }

    /* Button responsiveness */
    .page-faq__cta-button,
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__cta-buttons-wrapper,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Space between stacked buttons */
        overflow: hidden !important;
    }

    .page-faq__cta-section {
        padding: 50px 15px;
    }
}