<?php if(get_theme_mod('social_charity_service_enable')): ?>  
  <section class="services mgb-lg">
    <div class="container">
      <div class="row">
        <?php $social_charity_k=1; 
        for($social_charity_i=1;$social_charity_i<4;$social_charity_i++){
          $social_charity_service_page[$k]=get_theme_mod('social_charity_service_title_'.$social_charity_i);
          $social_charity_service_icon[$k]=get_theme_mod('social_charity_service_icon_'.$social_charity_i);
          $social_charity_k=$social_charity_k+1;
        }

        $social_charity_args = array (
          'post_type' => 'page',
          'post_per_page' => $social_charity_k,
          'posts_per_page'=>3,
          'post__in'         => ($social_charity_service_page) ? ($social_charity_service_page) : '',
          'orderby'           =>'post__in',
        );

        $social_charity_serviceloop = new WP_Query($social_charity_args);
        $social_charity_j=1;

        if ($social_charity_serviceloop->have_posts()) :  while ($social_charity_serviceloop->have_posts()) : $social_charity_serviceloop->the_post();?>
          <div class="col-lg-4">
            <div class="s-holder">
             <?php if($social_charity_service_icon[$j]): ?>
              <div class="service-icon">
                <i class="<?php echo esc_attr($social_charity_service_icon[$j]);?>" aria-hidden="true"></i>
              </div>
            <?php endif;?>
            <h5><?php the_title();?></h5>
            <?php the_excerpt();?>
          </div>
        </div>
        <?php $social_charity_j=$social_charity_j+1; 
              endwhile; 
              wp_reset_postdata();
        endif; ?>
    </div>
  </div>
</section>
<?php endif;?>