<div class="faq-sec bg-light py-5 float-start w-100">
    <div class="container">
        <div class="aboutTitle">Got Questions?</div>
        <p class="w-75 mx-auto mb-4 text-center">Have questions? We’ve got answers! Explore our FAQ section for insights on lecithin, psyllium husk, and more. From product applications to industry standards, we cover everything you need to know. Get clear, concise information to help you make informed decisions and discover the best solutions for your business needs—all in one place!</p>


        <div class="row">
            <div class="col-lg-8 col-md-12 col-12">
                <div class="inner-column">

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

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

while ($faq_res = mysqli_fetch_array($faq_sql)) { ?>
                        <div class="accordion-item">
                            <div class="accordion-header">
                                <button class="accordion-button <?=$i=='1'?'':'collapsed';?>" type="button" data-bs-toggle="collapse"
                                    data-bs-target="#collapse<?= $faq_res['slno']; ?>" aria-expanded="false" aria-controls="collapse<?= $faq_res['slno']; ?>">
                                    <?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['question']); ?>
                                </button>
                            </div>
                            <div id="collapse<?= $faq_res['slno']; ?>" class="accordion-collapse collapse <?=$i=='1'?'show':'';?>"
                                data-bs-parent="#accordionExample" style="">
                                <div class="accordion-body">
                                <?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['answer']); ?>
                                </div>
                            </div>
                        </div>
                        <?php $i++;} ?>
                        
                    </div>
                </div>
            </div>
            <div class="col-lg-4 col-md-12 col-12 d-none d-lg-block">
                <div class="images overflow-hidden rounded-5 rounded">
                    <img loading="lazy" src="<?=site_url;?>/designer/images/faqse.jpg" alt="Got Questions?" title="Got Questions?" width="375" height="510">
                </div>
            </div>
        </div>
    </div>
</div>