{# ============================== #}
{#            CARD BASE           #}
{# ============================== #}

.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
  padding-bottom: 25px;
}

.flexi-card-outer {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.flexi-card-outer:hover,
.flexi-card-outer:focus {
  color: inherit;
  text-decoration: none;
}

.c-card img {
  display: block;
  margin: auto;
}

.c-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

{# ============================== #}
{#        RESOURCE CARD PARTS     #}
{# ============================== #}

.rc-img-wrap {
  width: 100%;
  overflow: hidden;
}

.rc-title {
  margin: 0 0 10px 0;
  color: inherit;
}

.rc-desc {
  margin: 0 0 20px 0;
  color: inherit;
}

.rc-footer {
  margin-top: auto;
}

.rc-read-more {
  display: inline-block;
  margin-bottom: 15px;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.rc-read-more::after {
  content: " \2192";
}

.flexi-card-outer:hover .rc-read-more {
  text-decoration-thickness: 2px;
}

{# ============================== #}
{#            BUTTONS             #}
{# ============================== #}

.c-card-btn-con {
  padding-top: 30px;
  margin-top: auto;
}

.load-more-row {
  margin-top: 25px;
}

.load-more-btn {
  cursor: pointer;
}

{# ============================== #}
{#         FILTER + SEARCH        #}
{# ============================== #}

.filter-row {
  display: flex;
  flex-wrap: nowrap;
  flex-flow: nowrap !important;
  margin-bottom: 15px;
}

.search-bar {
  margin-left: 15px;
  width: 360px;
}

{# ============================== #}
{#        MOBILE RESPONSIVE       #}
{# ============================== #}

@media (max-width: 575px) {
  .filter-row {
    flex-direction: column;
    flex-flow: wrap !important;
    width: 100%;
    padding-right: 15px;
  }

  .filter-container {
    width: auto !important;
    flex-direction: column;
  }

  .filter-container .select-container {
    width: 100%;
  }

  .search-bar {
    width: auto;
    margin-bottom: 10px;
  }
}

{# ============================== #}
{#    EQUAL-HEIGHT OPACITY CLOAK  #}
{# ============================== #}

.portfolio-grid:not(.vc-heights-ready) .c-card {
  opacity: 0;
}
.portfolio-grid.vc-heights-ready .c-card {
  opacity: 1;
  transition: opacity 0.15s ease-in;
}