/**
 *
 * PROGRAM PICKER ==============================================================
 *
 */

/* colorize credential types */
.view-programs li > a {
  border: 0;
}
.view--grid .credential-certificate {
  border: 1px solid #6f767b;
}

.view-programs .credential-certificate .credential-title {
  background-color: #6f767b;
}

.view--grid .credential-program {
  border: 1px solid #79001c;
}

.view-programs .credential-program .credential-title {
  background-color: #79001c;
}

.view--grid .credential-specialization {
  border: 1px solid #115e67;
}

.view-programs .credential-specialization .credential-title {
  background-color: #115e67;
}

.view--grid .credential-emphasis {
  border: 1px solid #005a65;
}

.view-programs .credential-emphasis .credential-title {
  background-color: #005a65;
}

.view--grid .credential-school {
  border: 1px solid #ccc46e;
}

.view-programs .credential-school .credential-title {
  background-color: #ccc46e;
  color: #154734;
}

.view--grid .credential-diploma {
  border: 1px solid #517891;
}

.view-programs .credential-diploma .credential-title {
  background-color: #517891;
}

.view--grid .credential-degree {
  border: 1px solid #154734;
}

.view-programs .credential-degree .credential-title {
  background-color: #154734;
}

.view--grid .credential-option {
  border: 1px solid #993333;
}

.view-programs .credential-option .credential-title {
  background-color: #993333;
  color: #ffffff;
}

/* colorize credential labels */

.block-views-programs-filter .views-widget-filter-type label {
  padding: 0.2em;
  border-radius: 0.5em;
}

.program-filters h3 {
  text-align: left;
  text-transform: uppercase;
  font-size: 1rem;
  font-family: Oswald;
  /* color: #154734; */
}
.program-filters .views-exposed-widgets {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 15px;
}
.program-filters .views-exposed-widget {
  flex: 1;
}

@media (min-width: 768px) {
  .program-filters .views-exposed-widget {
    border-right: 1px solid #c7d1d2;
    margin-right: 15px;
  }
}
.program-filters .views-widget-filter-title,
.program-filters .views-widget-filter-type_1 {
  border: 0;
  margin-right: 0;
}
.program-filters .bef-checkboxes,
.program-filters .form-radios {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.program-filters .views-submit-button {
  display: none;
}

/* tiny mobile devices */
@media (max-width: 576px) {
  #edit-field-program-type-value-list-wrapper,
  #edit-field-campus-value-list-wrapper {
    flex: 0 0 50%;
  }
  #edit-type-1-list-wrapper .bef-checkboxes {
    flex-direction: row;
    flex-wrap: wrap;
  }
  #edit-type-1-list-wrapper .form-item {
    text-align: left;
    flex: 0 0 50%;
  }
}

/**
 *
 * Program Filters
 *
 */

.program-filters h1 {
  background-color: #154734;
  padding: 0.75rem 0rem;
  color: white;
  text-transform: none;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: museo-sans;
  margin: 0;
  flex: 1;
}

.view--grid .view-content {
  margin-left: -10px;
}
.program-filters .content {
  background-color: #e5edee;
  margin-bottom: 1rem;
  padding: 0 14px;
}

.program-filters #edit-title-wrapper {
  display: flex;
  align-items: center;
  flex-basis: 100%;
  padding: 10px 0px;
  margin-bottom: 5px;
  /* margin: 0 -15px 15px; */
  /* background: #154734; */
  /* padding: 10px 15px; */
}

.program-filters #label-edit-title {
  display: none;
  /* margin: 0 15px 0 0; */
  /* color: #fff;
  font-family: museo-sans;
  text-transform: none; */
}

.program-filters #edit-title-wrapper .form-item {
  margin-bottom: 0;
}
.program-filters #edit-title-wrapper .views-widget {
  width: 100%;
}

.program-filters #edit-title {
  /* max-width: 400px; */
  margin-top: 0;
  position: relative;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg aria-hidden='true' focusable='false' data-prefix='far' data-icon='search' class='svg-inline--fa fa-search fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill-opacity='0.5' fill='currentColor' d='M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z'></path></svg>");
  background-position: center right 0.5rem;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2rem;
}

.program-filters .form-item {
  margin-top: 0;
}

.view--list .field-name-field-header-image {
  display: none;
}
.view--list .item-list:nth-child(odd) {
  background: #e5edee;
  padding-bottom: 20px;
  padding-top: 10px;
  margin-top: 20px;
}
.view--list .credential {
  display: none;
}
.view--grid .view-content h3 {
  display: none;
}
.view--grid .item-list {
  background: transparent !important;
}
.view--grid .item-list li {
  /* flex: 1 0 calc(25% - 10px); */
  float: left;
  position: relative;
  margin-left: 10px;
  margin-bottom: 10px;
  width: 50%;
  max-width: calc(50% - 10px);
  height: 200px;
}
@media (min-width: 768px) {
  .view--grid .item-list li {
    width: 25%;
    max-width: calc(25% - 10px);
  }
}
.view--list img {
  display: none;
}
.view--grid img {
  display: block;
  position: absolute;
  max-width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.view--grid .program-title {
  display: inline-block;
  margin: auto 0.75rem;
  padding: 0.3rem 0.5rem;
  text-align: center;
  background: #fff;
  border-radius: 5px;
  color: #154734;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}
.view--grid .item-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  text-decoration: none !important;
}
.view--grid .item-list a:hover {
  background: rgba(173, 84, 50, 0.7);
}
.program-results .view--grid .item-list a:hover .credential-title {
  background: rgba(173, 84, 50, 1);
}
.program-results .credential-title {
  text-transform: uppercase;
  color: #fff;
  padding: 0.4rem 0.8rem 0.3rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.filter-header {
  display: flex;
  background: #154734;
  align-items: center;
  padding: 0 15px;
}

.program-view-toggle {
  margin-left: auto;
}
.program-view-toggle .btn {
  border: 0;
  transition: none;
  text-decoration: none !important;
}
