/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    background-color: var(--bg, #08160F); /* Fallback to custom Background color */
    color: var(--text-main, #F2FFF6); /* Fallback to custom Text Main color */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-faq__hero-section {
    padding-top: 0; /* Handled by body padding-top from shared.css */
    padding-bottom: 60px;
    background: var(--bg, #08160F); /* Use custom Background color */
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-faq__hero-text-content {
    flex: 1;
    text-align: left;
    max-width: 60%;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Use clamp for H1, avoid fixed large size */
    color: var(--gold, #F2C14E); /* Use custom Gold color for title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-faq__intro-text {
    font-size: 1.125rem; /* 18px */
    color: var(--text-secondary, #A7D9B8); /* Use custom Text Secondary color */
    margin-bottom: 30px;
    max-width: 700px;
}

.page-faq__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 40%;
}

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

/* Section Titles */
.page-faq__section-title {
    font-size: 2.2rem;
    color: var(--gold, #F2C14E); /* Use custom Gold color */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: 600;
}

.page-faq__section-title--light {
    color: var(--text-main, #F2FFF6); /* Ensure light text on dark section */
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: var(--bg, #08160F); /* Use custom Background color */
}

.page-faq__dark-section {
    background-color: var(--card-bg, #11271B); /* Use custom Card BG color */
}

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

.page-faq__faq-item {
    background-color: var(--card-bg, #11271B); /* Use custom Card BG color */
    border: 1px solid var(--border, #2E7A4E); /* Use custom Border color */
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    color: var(--text-main, #F2FFF6); /* Ensure light text */
}

.page-faq__faq-item:hover {
    background-color: var(--deep-green, #0A4B2C); /* Use custom Deep Green on hover */
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

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

.page-faq__faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6); /* Ensure light text */
    flex-grow: 1;
    padding-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--glow, #57E38D); /* Use custom Glow color */
    line-height: 1;
    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-top: 20px;
    font-size: 1.05rem;
    color: var(--text-secondary, #A7D9B8); /* Use custom Text Secondary color */
    border-top: 1px solid var(--divider, #1E3A2A); /* Use custom Divider color */
    margin-top: 20px;
}

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

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

.page-faq__faq-answer strong {
    color: var(--gold, #F2C14E); /* Highlight strong text with Gold */
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 25px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Call to Action Section */
.page-faq__cta-section {
    background: linear-gradient(90deg, var(--deep-green, #0A4B2C) 0%, var(--primary-color, #11A84E) 100%); /* Use Deep Green to Primary color gradient */
    padding: 80px 0;
    text-align: center;
    color: var(--text-main, #F2FFF6);
}

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

.page-faq__cta-title {
    font-size: 2.5rem;
    color: var(--gold, #F2C14E);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 40px;
    max-width: 700px;
    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-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    min-width: 180px;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 25px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background: var(--gold, #F2C14E);
    color: var(--deep-green, #0A4B2C);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
    transform: translateY(-2px);
}

/* General image styling for content area */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .page-faq__hero-text-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .page-faq__hero-image-wrapper {
        max-width: 80%;
        justify-content: center;
    }

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

    .page-faq__section-title {
        font-size: 2rem;
    }

    .page-faq__cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* 2. HERO Main Visual Area */
    .page-faq__hero-section {
        padding-top: 0 !important;
        padding-bottom: 40px;
    }

    .page-faq__hero-content-wrapper {
        padding: 30px 15px;
        gap: 20px;
    }

    .page-faq__hero-text-content {
        margin-bottom: 20px;
    }

    .page-faq__hero-image-wrapper {
        max-width: 100%;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-faq__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 4. General Images and Containers */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    .page-faq__content-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .page-faq__container,
    .page-faq__faq-section,
    .page-faq__dark-section,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section */
    .page-faq__faq-section {
        padding: 40px 0;
    }

    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-top: 20px;
    }

    .page-faq__faq-item {
        padding: 20px;
    }

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

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

    /* 5. Buttons and Button Containers */
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
        min-width: unset;
    }

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

    /* 6. Other Content Modules */
    .page-faq__cta-section {
        padding: 60px 0;
    }

    .page-faq__cta-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-faq__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

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