/* style/faq.css */
/* Custom Colors */
:root {
    --page-faq-primary-color: #11A84E;
    --page-faq-secondary-color: #22C768;
    --page-faq-button-gradient-start: #2AD16F;
    --page-faq-button-gradient-end: #13994A;
    --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;
}

/* Base styles for the page content, assuming shared.css sets body background to --page-faq-background */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--page-faq-text-main); /* Light text on dark background */
    background-color: var(--page-faq-background); /* This will be overridden by body background from shared.css, but good for local scope */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    /* No CSS filter here */
}

.page-faq__hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

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

.page-faq__hero-description {
    font-size: 1.15rem;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__btn-primary {
    background: var(--page-faq-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--page-faq-button-gradient-start) 0%, var(--page-faq-button-gradient-end) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-faq__btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: var(--page-faq-card-bg); /* Dark background for secondary button */
    color: var(--page-faq-primary-color); /* Green text */
    border: 2px solid var(--page-faq-primary-color);
    margin-left: 15px; /* Space between buttons */
}

.page-faq__btn-secondary:hover {
    background: var(--page-faq-primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
    transform: translateY(-2px);
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 80px 0;
    background-color: var(--page-faq-deep-green); /* Slightly different dark background */
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.page-faq__section-description {
    font-size: 1.1rem;
    color: var(--page-faq-text-secondary);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    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);
    border: 1px solid var(--page-faq-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-faq-text-main);
    cursor: pointer;
    background-color: var(--page-faq-card-bg);
    position: relative;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-faq-primary-color);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

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

/* For details/summary, the content is naturally shown/hidden, so max-height is not needed */
.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px; /* Large enough to accommodate content */
    padding-top: 15px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--page-faq-text-secondary);
}

.page-faq__faq-answer h3 {
    font-size: 1.3rem;
    color: var(--page-faq-text-main);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--page-faq-text-secondary);
}

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

.page-faq__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* No CSS filter here */
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: var(--page-faq-background); /* Consistent dark background */
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-faq__cta-description {
    font-size: 1.1rem;
    color: var(--page-faq-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

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

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

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

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

    .page-faq__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

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

    .page-faq__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

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

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

    .page-faq__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }

    .page-faq__hero-image-wrapper {
        margin-bottom: 20px;
    }

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

    .page-faq__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    /* Buttons */
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        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;
        margin-left: 0 !important; /* Remove margin for single column */
    }
    .page-faq__btn-secondary {
        margin-top: 15px; /* Add vertical space between buttons */
    }

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

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

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

    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-faq__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

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

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

    .page-faq__faq-answer h3 {
        font-size: 1.1rem;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .page-faq__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Content area images must not be smaller than 200px (this applies to all img rules) */
    /* Ensure no img rule sets width/height less than 200px */
    .page-faq img {
        min-width: 200px; /* Enforce min-size, will be constrained by max-width: 100% */
        min-height: 200px;
        object-fit: cover; /* Helps with min-size and aspect ratio */
    }

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

    .page-faq__cta-title {
        font-size: 1.8rem;
    }

    .page-faq__cta-description {
        font-size: 0.95rem;
    }

    /* General containers for mobile to prevent overflow */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}