<!--<?php
                                $qs = "SELECT * FROM service ORDER BY id DESC LIMIT 6";
                                $r1 = mysqli_query($con, $qs);
                                
                                $border_colors = ['red', 'blue', 'green']; // Define an array of bottom border colors
                                $index = 0; // Counter variable to track the index of the border color array
                                
                                while ($rod = mysqli_fetch_array($r1)) {
                                    $id = $rod['id'];
                                    $serviceg = $rod['service_title'];
                                    $service_desc = $rod['service_desc'];
                                    $border_color = $border_colors[$index % count($border_colors)]; // Get the border color based on the index
                                
                                    // Generate HTML for each service with the specified bottom border color
                                    echo "
                                    <div class='col-12 col-md-6 col-lg-4'>
                                        <!-- Single Service -->
                                        <div class='single-service p-4' style='border: solid 1px #788282;'>
                                            <h3 class='my-3' style='font-weight: normal;'>$serviceg</h3>
                                            <p style='text-align:justify;'>$service_desc</p>
                                            <a class='service-btn mt-3 d-flex justify-content-end' style='font-size:16px;' href='servicedetail.php?id=$id'>Read More</a>
                                        </div>
                                        <div class='bottom-border' style='border-bottom: 2px solid $border_color;'></div> <!-- Bottom border with dynamic color -->
                                    </div>
                                    ";
                    
                        $index++; // Increment the counter variable
                    }
                    ?>-->