/* Webinar pages only (/resources/webinars/...). Loaded from those templates, not site-wide. */
.wb-hero { padding-bottom: 56px; }
.wb-hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.wb-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #005689; text-decoration: none; margin-bottom: 28px; }
.wb-back:hover { color: #0D4979; }

/* About */
.wb-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.wb-about-copy p { color: #334155; font-size: 16px; line-height: 1.7; max-width: 640px; }
.wb-about-copy p + p { margin-top: 16px; }
.wb-about-copy p:first-child { color: #11233B; font-size: 20px; font-weight: 500; line-height: 1.5; }
@media (max-width: 900px) { .wb-about { grid-template-columns: 1fr; gap: 24px; } }

/* Filter */
.wb-filters { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 4px 24px rgba(13, 73, 121, 0.09); flex-shrink: 0; }
.wb-filters button { font: inherit; font-size: 14px; font-weight: 600; color: #334155; background: transparent; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; transition: background-color .15s, color .15s; }
.wb-filters button:hover { color: #005689; }
.wb-filters button[aria-pressed="true"] { background: #005689; color: #fff; box-shadow: 0 2px 6px rgba(0, 86, 137, 0.18); }
.wb-count { opacity: .7; font-weight: 500; margin-left: 4px; }

/* Cards */
.wb-item[hidden], .wb-hidden { display: none !important; }
.wb-card { display: flex; flex-direction: column; height: 100%; }
.wb-thumb { position: relative; }
.wb-status { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #005689; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 86, 137, 0.18); }
.wb-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4DB1DA; }
.wb-status--past { color: #334155; }
.wb-status--past::before { background: #64748B; }
.wb-card-body { display: flex; flex-direction: column; flex: 1; }
.wb-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #64748B; margin-bottom: 10px; }
.wb-desc { margin-bottom: 18px; }
.wb-cta { margin-top: auto; }
.wb-empty { text-align: center; padding: 56px 24px; background: #fff; border: 1.5px dashed #E2E8F0; border-radius: 18px; color: #334155; }
.wb-empty p { margin-bottom: 20px; }

/* Detail blocks */
.wb-meta { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 28px; }
.wb-meta-item { display: flex; align-items: center; gap: 10px; }
.wb-meta-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 86, 137, 0.1); color: #005689; }
.wb-meta-label { display: block; font-size: 12px; color: #64748B; }
.wb-meta-value { display: block; font-size: 15px; font-weight: 600; color: #11233B; }
.wb-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 40px rgba(13, 73, 121, 0.13), 0 2px 6px rgba(13, 73, 121, 0.06); }
@media (max-width: 640px) { .wb-banner img { aspect-ratio: 16 / 9; } }
.wb-banner-wrap { padding-top: 40px; }

.wb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.wb-register { position: sticky; top: 96px; }
.wb-register dl { margin: 20px 0 24px; display: grid; gap: 14px; }
.wb-register dt { font-size: 12px; color: #64748B; }
.wb-register dd { margin: 2px 0 0; font-weight: 600; color: #11233B; }
.wb-register .btn { width: 100%; justify-content: center; }
.wb-note { font-size: 13px; color: #64748B; margin-top: 14px; }
@media (max-width: 960px) {
  .wb-layout { grid-template-columns: 1fr; gap: 32px; }
  .wb-register { position: static; order: -1; }
}

/* Rich text from Strapi */
.wb-prose { max-width: 720px; color: #334155; font-size: 16px; line-height: 1.75; }
.wb-prose > * + * { margin-top: 16px; }
/* h1 typed into the Strapi editor is styled like h2 (the page already has its own h1) */
.wb-prose h1, .wb-prose h2 { font-size: 28px; line-height: 1.2; color: #11233B; letter-spacing: -0.02em; margin: 40px 0 0; }
.wb-prose h1:first-child, .wb-prose h2:first-child { margin-top: 0; }
.wb-prose h3 { font-size: 20px; line-height: 1.3; color: #11233B; margin: 32px 0 0; }
.wb-prose ul, .wb-prose ol { padding-left: 22px; }
.wb-prose ul { list-style: disc; }
.wb-prose ol { list-style: decimal; }
.wb-prose li + li { margin-top: 8px; }
.wb-prose li::marker { color: #086FA6; }
.wb-prose strong { color: #11233B; }
.wb-prose a { color: #005689; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wb-prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* Video: poster + play button; the YouTube iframe is only created on click */
.wb-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0F172A; box-shadow: 0 14px 40px rgba(13, 73, 121, 0.13), 0 2px 6px rgba(13, 73, 121, 0.06); }
.wb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wb-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0F172A; }
.wb-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.wb-play:hover img { opacity: 1; }
.wb-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: #005689; color: #fff; box-shadow: 0 6px 14px rgba(0, 86, 137, 0.26); transition: transform .2s, background-color .2s; }
.wb-play:hover .wb-play-icon { transform: translate(-50%, -50%) scale(1.06); background: #0D4979; }
.wb-play:focus-visible { outline: 3px solid #4DB1DA; outline-offset: -3px; }
.wb-video-link { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.wb-video-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.wb-video-link .btn { position: relative; }

/* Recordings grid: the recording being watched */
.wb-now { position: absolute; top: 14px; left: 14px; display: none; align-items: center; gap: 6px; background: #005689; color: #fff; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.wb-item.is-current .wb-now { display: inline-flex; }
.wb-item.is-current .wb-status { display: none; }
.wb-item.is-current .wb-card { outline: 2px solid #005689; outline-offset: -2px; }
