/*==============================================================
   TESTIMONIALS  (section#values)
   Blue & white, no photos. Center slide is highlighted.
   Hovering any card "selects" it (lifts + turns blue).
   Content is edited in the TESTIMONIALS array at the
   bottom of index.html.
===============================================================*/

.testi_sec {
  --testi-blue: #005085;
  --testi-blue-2: #0271bc;
  --testi-blue-soft: #ebf3ff;
  --testi-ink: #3b4256;
  --testi-muted: #8b93a7;
  padding: 70px 0 90px;
  background-color: #f6f6f6;
  overflow: hidden;
}

/*----------------  heading  ----------------*/
.testi_sec .testi_head {
  text-align: center;
  margin-bottom: 15px;
}

.testi_sec .testi_eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--testi-muted);
  margin-bottom: 12px;
}

.testi_sec h2 {
  color: var(--testi-blue);
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  text-align: center;
}

.testi_sec h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background-image: linear-gradient(90deg, var(--testi-blue), var(--testi-blue-2));
}

/*----------------  carousel frame  ----------------*/
/* vertical breathing room so the scaled-up card is not clipped */
.testi_sec .testi_carousel .owl-stage {
  padding: 40px 0 45px;
  display: flex;
  align-items: stretch;
}

/* owl sets the item width inline - never let flex resize it */
.testi_sec .testi_carousel .owl-item {
  display: flex;
  flex: 0 0 auto;
  float: none;
}

/*----------------  card  ----------------*/
.testi_sec .testi_item {
  width: 100%;
  display: flex;
}

.testi_sec .testi_card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 10px;
  padding: 46px 30px 32px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(27, 46, 139, 0.07);
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease,
    border-color .35s ease;
  will-change: transform;
}

.testi_sec .testi_quote {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 90px;
  line-height: 1;
  color: var(--testi-blue);
  opacity: .12;
  transition: color .35s ease, opacity .35s ease;
  pointer-events: none;
  user-select: none;
}

.testi_sec .testi_text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--testi-ink);
  margin: 0 0 22px;
  flex: 1 1 auto;
  transition: color .35s ease;
}

.testi_sec .testi_by {
  padding-top: 18px;
  border-top: 1px solid #e6ebf5;
  transition: border-color .35s ease;
}

.testi_sec .testi_name {
  font-size: 17px;
  font-weight: 700;
  color: var(--testi-blue);
  margin: 0 0 4px;
  transition: color .35s ease;
}

.testi_sec .testi_role {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--testi-muted);
  transition: color .35s ease;
}

/*----------------  highlighted state (center slide + hover)  ----------------*/
.testi_sec .owl-item.center .testi_card,
.testi_sec .testi_card:hover {
  background-image: linear-gradient(140deg, var(--testi-blue) 0%, var(--testi-blue-2) 100%);
  background-color: var(--testi-blue);
  border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(27, 46, 139, 0.28);
  z-index: 3;
}

.testi_sec .owl-item.center .testi_quote,
.testi_sec .testi_card:hover .testi_quote {
  color: #fff;
  opacity: .35;
}

.testi_sec .owl-item.center .testi_text,
.testi_sec .owl-item.center .testi_name,
.testi_sec .testi_card:hover .testi_text,
.testi_sec .testi_card:hover .testi_name {
  color: #fff;
}

.testi_sec .owl-item.center .testi_role,
.testi_sec .testi_card:hover .testi_role {
  color: rgba(255, 255, 255, .75);
}

.testi_sec .owl-item.center .testi_by,
.testi_sec .testi_card:hover .testi_by {
  border-top-color: rgba(255, 255, 255, .25);
}

/* a hovered card takes the highlight away from the centre one */
.testi_sec .testi_carousel:hover .owl-item.center .testi_card:not(:hover) {
  background-image: none;
  background-color: #fff;
  border-color: #e6ebf5;
  transform: scale(1);
  box-shadow: 0 6px 24px rgba(27, 46, 139, 0.07);
  z-index: 1;
}

.testi_sec .testi_carousel:hover .owl-item.center .testi_card:not(:hover) .testi_quote {
  color: var(--testi-blue);
  opacity: .12;
}

.testi_sec .testi_carousel:hover .owl-item.center .testi_card:not(:hover) .testi_text {
  color: var(--testi-ink);
}

.testi_sec .testi_carousel:hover .owl-item.center .testi_card:not(:hover) .testi_name {
  color: var(--testi-blue);
}

.testi_sec .testi_carousel:hover .owl-item.center .testi_card:not(:hover) .testi_role {
  color: var(--testi-muted);
}

.testi_sec .testi_carousel:hover .owl-item.center .testi_card:not(:hover) .testi_by {
  border-top-color: #e6ebf5;
}

/*----------------  nav arrows (override site defaults)  ----------------*/
/* side gutters: the arrows sit in this empty space, never on top of a card.
   owl measures the content width, so the slides simply get narrower. */
.testi_sec .testi_carousel {
  padding: 0 70px;
}

.testi_sec .owl-nav {
  width: auto;
  height: auto;
  display: block;
  margin: 0;
  background-color: transparent;
  border-radius: 0;
  position: static;
  transform: none;
  padding: 0;
}

.testi_sec .owl-nav::before {
  display: none;
}

.testi_sec .owl-nav [class*="owl-"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background-color: #fff !important;
  background-image: none;
  border: 1px solid #dbe3f2;
  color: var(--testi-blue);
  font-size: 20px;
  line-height: 42px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(27, 46, 139, 0.12);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  z-index: 5;
}

.testi_sec .owl-nav .owl-prev {
  left: 6px;
}

.testi_sec .owl-nav .owl-next {
  right: 6px;
}

.testi_sec .owl-nav [class*="owl-"]:hover {
  background-color: var(--testi-blue) !important;
  border-color: var(--testi-blue);
  color: #fff;
}

.testi_sec .owl-nav .disabled {
  opacity: .45;
}

/*----------------  dots  ----------------*/
.testi_sec .owl-dots {
  display: block;
  position: static;
  text-align: center;
  margin-top: 8px;
}

.testi_sec .owl-dots .owl-dot {
  display: inline-block;
}

.testi_sec .owl-dots .owl-dot span {
  width: 9px;
  height: 9px;
  margin: 0 5px;
  background-color: #c3cde4;
  border: 0;
  border-radius: 50%;
  display: block;
  transition: width .25s ease, background-color .25s ease;
}

.testi_sec .owl-dots .owl-dot.active span,
.testi_sec .owl-dots .owl-dot:hover span {
  width: 26px;
  border: 0;
  border-radius: 6px;
  background-color: var(--testi-blue);
}

/*----------------  responsive  ----------------*/
@media (max-width: 991px) {
  .testi_sec {
    padding: 50px 0 70px;
  }

  .testi_sec h2 {
    font-size: 30px;
  }

  .testi_sec .testi_carousel {
    padding: 0 54px;
  }

  .testi_sec .owl-nav .owl-prev {
    left: 2px;
  }

  .testi_sec .owl-nav .owl-next {
    right: 2px;
  }
}

@media (max-width: 767px) {
  .testi_sec .testi_card {
    padding: 42px 22px 26px;
  }

  /* no room for side gutters on a phone - the arrows move below the slider,
     on either side of the dots, so the cards stay full width */
  .testi_sec .testi_carousel {
    padding: 0;
  }

  .testi_sec .owl-nav {
    text-align: center;
    margin-top: 6px;
  }

  .testi_sec .owl-nav [class*="owl-"] {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    display: inline-block;
    vertical-align: middle;
    width: 36px;
    height: 36px;
    line-height: 34px;
    font-size: 17px;
  }

  .testi_sec .owl-nav .owl-prev,
  .testi_sec .owl-nav .owl-next {
    left: auto;
    right: auto;
    margin: 0 8px;
  }

  .testi_sec .owl-dots {
    margin-top: 14px;
  }
}