%hide-until-focus {
  @include left(0);

  display: inline-block;
  position: absolute;
  top: -999999px;
  overflow: hidden;
}

.program-card {
  @include span(12);

  border: 1px solid $border-color-l3;
  border-bottom: none;
  margin-bottom: $baseline;
  position: relative;

  @media (min-width: $bp-screen-md) {
    @include span(6);

    &:nth-child(2n) {
      @include span(6, before);
    }

    &:nth-child(2n+1) {
      @include span(6, after);
    }
  }

  .card-link {
    @include left(0);
    @include right(0);

    position: absolute;
    top: 0;
    bottom: 0;
    border: 0;
    z-index: 1;
    opacity: 0.8;

    &:active,
    &:hover,
    &:focus {
      opacity: 1;
    }

    .banner-image-container {
      position: relative;
      overflow: hidden;
      height: 166px;

      @media (min-width: $bp-screen-sm) { height: 242px; }

      @media (min-width: $bp-screen-md) { height: 116px; }

      @media (min-width: $bp-screen-lg) { height: 145px; }

      .banner-image {
        @include left(50%);

        position: absolute;
        top: 0;
        z-index: 0;
        transform: translate(-50%, 0);
        min-height: 100%;
      }
    }
  }

  .text-section {
    padding: 40px $baseline $baseline;
    position: relative;
    margin-top: 156px;

    @media (min-width: $bp-screen-sm) { margin-top: 232px; }

    @media (min-width: $bp-screen-md) { margin-top: 106px; }

    @media (min-width: $bp-screen-lg) { margin-top: 135px; }
  }

  .meta-info {
    font-size: font-size(x-small);
    color: palette(grayscale, dark);
    position: absolute;
    top: $baseline;
    width: calc(100% - 40px);
  }

  .organization {
    @include span(6, none);

    white-space: nowrap;
    overflow: hidden;
  }

  .category {
    @include span(6, none);
    @include text-align(right);

    .category-text {
      @include float(right);
    }

    .category-icon {
      @include float(right);
      @include margin-right($baseline*0.25);

      background-color: transparent;
      background-size: 100%;
      width: ($baseline*0.7);
      height: ($baseline*0.7);
    }
  }

  .hd-3 {
    color: palette(grayscale, dark);
    min-height: ($baseline*3);
    line-height: 1.15;
  }

  .status-text {
    display: flex;
    margin-bottom: 5px;

    .number-status {
      text-align: center;
      width: 100%;
      float: left;
      padding: {
        left: 5px;
        right: 5px;
        bottom: 8px;
      }

      margin-top: -8px;
      font-size: 1em;
      font-family: $f-sans-serif;
    }

    .number-circle {
      padding-top: 1px;
      border-radius: 50%;
      margin-left: auto;
      margin-right: auto;
      width: 23px;
      height: 23px;
      color: white;
      text-align: center;
      font-size: 0.9375em;
      font-family: $f-sans-serif;
      font-weight: bold;
    }

    .completed {
      background: $blue;
    }

    .enrolled {
      background: $green;
    }

    .not-enrolled {
      background: palette(grayscale, dark);
    }
  }

  .progress-container {
    max-width: inherit;

    .progress-bar {
      height: 5px;
      display: flex;
      width: 100%;

      .item {
        width: 100%;
        margin-right: 2px;
        height: 5px;

        &.completed {
          background: $blue;
        }

        &.enrolled {
          background: $green;
        }

        &.not-enrolled {
          background: lightgray;
        }

        &.not-enrolled:last-of-type {
          margin-right: 0;
        }
      }
    }
  }

}