<div class="search_head_box position-relative">
    <div class="serachandtitle">
        <p class="title"><?php echo $settings['item_description']; ?></h2>
        <div class="search-box">
            <div class="custom-search">
                <div class="search-form">
                    <?php get_search_form(); ?>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="cat_item_list_box">
            <ul class="text-center">
                <?php 
                if ($settings['list']):
                foreach ($settings['list'] as $item): ?>
                <li>
                <?php
                $cat_count = intval($item['cat_count']);
                if (term_exists($cat_count, 'category')) :
                    $category = get_category($cat_count);
                    $count = $category->count;
                ?>
                    <a href="<?php echo get_category_link($category->term_id); ?>" class="tag-cloud-item" style="<?php echo 'background:'. $item['cat_count_background_Color'].';color:'. $item['cat_count_text_Color'];?>">
                        <span class="tag-cloud-count">
                            <?php echo $count; ?>
                        </span>
                        <span class="tag-cloud-name">
                            <?php echo $category->name; ?>
                        </span>
                    </a>
                <?php endif; ?>
                </li>
                <?php endforeach; endif; ?>
            </ul>
        </div>
    </div>
</div>