{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.enrolled %}
{% include "sub_navigation" %}
<main class="np-main np-dashboard np-subpage-container-dashboard np-max-width">

  <header>
    <div class="header-container">
      <div class="header-left-side">
        <div class="heading">
          Welcome {{current_person.first_name}},
        </div>
        <div class="sub-heading">
          This is your dashboard. Explore courses you have started and courses you have been assigned.
        </div>
      </div>

    </div>
  </header>

  {% include 'dashboard_carousel' %}

  <hr class="rounded">
  <div class="filter-heading">
    <div class="heading">My Learning Paths</div>
  </div>
  {% include 'learning_paths_carousel' %}

  {% if training_events.enrolled.any? %}
    <hr class="rounded">
    <div class="filter-heading">
      <div class="heading">Events</div>
          {% include "training_events_dashboard" %}
    </div>
  {% endif %}


</main>
{% include "footer" %}

<style>
  .tns-item {
    flex-basis: auto;
  }

  .rounded {
    border-radius: 5px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    height: 5px;
    border: none;
    background: #00000021;
  }
  .header-container {
    display: flex;
    gap: 2rem;
  }
  .heading {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    line-height: 47px;
    margin-bottom: 30px;
  }

  .sub-heading {
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: #000;
    margin-bottom: 30px;
}
.filter-categories-container {
  width: 100%;
}
.filter-category {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  background: #fff;
  border: 2px solid #0057b8;
  font-weight: 800;
  font-size: 1.5rem;
}


.header-right-side {
  width: 40%;
}

.awards-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
}


</style>