/* style/faq.css */

/* --- Base Styles --- */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main on dark background */
    background-color: #08160F; /* Background */
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure some space at the bottom */
}

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

.page-faq__section-title,
.page-faq__main-title,
.page-faq__cta-title {
    color: #F2FFF6; /* Text Main */
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__section-description,
.page-faq__description,
.page-faq__cta-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* A lighter green for secondary text/border */
    border: 2px solid #2AD16F;
}

.page-faq__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F; /* Background color for text on hover */
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    background-color: #0A4B2C; /* Deep Green for hero background */
}

.page-faq__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__hero-content .page-faq__btn-primary {
    margin-top: 30px;
}

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

.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: #11271B; /* Card B G */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    border-color: #57E38D; /* Glow color for open state */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    list-style: none; /* Hide default marker for details/summary */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

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

.page-faq__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: #2AD16F; /* Lighter green for toggle icon */
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 15px;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.8;
}

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

.page-faq__faq-answer img.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    min-height: 200px; /* Minimum size requirement */
}

.page-faq__faq-answer .page-faq__btn-secondary {
    margin-top: 10px;
    margin-right: 10px;
}

/* --- CTA Section --- */
.page-faq__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1200px;
}

.page-faq__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

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


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

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
        padding-bottom: 30px;
    }

    .page-faq__container {
        padding: 0 15px;
    }

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

    .page-faq__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(22px, 6vw, 32px);
    }

    .page-faq__section-description,
    .page-faq__description,
    .page-faq__cta-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px;
        font-size: 15px;
    }

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

    .page-faq__hero-image,
    .page-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px; /* Maintain minimum size */
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__faq-item,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-faq__faq-answer .page-faq__btn-secondary {
        margin-right: 0;
        margin-bottom: 10px;
        display: block;
    }

    .page-faq__cta-section {
        padding: 50px 15px;
        margin: 30px auto;
    }
}