{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.enrolled %}
{% comment %} {% include "sub_navigation" %} {% endcomment %}

<div class="row subpage-intro">
    <div class="color-layer"></div>
    <div class="col-xs-12 col-sm-9 col-md-6" style="margin:auto;">
      <div class="subpage-intro-content-wrapper">
        <div class="subpage-intro-title">My Topics</div>
        <div class="subpage-intro-divider"></div>
        <div class="subpage-intro-subtitle">Explore content curated for you based on your role and specialty. Looking for more? Access our Content Library to see all available topics.</div>
       </div>
    </div>
</div>

<div class="content-disclaimer np-subpage-container">The content you access on this website is intended for Healthcare Professionals practicing in the U.S. and is consistent with U.S. labeling.</div>
<main class="np-main np-dashboard np-subpage-container np-max-width">
  <div class="row">
    <div class="col-xs-12 col-lg-8">
      {% if features.learning_paths? %}
        <div class="np-dashboard-resources-title">
          Programs
        </div>
        {% include "learning_paths_index", items: learning_paths.enrolled %}
      {% endif %}
      <div class="np-dashboard-resources-title">
        Recommended Topics
      </div>
      {% include "courses_index", class: "col-xs-12 col-md-6 col-lg-12" %}
    </div>
    {% if features.training_events? %}
      {% if training_events.enrolled.any? %}
        <div class="np-grid-spacing col-xs-12 col-lg-4">
          <div class="np-dashboard-resources-title">
            Saved Events
          </div>
            {% include "training_events_dashboard" %}
        </div>
      {% endif %}
    {% endif %}
  </div>
</main>
{% include "footer" %}

<style>
.subpage-intro {
  position:relative;
  background: url(https://s3.amazonaws.com/static.northpass.com/J%26J/homepage_banner_my_topics.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 64px 16px;
  margin: 0;
}

.color-layer {
    background-color: rgba(51, 51, 51, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.subpage-intro-content-wrapper {
  text-align:center;
  color: #fff;
  position: relative;
  font-size: 18px;
}

.subpage-intro-title {
  font-size: 32px;
      line-height: normal;
  text-transform: uppercase;
  font-weight: 900;
}

.subpage-intro-divider {
    height: 5px;
    margin: 16px auto;
    width:100px;
    background-color:#cc0033;
}

.np-dashboard-resources-title {
  font-size:16px;
  line-height:18px;
  color:#212121;
}

@media (min-width:768px) {
    .subpage-intro {
        min-height:400px;
    }
  .subpage-intro-content-wrapper {
    font-size: 20px;
  }

  .subpage-intro-title {
    font-size: 50px;
  }
}
</style>