<div class="filter-container">
  <div class="filter-content">
      <h4 class=" filtter-topic difficulty-filter" style="">
        Difficulty
      </h4>
      {% assign sorted_categories = current_school.filterable_categories | sort: "name" %}
          {% for category in sorted_categories %}
            {% if category.name contains '[Difficulty]' %}
            <div class="category-filter-container">
                <input type="checkbox" class="category-filter" data-filter-type="category" value="{{ category.id }}" id="{{category.id}}">
                {{category.name | remove: "[Difficulty]"}}
            </div>
            {% endif %}
        {% endfor %}  
      <h4 class=" filtter-topic plan-filter" style="">
        Feature
      </h4>
      {% assign sorted_categories = current_school.filterable_categories | sort: "name" %}
          {% for category in sorted_categories %}
            {% if category.name contains '[Feature]' %}
            <div class="category-filter-container">
                <input type="checkbox" class="category-filter" data-filter-type="category" value="{{ category.id }}" id="{{category.id}}">
                {{category.name | remove: "[Feature]"}}
            </div>
            {% endif %}
        {% endfor %}  
      <h4 class=" filtter-topic difficulty-filter" style="">
        Role
      </h4>
      {% assign sorted_categories = current_school.filterable_categories | sort: "name" %}
          {% for category in sorted_categories %}
            {% if category.name contains '[Role]' %}
            <div class="category-filter-container">
                <input type="checkbox" class="category-filter" data-filter-type="category" value="{{ category.id }}" id="{{category.id}}">
                {{category.name | remove: "[Role]"}}
            </div>
            {% endif %}
        {% endfor %}  
  </div>
</div>


{% comment %} Javascript to handle on click of checkbox is in Catlog.html.luquid {% endcomment %}


<style>
  .active-checkbox {
    color: red
  }

  .filter-container {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0 0 30px;
    border-right: 1px solid #DFDFDF;
    max-width: 285px;
    
  }
  .filter-heading {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 12px;
    color: #808080;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 100%;
  }
  .filtter-topic {
    margin-top: 18px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-weight: 400;
    border-bottom: 1px solid #DBDBDB;
  }
  .category-filter-container {
    display: flex;
    margin: 0.3rem 0;
    
  }
  .filteer-btns {
    display: flex; 
    gap: 1rem;
    margin: 1rem 0;
  }
  .category-filter {
    margin-right: 0.5rem;
  }
  .filter-content {
    text-align: left;
    width: 100%;
    font-size: 14px;
  }
</style>