.oembed_container {
  display: inline-block;
  height: 100%;
  position: relative;
  width: 100%;
}

.iframe_wrapper {
  height: 0;
  padding-bottom: 56.25%;
  padding-top: 25px;
  position: relative;
}

.oembed_container_iframe {
  height: 100%;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.oembed_custom-thumbnail,
.oembed_custom-thumbnail:hover,
.oembed_custom-thumbnail:focus,
.oembed_custom-thumbnail:active {
  align-items: center;
  appearance: none;
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0;
  border: none;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.oembed_custom-thumbnail_icon {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  width: 100%;
}

.oembed_custom-thumbnail_icon svg {
  display: block;
  height: auto;
  width: 12%;
}

/* SVGs in IE11 require the max-width to be set to non in order to display scaling properly */
_:-ms-fullscreen, :root .oembed_custom-thumbnail_icon svg {
  max-width: none;
}

.oembed_custom-thumbnail--hide {
  display: none;
}

.embed_container {
  display: inline-block;
  height: 100%;
  position: relative;
  width: 100%;
}

.embed_container iframe {
  left: 0;
  max-height: 100%;
  max-width: 100%;
  position: absolute;
  right: 0;
  top: 0;
}

.oembed-info {
  height:1px;
  left:-10000px;
  overflow:hidden;
  position:absolute;
  top:auto;
  width:1px;
}

/* Placeholder styles */
:not(.hs-inline-edit) .hs-video-placeholder {
  display: none;
}

.hs-inline-edit .hs-video-placeholder {
  background-color: #f5f8fa !important;
  border: 1px dashed #516f90 !important;
  display: block !important;
  font-size: 14px !important;
  margin: 2px 1px !important;
  outline: 1px dashed #fff !important;
  text-align: center !important;
}

.hs-video-placeholder > * {
  box-sizing: border-box !important;
  display: block !important;
  margin: 1px !important;
  padding: 12px !important;
  width: calc(100% - 2px) !important;
}

p.hs-video-placeholder__title {
  color: #7c98b6 !important;
  font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif !important;
  font-size: 14px !important;
  font-style: italic !important;
  font-weight: 700 !important;
  line-height: initial !important;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  text-shadow: 0 -1px 0 hsla(0,0%,100%,.5) !important;
}

p.hs-video-placeholder__description {
  color: #7c98b6 !important;
  font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-shadow: 0 -1px 0 hsla(0,0%,100%,.5) !important;
}

/* CUSTOM CSS -START */
/* ==== Container ==== */
.video-section {
  position: relative;
/*   width: 100%; */
  /*aspect-ratio: 16 / 9;*/ /* maintains proportion */
  overflow: hidden;
/*   background: url('/path/to/video-preview.jpg') center center / cover no-repeat; */
/*   background: linear-gradient(107.88deg, #5A93ED 0.66%, #21D6AA 99.34%); */
}
.video-section .hs-video-container {
    background: linear-gradient(107.88deg, #5a93ed .66%, #21d6aa 99.34%);
    padding: 32px;
    border-radius: 20px;
}
.video-section .hs-video-wrapper iframe {
    border-radius: 20px;
}
.video-section .hs-video-wrapper:before {
    align-items: center;
    cursor: pointer;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    transition: opacity .4s ease;
    z-index: 2;
    content: 'Watch How Talentin Helps Businesses';
    width: 144px;
    height: 84px;
    top: 50%;
    left: 59%;
    transform: translate(-59%, -50%);
    color: #FFF;
    font-size: 20px;
    line-height: 28px;
}
.video-section .hs-video-wrapper:after {
    content: '';
    background: #1F2E39;
    width: 304px;
    height: 144px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    padding: 32px;
}
.video-section.playing .hs-video-wrapper::before,
.video-section.playing .hs-video-wrapper::after {
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* ==== Video iframe ==== */
.video-section iframe {
/*  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;*/
  pointer-events: none; /* disabled until play */
/*  opacity: 0;
  transition: opacity 0.6s ease;*/
}

/* ==== Overlay (button + text) ==== */
.video-section .video-overlay {
  position: absolute;
  top: 50%;
  left: 43%;
  transform: translate(-43%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.4s ease;
}
.video-section.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ==== CTA layout ==== */
.video-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

/* ==== Circle play icon ==== */
.play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* White triangle inside */
.play-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-left: 14px solid #5A93ED;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.play-icon svg {
  transition: fill 0.3s ease;
}
/* Hover animation */
.video-overlay:hover .play-icon {
  background: #2f4156;
  transform: scale(1.1);
}
.video-overlay:hover .cta-text {
  color: #e2e8f0;
}

/* ==== When video starts ==== */
.video-section.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}
.video-section.playing iframe {
  opacity: 1;
  pointer-events: auto;
}
/* DEFAULT BUTTON HIDE - CSS
/* Hide HubSpot default play button permanently */
.hs-video-container iframe {
  opacity: 1;
}

.hs-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

/* When HubSpot injects its play button into iframe container, hide it visually */
.hs-video-container .vjs-big-play-button,
.hs-video-container [class*="play-button"],
.hs-video-container [class*="vjs-big-play-button"]/*,
.hs-video-container [data-hsv-play-button-color]*/ {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
/* Overlay hidden after play */
/*
.video-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
*/
/* Overlay reappears on hover */
/*
.video-overlay.hovering {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
*/
@media (max-width: 991px) {
  .video-section .hs-video-container {
    padding: 8px;
  }
  .video-section .video-overlay {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-25%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.4s ease;
  }
  .play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .video-section .hs-video-wrapper:after {
    content: '';
    background: #1F2E39;
    width: 235px;
    height: 105px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    padding: 16px;
  }
  .video-section .hs-video-wrapper:before {
    align-items: center;
    cursor: pointer;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    transition: opacity .4s ease;
    z-index: 2;
    content: 'Watch How Talentin Helps Businesses';
    width: 122px;
    height: 84px;
    top: 50%;
    left: 68%;
    transform: translate(-68%, -50%);
    color: #FFF;
    font-size: 18px;
    line-height: 26px;
  }
}
@media (max-width: 991px) {
  .video-section .video-overlay {
    top: 50%;
    left: 28%;
    transform: translate(-28%, -50%);
  }
}