<div class="np-card">
  <div class="np-card-container">
    <img
      class="np-card-image"
      alt="{{ item.name }}"
      src="{{ item.image_url }}"
    >
    <div class="np-card-content np-card-content-vertical np-card-padding">
      <h3 class="np-catalog-card-title">
        {{ item.name }}
      </h3>
      <div class="np-product-badge np-product-badge-catalog">
        <i class="far {{ item.icon }} np-product-badge-icon np-product-badge-catalog-icon"></i>
        <h3 class="np-product-badge-name np-product-badge-catalog-name">{{ item.formatted_type }}</h3>
      </div>
      <div class="np-card-content-footer np-catalog-card-footer">
        {% if item.free_course? %}
          <div class="np-card-content-progress np-learning-progress-text-color">
            {% t shared.progress, count: item.progress %}
          </div>
          {% if item.has_to_restart? %}
            {% include "course_version_outdated_popup", path: item.path %}
          {% endif %}
          <a class="np-button np-button-wide" href="{{ item.path }}">
            {% t shared.view %}
          </a>
        {% else %}
          <span class="np-catalog-card-price">
            {{ item.formatted_price}}
          </span>
          <a class="np-button np-button-wide" href="{{ item.path }}">
            {% t shared.learn_more %}
          </a>
        {% endif %}
      </div>
    </div>
  </div>
</div>
