<div class="np-homepage-ongoing np-max-width" >
    <div  class="np-homepage-ongoing-text">
      <div class="np-homepage-headline">
        Progress Tracker
      </div>
      <div class="lp-carousel-controls np-hidden-mobile">
        <div class="prev-arrow carousel-control"><i class="far fa-chevron-left"></i></div>
        <div class="next-arrow carousel-control"><i class="far fa-chevron-right"></i></div>
      </div>
    </div>  
    <div class="ongoing-courses-wrapper">
      <div class="learning-path-progress-container">
        <div class="lp-courses-slider">     
          {% assign lps_in_progress_count = 0 %}
          {% assign enrolled_learning_paths = learning_paths.enrolled | sort: "progress" | reverse %}
          {% for learning_path in enrolled_learning_paths %}       
            {% if learning_path.progress > 0 %}  
              {% assign lps_in_progress_count = lps_in_progress_count | plus: 1 %}
                         
                <div class="lp-course-slide">
                   {% include "cards_learning_path_progress" with learning_path  %}
                </div>                 
              
            {% endif %}
          {% endfor %}
        </div>  
        {% if lps_in_progress_count == 0 %}
            <div class="col-xs-12">
              <div class="np-learning-paths-resources-container">
                <div class="np-zero-state-text">
                  You don't have any Certifications or Paths in progress.
                </div>
                <img class="np-zero-state-learning-paths" alt="" />
              </div>
            </div>
        {% endif %}
      </div>   
    </div>   
       
</div>
<style>
	.np-max-width {
		padding: 0px 40px;
	}
  .ongoing-courses-wrapper {
    margin: 0 -8px;
  }



  .np-homepage-ongoing-text {
    padding: 0 0 32px;
    text-align:left;
    display:flex;
  }

  .np-homepage-ongoing-text .np-homepage-headline {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color:#000000;
    align-self: flex-start;
  }

  .lp-carousel-controls {
    align-self:flex-end;
    display:flex;
  }

  .lp-carousel-controls .carousel-control {
    margin: 0 8px;
    background-color: #ebe8f3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3c228a;
    cursor: pointer;
    transition:opacity 0.2s;
  }

  .lp-carousel-controls .carousel-control[aria-disabled='true'] {
    opacity: 0.3;
    cursor:default;
  }

  .lp-carousel-controls .carousel-control.next-arrow {
    margin-right:0;
  }

  
  .lp-courses-slider {
    display:flex;
  }


  .lp-course-slide {
    margin-bottom: 12px;
  }

  .lp-course-slide .np-card {
    margin:0 auto;
    padding: 0;
    height:100%;
  }

  .lp-course-slide .np-card-container {
    height: 100%;
    margin: 0 8px;
  }

 
  

  @media (min-width:768px){
    .np-homepage-ongoing-text {
      flex-direction:row;
      justify-content:space-between;
    }

    .np-homepage-ongoing-text .np-homepage-headline {
      font-size: 32px;
      line-height: 40px;
    }

   
  }
</style>
<script>

window.addEventListener("DOMContentLoaded", (event) => {

  var ongoingSlider = tns({
    container: '.lp-courses-slider',
    items: 1,
    slideBy: 'page',
    autoplay: false,
    gutter: 8,
    controls:false,
    navPosition:"bottom",
    loop: false,
    mouseDrag: true,
    speed: 500,
    controlsContainer: document.querySelector('.lp-carousel-controls'),
    responsive: {
      600: {
        items: 2,
      },
      768: {
        items:3,
        gutter: 16,
        controls:true
      }
    }
  });
});
</script>