/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color based on dark background */
    background-color: var(--background, #08160F); /* Body background from shared.css */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--background, #08160F);
}

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

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-faq__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
}

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

/* Video Section */
.page-faq__video-section {
    padding: 60px 20px;
    background-color: var(--card-bg, #11271B); /* Darker background for section */
    text-align: center;
    color: var(--text-main, #F2FFF6);
}

.page-faq__video-title {
    font-size: clamp(1.8em, 2.5vw, 2.5em);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 30px;
}

.page-faq__video-container {
    width: 100%;
    max-width: 1000px; /* Max width for video container */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 20px;
    width: 100%; /* Important for desktop flex width */
    max-width: 100%;
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves as a block element */
}

.page-faq__video-description {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
}

/* Content Area - FAQ List */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--background, #08160F); /* Ensure consistent background */
    color: var(--text-main, #F2FFF6);
}

.page-faq__section-title {
    font-size: clamp(2em, 3vw, 2.8em);
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
}

.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-item {
    background-color: var(--card-bg, #11271B); /* Card background color */
    border: 1px solid var(--border, #2E7A4E); /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main, #F2FFF6);
    background-color: var(--card-bg, #11271B);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for <summary> */
}

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

.page-faq__faq-question:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Slight hover effect */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D); /* Glow color for toggle */
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8); /* Secondary text color */
    max-height: 0; /* For div based accordion, controlled by JS */
    overflow: hidden; /* For div based accordion */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* For div based accordion */
}

/* Styles for <details> tag, which handles open/close natively */
.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: fit-content; /* Allow content to expand */
    padding-top: 15px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

.page-faq__faq-answer p {
    margin-bottom: 1em;
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-bottom: 1em;
    padding-left: 25px;
}

.page-faq__faq-answer li {
    margin-bottom: 0.5em;
}

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

/* Call to Action Section */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--deep-green, #0A4B2C); /* Deep green for CTA */
    color: var(--text-main, #F2FFF6);
}

.page-faq__cta-title {
    font-size: clamp(2em, 3vw, 3em);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
}

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

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--glow, #57E38D); /* Glow color for secondary button text */
    border: 2px solid var(--glow, #57E38D);
}

.page-faq__btn-secondary:hover {
    background: rgba(var(--glow-rgb), 0.1); /* Subtle background on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

    .page-faq__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 for smaller screens */
    }

    .page-faq__hero-description {
        font-size: 1em;
    }

    .page-faq__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__content-area {
        padding: 40px 15px;
    }

    .page-faq__section-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
    }

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

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

    .page-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-faq__cta-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-faq__cta-description {
        font-size: 1em;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}