<div class="popular-topics np-max-width">
  <h2>Browse Courses by Popular Topics</h2>

  <div class="topics-btns-wrapper">
    {% for category in categories.in_catalog %}
      <a class="topics-btn" data-filter='{{category.id}}'>{{category.name}}</a>
    {% endfor %}
  </div>

</div>

<style>
  .popular-topics {
    padding: 32px 24px;
  }

  .popular-topics h2 {
    font-size: 24px;
    font-weight: 900;
    line-height: 36px;
    margin-top: 0;
    margin-bottom: 24px;
  }

  .popular-topics .topics-btn {
    background-color: #dee0e3;
    border: 0;
    border-radius: 16px;
    color: #20262e;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    margin: 0 8px 8px 0;
    padding: 4px 16px;
    text-decoration:none;
    display: inline-block;
    cursor:pointer;
    transition: background-color .1s ease-in-out;
  }

  .popular-topics .topics-btn:hover {
    background-color: #c4c7cc;
    border: 0;
  }

  .popular-topics .topics-btn.active {
    background-color: #126666;
    border-color: #126666;
    color:#fff;
    font-weight:700;
  }


  @media (min-width:768px) {
    .popular-topics {
      padding: 64px 64px 32px;
    }
  }
</style>