/*
 * Video reviews — production styles. Literal values only (this section's
 * own needs), not the full design-token contract. Layout from the signed
 * Figma Play (Prototyping Board). Card radius 16px, lede 18/30, and the
 * 3-stop video gradient are Figma values for this section, not global
 * tokens. Source: booth-repo 04-docs/wordpress/
 * home-page-figma-build-and-migration/specimens/video-reviews.{html,css,js}
 */

/* Elementor's outer section wrapper (data-id d178b31, one level above the
 * ec2c8f9 container this section swaps) still carries its own leftover
 * background gradient (140deg white->#006bce) from before this section
 * was hardcoded. Its 100px top padding let that gradient show through as
 * a visible band above the correct #booth-video gradient. Not part of
 * the Figma design (node 34:881, which matches #booth-video's own
 * gradient exactly) -- neutralised via CSS rather than editing stored
 * Elementor data. Found/fixed 2026-09-15. */
.elementor-2086 .elementor-element.elementor-element-d178b31,
.elementor-element-d178b31 {
  --content-width: 100% !important;
  --padding-left: 0px !important;
  --padding-right: 0px !important;
  background: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.elementor-2086 .elementor-element.elementor-element-d178b31 > .e-con-inner,
.elementor-element-d178b31.e-con-boxed > .e-con-inner,
.elementor-element-d178b31 > .e-con-inner {
  --content-width: 100% !important;
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
#booth-video.booth-video {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#booth-video.booth-video { box-sizing: border-box; }
#booth-video.booth-video *,
#booth-video.booth-video *::before,
#booth-video.booth-video *::after { box-sizing: border-box; }

#booth-video.booth-video {
  /* Explicit width: 100% is required here. Elementor's container wraps
   * this section with align-items: center (not the flex default
   * stretch), so without it #booth-video sizes itself to its own
   * content (the unwrapped 5-card carousel row, ~1485px even at mobile
   * scale) and just centres that oversized box -- everything past the
   * viewport edge gets clipped off-screen instead of the carousel
   * scaling down. Confirmed live 2026-09-15 via device emulation. */
  width: 100%;
  background: linear-gradient(180deg, #f4f8fc 0%, #7eb3e8 55%, #4f90d8 100%);
  padding: 64px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  color: #222222; /* --color-ink */
}

#booth-video .booth-video__intro {
  width: min(920px, 100%);
  padding: 0 24px;
  text-align: center;
}

#booth-video .booth-section__title--ink {
  margin: 0 0 16px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -1px;
  color: #222222; /* --color-ink */
}

#booth-video .booth-lede--ink {
  margin: 0;
  font-size: 18px; /* Figma lede on booth-video, not in the type scale */
  line-height: 30px;
  color: #222222; /* --color-ink */
}

#booth-video .booth-video__carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* --gap */
  width: 100%;
  height: 360px;
  overflow: hidden;
}

#booth-video .booth-video__card {
  position: relative;
  flex: 0 0 550px;
  width: 550px;
  height: 310px;
  border-radius: 16px; /* Figma video card, not --radius-card */
  overflow: hidden;
  background: #222222; /* --color-ink */
  opacity: 0.5;
}

#booth-video .booth-video__card.is-featured {
  flex-basis: 640px;
  width: 640px;
  height: 360px;
  opacity: 1;
}

#booth-video .booth-video__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#booth-video .booth-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border: none;
  padding: 0; /* explicit reset — hello-elementor kit's global button padding otherwise leaks in */
  border-radius: 12px;
  background: #ff0000; /* Figma video/play-icon */
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#booth-video .booth-video__card.is-playing .booth-video__play,
#booth-video .booth-video__card.is-playing .booth-video__poster {
  display: none;
}

#booth-video .booth-video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#booth-video .booth-video__controls {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1196px, calc(100% - 40px));
  max-width: 1196px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  min-height: 40px;
}

#booth-video .booth-video__progress {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

#booth-video .booth-video__progress-fill {
  height: 100%;
  width: 20%;
  background: #006bce;
  transition: width 0.25s ease;
}

#booth-video .booth-video__arrows {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

#booth-video .booth-video__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  padding: 8px;
  background: #006bce;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

#booth-video .booth-video__arrow:hover,
#booth-video .booth-video__arrow:focus-visible {
  background: #0051b5;
  outline: none;
}

#booth-video button.booth-video__arrow {
  box-shadow: none !important;
  min-height: 0 !important;
  width: 40px !important;
  height: 40px !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #006bce !important;
  color: #ffffff !important;
}

#booth-video .booth-video__arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  #booth-video .booth-video__arrow,
  #booth-video button.booth-video__arrow {
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
  }
  #booth-video .booth-video__arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 1024px) {
  #booth-video.booth-video { padding: 64px 0 48px; }
}

@media (max-width: 767px) {
  #booth-video.booth-video {
    --video-scale: calc(100vw / 767);
    padding: 48px 0 40px;
    gap: 24px;
  }
  #booth-video .booth-video__carousel {
    height: calc(360 * var(--video-scale));
    gap: calc(20 * var(--video-scale));
  }
  #booth-video .booth-video__card {
    flex-basis: calc(550 * var(--video-scale));
    width: calc(550 * var(--video-scale));
    height: calc(310 * var(--video-scale));
  }
  #booth-video .booth-video__card.is-featured {
    flex-basis: calc(640 * var(--video-scale));
    width: calc(640 * var(--video-scale));
    height: calc(360 * var(--video-scale));
  }
}
