<div class="faq_section">
    <div class="container">
        <div class="title_2">FAQs</div>
        <div class="maxWidth">
            <p>Got questions? Our FAQ section has you covered with answers to the most common inquiries about our services. Discover more about our approach, what to expect from consultations, and how we can assist you in achieving your goals. Whether you’re curious about process details or need guidance, our FAQs provide clarity and help you make informed decisions.</p>
        </div>
        <div class="clearfix"></div>

        <div class="accordion" id="accordionExample">
        <?php $i = 1;

$faq_sql = mysqli_query($GLOBALS['dbconn'], "select answer, slno, question from faq_tbl where category_id='$category_id' order by slno ASC");

while ($faq_res = mysqli_fetch_array($faq_sql)) { ?>
            <div class="accordion-item wow fadeInLeft" data-wow-delay=".2s">
                <h4 class="accordion-header" id="heading_<?= $faq_res['slno']; ?>">
                    <span class="accordion-button <?=$i=='1'?'':'collapsed';?>" role="button" data-bs-toggle="collapse" data-bs-target="#faq_<?= $faq_res['slno']; ?>" aria-expanded="true" aria-controls="heading_<?= $faq_res['slno']; ?>"><?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['question']); ?>
                    </span>
                </h4>
                <div id="faq_<?= $faq_res['slno']; ?>" class="accordion-collapse collapse <?=$i=='1'?'show':'';?>" aria-labelledby="heading_<?= $faq_res['slno']; ?>" data-bs-parent="#accordionExample">
                    <div class="accordion-body">
                        <p><?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['answer']); ?></p>
                    </div>
                </div>
            </div>
            <?php $i++;} ?>
        </div>
    </div>

</div>