/* style/faq.css */

/* --- Base Styles & Variables --- */
/* body padding-top is handled by shared.css var(--header-offset); this page should not re-apply it. */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for the hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Ensure image doesn't stretch too much vertically */
}

.page-faq__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-faq__intro-text {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

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

.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-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button adapts to mobile */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

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

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background: #2AD16F;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Section Titles & Descriptions --- */
.page-faq__section {
    padding: 60px 0;
}

.page-faq__section-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-faq__section-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* --- FAQ List --- */
.page-faq__faq-list {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.page-faq__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2E7A4E; /* Border */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #1a3528; /* Slightly lighter for hover */
}

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: #2AD16F; /* Green for toggle icon */
}

/* For details tag, hide default marker */
.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−"; /* Minus sign when open */
}
.page-faq__faq-item > summary {
    list-style: none; /* Hide default marker */
}
.page-faq__faq-item > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}


.page-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

/* For JS controlled accordion (if not using <details>) */
.page-faq__faq-item:not(.active) .page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    content: "−";
}


/* --- Content Images --- */
.page-faq__image-block {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto; /* Center image */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

/* --- CTA Bottom Section --- */
.page-faq__cta-bottom {
    padding: 80px 0;
    text-align: center;
}

.page-faq__cta-bottom .page-faq__container {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 50px 30px;
    border: 1px solid #2E7A4E; /* Border */
}

.page-faq__cta-bottom .page-faq__section-title {
    margin-bottom: 15px;
}

.page-faq__cta-bottom .page-faq__section-description {
    margin-bottom: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-faq__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-faq__hero-image {
        max-height: 400px;
    }
    .page-faq__hero-content {
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .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;
        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: 0 15px;
    }
    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .page-faq__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }

    /* Mobile image adaptation (MUST include !important) */
    .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-image-wrapper,
    .page-faq__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-faq__cta-bottom .page-faq__container {
        padding: 40px 20px;
    }
    .page-faq__video-section { /* Although no video, keep the rule for robustness */
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding-bottom: 30px;
    }
    .page-faq__hero-image {
        max-height: 300px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-faq__section-title {
        font-size: 1.5rem;
    }
    .page-faq__cta-buttons {
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}