.ag-video-testimonials {
  background: #f3f8fc;
  border-block: 1px solid #ccd9e4;
}

.ag-video-testimonials .ag-video-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.ag-video-testimonials .ag-video-heading h2,
.ag-video-testimonials .ag-video-heading p {
  margin: 0;
}

.ag-video-testimonials .ag-video-heading h2 {
  max-width: 12ch;
}

.ag-video-testimonials .ag-video-heading p {
  max-width: 690px;
  color: #516273;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}

.ag-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #bfcfdd;
  border-left: 1px solid #bfcfdd;
}

.ag-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: #fff;
  border-right: 1px solid #bfcfdd;
  border-bottom: 1px solid #bfcfdd;
}

.ag-video-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  background: #081b3a;
}

.ag-video-frame video {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  background: #081b3a;
  object-fit: cover !important;
}

.ag-video-frame.is-portrait video {
  object-fit: contain !important;
}

.ag-video-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 42px);
}

.ag-video-copy .eyebrow {
  margin-bottom: 14px;
}

.ag-video-copy h3 {
  margin: 0 0 14px;
  color: #081b3a;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.12;
}

.ag-video-copy p {
  max-width: 56ch;
  margin: 0;
  color: #516273;
  font-size: 17px;
  line-height: 1.65;
}

.ag-video-proof {
  margin-top: auto;
  padding: 22px 0 0 16px;
  border-left: 4px solid #20c7c1;
  color: #081b3a;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.ag-video-disclaimer {
  max-width: 980px;
  margin: 28px 0 0;
  color: #627284;
  font-size: 14px;
  line-height: 1.65;
}

.ag-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  align-items: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #081b3a;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(8, 27, 58, .34), 0 0 0 9px rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ag-video-play[hidden] {
  display: none;
}

.ag-video-play:hover,
.ag-video-play:focus-visible {
  background: #20c7c1;
  color: #081b3a;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 20px 46px rgba(8, 27, 58, .4), 0 0 0 10px rgba(32, 199, 193, .2);
}

.ag-video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ag-video-play-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
}

.ag-video-play > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ag-video-play.is-loading {
  cursor: wait;
}

.ag-video-play.is-loading .ag-video-play-icon {
  width: 22px;
  height: 22px;
  margin-left: 0;
  border: 2px solid rgba(8, 27, 58, .25);
  border-top-color: #081b3a;
  border-radius: 50%;
  animation: ag-video-spin .8s linear infinite;
}

@keyframes ag-video-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-video-play.is-loading .ag-video-play-icon {
    animation: none;
  }
}

@media (max-width: 767px) {
  .ag-video-testimonials .ag-video-heading,
  .ag-video-grid {
    grid-template-columns: 1fr;
  }

  .ag-video-testimonials .ag-video-heading {
    gap: 18px;
  }

  .ag-video-testimonials .ag-video-heading h2 {
    max-width: none;
  }

  .ag-video-frame,
  .ag-video-frame.is-portrait {
    aspect-ratio: 16 / 9 !important;
  }

  .ag-video-copy {
    padding: 24px 20px 28px;
  }

  .ag-video-play {
    width: 64px;
    height: 64px;
  }

  .ag-video-play-icon {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 14px;
  }
}

@media (max-width: 360px) {
  .ag-video-copy h3 {
    font-size: 23px;
  }

  .ag-video-copy p,
  .ag-video-proof {
    font-size: 16px;
  }
}
