{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
<main class="np-main np-homepage">
  <div class="np-homepage-hero">
    <img class="np-homepage-hero-image"
      src="{{ homepage.artwork_url }}"
      alt="{{ homepage.headline }}"
    />
    <div class="np-homepage-hero-content">
      <div class="np-homepage-headline np-header-font-color">
        {{ homepage.headline }}
      </div>
      <div class="np-homepage-subheadline np-header-font-color">
        {{ homepage.subheadline }}
      </div>

    </div>
  </div>
  {% include "sub_navigation" %}
  <div class="np-homepage-featured np-max-width">
    <div class="np-homepage-featured-text">
      <div class="np-homepage-headline">
        {{ homepage.featured_courses_headline }}
      </div>
      <div class="np-homepage-subheadline" style='opacity: 50%'>
        {{ homepage.featured_courses_subheadline }}
      </div>
    </div>
    {% if courses.in_catalog.any? %}
      <div class="np-homepage-featured-courses row">
        {% for course in courses.in_catalog %}
          {% if course.properties.featured %}
            <div class="col-xs-12 col-sm-8  col-md-12" style="margin:auto;">
              {% include "cards_featured_course" with course %}
            </div>
          {% endif %}
        {% endfor %}
      </div>
    {% else %}
      <div class="np-homepage-featured-empty">
        <div class="np-zero-state-text">
          {% t .empty, key: current_school.course_vocabulary %}
        </div>
        <img
          class="np-zero-state-courses"
          alt="{% t .empty, key: current_school.course_vocabulary %}"
        />
      </div>
    {% endif %}
  </div>

  {% include "section_popular_topics" %}

  {% include "section_tips_tricks" %}

  {% include "section_faqs" %}
   
</main>
{% include "footer" %}
<script>
    $(".np-sub-navigation-content-item-link:contains('Home')").parent().addClass("np-sub-navigation-content-item-active")
</script>