<?php include_once('include/main.inc.php');
$hover = "home";
$homepage = mysqli_query($GLOBALS['dbconn'], "select pageDesc,pageDesc1,pageTitle, pageImage, page_keyword, page_metadesc, page_metatitle, pageBanner,keyword1,keyword2 from static_pages where pageID='1' and status='Y'");
$home_res = mysqli_fetch_array($homepage);
$abouthome = mysqli_query($GLOBALS['dbconn'], "select pageDesc,pageDesc1,pageTitle, pageImage, page_keyword, page_metadesc, page_metatitle, pageBanner,keyword1,keyword2 from static_pages where pageID='5' and status='Y'");
$abouthome_res = mysqli_fetch_array($abouthome);
$infra = mysqli_query($GLOBALS['dbconn'], "select pageDesc,pageDesc1,pageTitle, pageImage, page_keyword, page_metadesc, page_metatitle, pageBanner,keyword1,keyword2 from static_pages where pageID='4' and status='Y'");
$infra_res = mysqli_fetch_array($infra);
$why = mysqli_query($GLOBALS['dbconn'], "select pageDesc,pageDesc1,pageTitle, pageImage, page_keyword, page_metadesc, page_metatitle, pageBanner,keyword1,keyword2 from static_pages where pageID='6' and status='Y'");
$why_res = mysqli_fetch_array($why);
if ($home_res['keyword1'] != '' && $home_res['keyword2'] != '') {
    $m_title = "hotkeyword1 Manufacturers in state, hotkeyword2 Suppliers, Exporters country";
    $page_metatitle = str_replace('hotkeyword1', $home_res[keyword1], str_replace('hotkeyword2', $home_res[keyword2],  str_replace('state', $admin_res[targetlocation], str_replace('country', $admin_res[country], $m_title))));
    $m_keyword = "hotkeyword1 Manufacturers, hotkeyword2 Manufacturers, hotkeyword1 Suppliers, hotkeyword2 Suppliers, hotkeyword1 Exporters, hotkeyword2 Exporters, hotkeyword1, hotkeyword2";
    $page_metakey = str_replace('hotkeyword1', $home_res[keyword1], str_replace('hotkeyword2', $home_res[keyword2],  str_replace('state', $admin_res[targetlocation], $m_keyword)));
    $m_desc = "companyName leading hotkeyword1 Manufacturers in state. Best Quality hotkeyword2 Suppliers and Exporters in country at Factory Price. Call phone";
    $page_metadesc = str_replace('hotkeyword1', $home_res[keyword1], str_replace('hotkeyword2', $home_res[keyword2], str_replace('companyName', $admin_res[companyName], str_replace('phone', $admin_res[mobile_meta], str_replace('state', $admin_res[targetlocation], str_replace('country', $admin_res[country], $m_desc))))));
} else {
    $page_metatitle = $home_res['page_metatitle'];
    $page_metakey = $home_res['page_keyword'];
    $page_metadesc = $home_res['page_metadesc'];
}
$page_desc = $home_res['pageDesc'];
$page_desc = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc);
$page_desc3 = $infra_res['pageDesc'];
$page_desc3 = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc3);
$page_desc4 = $why_res['pageDesc'];
$page_desc4 = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc4);
$page_desc5 = $abouthome_res['pageDesc'];
$page_desc5 = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc5);
$page_desc2nd = $home_res['pageDesc1'];
$page_desc2nd = str_ireplace('{companyName}', $admin_res['companyName'], $page_desc2nd);
$page_metadesc = str_ireplace('{companyName}', $admin_res['companyName'], $page_metadesc);
$blog = mysqli_query($GLOBALS['dbconn'], "select blogDate,catImage,catName,blogDname,catDesc,blog_written,blogDate from blog_tbl order by en_date DESC  limit 0,3");
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php include 'app_top.php'; ?>
</head>

<body>
    <?php include 'app_header.php'; ?>

    <div class="home_slider">
        <div id="slider" class="carousel slide  carousel-fade" data-bs-ride="carousel">
            <div class="carousel-inner">
                <div class="carousel-item active">
                    <picture>
                        <source media="(max-width:650px)"
                            srcset="<?= site_url; ?>/uploaded-files/banner-image/nqa-2024-mobile.webp">
                        <img fetchpriority="high" src="<?= site_url; ?>/designer/images/slider/nqa-2024.webp"
                            title="National Quality Awards 2024" alt="National Quality Awards 2024" width="1920"
                            height="1080">
                    </picture>
                    <!-- <img fetchpriority="auto" src="<?= site_url; ?>/designer/images/slider/nqa-2024.webp"
                        title="National Quality Awards 2024" alt="National Quality Awards 2024" width="1920"
                        height="1080"> -->
                </div>
                <?php
$i = 1;
$sql_banner = mysqli_query($GLOBALS['dbconn'], "SELECT bannerImage, personName, Decs, bannerUrl FROM banner_tbl WHERE status='Y' ORDER BY slno ASC");
while ($res_banner = mysqli_fetch_array($sql_banner)) {
    $bannerImage = $res_banner['bannerImage'];
    $mobileImage = 'mobile_' . $bannerImage; // Mobile-specific image
?>
    <div class="carousel-item">
        <picture>
            <!-- Mobile image (max-width: 650px) -->
            <source media="(max-width: 650px)" srcset="<?= site_url; ?>/uploaded-files/banner-image/<?= $mobileImage; ?>">
            
            <!-- Default/desktop image -->
            <img src="<?= site_url; ?>/uploaded-files/banner-image/<?= $bannerImage; ?>"
                 <?= $i == 1 ? '' : 'loading="lazy"'; ?> 
                 alt="<?= $res_banner['personName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                 title="<?= $res_banner['personName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                 width="1920" height="1080">
        </picture>
        <div class="carousel-caption banner_inner d-flex">
            <div class="container align-self-center">
                <div class="banner_info">
                    <div class="title_1"><?= $res_banner['personName']; ?></div>
                    <p><?= $res_banner['Decs']; ?></p>
                </div>
            </div>
        </div>
    </div>
<?php 
$i++;
} 
?>
                <div class="carousel-indicators">
                    <button type="button" data-bs-target="#slider" data-bs-slide-to="0" class="active"
                        aria-current="true" aria-label="Slide 1"></button>
                    <button type="button" data-bs-target="#slider" data-bs-slide-to="1" aria-label="Slide 2"></button>
                    <button type="button" data-bs-target="#slider" data-bs-slide-to="2" aria-label="Slide 3"></button>
                    <button type="button" data-bs-target="#slider" data-bs-slide-to="3" aria-label="Slide 4"></button>
                </div>
            </div>

            <button class="carousel-control-prev" type="button" data-bs-target="#slider" data-bs-slide="prev">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
                    <path fill-rule="evenodd"
                        d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z">
                    </path>
                </svg>
                <span class="visually-hidden">Previous</span>
            </button>
            <button class="carousel-control-next" type="button" data-bs-target="#slider" data-bs-slide="next">
                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
                    <path fill-rule="evenodd"
                        d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z">
                    </path>
                </svg>
                <span class="visually-hidden">Next</span>
            </button>
        </div>


        <svg class="path_type_1" preserveAspectRatio="none" viewBox="0 0 100 100" version="1.1"
            xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L70 100 L100.1 0 L100.1 100 L0 100 Z" fill="#fffcf9" stroke="#fffcf9" stroke-width="-1">
            </path>
            <path d="M0 0 L0 0 L50 100 L100 0 L100 0 Z" fill="transparent"></path>
        </svg>
    </div>

    <div class="w-p-s-home-feture">
        <div class="container">
            <div class="row">
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".1s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/excellence.png" loading="lazy"
                                alt="Success Prediction" title="Success Prediction" width="150" height="150">
                        </div>
                        <div class="title_01">Success Prediction</div>
                    </div>
                </div>

                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".2s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/privacy.png" loading="lazy"
                                alt="Privacy Guaranteed" title="Privacy Guaranteed" width="150" height="150">
                        </div>
                        <div class="title_01">Privacy Guaranteed</div>
                    </div>
                </div>

                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".3s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/compass.png" loading="lazy"
                                alt="Qualified Vastu Consultant" title="Qualified Vastu Consultant" width="150"
                                height="150">
                        </div>
                        <div class="title_01">Qualified Vastu Consultant</div>
                    </div>
                </div>

                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-6 wow fadeInDown" data-wow-delay=".4s">
                    <div class="wprt-icon-text">
                        <div class="icon">
                            <img src="<?= site_url; ?>/designer/images/rating.png" loading="lazy"
                                alt="Trusted by Million Clients" title="Trusted by Million Clients" width="150"
                                height="150">
                        </div>
                        <div class="title_01">Trusted by Million Clients</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="service_category">
        <div class="container">
            <?php $sn = 2;


            $home_cat1 = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName,catBanner, catDesc,catIcon,faq_icon from category_tbl where catID='1' || catID='2' and status='Y' order by catOrder asc limit 0,6");
            while ($home_cat_res2 = mysqli_fetch_assoc($home_cat1)) {
                if ($home_cat_res2['faq_icon'] != '') {
                    $imglink = getImage($home_cat_res2[faq_icon], 650, 655, $home_cat_res2[catName], "/uploaded-files/category/icons/");
                } else {
                    $imglink = NO_IMG_URL;
                }
                if ($sn % 2 == '0') {
            ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInLeft" data-wow-delay=".1s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" loading="lazy"
                                    alt="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    title="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    width="650" height="650">
                            </div>
                        </div>
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInRight" data-wow-delay=".2s">
                            <div class="service_content">
                                <div class="center_box">
                                    <div class="title_3"><a
                                            href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                            title="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"><?= $home_cat_res2['displayName']; ?></a>
                                    </div>
                                    <p><?= html_entity_decode(substr($home_cat_res2['catDesc'], 0, 500)); ?>...</p>
                                    <a class="facilities_btn"
                                        href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                        title="View More">View More</a>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php } else { ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 wow fadeInRight" data-wow-delay=".4s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" loading="lazy"
                                    alt="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    title="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    width="650" height="650">
                            </div>
                        </div>

                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 order-xxl-first order-xl-first order-lg-first order-md-first order-sm-last order-last wow fadeInLeft"
                            data-wow-delay=".3s">
                            <div class="service_content">
                                <div class="center_box">
                                    <div class="title_3"><a
                                            href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                            title="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"><?= $home_cat_res2['displayName']; ?></a>
                                    </div>
                                    <p><?= html_entity_decode(substr($home_cat_res2['catDesc'], 0, 500)); ?>...</p>
                                    <a class="facilities_btn"
                                        href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                        title="View More">View More</a>
                                </div>
                            </div>
                        </div>
                    </div>
            <?php  }
                $sn++;
            } ?>
        </div>
    </div>

    <div class="home_about-web-pulse">
        <svg class="path_type_1 top" preserveAspectRatio="none" viewBox="0 0 100 100"
            xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L30 100 L100 0 L100 100 L0 100 Z" fill="#fffcf9" stroke="#fffcf9" stroke-width="-1"></path>
            <path d="M0 0 L0 0 L50 100 L100 0 L100 0 Z" fill="rgba(255,255,255,0.0)"></path>
        </svg>
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="home_about_content wow fadeInDown" data-wow-delay=".1s">
                        <h1>Best Vastu Consultant in <?= $admin_res['targetlocation']; ?></h1>
                        <div class="about_img">
                            <div class="img">
                                <img src="<?= getImage($home_res['pageImage'], 330, 330, $home_res['pageTitle'], "/uploaded-files/page-images/"); ?>"
                                    loading="lazy" alt="Best Vastu Consultant in <?= $admin_res['targetlocation']; ?>"
                                    title="Best Vastu Consultant in <?= $admin_res['targetlocation']; ?>" width="330"
                                    height="330">
                            </div>
                        </div>


                        <?= html_entity_decode($page_desc); ?>


                        <a href="<?= site_url; ?>/about-us.htm" class="read_more_btn" title="More About Us">More About
                            Us</a>
                    </div>
                </div>
            </div>

        </div>

        <svg class="path_type_1" preserveAspectRatio="none" viewBox="0 0 100 100" version="1.1"
            xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L70 100 L100 0 L100 100 L0 100 Z" fill="#fff" stroke="#fff" stroke-width="-1"></path>
            <path d="M0 -1 L0 0 L50 100 L100 0 L100 -1 Z" fill="rgba(255,255,255,0.0)"></path>
        </svg>
    </div>

    <div class="webpulse_home_featured">
        <div class="container">
            <div class="title wow fadeInDown" data-wow-delay=".1s">Numerology Service</div>
            <p>Unlock the secrets of your life through personalized numerology insights. Our expert service offers
                tailored readings to reveal your true path, strengths, and challenges. Discover how numbers influence
                your destiny and guide your decisions with clarity and confidence. Embrace the power of numerology to
                transform your journey and life with purpose.</p>
            <div class="clearfix"></div>
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div id="featuredProducts" class="wps_featured owl-carousel">

                        <?php $home_cat1 = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName, catDesc,catID from category_tbl where parentID='3' and status='Y' order by homeorder asc limit 0,6");
                        while ($home_cat_res2 = mysqli_fetch_assoc($home_cat1)) {
                            if ($home_cat_res2['catImage'] != '') {
                                $imglink = getImage($home_cat_res2[catImage], 385, 385, $home_cat_res2[catName], "/uploaded-files/category/images/");
                            } else {
                                $imglink = NO_IMG_URL;
                            }
                        ?>
                            <div class="feature_item wow fadeInDown" data-wow-delay=".2s">
                                <div class="inner-box">
                                    <div class="image-box">
                                        <figure class="image"><img src="<?= $imglink; ?>" loading="lazy"
                                                alt="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                                title="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                                width="385" height="385"></figure>
                                        <div class="overlay-link">
                                            <a href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                                class="lightbox-image"><svg xmlns="http://www.w3.org/2000/svg" width="16"
                                                    height="16" fill="currentColor" viewBox="0 0 16 16">
                                                    <path fill-rule="evenodd"
                                                        d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z" />
                                                    <path fill-rule="evenodd"
                                                        d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z" />
                                                </svg></a>
                                        </div>
                                    </div>
                                    <div class="lower-content">
                                        <h4 class="titleH3"><a
                                                href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                                title="<?= $home_cat_res2['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"><?= $home_cat_res2['displayName']; ?></a>
                                        </h4>
                                        <div class="text">
                                            <?= html_entity_decode(substr($home_cat_res2['catDesc'], 0, 100)); ?>...</div>
                                        <a href="<?= site_url; ?>/<?= getValidFileName($home_cat_res2['catName']); ?>.htm"
                                            class="read_more_btn" title="View More">View More</a>
                                    </div>
                                </div>
                            </div>
                        <?php } ?>

                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="web-pulse-choose">
        <svg class="path_type_1 top" preserveAspectRatio="none" viewBox="0 0 100 100" version="1.1"
            xmlns="http://www.w3.org/2000/svg">
            <path d="M0 0 L30 100 L100 0 L100 100 L0 100 Z" fill="#fff" stroke="#fff" stroke-width="-1"></path>
            <path d="M0 0 L0 0 L50 100 L100 0 L100 0 Z" fill="rgba(255,255,255,0.0)"></path>
        </svg>
        <div class="container">
            <div class="row">
                <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 hidden_xs wow fadeInLeft" data-wow-delay=".3s">
                    <div class="serviceCircle">
                        <img src="<?= site_url; ?>/designer/images/service-img2.png" loading="lazy" alt="Riddhe Sshilpi"
                            title="Riddhe Sshilpi" class="animateImg" width="924" height="1166">
                        <img class="ming" src="<?= site_url; ?>/designer/images/awards.webp" loading="lazy"
                            alt="Awards and Recognitions" title="Awards and Recognitions" width="570" height="553">
                    </div>
                </div>
                <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-12 col-12">
                    <div class="home_right_sec wow fadeInLeft" data-wow-delay=".3s">
                        <div class="title">Awards and Recognitions</div>
                        <p>Our expertise and dedication have been honored with numerous awards and recognitions in the
                            field. These accolades reflect our commitment to delivering excellence and fostering trust.
                            Each achievement inspires us to continue pushing boundaries and setting new standards,
                            ensuring the highest quality of service for our valued clients. Excellence is our legacy.
                        </p>
                        <div class="clearfix"></div>
                        <div class="row">
                            <?php $gallery_award_sql = mysqli_query($GLOBALS['dbconn'], "select id,gallery_id,title,caption,image from photo_tbl order by id ASC");

                            while ($gallery_res = mysqli_fetch_assoc($gallery_award_sql)) {
                                $galImg = getImage($gallery_res[image], 360, 280, $gallery_res[title] . $gallery_res[id], "/uploaded-files/gallery/photos/");
                                $galImg1 = getImage($gallery_res[image], 1100, 860, $gallery_res[title] . $gallery_res[id], "/uploaded-files/gallery/photos/");
                            ?>

                                <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 col-sm-6">
                                    <a data-fancybox="photo-gallery" href="<?= $galImg1; ?>"
                                        title="<?= $gallery_res['title']; ?>">
                                        <div class="awardsBox">
                                            <img src="<?= $galImg; ?>" loading="lazy" alt="<?= $gallery_res['title']; ?>"
                                                title="<?= $gallery_res['title']; ?>" width="360" height="279">
                                        </div>
                                    </a>
                                </div>
                            <?php } ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <svg class="path_type_2 home-left" width="21%" height="170" viewBox="0 0 100 102" preserveAspectRatio="none">
            <path d="M0 100 L100 100 L0 10 Z"></path>
        </svg>
        <svg class="path_type_2 home-right" width="80%" height="170" viewBox="0 0 100 102" preserveAspectRatio="none">
            <path d="M0 100 L100 100 L100 50 Z"></path>
        </svg>
    </div>


    <div class="service_category moreService">
        <div class="container">
            <?php $sn = 2;


            $home_cat11 = mysqli_query($GLOBALS['dbconn'], "select catImage, catName, displayName,catBanner,catIcon,faq_icon, catDesc from category_tbl where catID='4' || catID='5' and status='Y' order by catOrder asc limit 0,6");
            while ($home_cat_res22 = mysqli_fetch_assoc($home_cat11)) {
                if ($home_cat_res22['faq_icon'] != '') {
                    $imglink = getImage($home_cat_res22[faq_icon], 650, 505, $home_cat_res22[catName], "/uploaded-files/category/icons/");
                } else {
                    $imglink = NO_IMG_URL;
                }
                if ($sn % 2 == '0') {
            ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInLeft" data-wow-delay=".1s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" loading="lazy"
                                    alt="<?= $home_cat_res22['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    title="<?= $home_cat_res22['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    width="640" height="500">
                            </div>
                        </div>
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_1 wow fadeInRight" data-wow-delay=".2s">
                            <div class="service_content">
                                <div class="center_box">
                                    <h4 class="title_3"><a
                                            href="<?= site_url; ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm"
                                            title="<?= $home_cat_res22['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"><?= $home_cat_res22['displayName']; ?></a>
                                    </h4>
                                    <p><?= html_entity_decode(substr($home_cat_res22['catDesc'], 0, 500)); ?>...</p>
                                    <a class="facilities_btn"
                                        href="<?= site_url; ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm"
                                        title="View More">View More</a>
                                </div>
                            </div>
                        </div>
                    </div>

                <?php } else { ?>
                    <div class="row">
                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 wow fadeInRight" data-wow-delay=".4s">
                            <div class="img-wrap">
                                <img src="<?= $imglink; ?>" loading="lazy"
                                    alt="<?= $home_cat_res22['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    title="<?= $home_cat_res22['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"
                                    width="505" height="505">
                            </div>
                        </div>

                        <div class="col-xxl-6 col-xl-6 col-lg-6 col-md-6 grid_2 order-xxl-first order-xl-first order-lg-first order-md-first order-sm-last order-last wow fadeInLeft"
                            data-wow-delay=".3s">
                            <div class="service_content">
                                <div class="center_box">
                                    <h4 class="title_3"><a
                                            href="<?= site_url; ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm"
                                            title="<?= $home_cat_res22['displayName']; ?> Services in <?= $admin_res['targetlocation']; ?>"><?= $home_cat_res22['displayName']; ?></a>
                                    </h4>
                                    <p><?= html_entity_decode(substr($home_cat_res22['catDesc'], 0, 500)); ?>...</p>
                                    <a class="facilities_btn"
                                        href="<?= site_url; ?>/<?= getValidFileName($home_cat_res22['catName']); ?>.htm"
                                        title="View More">View More</a>
                                </div>
                            </div>
                        </div>
                    </div>
            <?php  }
                $sn++;
            } ?>

        </div>
    </div>
    <?php include 'award_video.php'; ?>
    <div class="home_testimonials_webpulse">
        <svg class="path_type_2 home-left" width="21%" height="170" viewBox="0 0 100 102" preserveAspectRatio="none">
            <path d="M0 100 L100 100 L0 10 Z"></path>
        </svg>
        <svg class="path_type_2 home-right" width="80%" height="170" viewBox="0 0 100 102" preserveAspectRatio="none">
            <path d="M0 100 L100 100 L100 50 Z"></path>
        </svg>
        <div class="container">
            <div class="row">
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-3 col-12 wow fadeInLeft" data-wow-delay=".1s">
                    <div class="client-words">
                        <div class="md-header title">check what’s our client say about us</div>

                    </div>
                </div>
                <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-9 col-sm-9 col-12">
                    <div id="testimonials" class="owl-carousel web-pulse-testimonials">

                        <?php

                        $testimonial2 = mysqli_query($GLOBALS['dbconn'], "select person_city, title, description, image from safe_business_tbl where status='Y'");

                        while ($testimonial_res2 = mysqli_fetch_assoc($testimonial2)) {

                            $user_name = $testimonial_res2['title'];

                            $fstchar = substr($user_name, 0, 1);

                        ?>
                            <div class="testimonial-item wow fadeInRight" data-wow-delay=".2s">
                                <div class="ti-text">
                                    <span class="ti-badge"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                            fill="currentColor" viewBox="0 0 16 16">
                                            <path
                                                d="M12 12a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1h-1.388c0-.351.021-.703.062-1.054.062-.372.166-.703.31-.992.145-.29.331-.517.559-.683.227-.186.516-.279.868-.279V3c-.579 0-1.085.124-1.52.372a3.322 3.322 0 0 0-1.085.992 4.92 4.92 0 0 0-.62 1.458A7.712 7.712 0 0 0 9 7.558V11a1 1 0 0 0 1 1h2Zm-6 0a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1H4.612c0-.351.021-.703.062-1.054.062-.372.166-.703.31-.992.145-.29.331-.517.559-.683.227-.186.516-.279.868-.279V3c-.579 0-1.085.124-1.52.372a3.322 3.322 0 0 0-1.085.992 4.92 4.92 0 0 0-.62 1.458A7.712 7.712 0 0 0 3 7.558V11a1 1 0 0 0 1 1h2Z" />
                                        </svg></span>
                                    <p class="ti-words c-7">
                                        <?= str_ireplace('{companyName}', $admin_res['companyName'], $testimonial_res2['description']); ?>
                                    </p>

                                    <ul class="five_start">
                                        <li><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                fill="currentColor" viewBox="0 0 16 16">
                                                <path
                                                    d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                            </svg></li>
                                        <li><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                fill="currentColor" viewBox="0 0 16 16">
                                                <path
                                                    d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                            </svg></li>
                                        <li><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                fill="currentColor" viewBox="0 0 16 16">
                                                <path
                                                    d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                            </svg></li>
                                        <li><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                fill="currentColor" viewBox="0 0 16 16">
                                                <path
                                                    d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                            </svg></li>
                                        <li><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"
                                                fill="currentColor" viewBox="0 0 16 16">
                                                <path
                                                    d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z" />
                                            </svg></li>
                                    </ul>
                                </div>
                                <div class="ti-info spt-xs">
                                    <ul class="list-inline">
                                        <li>
                                            <span class="latterWord"><?= $fstchar; ?></span>
                                        </li>
                                        <li>
                                            <strong
                                                class="ti-name fw-5 text-capitalize"><?= $testimonial_res2['title']; ?></strong>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        <?php } ?>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="webpulse-home_blog">
        <div class="container">
            <div class="title">Latest Blogs</div>
            <p>Stay updated with the latest news and insights from Vastu and Numerology. From industry trends to expert
                tips, we bring you fresh perspectives to help enhance your well-being and living spaces. Explore
                upcoming events, workshops, and recent achievements, all designed to keep you informed and inspired on
                your journey to balance and harmony.</p>
            <div class="clearfix"></div>
            <div class="row">

                <?php
                while ($blog_res = mysqli_fetch_array($blog)) {
                    if ($blog_res['catImage'] != '') {
                        $blog_img =  getImage($blog_res['catImage'], 416, 370, $blog_res['catName'], "/uploaded-files/blog/images/");
                    } else {
                        $blog_img = NO_IMG_URL;
                    }
                    $blog_shortdesc = str_ireplace('{companyName}', $admin_res['companyName'], $blog_res['catDesc']);
                ?>
                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-4 col-sm-4 col-12">
                        <div class="blog-item">
                            <div class="blog__img">
                                <a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm"
                                    title="<?= $blog_res['blogDname']; ?>">
                                    <img src="<?= $blog_img; ?>" loading="lazy" alt="<?= $blog_res['blogDname']; ?>"
                                        title="<?= $blog_res['blogDname']; ?>" width="416" height="332">
                                </a>
                            </div>
                            <div class="blog__content">
                                <h5 class="blog__title"><a
                                        href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm"
                                        title="<?= $blog_res['blogDname']; ?>"><?= $blog_res['blogDname']; ?></a></h5>
                                <p class="blog__desc"><?= html_entity_decode(substr($blog_shortdesc, 0, 180)); ?>...
                                </p>
                                <a href="<?= site_url; ?>/blog/<?= getValidFileName($blog_res['catName']); ?>.htm"
                                    class="read_more_btn" title="View More">View More</a>
                            </div>
                        </div>
                    </div>
                <?php } ?>


            </div>
        </div>
    </div>



    <?php include 'app_footer.php'; ?>
    <?php include 'app_bottom.php'; ?>
    <script>
        document.addEventListener('DOMContentLoaded', () => {
            const buttons = document.querySelectorAll('button');
            buttons.forEach((button, index) => {
                button.setAttribute('title', `Maarwall Kkarma`);
            });
        });
    </script>
</body>

</html>