.cards-holder.margin-bottom {
  margin-bottom: 3em;
}

.cards-holder .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.cards-holder.overlap .container {
  justify-content: center;
}

.single-card {
  color: white;
  width: 550px;
  padding: 1rem 1.5rem 2.2rem 2rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.single-card.center {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.single-card.long {
  width: 600px;
  color: inherit;
  border-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding-left: 3em;
  padding-right: 4em;
}

.single-card.blue-background {
  background-color: #009591;
}

.single-card.dark-green-background {
  background-color: #229252;
}

.single-card.light-green-background {
  background: transparent linear-gradient(90deg, #d2e7db 0%, #f0f6eb 100%) 0% 0%
    no-repeat padding-box;
}

.single-card.shadow {
  position: relative;
  box-shadow: 13px 0 16px -5px #888;
  z-index: 1;
}

.single-card .background-image {
  position: absolute;
  box-sizing: border-box;
  padding-bottom: inherit;
  height: 100%;
  top: 0px;
  right: 0px;
  padding: inherit;
  margin-right: 20px;
  opacity:0.3;
}

.single-card .background-image img {
  width: auto;
  height: 100%;
}

.single-card .cta-holder {
  display: flex;
  width: 70%;
  flex-direction: column;
}

.single-card .cta-holder.long {
  width: 80%;
}

.single-card.input-first .cta-holder {
  flex-direction: column-reverse;
}

.single-card.input-first .button {
  margin-top: 2rem;
}

.single-card.button-first .button,
.single-card .header {
  margin-bottom: 2rem;
}

.single-card .contact-info-holder a {
  display: block;
  color: inherit;
}

.single-card .contact-info-holder a i,
.single-card .contact-info-holder p i {
  margin-right: 20px;
}

.single-card .contact-info {
  margin-bottom: 0.4rem;
}

.single-card * {
  z-index: 2;
}

.image-card {
  width: 360px;
  background: #f0f6eb 0% 0% no-repeat padding-box;
  box-shadow: 0px 4px 0px #0d482580;
  border-radius: 4px;
  margin-bottom: 42px;
  height: 590px;
  display: flex;
  flex-direction: column;
}

.image-card img {
  position: relative;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  width: 100%;
}

.image-card .content {
  height: 100%;
  padding: 20px 20px 40px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.image-card .content h2 {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: bold;
}

.image-card .content p {
  font-size: 16px;
  margin-bottom: 16px;
}

.image-card .content .button,
.single-card a,
.single-card.center a {
  width: 226px;
  height: auto;
}

.single-card .cta-holder a,
.contact-info.large {
  width: auto;
}

.card-tab {
  width: 210px;
  height: 210px;
  text-align: center;
  padding: 25px 18px 15px 18px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card-tab:hover {
  box-shadow: 0 0 11px rgba(33,33,33,.4); 
  transform: scale(1.05, 1.05);
}

.card-tab .content,
.single-card .content,
.image-card .content,
.single-card.center .content {
  width: 100%;
}

.card-tab h2 {
  font-size: 22px;
  color: white;
}

.card-tab p {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff 0% 0% no-repeat padding-box;
  box-shadow: 0px 2px 0px #0d4825;
}

.card-tab p i {
  color: #009591;
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 18px;
  transform: translate(-50%, -50%);
}

.single-card .header.no-postcode {
 position: relative;
 top: 50%;
 transform: translateY(-50%);
 text-align: center;
}

.single-card .header.no-postcode i {
  font-size: 3em;
  margin: 0 auto;
}

.cards-holder.overlap .single-card:first-of-type {
  width: 48%;
}

.cards-holder.overlap .single-card:last-of-type {
  width: 52%;
}

.error-card {
  background-color: white;
  width: 100%;
  border: 2px solid #de9c5a;
  border-radius: 6px;
  box-shadow: 0 13px 16px -5px #777575;
  padding: 1rem 1.5rem 1.2rem 2rem;
  transition: 0.5s ease-in-out background-color;
}

.error-card p {
  font-weight: bold;
  color: #543c6a;
  transition: 0.5s ease-in-out color;
}

.error-card:hover {
  background-color: #de9c5a;
}

.error-card:hover p {
  color: white;
}

@media (max-width: 1199px) {
  .single-card {
    width: 450px;
  }

  .card-tab {
    width: 180px;
    height: 180px;
  }
  .card-tab h2 {
    font-size: 19px;
  }

  .image-card {
    width: 310px;
  }
}

@media (max-width: 991px) {
  .cards-holder .container {
    display: inherit;
  }
  .single-card,
  .single-card.long,
  .cards-holder.overlap .single-card:first-of-type,
  .cards-holder.overlap .single-card:last-of-type {
    width: 100%;
    margin: 0 auto;
  }

  .cards-holder.overlap .single-card,
  .cards-holder.overlap .single-card:first-of-type {
    margin-bottom: 0;
  }

  .cards-holder.overlap .single-card:first-of-type {
    box-shadow: 0 13px 16px -5px #777575;
  }

  .single-card.long {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 1rem 1.5rem 2.2rem 2rem;
  }

  .single-card:first-of-type {
    margin-bottom: 2rem;
  }

  .single-card .header.no-postcode {
    position: relative;
    top: 0;
    transform: translateY(0);
    margin-bottom: 0;
   }

  .container.flex-full {
    display: flex;
    flex-wrap: wrap;
  }

  .card-tab {
    width: 170px;
    height: 180px;
    margin-bottom: 20px;
  }

  .image-card {
    width: 350px;
  }

  .error-card {
    display: inline-block;
  }
}

@media (max-width: 767px) {
  .single-card .background-image.desktop {
    display: none;
  }

  .image-card.first {
    margin-left: 10%;
  }

  /* Remove all the properties for the carousel itegration with slick */

  .slick-slider .slick-track, 
  .slick-slider .slick-list,
  .slick-initialized .slick-slide {
    display: flex !important;
  }
  
  .image-card {
    margin: 0 auto !important;
    margin-right: 20px !important;
    margin-left: 20px !important;
  }

  .image-card.placeholder {
    display: none !important;
  }

  .slick-dots {
    position: relative !important;
    bottom: -6px !important;
    background-color: white;
  }

  .slick-dots li button:before {
    font-size: 18px !important;
    color: #7b7b7b !important;
    background-color: #7b7b7b;
    border: 1px solid #7b7b7b;
    border-radius: 50%;
  }

  .slick-dots .slick-active button:before {
    color: #868686 !important;
  }
}

@media (max-width: 650px) {
  .single-card,
  .single-card.long {
    width: 100%;
  }

  .single-card.input-first .button {
    margin-top: 1rem;
  }

  .single-card.button-first .button,
  .single-card .header {
    margin-bottom: 1rem;
  }
}

@media (max-width: 550px) {
  .container.flex-full:not([class*="carousel"]) {
    flex-direction: column;
    padding: 0;
  }

  .single-card.center {
    margin-top: 22px;
  }

  .card-tab {
    border-radius: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 11px 0 11px 0;
    margin-bottom: 0;
    position: relative;
  }

  .card-tab .content {
    position: relative;
    justify-self: center;
  }

  .card-tab p {
    position: absolute;
    width: 24px;
    height: 24px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 20px;
  }
}

@media (max-width: 445px) {
  .cards-holder .container:not([class^="container always-padding"]) {
    padding: 0;
    margin: 0;
  }

  .cards-holder .single-card,
  .single-card:first-of-type:not([class^="center"]) {
    border-radius: 0;
    margin-bottom: 0;
  }

  .single-card.long .header {
    text-align: center;
    width: 90%;
  }

  .single-card .header p {
    display: none;
  }

  .single-card .cta-holder,
  .single-card .cta-holder.long {
    width: 100%;
  }

  .error-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 390px) {
  .card-tab h2 {
    font-size: 16px;
  }
}

@media (max-width: 339px) {
  .card-tab .content {
    justify-content: flex-start;
    text-align: left;
    padding-left: 21px;
    padding-right: inherit;
  }
}
