/* style/faq.css */

/* Custom properties for colors */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --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;
}

/* Base styles for the page content, considering body background from shared.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Explicit background for main content area */
}

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

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for image wrapper */
    margin-bottom: 30px; /* Space between image and content */
}

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

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

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

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

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-faq__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Using rgba for glow effect */
}

/* Specific button sizes */
.page-faq__cta-button--small {
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: 15px;
}

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

.page-faq__section {
    padding: 60px 20px;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-faq__section:nth-of-type(even) {
    background-color: var(--color-deep-green); /* Alternate background for sections */
}

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

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold);
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.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: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--color-text-main);
}

.page-faq__faq-item[open] {
    background-color: var(--color-deep-green); /* Darker background when open */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none; /* Hide default marker for details summary */
    transition: color 0.3s ease;
}

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

.page-faq__faq-question:hover {
    color: var(--color-gold);
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    margin-left: 15px;
    flex-shrink: 0;
}

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

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
}

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

/* CTA Section */
.page-faq__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--color-primary); /* Use primary color for CTA section */
    color: #ffffff; /* White text for primary background */
}

.page-faq__cta-section .page-faq__section-title {
    color: #ffffff;
}

.page-faq__cta-section .page-faq__section-title::after {
    background-color: #ffffff;
}

.page-faq__cta-section .page-faq__description {
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* General image styling for content area - minimum size */
.page-faq img {
    min-width: 200px;
    min-height: 200px;
}

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

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

    .page-faq__hero-content {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        width: 100%;
    }

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

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

    .page-faq__cta-button,
    .page-faq__cta-button--small,
    .page-faq__cta-button--large {
        width: 100% !important;
        max-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__section {
        padding: 40px 0;
    }

    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content does not overflow */
    }

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

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

    .page-faq__faq-toggle {
        width: 20px;
        height: 20px;
        font-size: 1.2rem;
    }

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

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Override min-width for mobile */
        min-height: unset; /* Override min-height for mobile */
    }

    .page-faq__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* No padding here, content inside wrapper handles it */
    }

    /* Video section top padding for mobile, if present */
    .page-faq__video-section {
      padding-top: 10px !important;
    }
}

/* Ensure no filter on images */
.page-faq img {
    filter: none !important;
}

/* Contrast fixes if necessary (though current colors should be fine) */
.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}