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

/* Base styles for the page-faq scope */
.page-faq {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--background-dark); /* This should align with shared.css body background */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Fixed header spacing */
/* body padding-top is handled by shared.css var(--header-offset) */

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text on mobile/default */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--deep-green); /* A darker green for the hero section */
    overflow: hidden;
}

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

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

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

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on dark button */
    border: 2px solid var(--glow-color);
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
    filter: brightness(1.1);
}

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

.page-faq__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(87, 227, 141, 0.1);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.2);
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--background-dark); /* Ensuring dark background for content */
    color: var(--text-main); /* Light text on dark background */
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-faq__intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FAQ List */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: var(--card-bg); /* Dark card background */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 6px 15px rgba(87, 227, 141, 0.3);
}

.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(--text-main); /* Light text on dark card */
    background-color: var(--deep-green); /* Slightly darker header for question */
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;

    /* Remove default details marker */
    list-style: none;
}
.page-faq__faq-question::-webkit-details-marker {
    display: none;
}


.page-faq__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--glow-color);
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--glow-color);
    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: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary); /* Secondary text color for answers */
    background-color: var(--card-bg);
}

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


/* CTA Section */
.page-faq__cta-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    background-color: var(--primary-color); /* Primary brand color background */
    color: #ffffff; /* White text on primary color */
    text-align: center;
}

.page-faq__cta-content {
    max-width: 700px;
}

.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-faq__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-faq__cta-image-wrapper {
    width: 100%;
    max-width: 600px;
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-faq__hero-section {
        flex-direction: row; /* Desktop: image and content side-by-side */
        text-align: left;
        padding-top: 60px; /* Adjust if header is smaller */
    }

    .page-faq__hero-image-wrapper {
        flex: 1;
        margin-right: 40px;
        margin-bottom: 0;
    }

    .page-faq__hero-content {
        flex: 1;
        max-width: none;
    }
    
    .page-faq__main-title {
        text-align: left;
    }

    .page-faq__description {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .page-faq__cta-buttons {
        justify-content: flex-start;
    }

    .page-faq__cta-section {
        flex-direction: row;
        text-align: left;
        justify-content: center;
    }

    .page-faq__cta-content {
        flex: 1;
        margin-right: 40px;
    }

    .page-faq__cta-image-wrapper {
        flex: 1;
    }
}

/* Mobile responsive for images, videos, buttons, and containers */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
    }

    .page-faq__hero-image,
    .page-faq__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* General image and video containers */
    .page-faq__hero-image-wrapper,
    .page-faq__cta-image-wrapper,
    .page-faq__video-section, /* If video was present */
    .page-faq__video-container,
    .page-faq__video-wrapper,
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__content-area,
    .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; /* Ensure no horizontal overflow */
    }

    /* Buttons responsive */
    .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; /* Add padding for text inside button */
        padding-right: 15px;
    }

    .page-faq__cta-buttons,
    .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 !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-faq__main-title,
    .page-faq__section-title,
    .page-faq__cta-title {
        text-align: center;
    }
    
    .page-faq__description,
    .page-faq__intro-text,
    .page-faq__cta-description {
        text-align: center;
    }

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