:root {
    /* Custom Colors */
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
}

.page-faq {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Page background */
    line-height: 1.6;
    font-size: 16px;
}

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

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

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-faq__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any background effects */
    padding: 20px;
    background-color: rgba(17, 39, 27, 0.8); /* Semi-transparent card background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-faq__main-title {
    color: var(--color-gold); /* Using gold for main title */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    max-width: 100%;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
    font-size: clamp(2em, 5vw, 3.5em); /* Use clamp for H1 */
}

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

.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,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-faq__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
    opacity: 0.9;
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-faq__btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(17, 168, 78, 0.1);
    box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
}

.page-faq__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Container for main content */
.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* FAQ Section */
.page-faq__faq-section {
    background-color: var(--color-deep-green); /* Darker background for FAQ section */
    padding: 60px 0;
}

.page-faq__section-title {
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-faq__section-description {
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

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

.page-faq__faq-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-main);
    font-weight: bold;
    font-size: 1.15em;
    background-color: rgba(17, 168, 78, 0.1); /* Lighter background for summary */
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-item summary:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

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

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

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

.page-faq__faq-answer {
    padding: 20px 25px;
    color: var(--color-text-secondary);
    font-size: 1em;
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-divider);
}

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

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

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background); /* Use page background for this section */
}

.page-faq__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

.page-faq__cta-buttons--bottom {
    margin-top: 30px;
    flex-direction: row; /* Default to row on desktop */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-faq__hero-content {
        padding: 15px;
    }

    .page-faq__main-title {
        font-size: clamp(2em, 5vw, 3.5em); /* Use clamp for H1 */
    }

    .page-faq__cta-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.5;
    }

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

    .page-faq__hero-image-wrapper,
    .page-faq__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-faq__container,
    .page-faq__cta-content,
    .page-faq__faq-section,
    .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;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust clamp for mobile H1 */
    }

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .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;
        padding-right: 15px;
    }

    .page-faq__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    .page-faq__cta-section {
        padding: 50px 0;
    }

    .page-faq__cta-buttons--bottom {
        flex-direction: column !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section,
    .page-faq__faq-section,
    .page-faq__cta-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-faq__container,
    .page-faq__cta-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Ensure no filter properties are used for images */
.page-faq img {
    filter: none !important;
}

/* Content area images minimum size */
.page-faq__faq-answer img {
    min-width: 200px;
    min-height: 200px;
}