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

    /* Main Brand Colors for fallback/defaults */
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */

    /* For smart contrast */
    --bg-color: #08160F; /* Assuming this is the body background from shared.css based on custom colors */
    --text-color-default: #F2FFF6; /* Default text color for dark backgrounds */
    --text-color-light: #333333; /* Default text color for light backgrounds */
}

/* Base styles for the page-faq scope */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-default); /* Default text color, assuming dark body bg */
    background-color: var(--color-background); /* Explicitly set for main content area if needed */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: var(--color-deep-green);
    padding: 20px;
    padding-top: 10px; /* Small top padding as per rule, body takes --header-offset */
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 1200px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-faq__hero-content-wrapper {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    padding: 0 15px;
    color: var(--color-text-main);
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* FAQ Section */
.page-faq__faq-section {
    background-color: var(--color-background);
    padding: 60px 20px;
    color: var(--color-text-main);
}

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

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

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

.page-faq__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    user-select: none;
    list-style: none;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--color-deep-green);
    color: var(--color-gold);
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
}

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

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px;
    padding: 20px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

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

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

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

/* Call to Action Section */
.page-faq__cta-section {
    background-color: var(--color-deep-green);
    padding: 60px 20px;
    text-align: center;
    color: var(--color-text-main);
}

.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    margin-bottom: 15px;
}

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

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-faq__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: none;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-faq__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-deep-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

    .page-faq__intro-text {
        font-size: 1rem;
    }

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

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

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

    .page-faq__faq-toggle {
        font-size: 1.2rem;
    }

    .page-faq__faq-answer {
        padding: 15px;
    }

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

    .page-faq__hero-image,
    .page-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

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

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

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        min-width: unset !important;
    }
}

/* Ensure content area text color for contrast */
.page-faq__content-area p,
.page-faq__content-area li,
.page-faq__faq-answer p {
    color: var(--color-text-secondary);
}

/* Specific contrast for titles */
.page-faq__faq-question .page-faq__faq-qtext {
    color: var(--color-text-main);
}
.page-faq__faq-item[open] .page-faq__faq-question .page-faq__faq-qtext {
    color: var(--color-gold);
}