/* style/faq.css */

/* Custom Colors */
:root {
    --page-faq-bg: #08160F;
    --page-faq-card-bg: #11271B;
    --page-faq-text-main: #F2FFF6;
    --page-faq-text-secondary: #A7D9B8;
    --page-faq-border: #2E7A4E;
    --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-faq-glow: #57E38D;
    --page-faq-gold: #F2C14E;
    --page-faq-divider: #1E3A2A;
    --page-faq-deep-green: #0A4B2C;
}

.page-faq {
    background-color: var(--page-faq-bg);
    color: var(--page-faq-text-main); /* Default text color for the page */
    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;
}

.page-faq__section-spacing {
    padding: 60px 0;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: var(--page-faq-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--page-faq-card-bg); /* Darker background for hero */
    overflow: hidden; /* Ensure no image overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is below any potential overlay, but we don't have overlay */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensure image has some height on smaller screens */
    border-radius: 8px;
}

.page-faq__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    color: var(--page-faq-text-main);
}

.page-faq__main-title {
    font-weight: bold;
    color: var(--page-faq-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    /* No fixed font-size, rely on clamp for responsiveness if needed, otherwise let browser decide */
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

.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;
}

/* CTA Button */
.page-faq__cta-button {
    display: inline-block;
    background: var(--page-faq-button-gradient);
    color: var(--page-faq-text-main);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
    box-sizing: border-box; /* Crucial for responsiveness */
}

.page-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

/* FAQ Section Styling */
.page-faq__faq-section {
    display: flex;
    flex-wrap: wrap; /* Allow image and content to wrap */
    align-items: flex-start;
    gap: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.page-faq__faq-section > .page-faq__container {
    flex: 1;
    min-width: 400px; /* Minimum width for content block */
    padding: 0; /* Container already has padding */
}

.page-faq__image-wrapper {
    flex: 1;
    min-width: 300px; /* Minimum width for image block */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-faq__image-left {
    order: -1; /* For alternating layout */
}

.page-faq__section-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

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

.page-faq__dark-section .page-faq__section-title {
    color: var(--page-faq-gold);
}

.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: var(--page-faq-card-bg);
    border: 1px solid var(--page-faq-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-faq-text-main);
    background-color: var(--page-faq-card-bg);
    transition: background-color 0.3s ease;
}

.page-faq__faq-item[open] > .page-faq__faq-question,
.page-faq__faq-question:hover {
    background-color: var(--page-faq-deep-green); /* Slightly darker on hover/open */
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: var(--page-faq-text-main);
}

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

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

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

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

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

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

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

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

.page-faq__cta-section .page-faq__section-title {
    color: var(--page-faq-gold);
}

.page-faq__cta-section .page-faq__description {
    font-size: 1.1em;
    color: var(--page-faq-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    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 */
}

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

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

.page-faq__btn-secondary:hover {
    background: var(--page-faq-glow);
    color: var(--page-faq-bg);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-section {
        flex-direction: column;
        gap: 30px;
    }
    .page-faq__image-left {
        order: unset; /* Reset order for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-faq__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust for mobile */
    }

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

    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-faq__section-spacing {
        padding: 40px 0;
    }

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

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

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important; /* Force button width */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    
    .page-faq__cta-buttons .page-faq__cta-button {
        margin: 0 auto; /* Center stacked buttons */
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__image-wrapper,
    .page-faq__faq-section,
    .page-faq__container,
    .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; /* Prevent overflow */
    }

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

@media (max-width: 480px) {
    .page-faq__section-title {
        font-size: 1.5em;
    }
    .page-faq__main-title {
        font-size: clamp(1.5em, 10vw, 2em);
    }
    .page-faq__hero-section {
        padding-bottom: 30px;
    }
    .page-faq__hero-content {
        padding: 0 10px;
    }
    .page-faq__faq-section {
        gap: 20px;
    }
    .page-faq__faq-question {
        padding: 12px 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px 12px;
    }
}

/* Ensure minimum image size in content areas (desktop) */
.page-faq__section-image {
    min-width: 200px;
    min-height: 200px;
}