.video-testimonial {
  --video-testimonial-notch-bg: #000000;
  position: relative;
  width: 100%;
  background-color: var(--color-bg-dark, #000000);
  padding: 60px 24px;
  overflow: hidden;
}

.video-testimonial--about {
  --video-testimonial-notch-bg: #091E23;
  padding: 120px 0 !important;
  background: linear-gradient(180deg, #000 -12.49%, #081B20 41.83%, #091F25 123.82%, #103640 204.51%, #13414E 268.97%, #174E5C 315.12%, #1E6679 341.31%, #217186 370.75%, #247C93 402.61%), #000;
}

.video-testimonial--about .video-testimonial_notch {
  background-color: #091E23;
  box-shadow: 0 0 0 1px #091E23;
}

.video-testimonial--about .video-testimonial_notch::before,
.video-testimonial--about .video-testimonial_notch::after {
  background: radial-gradient(circle at top left, transparent 23.5px, #091E23 24px);
}

@media (max-width: 991px) {
  .video-testimonial--about {
    padding: 80px 20px !important;
  }
}

@media (max-width: 767px) {
  .video-testimonial--about {
    padding: 60px 24px !important;
  }
}

@media (min-width: 992px) {
  .video-testimonial {
    padding: 60px;
  }
}

@media (min-width: 1400px) {
  .video-testimonial {
    padding: 60px;
  }
}

.video-testimonial_container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.video-testimonial_stage {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-testimonial_nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hidden by default on desktop, displays only when hovering the video card/stage */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-testimonial_nav-btn img {
  display: block;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

/* Display nav buttons only when hovering stage */
.video-testimonial_stage:hover .video-testimonial_nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.video-testimonial_nav-btn:hover {
  transform: translateY(-50%) scale(1.08);
}

.video-testimonial_nav-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--color-primary, #0088cc);
  outline-offset: 3px;
  border-radius: 50%;
}

.video-testimonial_nav-btn--prev {
  left: -22px;
}

.video-testimonial_nav-btn--next {
  right: -22px;
}

.video-testimonial_card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 742px;
  border-radius: 32px 32px 0 32px;
  overflow: hidden;
  background-color: #000000;
  isolation: isolate;
  will-change: transform;
}

@media (max-width: 1024px) {
  .video-testimonial_card {
    aspect-ratio: auto;
    height: 520px;
  }
}

.video-testimonial_media-track {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}

.video-testimonial_video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.03);
  will-change: opacity, transform;
}

.video-testimonial_video.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Thumbnail Image Layer (Visible first, then fades out smoothly when video auto-plays) */
.video-testimonial_thumb-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.video-testimonial_thumb-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-testimonial_thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle Vignette Scrim */
.video-testimonial_media-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.45) 100%);
}

/* Playback Control (Top-Right Glass Button) */
.video-testimonial_playback-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    border-color 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* When paused, the play button is always visible so the user can play */
.video-testimonial_playback-btn.is-paused {
  opacity: 1 !important;
  pointer-events: auto !important;
  border-color: rgba(255, 255, 255, 0.6);
}

.video-testimonial_card:hover .video-testimonial_playback-btn {
  opacity: 1;
  pointer-events: auto;
}

.video-testimonial_playback-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.75);
}

.video-testimonial_playback-btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (min-width: 992px) {
  .video-testimonial_playback-btn {
    top: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
  }
}

.video-testimonial_quote-card {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 10;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.35));
}

.video-testimonial_quote-box {
  background-color: #FFCA58;
  padding: 22px 26px 18px;
  border-radius: 20px 20px 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.video-testimonial_quote {
  margin: 0;
  padding: 0;
}

.video-testimonial_text {
  margin: 0;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: -0.015em;
  color: #111111;
}

/* Author Badge Connected Below Quote Box (Desktop) */
.video-testimonial_author-box {
  position: relative;
  background-color: #FFCA58;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 14px 18px;
  border-radius: 0 0 20px 20px;
  box-sizing: border-box;
}

/* Inverted Concave Corner Fillet at author-box top-right (Desktop) */
.video-testimonial_author-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at bottom right, transparent 20px, #FFCA58 20.5px);
  pointer-events: none;
}

.video-testimonial_avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #d89f28;
}

.video-testimonial_avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-testimonial_author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-testimonial_author-name {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.video-testimonial_author-role {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.25;
}

/* Bottom-Right Cutout Notch & CTA Pill Button (Desktop) */
.video-testimonial_notch {
  position: absolute;
  bottom: -1px;
  right: -1px;
  z-index: 10;
  width: max-content;
  height: 60px;
  background-color: var(--video-testimonial-notch-bg, #000000);
  border-top-left-radius: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 16px;
  padding-left: 12px;
  padding-bottom: 1px;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px var(--video-testimonial-notch-bg, #000000);
}

/* Inverted fillets for seamless transition into video card with NO corner line artifacts */
.video-testimonial_notch::before {
  content: '';
  position: absolute;
  top: -24px;
  right: 0;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at top left, transparent 23.5px, var(--video-testimonial-notch-bg, #000000) 24px);
  pointer-events: none;
}

.video-testimonial_notch::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -24px;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at top left, transparent 23.5px, var(--video-testimonial-notch-bg, #000000) 24px);
  pointer-events: none;
}

.video-testimonial_cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 48px;
  padding: 6px 6px 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.video-testimonial_cta-pill:focus-visible {
  outline: 2px solid var(--color-primary, #0088cc);
  outline-offset: 2px;
}

.video-testimonial_cta-label {
  display: inline-flex;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.video-testimonial_cta-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #007AFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-testimonial_cta-icon svg {
  display: block;
  transition: transform 0.38s ease-in-out;
  will-change: transform;
}

/* Mobile-only footer hidden on desktop */
.video-testimonial_mobile-footer {
  display: none;
}

@media (max-width: 768px) {
  .video-testimonial {
    padding: 0 20px 60px;
  }

  .video-testimonial_stage {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  /* Hide flanking arrow buttons on mobile */
  .video-testimonial_nav-btn {
    display: none !important;
  }

  .video-testimonial_card {
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  }

  /* Hide desktop notch on mobile */
  .video-testimonial_notch {
    display: none !important;
  }

  /* Playback button in top right (visible and accessible on mobile) */
  .video-testimonial_playback-btn {
    opacity: 1;
    pointer-events: auto;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  /* Quote card on mobile: clean rounded card sitting at bottom */
  .video-testimonial_quote-card {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    width: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
  }

  .video-testimonial_quote-box {
    border-radius: 20px;
    padding: 20px 20px 18px;
  }

  .video-testimonial_text {
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  .video-testimonial_author-box {
    padding: 0;
    background: transparent;
    gap: 12px;
  }

  .video-testimonial_author-box::after {
    display: none;
  }

  .video-testimonial_avatar-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .video-testimonial_author-name {
    font-size: 0.875rem;
  }

  .video-testimonial_author-role {
    font-size: 0.75rem;
  }

  /* Mobile Footer: Dots & Full-Width Pill Button */
  .video-testimonial_mobile-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 18px;
  }

  .video-testimonial_dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
  }

  .video-testimonial_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.28);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
  }

  .video-testimonial_dot.is-active {
    background-color: #ffffff;
    transform: scale(1.2);
  }

  /* Centered Pill Button below dots (compact, auto-width) */
  .video-testimonial_cta-pill--mobile {
    width: auto;
    max-width: fit-content;
    height: 52px;
    padding: 5px 6px 5px 22px;
    gap: 16px;
    box-sizing: border-box;
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
  }

  .video-testimonial_cta-pill--mobile .video-testimonial_cta-label {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  .video-testimonial_cta-pill--mobile .video-testimonial_cta-icon {
    width: 40px;
    height: 40px;
  }
}