<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <title>Frequently Asked Questions</title>
</head>
<body class="bg-light d-flex flex-column min-vh-100">
    <!-- Navbar -->
    <%- include('partials/header') %>

    <div class="content">
        <div class="container-fluid faq-section list-content-container">
            <h1 class="text-center">Frequently Asked Questions</h1>
            <p class="lead text-center">Find answers to common questions below.</p>

            <!-- FAQ Items -->
            <div class="accordion" id="faqAccordion">
                <% const faqs = [
                    { question: "What is ASLSTEAMHUB?", answer: "ASLSTEAMHUB is a platform dedicated to providing resources and support for learning American Sign Language (ASL) in the context of science and technology." },
                    { question: "How do I create an account?", answer: "You can create an account by clicking on the 'Sign Up' button on the homepage and filling out the registration form." },
                    { question: "Is there a cost to access the resources?", answer: "Access to basic resources is free." },
                    { question: "How can I contact customer support?", answer: "You can contact our customer support team by visiting the 'Contact Us' page and filling out the form provided." },
                    { question: "What types of resources are available?", answer: "We offer the ability to compile resources, including adding signs or concepts as entries, videos and word lists." },
                    { question: "Can I contribute to the platform?", answer: "Yes! You can submit your resources or suggestions for your own learning." }
                ]; %>
                <% faqs.forEach((faq, index) => { %>
                    <div class="faq-item">
                        <h4 data-toggle="collapse" data-target="#faq<%= index + 1 %>" aria-expanded="false" aria-controls="faq<%= index + 1 %>"><%= index + 1 %>. <%= faq.question %></h4>
                        <div id="faq<%= index + 1 %>" class="collapse" data-parent="#faqAccordion">
                            <p><%= faq.answer %></p>
                        </div>
                    </div>
                <% }); %>
            </div>
        </div>
    </div>

    <%- include('partials/footer') %>
</body>
</html>
