{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
{% include "sub_navigation" %}
<main class="np-main np-homepage">
  <div class="np-homepage-hero" style="background-color: #F3F3F6; /* For browsers that do not support gradients */
  background-image: linear-gradient(to bottom right, #6E9FD7, #F3F3F6); display: flex;">
    <img class="np-homepage-hero-image col-4" style="align-content: right;"
      src="{{ homepage.artwork_url }}"
      alt="{{ homepage.headline }}"
    />
    <div class="np-homepage-hero-content">
      <div class="np-homepage-headline np-header-font-color col-xs-9 col-md-8 col-lg-6 np-stretch-content">
        {{ homepage.headline }}
      </div>
      <div class="np-homepage-subheadline np-header-font-color col-xs-9 col-md-8 col-lg-6 np-stretch-content">
        {{ homepage.subheadline }}
      </div>
      <div class="row"> 
        <a class="np-homepage-hero-cta np-button col-xs-5 col-md-4 col-lg-3 np-stretch-content swiftPink-button mr-1" href="https://swiftacademy.northpass.com/app/learning_paths/bcc9d2dd-1af6-4e4c-b178-cbbd03fa57c4">
          Swift 101
        </a> 
        <a class="np-homepage-hero-cta np-button col-xs-5 col-md-4 col-lg-3 np-stretch-content ml-1" href="{% route catalog %}">
          More Swift Courses 
        </a>
      </div>
    </div>
  </div>
  <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">
        {{ homepage.featured_courses_subheadline }}
      </div>
    </div>
    {% if courses.featured.any? %}
      <div class="np-homepage-featured-courses row">
        {% for course in courses.featured %}
          <div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
            {% include "cards_course" with course %}
          </div>
        {% 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>
  <div class="np-max-width">
    <div class="np-homepage-featured-text">
      <div class="np-homepage-headline m-sub">
       Learn more about the Swift Medical Team
     </div> 
    </div>
    <div class="np-homepage-featured-courses row">
        <div class="col-xs-6 col-md-4 col-lg-3 np-stretch-content">
          <img class="np-card-image" src="https://info.swiftmedical.com/hubfs/+%20People%20Photos,%20Headshots/ProfileSandy-1.png"> 
        </div>
        <div class="col-xs-6 col-md-4 col-lg-3 np-stretch-content ">
          <img class="np-card-image" src="https://info.swiftmedical.com/hubfs/+%20People%20Photos,%20Headshots/ProfileKayla-1.png"> 
        </div>
        <div class="col-xs-6 col-md-4 col-lg-3 np-stretch-content">
          <img class="np-card-image" src="https://info.swiftmedical.com/hubfs/+%20People%20Photos,%20Headshots/ProfileAmy-1.png"> 
        </div>
        <div class="col-xs-6 col-md-4 col-lg-3 np-stretch-content">
          <img class="np-card-image" src="https://info.swiftmedical.com/hubfs/+%20People%20Photos,%20Headshots/ProfileRob-1.png"> 
        </div>
        <div class="col-xs-6 col-md-4 col-lg-3 np-stretch-content">
          <img class="np-card-image" src="https://info.swiftmedical.com/hubfs/+%20People%20Photos,%20Headshots/ProfileDebra-1.png"> 
        </div>
        <div class="col-xs-6 col-md-4 col-lg-3 np-stretch-content">
          <img class="np-card-image" src="https://info.swiftmedical.com/hubfs/+%20People%20Photos,%20Headshots/ProfileBob-1.png"> 
        </div>
    </div>
    <div class="np-homepage-featured-text mt-3">
      <div class="np-homepage-headline m-sub">
       How to Use Swift - Quick Video Walkthrough
     </div> 
     <div class="center ">
      <video class="small-shadow" width="100%" height="auto" poster="https://info.swiftmedical.com/hubfs/Instructional%20Video/Full%20Wound%20Evaluation%20-%20Image.png" controls>
        <source src="https://info.swiftmedical.com/hubfs/Instructional%20Video/Full%20Wound%20Evaluation.mp4" />
      </video>
    </div>
    </div>
    
  </div>
</main>
{% include "footer" %}

<script>
  let featuredCards = document.querySelectorAll('.np-homepage-featured-courses .card-carousel');  
  featuredCards.forEach((card) => {
    card.classList.remove('col-sm-6')
    card.classList.remove('col-md-4');
  })
</script>