/* style/faq.css */
/* Base styles for the page-faq scope */
.page-faq {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color, #08160F);
    color: var(--text-main, #F2FFF6);
    line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    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(--background-color, #08160F);
    overflow: hidden;
    min-height: 400px; /* Ensure some height for hero content */
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-main, #F2FFF6);
}

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

.page-faq__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

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

/* Buttons */
.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: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main, #F2FFF6);
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(34, 199, 104, 0.4);
}

.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(--background-color, #08160F);
    transform: translateY(-3px);
}

/* Intro Section */
.page-faq__intro-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F);
    text-align: center;
}

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

.page-faq__section-description {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary, #A7D9B8);
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F);
}

.page-faq__faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-faq__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color, #2E7A4E);
}

.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(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--card-bg, #11271B);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-faq__faq-question:hover {
    background-color: rgba(34, 199, 104, 0.1);
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--glow, #57E38D);
    margin-left: 15px;
}

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

.page-faq__faq-item[open] .page-faq__faq-answer {
    padding-top: 15px;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
    padding: 80px 0;
    background-color: var(--deep-green, #0A4B2C);
    text-align: center;
}

.page-faq__contact-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

.page-faq__contact-text-group {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-main, #F2FFF6);
}

.page-faq__contact-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-faq__contact-description {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

/* Responsive styles */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row;
        text-align: left;
        padding: 100px 20px;
        min-height: 600px;
    }
    .page-faq__hero-content {
        flex: 1;
        text-align: left;
        padding-right: 40px;
        max-width: 50%;
    }
    .page-faq__hero-image-wrapper {
        position: relative;
        flex: 1;
        height: auto;
        max-width: 50%;
    }
    .page-faq__hero-image {
        position: relative;
        filter: none;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    .page-faq__cta-buttons {
        justify-content: flex-start;
    }
    .page-faq__contact-cta-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    .page-faq__contact-image {
        flex: 1;
        max-width: 40%;
        margin-right: 40px;
    }
    .page-faq__contact-text-group {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-faq__hero-description {
        font-size: 1rem;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__hero-image {
        position: absolute;
        filter: brightness(0.4);
    }

    /* Containers for images */
    .page-faq__hero-image-wrapper,
    .page-faq__container,
    .page-faq__faq-list-section,
    .page-faq__intro-section,
    .page-faq__contact-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__intro-section,
    .page-faq__faq-list-section,
    .page-faq__contact-cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__intro-section .page-faq__container,
    .page-faq__faq-list-section .page-faq__container,
    .page-faq__contact-cta-section .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }
    .page-faq__contact-cta-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-faq__contact-image {
        max-width: 100%;
        margin-right: 0;
    }
}