.carousel {
  display: block;
  position: relative;
  height: 100%;
}

.carousel-inner, 
.slides-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  height: 100%;
  background-color: #0D283B;
  }

.slides-wrapper {
  /* height: auto; */
}


.screen-reader-text,
.skip-navigation {
  display: inline;
  text-indent: -99999px;
  position: absolute;
  height: 0;
}
.skip-navigation:focus {
  background: #a4a4a4;
  border: solid 0.2rem currentColor;
  color: #2b2b2b;
  display: block;
  font-size: 1.4rem;
  height: auto;
  position: fixed;
  padding: 0.6rem;
  text-indent: 0;
  top: 0;
  left: 0;
}
.mock-carousel {
  background: #0D283B;
  height: 430px;
}

.post-carousel {
  margin: 0 1rem;
  padding: 1rem 0;
  position: relative;
}
@media screen and (min-width: 1200px) {
  .post-carousel {
    margin: 0 auto;
    max-width: 1200px;
  }
}
.controls-parent {
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
}
.controls-wrapper {
  display: grid;
  grid-template-columns: minmax(4rem, 10%) 1fr minmax(4rem, 10%);
}
.controls-wrapper .controls {
  display: grid;
  grid-template-columns: minmax(6rem, 10%) 1fr;
}

.slide {
  color: #ffffff;
  /* display: none;
  opacity: 0; */
  font-size: 1.6rem;
  /* padding: 2rem 7rem; */
  width: 100%;
  height: 100%;
  animation: fadeout 1s ease-out 0s forwards;
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.slide.active {
  z-index: 5;
  animation: fadein 1s ease-in 0s forwards;
}

.slide.slide-background {
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

/* .slide.first-read-testimonial-1 {
  background-image: url('/Content/images/AIL_firstread_testimonial_opt1_100515.jpg');
}

.slide.first-read-testimonial-2 {
  background-image: url('/Content/images/AIL_firstread_testimonial_opt2_100515.jpg');
}

.slide.first-read-ebook {
  background-image: url('/Content/images/AIL_firstread_ebook.jpg');
} */


@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    display: flex;
  }
}

@keyframes fadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

.slide-control {
  position:  absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 44px;
  border: 1px solid #ffffff;
  background-color: #113853;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  outline: none;
}

.slide-control:hover {
    background-color: #246698;
}

.slide-left {
  left: 0;
}

.slide-right {
  right: 0;
}

.arrow {
  border-width: 3px 3px 0 0;
  border-color: #ffffff;
  border-style: solid;
  width: 14px;
  height: 14px;
}

.arrow-left {
  transform: rotate(225deg);
  margin-left: 5px;
}

.arrow-right {
  transform: rotate(45deg);
  margin-right: 5px;
}

.controls-wrapper .slide-left,
.controls-wrapper .slide-right {
    display: none;
}

.carousel-play-pause {
  display: none;
}

.carousel-indicators {
  list-style: none;
  display: flex;
  flex-direction: row;
  position: absolute;
  z-index: 10;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.carousel-indicators li {
  width: 16px !important;
  height: 16px !important;
  border-radius: 16px;
  border: 1px solid #ffffff;
  background-color: #113853;
  margin: 0 0.4rem;
  display: flex;
}

.carousel-indicators li.active {
  background-color: #ffffff;
  margin: 0 0.4rem !important;
}

.carousel-indicators li button{
  border-radius: 16px;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: inline;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}

.carousel-indicators li button:hover {
  background-color: #246698;
}

.slide-number {
    display: none;
}

.slide-indicator {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.slide .slide-title {
  font-size: 3.6rem;
  margin: 0;
  padding: 0 0 1rem;
}

.slide .slide-text {
  font-size: 1.4rem;
  font-weight: 300;
}

.slide .meta {
  font-size: 1.4rem;
  margin: 0.5rem 0 0;
}
.slide span + span {
  margin: 0 0 0 1rem;
}
.slide .slide-subtitle {
  padding: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 300;
  margin: 0;
}

.slide .cta-button-container {
    justify-content: flex-start !important;
    width: auto !important;
    text-align: left !important;
    font-size: 1.4rem;
    margin-top: 1rem;
}

.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  flex-basis: 100%;
  margin: 0;
}

.slide-content-paragraph {
  flex-direction: row;
}

.slide-content-paragraph .text {
flex: 2 1 100%;
}

.slide-content-paragraph .text-inner {
/* margin-bottom: 2rem; */
}

.slide-content-paragraph .text h1 {
margin-bottom: 1.4rem;
}

.slide-content-paragraph .text h2,
.slide-content-paragraph .text h3,
.slide-content-testimonial .text h2,
.slide-content-testimonial .text h3 {
color: #d2ebfd;
font-weight: 300;
margin-bottom: 1rem;
}

.slide-content-paragraph .text-inner ul {
list-style-type: disc;
padding: 0;
margin: 0 0 0 40px;
}

.slide-content-paragraph .text-inner ul li {
list-style: disc;
}

.slide-content-paragraph .image {
flex: 1 2 100%;
}

.slide-content-paragraph p {
  margin: 0.4rem 0 !important; 
}

.slide-content-list {
  width: auto;
  display: inline-block;
  flex-basis: auto;
}

.slide-content-wrapper>.slide-content-list {
  flex-basis: 65%;
  flex-grow: 0;
  flex-shrink: 2;
}

.slide-text-list {
  margin: 0 0 0 2rem;
}

.slide .slide-text-wrapper {
  display: flex;
  justify-content: flex-start; 
  width: 100%;
  flex-direction: column;
  margin-bottom: 1rem;
}

.slide .slide-text-wrapper-list {
  flex-direction: row;
  width: auto;
}

.slide-content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100%;
  padding: 2rem 7rem;
}

.slide-text-list li {
  list-style: disc;
}

.slide-content-img {
 width: 100%;
}

.slide .testimonial-text {
  display: flex;
  flex-direction: column;
  position: relative;
}

.slide .testimonial-text .text {
  font-style: italic;
  z-index: 2;
  position: relative;
}

.slide .testimonial-text .author {
  margin: 20px 0 0 0;
  font-style: normal;
  display: flex;
  align-items: center;
}

.slide .testimonial-text .author:before {
  content: '\2014';
  margin-right: 5px;
}

.slide .testimonial-text:before,
.slide .testimonial-text:after {
  content: '';
  width: 51px;
  height: 51px;
  position: absolute;
  z-index: 1;
  background-image: url('/Content/images/quotes.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.slide .testimonial-text:before {
  left: 0;
  top: -40px;
  transform: rotate(180deg);
}

.slide .testimonial-text:after {
  right: 0;
  bottom: 0;
}

/* Backgrounds */
.first-read-testimonial-1 {
background-image: url('/Content/images/first-read-testimonial-1.jpg');
}

.first-read-map {
background-image: url('/Content/images/first-read-map.jpg');
}

.reverse {
flex-direction: row-reverse;
}

@media screen and (max-width: 1024px) {
  .mock-carousel {
      height: 560px;
  }

  .slide-content-list + .slide-content-img {
      flex-basis: auto;
      width: auto;
  }
  
  .slide-content-wrapper>.slide-content-list {
      flex-basis: 100%;
      width: 100%;
  }

  .slide-content-paragraph .text,
  .slide-content-paragraph .image {
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 875px) {
.slide-content-paragraph .text h1,
.slide-content-testimonial .text h1 {
  font-size: 2.8rem;
}

.slide-content-paragraph .text h2,
.slide-content-testimonial .text h2 {
  font-size: 2.2rem;
}

.slide-content-paragraph .text h3,
.slide-content-testimonial .text h3 {
  font-size: 1.8rem;
}

.slide-content-testimonial .text h1 {

}

.slide-content-testimonial .text h2 {

}

.slide-content-testimonial .text h3 {
  line-height: 2.4rem;
}
}

@media screen and (max-width: 768px) {
.slide-content-paragraph .text h1 {
  font-size: 2.6rem;
}

.slide-content-paragraph .text h2 {
  font-size: 2rem;
}

.slide-content-paragraph .text h3 {
  font-size: 1.6rem;
}

.slide-content-paragraph .text h1,
.slide-content-paragraph .text h2,
.slide-content-paragraph .text h3,
.slide-content-paragraph .text p {
  text-align: center;
}

.slide-content-paragraph {
  flex-direction: column;
  align-items: center;
}

.slide-content-paragraph .text,
.slide-content-paragraph .image {
  flex: 0 0 100%;
}

.slide-content-paragraph .text {
  margin-bottom: 20px;
}

.slide-content-paragraph .text-inner ul {
  font-size: 1.3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.slide .cta-button-container {
  justify-content: center !important
}
}

@media screen and (max-width: 520px) {
.slider-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

  .mock-carousel {
      height: 520px;
  }

  .slide {
      /* padding: 2rem 5rem; */
  }

  .slide .slide-title {
      font-size: 2.4rem;
  }

  .slide .slide-subtitle {
      font-size: 1.6rem;
  }

  /* .slide .slide-text {
      font-size: 0.85rem;
  } */

  .slide-control {
      width: 36px;
      height: 36px;
  }

  .slide-left {
      margin-left: 6px;
  }

  .slide-right {
      margin-right: 6px;
  }

  .arrow-left {
      margin-left: 6px;
  }

  .arrow-right {
      margin-right: 6px;
  }

  .slide .testimonial-text:before {
      left: 30px;
      top: 0;
  }

  .slide .testimonial-text:after {
      right: 30px;
      bottom: 40px;
  }

  .slide-content {
      flex-direction: column;
  }

  .slide-content-img {
      margin: 15px 0 0 0;
  }

.slide .testimonial-text:before {
  left: -20px;
  top: -30px;
}

.slide .testimonial-text:after {
  right: -20px;
  bottom: 30px;
}
}