<div class="faq_section">
    <div class="container">
        <div class="title_2">FAQs</div>
          <p class="w-75 mx-auto text-center pt-0 d-flow-root">
Have questions? We’ve got answers. Our FAQ section provides clear and helpful information to guide you in making the best decisions for your projects. From construction techniques and durability to maintenance and energy efficiency, we address common concerns to ensure you have the confidence and knowledge you need.
      </p>
        <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 IS NULL OR category_id='' ORDER BY slno desc");
                    $companyName = isset($admin_res['companyName']) ? $admin_res['companyName'] : 'Your Company';

                    while ($faq_res = mysqli_fetch_array($faq_sql)) { ?>
            <div class="accordion-item wow fadeInLeft" data-wow-delay=".2s">
                <div 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="<?= $i === 1 ? 'true' : 'false'; ?>" aria-controls="heading_<?=$faq_res['slno'];?>"><?=str_ireplace('{companyName}',$admin_res['companyName'],$faq_res['question']);?>
                    </span>
                </div>
                <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>