/* style/faq.css */

/* Base styles for the FAQ page, assuming a dark body background from shared.css */
.page-faq {
    background-color: var(--background-color, #08160F); /* Fallback to custom BG if shared not defined */
    color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #08160F; /* Ensure hero section has the dark background */
}

.page-faq__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px; /* Space between image and content */
}

.page-faq__hero-content {
    text-align: center;
    width: 100%;
    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: bold;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1rem;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

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

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

.page-faq__btn-secondary {
    background: transparent;
    color: var(--main-color, #11A84E); /* Use main brand color for text */
    border: 2px solid var(--border-color, #2E7A4E); /* Border in brand color */
}

.page-faq__btn-secondary:hover {
    background: var(--main-color, #11A84E);
    color: #ffffff;
}

.page-faq__btn-text-link {
    background: transparent;
    color: var(--glow-color, #57E38D); /* Use glow color for text links */
    border: none;
    padding: 0;
    font-size: 1rem;
    font-weight: normal;
    text-decoration: underline;
}

.page-faq__btn-text-link:hover {
    color: var(--gold-color, #F2C14E);
}

.page-faq__faq-section {
    padding: 60px 20px;
    background-color: var(--background-color, #08160F);
}

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

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-main-color, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-faq__sub-section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--gold-color, #F2C14E); /* Gold color for sub-section titles */
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

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

.page-faq__faq-item {
    background-color: var(--card-bg-color, #11271B); /* Card background color */
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 10px;
    overflow: hidden;
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main-color, #F2FFF6);
    transition: background-color 0.3s ease;
}

.page-faq__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Lighter hover for dark background */
}

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

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

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

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

.page-faq__faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

.page-faq__image-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.page-faq__cta-bottom-section {
    padding: 80px 20px;
    background-color: var(--deep-green-color, #0A4B2C); /* Use deep green for bottom CTA */
    text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

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

    .page-faq__hero-content {
        padding: 0 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-text-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__faq-section {
        padding: 40px 15px;
    }

    .page-faq__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-faq__sub-section-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        margin-top: 40px;
        margin-bottom: 25px;
    }

    .page-faq__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

    .page-faq__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 15px auto;
    }

    .page-faq__cta-bottom-section {
        padding: 60px 15px;
    }

    /* Ensure all images and video elements within .page-faq are responsive */
    .page-faq img,
    .page-faq video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure all image/video containers within .page-faq are responsive */
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}