/* On-demand webinar & demo pieces: the watch page (resources/webinars/*), the
   video card on the Resources page, and the homepage promo strip. Scoped with
   the .wv- prefix so it never collides with the compiled theme. Palette matches
   optra-events.css: navy #15254a, teal #1a8a9a. The watch page also loads
   optra-events.css for the shared hero, content and card styles. */

.wv-page,
.wv-card,
.wv-promo {
  --wv-navy: #15254a;
  --wv-teal: #1a8a9a;
  --wv-teal-dark: #136f7c;
  --wv-teal-tint: #e8f4f6;
}

/* ── Thumbnail with play button (Resources card) ──────────────────────── */

.wv-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.12);
}

.wv-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wv-thumb:hover img {
  transform: scale(1.03);
}

.wv-thumb:focus-visible {
  outline: 3px solid rgba(26, 138, 154, 0.55);
  outline-offset: 3px;
}

/* Bottom-left chip rather than centred: the poster is a title card, and a
   centred button would sit on top of the title text */
.wv-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
}

.wv-play > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(19, 111, 124, 0.95);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.wv-thumb:hover .wv-play > span {
  transform: scale(1.08);
  background: var(--wv-navy);
}

.wv-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.wv-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Resources page card ──────────────────────────────────────────────── */

.wv-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.wv-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wv-teal-dark);
}

.wv-facts {
  font-size: 14px;
  color: #64748b;
}

@media (min-width: 768px) {
  .wv-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 32px;
  }
}

/* ── Homepage promo strip ─────────────────────────────────────────────── */

.wv-promo {
  border-bottom: 1px solid #cfe6ea;
  background: var(--wv-teal-tint);
}

.wv-promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  max-width: 80rem;
  margin: 0 auto;
  padding: 14px 24px;
}

.wv-promo-pill {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wv-teal-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wv-promo-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  color: var(--wv-navy);
}

.wv-promo-text strong {
  font-weight: 700;
}

.wv-promo-meta {
  color: #475569;
}

.wv-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--wv-teal-dark);
  text-decoration: none;
}

.wv-promo-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wv-promo-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(26, 138, 154, 0.45);
  outline-offset: 3px;
}

.wv-promo-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.wv-promo-link:hover svg {
  transform: translateX(3px);
}

/* ── Watch page ───────────────────────────────────────────────────────── */

/* Extra bottom padding lets the player overlap the hero */
.ev-hero.wv-hero {
  padding-bottom: 104px;
}

.wv-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.wv-crumb {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.wv-crumb a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wv-crumb a:hover {
  color: #bfe6ec;
}

/* flow-root stops the player's negative margin collapsing through the section */
.ev-main.wv-main {
  display: flow-root;
  padding-top: 0;
}

.wv-player {
  position: relative;
  z-index: 1;
  margin: -64px 0 48px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 24px 60px rgba(15, 23, 42, 0.28);
}

.wv-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.wv-player p {
  margin: 0;
  padding: 24px;
  color: #fff;
}

.wv-player p a {
  color: #bfe6ec;
}

.wv-card-body {
  padding: 8px 28px 28px;
}

.wv-card-body p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ev-text, #334155);
}

.wv-card-body .ev-btn + .ev-btn {
  margin-top: 12px;
  width: 100%;
}

@media (min-width: 960px) {
  .wv-aside {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 640px) {
  .wv-player {
    margin-top: -48px;
    margin-bottom: 32px;
    border-radius: 12px;
  }

  .ev-hero.wv-hero {
    padding-bottom: 80px;
  }
}

@media (max-width: 420px) {
  .wv-card-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wv-promo-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wv-thumb img,
  .wv-play > span,
  .wv-promo-link svg {
    transition: none;
  }

  .wv-thumb:hover img,
  .wv-thumb:hover .wv-play > span,
  .wv-promo-link:hover svg {
    transform: none;
  }
}
