/* WealthBuzz video cards: home "From WealthBuzz Stories" strip and the "Watch" card
   on service/product pages. Drawn by js/wb-videos.js from data/videos.js.
   Uses each page's own --navy / --gold when it defines them. */
.wbv-sec { --wbv-navy: var(--navy, #0a2c52); --wbv-gold: var(--gold, #c79a3a); --wbv-muted: #55627f; }
.wbv-sec[hidden] { display: none; }

.wbv-eyebrow { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8a6418; }
.wbv-h2 { margin: 8px 0 0; font-family: "Lora", Georgia, serif; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2; font-weight: 700; color: var(--wbv-navy); }
.wbv-h2--sm { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }
.wbv-i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }

.wbv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.wbv-more { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--wbv-navy); text-decoration: none; white-space: nowrap; }
.wbv-more:hover { text-decoration: underline; }
.wbv-more:hover .wbv-i { transform: translateX(3px); }

/* Thumbnail button */
.wbv-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #8fb4cf, #3d6b52); }
.wbv-media::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center / cover no-repeat; transition: transform .3s; }
.wbv-media:hover::before { transform: scale(1.03); }
.wbv-media.is-short { aspect-ratio: 9 / 14; }
.wbv-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(22,28,44,.72); border: 2px solid rgba(255,255,255,.85); transition: background .2s; }
.wbv-play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.wbv-media:hover .wbv-play { background: var(--wbv-gold); }
.wbv-media:focus-visible, .wbv-more:focus-visible { outline: 3px solid rgba(10,44,82,.45); outline-offset: 3px; }
.wbv-dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(12,20,40,.8); font-size: .7rem; font-weight: 700; color: #fff; }

/* Home strip */
.wbv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wbv-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e6e9f0; border-radius: 14px; box-shadow: 0 8px 24px rgba(10,44,82,.06); }
.wbv-card .wbv-media { border-radius: 0; }
.wbv-card__body { padding: 16px 18px 20px; }
.wbv-tag { display: inline-block; padding: 4px 9px; border-radius: 4px; background: #eef1f7; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wbv-navy); }
.wbv-card h3 { margin: 10px 0 0; font-size: 1.05rem; line-height: 1.35; font-weight: 700; color: var(--wbv-navy); }
.wbv-card p { margin: 8px 0 0; font-size: .9rem; line-height: 1.6; color: var(--wbv-muted); }
.wbv-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.wbv-grid.is-single .wbv-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.wbv-grid.is-single .wbv-media { height: 100%; }
.wbv-grid.is-single .wbv-card__body { padding: 24px clamp(18px, 3vw, 36px); }
.wbv-grid.is-single h3 { font-family: "Lora", Georgia, serif; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); }

/* Watch card */
.wbv-watch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(14px, 2vw, 20px);
  background: #fbf8f2; border: 1px solid #efe6d4; border-radius: 16px; }
.wbv-watch.is-short { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
.wbv-watch__body { padding-right: clamp(0px, 2vw, 20px); }
.wbv-sum { margin: 10px 0 0; font-size: .95rem; line-height: 1.6; color: #34436a; }
.wbv-from { margin: 8px 0 0; font-size: .82rem; font-style: italic; color: var(--wbv-muted); }
.wbv-watch .wbv-more { margin-top: 16px; }
.wbv-risk { margin: 14px 0 0; font-size: .72rem; line-height: 1.5; color: var(--wbv-muted); }

/* Video player popup */
.wbv-player { margin: auto; width: min(960px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.wbv-player.is-short { width: min(380px, calc(100vw - 32px), calc((100vh - 90px) * 9 / 16)); width: min(380px, calc(100vw - 32px), calc((100dvh - 90px) * 9 / 16)); }
.wbv-player::backdrop { background: rgba(8,14,30,.85); }
.wbv-player__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; overflow: hidden; }
.wbv-player.is-short .wbv-player__frame { aspect-ratio: 9 / 16; }
.wbv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wbv-player__close { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 0 10px auto; border: 0; border-radius: 50%; background: #fff; color: #0a2c52; font-size: 22px; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .wbv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbv-grid.is-single .wbv-card, .wbv-watch { grid-template-columns: minmax(0, 1fr); }
  .wbv-watch.is-short { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wbv-head { flex-direction: column; align-items: flex-start; }
  .wbv-grid { grid-template-columns: minmax(0, 1fr); }
  .wbv-watch.is-short { grid-template-columns: minmax(0, 1fr); }
  .wbv-watch.is-short .wbv-media { max-width: 260px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .wbv-media::before, .wbv-play, .wbv-i { transition: none; }
}
