.card {
  background: #fff;
  position: relative;
  min-width: 0;
}

a.card {
  text-decoration: none;
}

.card.large {
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(20,0,60,0.08);
  border-radius: 7px;
  /*margin-bottom: 2.5rem;*/
  background: #fff;
}

.card.large .icon {
  /*margin-right: 1rem;*/
  /*color: #bbb;*/
  /*font-size: 1.18rem;*/
}

/*Card bars*/

.card.select {
  border: 1px solid #dadada;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  /*overflow: hidden;*/
  display: flex;
  align-items: center;
  padding: 0;
}

.card.select:hover {
  z-index: 5;
  border-color: #ccc;
}

.card.med {
  border-radius: 4px;
  margin-bottom: 1rem;
  padding: 1.47rem;
  padding-right: 2.4rem;
}

.card.small {
  border-radius: 0;
  border-bottom: none;
  padding: 1.18rem;
  padding-right: 2rem;
  transition: all 0.05s;
}

.card.smaller {
  padding: 0.6rem;
  padding-right: 1.8rem;
  border-bottom: none;
}

.card.small:first-child, .card.smaller:first-child {
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

.card.small:last-child, .card.smaller:last-child {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  border-bottom: 1px solid #ddd;
}

.card.tiny {
  padding: 0.4rem;
  padding-right: 1.8rem;
  margin-top: -1px;
}

.card.tiny:first-child {
  margin-top: initial;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

.card.tiny:last-child {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}

.card.tiny:hover, .card.tiny:focus {
  border-color: #aaa;
  /*z-index: 2;*/
}

.card.med:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.card.small:hover {
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
  margin-right: -0.22rem;
  margin-left: -0.22rem;
  padding-left: 1.4rem;
  padding-right: 2.22rem;
  border-radius: 5px;
}

.card.ko {
  text-decoration: none;
  background: rgba(0,0,0,0.1);
}

.card.ko:hover {
  box-shadow: none;
  background: rgba(0,0,0,0.05);
}

.card.ko {
  border: 2px solid rgba(0,0,0,0.07);
  box-shadow: none;
  background: transparent;
}

/*Card bar contents*/

/*.card a:hover, .card a:focus {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}*/

.card.med h4 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #555;
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card .thumbnail {
  flex: 0 0 100px;
  overflow: hidden;
  position: relative;
  margin: 1rem;
  align-self: stretch;
}

.card .thumbnail img {
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  top: 50%;
  position: absolute;
}

.card .arrow {
  right: 0.5rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.18);
}

.card.select .arrow {
  position: absolute;
  top: 50%;
  transform: translate(0,-50%);
}

.card.med .arrow {
  padding: 0 0.6rem;
  font-size: 2.1rem;
  transition: 0.1s;
}

.card.small .arrow {
  transition: 0.05s;
  padding: 0;
  font-size: 1.4rem;
}

/*Knockout contents*/

.card.ko .tag {
  border-color: #aaa;
}

.card.ko a {
  color: #777;
}

.card .location.icon {
  /*color: #4A6173;*/
  /*font-size: 1.2rem;*/
}

.card .icon.learners {
  color: #bbb;
  font-size: 2rem;
}

.card.med:hover .arrow {
  transform: translate(0.3rem,-50%);
}

.card.ko, .card.ko h4 {
  color: #999;
}

.card.ko .icon {
  color: rgba(0,0,0,0.2);
}

.card.ko .btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
}

.card.ko .btn:hover {
  border-color: #888;
}

.card.ko .tag:hover {
  background: rgba(0,0,0,0.1);
  border: none;
}