/* Video Hub (Resource Center #video): featured video, topic chips, grid and pop-up player.
   Markup: scripts/video_hub.py. Behaviour: /assets/video-hub.js. */
.hub { font-family: Nunito, "Helvetica Neue", Arial, sans-serif; color: #1F1B33; text-align: left; padding: 8px 0 24px; }
.hub button, .hub-m button { font-family: inherit; }
.hub [hidden], .hub-m[hidden], .hub-m [hidden] { display: none !important; }
.hub-eyebrow { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: #615B9C; }

/* Cards */
.hub .hub-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #1F1B33; }
.hub .hub-card:hover, .hub .hub-card:focus { color: #1F1B33; }
.hub-card:focus-visible { outline: 3px solid #615B9C; outline-offset: 4px; border-radius: 14px; }
.hub-card__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1F1B33; box-shadow: 0 16px 30px -22px rgba(31,27,51,.6); }
.hub-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hub-card:hover .hub-card__img img { transform: scale(1.04); }
.hub-card__play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(31,27,51,.45); opacity: 0; transition: opacity .2s; }
.hub-card__play svg { margin-left: 2px; }
.hub-card:hover .hub-card__play, .hub-card:focus-visible .hub-card__play { opacity: 1; }
.hub-card__dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 5px; background: rgba(31,27,51,.85); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.5; }
.hub-card__tag { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: #615B9C; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
.hub-card__series { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: #615B9C; }
.hub-card__title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.hub-card__speaker { font-size: 14px; font-weight: 600; line-height: 1.3; color: #6B6880; }

/* Featured */
.hub-feat { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 28px; background: #F4F3FA; border-radius: 24px; }
.hub-feat__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #1F1B33; box-shadow: 0 24px 44px -26px rgba(31,27,51,.6); }
.hub-feat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-feat__img:focus-visible { outline: 3px solid #615B9C; outline-offset: 4px; }
.hub-feat__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31,27,51,.45), 0 0 0 8px rgba(255,255,255,.28); transition: transform .15s; }
.hub-feat__img:hover .hub-feat__play { transform: scale(1.06); }
.hub-feat__play svg { margin-left: 4px; }
.hub .hub-feat__title { margin: 8px 0 0; font-family: inherit; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: 0; text-transform: none; color: #120E35; }
.hub-feat__meta { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #5E5A78; }

/* Buttons */
.hub .hub-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 26px; border: 0; border-radius: 999px; background: #615B9C; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s; }
.hub .hub-btn:hover, .hub .hub-btn:focus { background: #4E4987; color: #fff; }
.hub .hub-btn--ghost { margin: 0; background: #fff; color: #615B9C; box-shadow: inset 0 0 0 1.5px #615B9C; }
.hub .hub-btn--ghost:hover, .hub .hub-btn--ghost:focus { background: #F4F3FA; color: #615B9C; }

/* Topic filter: a labelled segmented bar. One row on wide screens; below 1200px the label sits
   above and the bar scrolls sideways. */
.hub-filter { display: flex; align-items: center; gap: 16px; margin: 36px 0 28px; }
.hub-filter__label { flex: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; line-height: 1.3; color: #1F1B33; white-space: nowrap; }
.hub-filter__label svg { color: #615B9C; }
.hub-filter__long { display: none; }
.hub-chips { flex: 1; min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; background: #E9E7F4; border-radius: 999px; }
.hub .hub-chip { flex: 1 0 auto; padding: 9px 5px; border: 0; border-radius: 999px; background: none; color: #312A4F; font-size: 12.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.hub .hub-chip:hover, .hub .hub-chip:focus { background: rgba(255,255,255,.7); color: #312A4F; }
.hub .hub-chip span { margin-left: 3px; color: #8D88B5; }
.hub .hub-chip[aria-pressed="true"] { background: #615B9C; color: #fff; box-shadow: 0 4px 10px -4px rgba(97,91,156,.7); }
.hub .hub-chip[aria-pressed="true"] span { color: #D6D2F7; }
.hub-chip:focus-visible { outline: 3px solid #615B9C; outline-offset: 2px; }

.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.hub-showmore { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; font-size: 14px; color: #8D88B5; }

/* Pop-up player */
html.hub-m-open { overflow: hidden; }
.hub-m { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 32px; background: rgba(18,14,53,.82); font-family: Nunito, "Helvetica Neue", Arial, sans-serif; color: #1F1B33; text-align: left; }
.hub-m__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; width: min(1240px, 100%); max-height: calc(100vh - 64px); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hub-m .hub-m__close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #312A4F; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hub-m .hub-m__close:hover { background: #fff; color: #615B9C; }
.hub-m__main { min-width: 0; overflow: auto; }
.hub-m__player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.hub-m__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hub-m__info { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; }
.hub-m__text { min-width: 0; }
.hub-m .hub-m__title { margin: 4px 0 0; font-family: inherit; font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: 0; text-transform: none; color: #120E35; }
.hub-m__speaker { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #6B6880; }
.hub-m__pn { display: flex; gap: 10px; flex: none; }
.hub-m .hub-m__btn { display: flex; align-items: center; gap: 10px; width: 230px; min-height: 64px; padding: 10px 14px; border: 1px solid #E2E0EC; border-radius: 14px; background: #fff; color: #312A4F; text-align: left; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; transition: border-color .15s, background .15s; }
.hub-m .hub-m__btn:hover:not([disabled]) { border-color: #615B9C; }
.hub-m__btn svg { flex: none; }
.hub-m__btn span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hub-m__btn small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8D88B5; }
.hub-m .hub-m__btn--next { background: #615B9C; border-color: #615B9C; color: #fff; text-align: right; }
.hub-m .hub-m__btn--next:hover:not([disabled]) { background: #4E4987; border-color: #4E4987; }
.hub-m__btn--next small { color: #D6D2F7; }
.hub-m .hub-m__btn[disabled] { opacity: .35; cursor: default; }
.hub-m__btn:focus-visible, .hub-m__item:focus-visible, .hub-m__close:focus-visible { outline: 3px solid #615B9C; outline-offset: 2px; }
.hub-m__list { min-width: 0; overflow: auto; padding: 76px 16px 16px; background: #F7F6FC; border-left: 1px solid #EFEEF7; }
.hub-m__label { margin: 0 0 12px 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8D88B5; }
.hub-m__list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hub-m__list li { margin: 0; padding: 0; }
.hub-m__list li::before { content: none; }
.hub-m .hub-m__item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: #1F1B33; text-align: left; cursor: pointer; letter-spacing: 0; text-transform: none; transition: background .15s; }
.hub-m .hub-m__item:hover { background: rgba(97,91,156,.08); }
.hub-m .hub-m__item[aria-current="true"] { background: #EAE8F5; }
.hub-m__itemimg { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #1F1B33; }
.hub-m__itemimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-m__item[aria-current="true"] .hub-m__itemimg { box-shadow: 0 0 0 3px #615B9C; }
.hub-m__itemimg .hub-card__dur { right: 4px; bottom: 4px; padding: 0 5px; }
.hub-m__itemt { font-size: 14px; font-weight: 800; line-height: 1.3; color: #1F1B33; }
.hub-m__itemt em { display: block; font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #615B9C; }

@media (max-width: 1199px) {
  .hub-filter { flex-direction: column; align-items: stretch; gap: 10px; }
  .hub-filter__long { display: inline; }
  .hub-filter__short { display: none; }
  .hub-chips { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hub-chips::-webkit-scrollbar { display: none; }
  .hub .hub-chip { flex: none; padding: 9px 14px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-feat { gap: 28px; }
  .hub .hub-feat__title { font-size: 24px; }
}
@media (max-width: 900px) {
  .hub-m { padding: 0; }
  .hub-m__box { grid-template-columns: 1fr; grid-template-rows: auto 1fr; width: 100%; height: 100%; max-height: none; border-radius: 0; overflow: auto; }
  .hub-m__main { overflow: visible; }
  .hub-m .hub-m__close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .hub-m__info { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .hub-m .hub-m__title { font-size: 20px; }
  .hub-m__pn { width: 100%; }
  .hub-m .hub-m__btn { flex: 1; width: auto; min-width: 0; }
  .hub-m__list { overflow: visible; padding: 18px 10px 80px; border-left: 0; border-top: 1px solid #EFEEF7; }
}
@media (max-width: 767px) {
  .hub-feat { grid-template-columns: 1fr; gap: 18px; padding: 14px 14px 22px; border-radius: 20px; }
  .hub-feat__body { padding: 0 6px; }
  .hub .hub-feat__title { font-size: 22px; }
  .hub .hub-btn { margin-top: 18px; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .hub-card__title { font-size: 14px; }
  .hub-card__speaker { font-size: 13px; }
  .hub-card__series { font-size: 10px; }
  .hub-showmore { flex-direction: column; gap: 10px; }
  .hub-filter { margin: 28px 0 20px; }
  .hub .hub-chip { border-radius: 12px; }
}
/* The site's heading styles tighten word spacing; titles here use Nunito, which needs normal spacing. */
.hub .hub-feat__title, .hub-m .hub-m__title { word-spacing: normal; }
/* Desktop: the player column sets the dialog's height and the up-next list scrolls within it. */
@media (min-width: 901px) { .hub-m__list { contain: size; } }
/* Card text comes first in the markup; show the thumbnail on top. Separators are for the text copy only. */
.hub-card__img { order: -2; margin-bottom: 6px; }
.hub-card__series { order: -1; }
.hub-sep { display: none; }
.hub:not(.is-ready) .hub-card--extra { display: none; }

/* Section background: the Video Hub (heading container 32dea59 + hub section 5e68983) sits on a
   full-width lavender band with a straight top edge and the Korio swoosh (white) at the bottom,
   flowing into Platform Demos. Swoosh height = width / 10.6, 67px to 152px, like the other edges. */
.elementor-element-32dea59, .elementor-element-5e68983 { --hub-wave-h: clamp(67px, 10.56vw, 152px); position: relative; background: transparent !important; overflow: visible !important; }
.elementor-element-32dea59 > *, .elementor-element-5e68983 > * { position: relative; z-index: 1; }
.elementor-element-32dea59 { padding-top: 72px !important; }
.elementor-element-5e68983 { padding-bottom: calc(var(--hub-wave-h) + 24px) !important; margin-bottom: 40px !important; }
/* The band: a 100vw layer behind each part (the parts sit inside the boxed page column). */
.elementor-element-32dea59::after, .elementor-element-5e68983::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #F4F3FA; z-index: 0; pointer-events: none; }
.elementor-element-5e68983::after { content: ""; position: absolute; top: auto; left: 50%; bottom: -1px; width: 100vw; height: var(--hub-wave-h); transform: translateX(-50%); z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,100 L0.00,49.56 C64.45,30.74 161.52,2.00 260.62,2.00 C446.70,2.00 525.06,98.00 714.80,98.00 C807.86,98.00 905.42,75.33 1000.00,43.23 L1000,100 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
/* On the lavender band the featured panel becomes a white card. */
.hub-feat { background: #fff; box-shadow: 0 1px 2px rgba(31,27,51,.05), 0 24px 50px -34px rgba(31,27,51,.35); }
@media (max-width: 767px) { .elementor-element-32dea59 { margin-top: 40px !important; padding-top: 48px !important; } }
