<div class="np-card {{ card_classes }}">
	<div class="np-card-container">
		<div class="card__image" style="background-image: url({{ course.image_url }})">
			{% if course.ribbon and course.ribbon.size > 0 %}
				<div class="np-card-ribbon">
					{{ course.ribbon }}
				</div>
			{% endif %}
		</div>
		<div class="np-card-content np-card-content-vertical np-card-padding">
			<h3 class="np-card-content-title">
				{{ course.name }}
			</h3>
			{% if course.instructor_names and course.instructor_names.size > 0 %}
				<div class="np-card-content-subtitle">
					{{ course.instructor_names }}
				</div>
			{% endif %}
			{% if course.short_description and course.short_description.size > 0 %}
				<div class="np-card-content-description">
					{{ course.short_description | split: " --- " | last }}
				</div>
			{% endif %}
			<div class="np-card-content-footer">
				{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
				{% if course.name == "Developer Coding Challenge Mission" %}
				<a class ="np-button np-button-wide" href="https://stripedemo.northpass.com/courses/e805c2c2-9be1-46b9-9a1f-7c26a99a8e22/activities/7886cee7-904f-435f-9c9d-f966b3536aae">
					{% t shared.view %} 
				</a>
				{% elsif course.name == "MCQ Exam Sign up" %}
				<a class = "np-button np-button-wide" href=https://stripedemo.northpass.com/courses/fa2b4ce1-8e59-4ba8-b2ea-8f20d101daa2/activities/4ba10994-8512-4245-adeb-d30bf8d1c98f">
					{% t shared.view %}
				</a>
				{% else %} 
				<a class="np-button np-button-wide" href="{{ course_path }}">
					{% t shared.view %}
				</a>
				{% endif %}
				{% if course.enrolled? %}
					{% if course.has_to_restart? %}
						{% include "course_version_outdated_popup", path: course_path %}
					{% endif %}
					<div class="np-card-content-progress np-button-color">
						{% if course.completed? %}
							Complete
						{% elsif course.started? == false %}
							Enrolled
						{% else %}
							{{ course.progress }}% Complete
						{% endif %}
					</div>
				{% endif %}
			</div>
		</div>
	</div>
</div>
