{% assign categories = current_school.filterable_categories %}

{% assign categoryname = "" %} 
{% for category in categories %}
  {% assign categoryfullname = category.name %} 
  {% assign nameArr = categoryfullname | remove: '['  | split: "]" %}
  {% assign categoryname = categoryname | append: nameArr[0] | append: ',' %} 
{% endfor %}  
{% assign tempArr = categoryname  | split: "," %}
{% assign catArr = tempArr  | uniq %}

<div class="np-dashboard-resources">
  {% for catname in catArr %}    
    <a href="app/filtered-catalog?catname={{catname | url_encode }}" style="text-decoration: unset;">
    <div class="content-catds">
      <div class="content-catds-text">
        {{ catname }} 
      </div>  
      <div class="content-arrow"><i class="far fa-duotone fa-solid fa-greater-than"></i></div>
    </div>
    </a>
  {% endfor %}
</div>

<style>

.content-catds {
  border: 2px solid #bac4ca;
    border-radius: 10px;
    /* padding: 5px; */
    text-align: center;
    margin: 15px;
    display: flex;
    justify-content: space-between;
    /* align-content: stretch; */
    flex-wrap: nowrap;
    align-items: center;
}
.content-catds:hover {
  background-color: lightgray;
  cursor: pointer;
}

.content-catds-text {
  color: #333;
    padding-left: 20px;
    font-size: 17px;
    /* margin-bottom: 24px; */
    height: 30px;
    padding-top: 5px;
}

.content-arrow {
  padding-top: 5px;
    background-color: bisque;
    height: 30px;
    width: 50px;
    border-radius: 0px 10px 10px 0px;
}

</style>