/* style/faq.css */

/* Custom properties from color scheme */
: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: #2E7A4E;
    --page-faq-glow: #57E38D;
    --page-faq-gold: #F2C14E;
    --page-faq-divider: #1E3A2A;
    --page-faq-deep-green: #0A4B2C;
}

.page-faq {
    background-color: var(--page-faq-background);
    color: var(--page-faq-text-main); /* Dark background, so light text */
    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;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text for desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the hero image */
    overflow: hidden;
}

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

.page-faq__hero-content {
    padding: 30px 20px;
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure content is above any potential background elements */
}

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

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

.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for button group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.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.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--page-faq-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

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

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

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

/* Introduction Section */
.page-faq__introduction-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--page-faq-card-bg); /* Use card bg for sections */
}

.page-faq__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: var(--page-faq-text-main);
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-faq__paragraph {
    font-size: 1em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-faq__faq-item details {
    border: none; /* Remove default details border */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--page-faq-deep-green); /* Slightly darker for question header */
    color: var(--page-faq-text-main);
    border-bottom: 1px solid var(--page-faq-divider);
    list-style: none; /* Remove default marker for summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-faq-gold); /* Gold color for toggle icon */
}

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

/* When details is open, or div has 'active' class */
.page-faq__faq-item[open] .page-faq__faq-answer,
.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficient height for content, !important for JS override */
    padding: 20px 25px;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−"; /* Change toggle icon when open */
}


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

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

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

.page-faq__faq-answer a {
    color: var(--page-faq-gold); /* Gold for links within FAQ answers */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: var(--page-faq-glow);
}

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
}

/* Benefits Section */
.page-faq__benefits-section {
    padding: 60px 0;
    background-color: var(--page-faq-card-bg);
    text-align: center;
}

.page-faq__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__benefit-card {
    background-color: var(--page-faq-deep-green);
    border: 1px solid var(--page-faq-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-faq__benefit-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--page-faq-gold);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-faq__benefit-description {
    font-size: 0.95em;
    color: var(--page-faq-text-secondary);
}

/* CTA Bottom Section */
.page-faq__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--page-faq-background);
}

.page-faq__cta-bottom-section .page-faq__cta-buttons {
    margin-bottom: 30px;
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1000px;
    margin: 30px auto 0;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-faq__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-faq__hero-image-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section {
        padding-bottom: 30px;
    }

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

    .page-faq__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important; /* Ensure H1 is not too big on mobile */
        margin-bottom: 15px;
    }

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

    .page-faq__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-faq__introduction-section,
    .page-faq__faq-list-section,
    .page-faq__benefits-section,
    .page-faq__cta-bottom-section {
        padding: 40px 0;
    }

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

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

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

    .page-faq__faq-toggle {
        font-size: 1.3em;
    }

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

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All image containers must also be responsive */
    .page-faq__hero-image-wrapper,
    .page-faq__faq-image,
    .page-faq__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video specific (if any, though not explicitly in HTML for this page, but good to include for robustness) */
    .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; /* Small top padding for video section on mobile */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding-bottom: 20px;
    }
    .page-faq__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em) !important;
    }
    .page-faq__section-title {
        font-size: clamp(1.3em, 6vw, 1.8em);
    }
    .page-faq__faq-question {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    .page-faq__faq-answer {
        padding: 12px 15px;
    }
}