/* style/faq.css */

/* Custom Colors */
:root {
    --page-faq-bg: #08160F; /* Background */
    --page-faq-card-bg: #11271B; /* Card BG */
    --page-faq-text-main: #F2FFF6; /* Text Main */
    --page-faq-text-secondary: #A7D9B8; /* Text Secondary */
    --page-faq-border: #2E7A4E; /* Border */
    --page-faq-glow: #57E38D; /* Glow */
    --page-faq-gold: #F2C14E; /* Gold */
    --page-faq-divider: #1E3A2A; /* Divider */
    --page-faq-deep-green: #0A4B2C; /* Deep Green */
    --page-faq-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-faq-primary-color: #11A84E; /* Main Brand Color */
    --page-faq-secondary-color: #22C768; /* Auxiliary Brand Color */
}

/* Base styles for the FAQ page */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--page-faq-text-main); /* Default text color for the page */
    background-color: var(--page-faq-bg); /* Page background color */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

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

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

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

.page-faq__hero-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 */
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--page-faq-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--page-faq-primary-color); /* Brand green text for secondary button */
    border: 2px solid var(--page-faq-primary-color);
}

.page-faq__btn-secondary:hover {
    background: var(--page-faq-primary-color);
    color: #ffffff; /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section common styles */
.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-faq-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

/* Accordion/FAQ Section */
.page-faq__accordion-section {
    background-color: var(--page-faq-card-bg); /* Darker background for accordion section */
    padding: 60px 0;
    border-top: 1px solid var(--page-faq-divider);
    border-bottom: 1px solid var(--page-faq-divider);
}

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

.page-faq__faq-item {
    background-color: #1a3024; /* Slightly lighter than section bg for contrast */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--page-faq-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--page-faq-primary-color);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--page-faq-text-main);
    background-color: #1a3024; /* Consistent with item bg */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--page-faq-deep-green); /* Darker green when open */
    border-bottom-color: var(--page-faq-divider);
    color: var(--page-faq-gold);
}

.page-faq__faq-question:hover {
    background-color: #223b2c; /* Slightly lighter hover */
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(0deg); /* No rotation needed if using + and - */
    color: var(--page-faq-gold);
}

.page-faq__faq-answer {
    padding: 20px 25px 25px;
    font-size: 1rem;
    color: var(--page-faq-text-secondary);
    background-color: #11271B; /* Card BG for answer content */
    border-top: 1px solid var(--page-faq-divider);
}

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

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

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

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

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

/* Call to Action Bottom Section */
.page-faq__cta-bottom-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--page-faq-bg); /* Consistent with page background */
}

.page-faq__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--page-faq-gold);
    margin-bottom: 20px;
    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;
}

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

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

    .page-faq__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for smaller screens */
        margin-bottom: 15px;
    }

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .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;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-faq__accordion-section,
    .page-faq__cta-bottom-section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px; /* Add horizontal padding for content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

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

    /* Ensure all image containers are responsive */
    .page-faq__hero-image-wrapper,
    .page-faq__faq-answer { /* The answer div contains images sometimes */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}