
<div class="card-feature">
     <div class="card-feature-image-container">
        <img class="card-feature-image" src="{{ course.image_url }}" alt="{{ course.name }}">
        {% if course.properties.duration %}
            <div class="np-duration-overlay">
            <strong>{{ course.properties.duration }}</strong> mins
            <div></div>
            </div>
        {% endif %}
        {% if course.activities_count %}
            <div class="np-activities-overlay">
                <strong>{{ course.activities_count }}</strong> activities
            </div>
        {% endif %}
     </div>
     <div class="card-feature-content-container">
        <div class="card-feature-heading">
            {{ course.name }}
        </div>
        <div class="card-feature-desc">
            {{course.full_description}}
        </div>
        <div class="card-feature-btn-container">
            {% capture course_path %}{% route course, id: course.id %}{% endcapture %}
            <a href="{{ course_path }}" class="card-feature-btn">Start
            <i class="fas fa-arrow-right"></i>
            </a>
        </div>
     </div>
</div>

<style>
    .card-feature {
        display: flex;
        background: #fff;
        width: 100%;
        margin-bottom: 20px;
    }
    .card-feature-image {
        width: 100%;
    }
    .card-feature-content-container {
        padding: 20px;
        width: 100%;
    }
    .card-feature-content-container {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-feature-btn {
   text-decoration: none;
   color: #01005F;
   background: #B0EB9F;
   padding: 10px 20px;
   font-family: "arial", "marope";
}
.card-feature-btn-container {
    display: flex;
    justify-content: end;
}

.card-feature-desc{
    margin-bottom: 135px;
    font-family: "arial", "marope";
    color: #1E1E1E;
}

.card-feature-heading{
    color: #010063;
    font-family: "arial", "marope";
    font-weight: bold;
    font-size: 1.5rem;
}

.card-feature-btn i {
     font-weight: normal;

}

.card-feature-image-container{
    position: relative;
    width: 100%;
}

.np-duration-overlay{
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 600;
    background-color: #010063;
}

.np-activities-overlay{
    position: absolute;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 600;
    right: 20px;
    top: 14px;
    background-color: #010063;
}


@media (max-width: 768px) {
        .card-feature {
            flex-direction: column;
        }
            }

</style>
