/* DiraChart homepage trust strip and slider order — v3.1.4 */

body.dc-route-home,
body.path-frontpage {
  overflow-x: hidden;
}

/* Full-width trust strip replacing the former slider position. */

body.dc-route-home .dc-trust-strip,
body.path-frontpage .dc-trust-strip {
  position: relative;
  left: 50%;

  width: 100vw;
  margin: 0 0 64px -50vw;
  padding: 0;

  border-top: 1px solid #d8e4e8;
  border-bottom: 1px solid #d8e4e8;

  background:
    radial-gradient(
      circle at 4% 50%,
      rgba(91, 180, 171, .08),
      transparent 19%
    ),
    radial-gradient(
      circle at 96% 50%,
      rgba(31, 64, 101, .06),
      transparent 20%
    ),
    linear-gradient(
      180deg,
      #fbfdfd 0%,
      #f5f9fa 100%
    );

  box-shadow:
    0 12px 34px rgba(17, 39, 64, .06);
}

.dc-trust-strip__inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dc-trust-item {
  min-width: 0;
  padding: 6px 28px;

  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
}

.dc-trust-item + .dc-trust-item {
  border-left: 1px solid #c9d9dd;
}

.dc-trust-icon {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border: 1px solid #bee1db;
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #eff9f7,
      #e1f1ee
    );

  color: #1c625d;

  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, .35);
}

.dc-trust-icon svg {
  width: 34px;
  height: 34px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dc-trust-item h3 {
  margin: 0 0 6px;

  color: #10243d !important;
  -webkit-text-fill-color: #10243d !important;

  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.dc-trust-item p {
  margin: 0;

  color: #52687a !important;
  -webkit-text-fill-color: #52687a !important;

  font-family: var(--serif);
  font-size: .85rem;
  line-height: 1.48;
}

/* Slider now sits immediately before the closing CTA. */

body.dc-route-home .dc-moved-featured-slider,
body.path-frontpage .dc-moved-featured-slider {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;

  margin:
    clamp(72px, 8vw, 108px)
    auto
    clamp(42px, 5vw, 62px) !important;
}

/* Remove circular slider controls. */

.dc-moved-featured-slider .dc-slider-circle-hidden,
.dc-moved-featured-slider .swiper-button-prev,
.dc-moved-featured-slider .swiper-button-next,
.dc-moved-featured-slider .swiper-pagination,
.dc-moved-featured-slider .slick-arrow,
.dc-moved-featured-slider .slick-dots,
.dc-moved-featured-slider .splide__arrows,
.dc-moved-featured-slider .splide__pagination,
.dc-moved-featured-slider [class*="carousel-control"],
.dc-moved-featured-slider [class*="slider-control"] {
  display: none !important;
}

/* Tablet */

@media (max-width: 980px) {
  .dc-trust-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }

  .dc-trust-item:nth-child(4) {
    border-left: 1px solid #c9d9dd;
  }

  .dc-trust-item:nth-child(3) {
    border-left: 0;
  }
}

/* Mobile */

@media (max-width: 640px) {
  body.dc-route-home .dc-trust-strip,
  body.path-frontpage .dc-trust-strip {
    margin-bottom: 44px;
  }

  .dc-trust-strip__inner {
    width: calc(100% - 24px);
    padding: 22px 0;

    grid-template-columns: 1fr;
  }

  .dc-trust-item {
    padding: 18px 8px;
  }

  .dc-trust-item + .dc-trust-item,
  .dc-trust-item:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #d4e1e4;
  }

  .dc-trust-icon {
    width: 54px;
    height: 54px;
  }

  body.dc-route-home .dc-moved-featured-slider,
  body.path-frontpage .dc-moved-featured-slider {
    width: calc(100% - 24px) !important;
    margin: 54px auto 34px !important;
  }
}
