{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.featured %}
<main class="np-main np-homepage">
  <div class="np-homepage-hero">
    <div class="np-homepage-hero-content">
      <div class="header-1">
        {{ homepage.headline }}
      </div>
      <div class="np-homepage-subheadline np-header-font-color">
        {{ homepage.subheadline }}
      </div>
    </div>
  </div>
  <div class="hidden-desktop-custom">
    {% include "sub_navigation" %}
  </div>
  <div class="np-homepage-featured np-max-width">
    <div class="np-homepage-featured-courses row">
      {% if learning_paths.available.any? %}
        {% for learning_path in learning_paths.available %}
          {% if learning_path.name == "Set up Front for my company" or learning_path.name == "Front for my daily work" or learning_path.name == "Make smarter decisions with Front analytics" or learning_path.name == "Front Administrator Certification" %}
            <div class="col-xs-12 col-sm-6 col-md-4">
            {% include "cards_learning_path_vertical" with learning_path %}
            </div>
          {% endif %}
        {% endfor %}
        <div class="col-xs-12 col-sm-6 col-md-4">
          <div class="just-browsing-card np-card" style="height:100%; padding-bottom:32px;">
            <div class="np-card-container">
              <img
                alt="Just Browsing"
                class="course-card-image"
                src="https://s3.amazonaws.com/static.northpass.com/Front+Academy/just+browsing.png"
              />
              <div class="np-card-content np-card-content-vertical np-card-padding">
                <h3 class="np-card-content-title header-5 fw-semibold" style="margin-top:0;">
                  Just Browsing
                </h3>
                <div class="paragraph-2">
                  Not sure where to start? Browse the full course catalog to discover everything Front Academy has to offer.
                </div>
                <div class="np-card-content-footer">
                  <a class="fw-semibold" href="/app/catalog">
                    Explore all courses
                    <i class="far fa-long-arrow-right"></i>
                  </a>
                </div>
              </div>
            </div>
          </div>
        </div>
      {% endif %}
    </div>

    <div class="row homepage-cta-row">
      <div class="col-xs-12">
        <div class="cta-headline">Already on the path?</div>
        <a class="np-button" href="/app/dashboard">Continue training</a>
      </div>
    </div>
  </div>
</main>
{% include "footer" %}

<style>
.course-card-image{
  width: 100%;
}
.np-header:not(.active) {
  background-color:transparent;
}

.np-homepage-hero {
  padding-top: 100px;
  background: #B0F1FC;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30.25%, #FFFFFF 100%), radial-gradient(107.78% 150.23% at -5.14% 65.55%, #B0F1FC 0%, #D9F8FF 65.77%)
}

.np-homepage-hero-content {
  position:relative;
  padding: 24px 24px 70px;
}

.np-homepage-hero .np-homepage-subheadline {
  font-weight: 400;
  font-size: 22px;
  line-height:normal;
  margin-top: 0;
  opacity: 1;
}

.lp-homepage-btn {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
  background: #cc0049;
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  font-size: 1.5rem;
}
.lp-btn-arrow {
  margin-left: 1rem;
}

.homepage-cta-row {
  margin-top: 70px;
  text-align: center;
}

.cta-headline {
  font-size:36px;
  margin-bottom:32px;
  font-weight:600;
}

@media (min-width:768px) {
  .np-homepage-hero-content {
    padding: 80px 24px 100px;
  }

  .np-homepage-hero .np-homepage-subheadline {
    font-size: 24px;
  }

  .homepage-cta-row {
    margin-top: 100px;
  }

  .cta-headline {
    font-size:50px;
    margin-bottom:40px;
  }
}
</style>