<div class="faq_section">
    <div class="container">
        <div class="title_2">FAQs</div>
        <p class="text-center w-75 mx-auto text-white mt-3 fs-18">Find quick answers to common questions about our
            products, services, and processes. Whether you’re curious about material specifications, order timelines,
            customization options, or support policies, our FAQs are designed to provide clarity and convenience.
            Explore this section to better understand how we work, what we offer, and how we ensure a seamless, reliable
            experience from inquiry to delivery.</p>
        <div class="clearfix"></div>

     <div class="accordion accordion-flush" 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">
            <h4 class="accordion-header">
               <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#coll<?= $faq_res['slno']; ?>" aria-expanded="true" aria-controls="coll<?= $faq_res['slno']; ?>">
                 <?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['question']); ?>
              </button>
            </h4>
            <!-- show : by default Always open -->
            <div id="coll<?= $faq_res['slno']; ?>" class="accordion-collapse collapse <?= $i == 1 ? 'show' : ''; ?>" data-bs-parent="#accordionExample">
              <div class="accordion-body">
                <p><?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['answer']); ?></p>
              </div>
            </div>
          </div>

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


    </div>

</div>