/*
Plugin Name: CE Testimonials
Description: Display testimonials in a slider or as text.
Version: 1.0
Author: Tim Sweeney
*/

.testimonial-slider .carousel-control {
  height: auto;
  width: 15%;
  -webkit-transition: .4s ease opacity;
  transition: .4s ease opacity;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 20px;
  background-color: rgba(0,0,0, .5);
}

.testimonial-slider__heading,
.testimonial-slider__text {
  width: 100%;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.testimonial-slider__heading {
  font-size: 2rem;
}

.testimonial-slider__text {
  font-size: 1.5rem;
}

.item--testimonial {
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.testimonial {
  background: linear-gradient(45deg, #008989, #00c6c6);
  border-radius: .5rem;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  color: #fff;
  text-align: center;
}

.testimonial__heading {
  font-size: 22px;
  margin: 1.25rem 0;
}

.testimonial__text {
  margin: 0 0 1.25rem;
}

.testimonial__date {
  font-weight: 700;
  font-size: 1.45rem;
  color: #7afcfc;
}

.testimonial__date__text {
  border-bottom: 2px dotted #fff;
  padding-bottom: 5px;
}

.testimonial__icon-wrapper {
  background-color: #fff;
  border-radius: 50%;
  width: 7rem;
  height: 7rem;
  display: block;
  text-align: center;
  margin: 0 auto;
}

.testimonial .testimonial__icon {
  font-size: 4rem;
  color: #008989;
  line-height: 6.75rem;
}

@media (min-width: 768px) {
  .testimonial-slider__heading {
    font-size: 2.4rem;
  }

  .testimonial-slider__text {
    font-size: 1.8rem;
  }

  .testimonial__body,
  .testimonial__icon-holder {
    display: inline-block;
    vertical-align: middle;
  }

  .testimonial__icon-holder {
    width: 10rem;
    margin-right: -6px;
  }

  .testimonial__icon-wrapper {
    margin: 0;
  }
  .testimonial__body {
    width: calc(100% - 10rem);
  }

  .testimonial {
    text-align: left;
  }
}
