/* style/faq.css */
/* Body background is #08160F (Background from custom palette), so text should be light */

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Text Main: #F2FFF6 */
    background-color: var(--background-color, #08160F); /* Background: #08160F */
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    color: var(--text-main, #F2FFF6);
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8); /* Text Secondary: #A7D9B8 */
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

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

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D); /* Glow: #57E38D */
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border-color, #2E7A4E); /* Border: #2E7A4E */
}

.page-faq__btn-secondary:hover {
    background: var(--border-color, #2E7A4E);
    color: var(--text-main, #F2FFF6);
}

.page-faq__accordion-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F); /* Background: #08160F */
    color: var(--text-main, #F2FFF6);
}

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

.page-faq__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary, #A7D9B8);
}

.page-faq__faq-group {
    margin-bottom: 40px;
    border: 1px solid var(--divider, #1E3A2A); /* Divider: #1E3A2A */
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--card-bg, #11271B); /* Card BG: #11271B */
}

.page-faq__faq-group-title {
    font-size: 1.8em;
    font-weight: 600;
    padding: 20px;
    background-color: var(--deep-green, #0A4B2C); /* Deep Green: #0A4B2C */
    color: var(--text-main, #F2FFF6);
    border-bottom: 1px solid var(--divider, #1E3A2A);
    margin: 0;
}

.page-faq__faq-item {
    border-bottom: 1px solid var(--divider, #1E3A2A);
    color: var(--text-main, #F2FFF6);
}

.page-faq__faq-item:last-child {
    border-bottom: none;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    transition: background-color 0.3s ease;
    list-style: none; /* For details summary */
}

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

.page-faq__faq-question:hover {
    background-color: rgba(var(--primary-rgb, 17, 168, 78), 0.1); /* Primary color #11A84E */
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold, #F2C14E); /* Gold: #F2C14E */
}

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

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 1000px; /* Sufficiently large to show content */
}

.page-faq__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-secondary, #A7D9B8);
}

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

.page-faq__link {
    color: var(--gold, #F2C14E); /* Gold: #F2C14E */
    text-decoration: none;
}

.page-faq__link:hover {
    text-decoration: underline;
}

.page-faq__highlight {
    color: var(--gold, #F2C14E); /* Gold: #F2C14E */
    font-weight: 600;
}

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-group-title {
        font-size: 1.5em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-content {
        padding: 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5em, 6vw, 2em) !important;
        margin-bottom: 15px;
    }
    .page-faq__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 20px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__accordion-section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-faq__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-faq__faq-group-title {
        font-size: 1.3em;
        padding: 15px;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-toggle {
        font-size: 1.3em;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.9em;
    }
    .page-faq__cta-bottom {
        margin-top: 40px;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__faq-group,
    .page-faq__cta-buttons,
    .page-faq__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

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