/* Webinar Video: Hero Block */

.webinarvideo-hero {
  background-color: #5b888c;
  padding: 3rem 0 0;
  overflow: hidden;
}

.webinarvideo-hero__container {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.webinarvideo-hero__badge {
  display: inline-flex;
  align-items: center;
  font-family: "Suisse Intl", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #C1EBEE;
  border: 1px solid rgba(193, 235, 238, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 1.5rem;
}

.webinarvideo-hero__eyebrow {
  display: block;
  font-family: "Source Code Pro", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A8D6DA;
  margin-bottom: 0.75rem;
}

.webinarvideo-hero__heading {
  font-family: "Suisse Intl", Arial, sans-serif;
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  max-width: 860px;
}

.webinarvideo-hero__subtext {
  font-family: "Suisse Intl", Arial, sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: #C1EBEE;
  max-width: 700px;
  margin: 16px auto 0;
  
}

.webinarvideo-hero__subtext p {
  margin: 0 0 1em;
}

.webinarvideo-hero__subtext p:last-child {
  margin-bottom: 0;
}

.webinarvideo-hero__cta {
  margin-top: 24px;
}

.webinarvideo-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background-color: #FF5900;
  color: #fff;
  font-family: "Suisse Intl", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.webinarvideo-hero__button:hover {
  background-color: #d94e1b;
}

/* Text rollover on hover, same effect used on buttons elsewhere on the site
   (see the global .btn styles): the label swaps out for a duplicate copy of
   itself (rendered via the data-content attribute) sliding up from below. */
.webinarvideo-hero__button span {
  display: inline-block;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
}

.webinarvideo-hero__button span div {
  backface-visibility: hidden;
  transition: transform 0.44s cubic-bezier(0.165, 0.84, 0.44, 1) 50ms;
}

.webinarvideo-hero__button span div::after {
  content: attr(data-content);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
}

.webinarvideo-hero__button:hover span div {
  transform: translateY(calc(-100% - 10px)) translateZ(0);
}

.webinarvideo-hero__video-wrap {
  width: 100%;
  max-width: 800px;
  margin: 32px auto 0;
}

.webinarvideo-hero__video {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background-color: #021F22;
  border: 1px solid rgba(159, 217, 220, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 0;
  cursor: pointer;
}

.webinarvideo-hero__video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webinarvideo-hero__play {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #FF5900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.webinarvideo-hero__video:hover .webinarvideo-hero__play {
  transform: scale(1.06);
  background-color: #d94e1b;
}

.webinarvideo-hero__video-caption {
  font-family: "Suisse Intl", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #C1EBEE;
  text-align: center;
  margin: 14px 0 0;
}

.webinarvideo-hero__wave {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: 56px;
  object-fit: cover;
  object-position: center 60%;
  margin: 8px auto 0;
}

/* md: 768px */
@media (min-width: 768px) {
  .webinarvideo-hero__wave {
    height: 72px;
  }
}

/* Fades the wave graphic's edges once it's no longer full-bleed against the
   viewport edge (matches the container's max-width breakpoint). */
@media (min-width: 1041px) {
  .webinarvideo-hero__wave {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
}

/* ---- shared video popup overlay (dist/block.js) ---- */
body.wvh-video-modal-open {
  overflow: hidden;
}

.wvh-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 45, 51, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.wvh-video-modal__frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.wvh-video-modal__frame iframe,
.wvh-video-modal__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wvh-video-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wvh-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
}
