<div id="footer-menu" style="<?php
      if (( is_active_sidebar('footer-1') == '' ) &&  ( is_active_sidebar('footer-2') == '' ) &&  ( is_active_sidebar('footer-3') == '' ) &&  ( is_active_sidebar('footer-4') == '' )) { echo 'margin-top:40px;';} ?>">
  <div class="container">
    <div class="row">
      <div class="offset-lg-1 col-lg-3 col-md-3 col-sm-12 col-12 footer-logo-section">
        <div class="footer-logo">
           <?php if( has_custom_logo() ){ advance_education_pro_the_custom_logo();
          }else{ ?>
            <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php esc_attr(bloginfo( 'name' )); ?></a></h1>
            <?php $description = get_bloginfo( 'description', 'display' );
            if ( $description || is_customize_preview() ) : ?>
              <p class="site-description"><?php echo esc_html($description); ?></p>
          <?php endif; } ?>
        </div>
      </div>
      <div class="col-lg-8 col-md-8 col-sm-12 col-12">
        <nav id="site-navigation" class="main-navigation">
          <a href="javascript:void(0)" class="closebtn mobile-menu" onclick="closeNav()"><i class="fas fa-times"></i></a>
          <?php 
            wp_nav_menu( array( 
              'theme_location' => 'footer-menu',
              'container_class' => 'menu clearfix' ,
              'menu_class' => 'clearfix',
              'items_wrap' => '<ul id="%1$s" class="%2$s mobile_nav">%3$s</ul>',
              'fallback_cb' => 'wp_page_menu',
            ) ); 
          ?>
        </nav>
      </div>
    </div>
  </div>
</div>