{% comment %}<div class="np-card col-xs-10" style="margin-bottom: 7.5rem;">
    {% capture course_path %}{% route course, id: course.id %}{% endcapture %}
    <a class="np-card-container col-xs-12 row" href="{{course_path}}">
        <div class="col-xs-3 np-featured-card-info">
            {% if course.ribbon %}
                <div class="np-card-ribbon">
                    {{ course.ribbon }}
                </div>
            {% endif %}
            <img
                class="np-featured-card-image np-card-image"
                alt="{{ course.name }}"
                src="{{ course.image_url }}"
            >
        </div>
        <div class="col-xs-9 np-featured-card-content">
            <h3 class="np-card-content-title">
                {{ course.name }}
            </h3>
            <div class="np-card-content-subtitle">
                {{ course.short_description }}
            </div>
            <div class="np-card-progress np-button-color">
                {% t shared.progress, count: course.progress %}
            </div> 
        </div>
    </a>
</div>{% endcomment %}

<div class="np-card np-no-horizontal-padding">
    <div class="np-card-container">
      <div class="np-learning-path np-featured-course">
        <div class="col-xs-4 np-featured-course-img-container">
            <div class="np-card-image-content-top">           
               
            </div>
            <img
            class="np-card-image"
            alt="{{ course.name }}"
            src="{{ course.image_url }}"
            >
        </div>
        <div class="col-xs-8 np-card-text-wrapper">
          <div class="np-card-content np-card-padding np-card-content-vertical">
            <h3 class="np-card-content-title">
              {{ course.name }}
            </h3>
  
            <div class="np-card-content-description" style='color: #ffffff !important; display: contents;'>
                {{ course.short_description }}
            </div>
  
            <div class="np-card-content-footer" style='display: flex; justify-content: space-between;'>
              <div class='np-card-content-footer-left'style='display: flex; justify-content: left;'>
                <a
                  class="np-top-button np-button-font-color np-button np-featured-course-button" href="{% route course_enrollment, code: course.enrollment_code %}">
                    {% if course.enrolled? == false %}
                      {% t shared.enroll %}
                    {% elsif course.started? == false %}
                      {% t shared.start, key: current_school.course_vocabulary %}
                    {% elsif course.completed? %}
                      {% t shared.course.view, key: current_school.course_vocabulary %}
                    {% else %}
                      {% t shared.continue %}
                    {% endif %}
                </a>
                <div class="np-card-progress">
                  {% t shared.progress, count: course.progress %}
                </div> 
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
</div>

<style>
    .np-card-container {
        height: auto;
        position: relative;
        color: #fff;
        background: #01061D;
        border-radius: 0;
        box-shadow: none;
	padding-top: 2rem;
	padding-bottom: 2rem;
    }

     .col-xs-10 {
	padding-top: 1rem;
	padding-bottom: 1rem;
    }


    .np-featured-course-img-container,
    .np-card-text-wrapper{
        padding: 0;
    }

    .np-card-image {
        height: 100%;
        border-radius: 0;
    }

    .np-card-image-content-top {
        position: absolute;
        left: 1.5rem;
        z-index: 1;
    }

    .np-card-image-content-top {
        top: 1.5rem;
    }

    .np-card-content {
        background: #01061D;
    }

    .np-card-content-title,
    .np-card-content-subtitle{
        color: #ffffff;
    }

    .np-featured-course-button{
        width: 80%;
	height: 90%;
        background: #307fe2;
        color: #FFFFFF;
        font-weight: 800; 
        border-radius: 4px; 
        margin-right: 24px;
	font-size: 15px;

    }

    .np-featured-course-button:hover{
        background: #59D7C9;
	color: #211579;
       
    }

    @media screen and (min-width: 768px) {
        .np-card-content-title {
            flex: 1;
            font-size: 25px;
            font-weight: 400;
        }

        .np-card-content-subtitle{
            font-size: 16px;
            font-weight: 300;
        }

        .np-card-image-content-top {
            left: 1.5rem;
            right: 1.5rem;
            top: 1.5rem;
        }

        .np-course-detail {
            font-size: 1.5rem;
        }

        .np-card-padding{
            padding: 1.5rem;
        }

        .np-card-content-footer {
            margin-top: 2.5rem;
        }

        .np-card-content-footer-left {
            flex-direction: column;
        }

        .np-card-progress{
            color: #59D7C9;; 
            font-weight: 700; 
            font-size: 12px; 
            padding: 1rem 0 0 0;
            text-transform: uppercase;
        }
	
	.np-card-progress:hover {
            color: #59D7C9;
        
        }
    }
</style>