/* Innovbit - HR Data Analytics hero with promo video (v21.4, 14 Nov 2026) */
.hrda-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "text media" "chips media"; column-gap: 64px; }
.hrda-text { grid-area: text; align-self: end; }
.hrda-chips { grid-area: chips; align-self: start; }
.hrda-media { grid-area: media; align-self: center; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hrda-media figcaption { font-size: 13px; line-height: 1.5; color: var(--on-ink-muted); }
html[lang="ar"] .hrda-media figcaption { font-size: 16px; line-height: 1.85; }

.hv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), 0.35); background: #1F0F31; }
.hv-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1F0F31; }
.hv-ui[hidden], .hv-ui [hidden] { display: none !important; }
.hv-ui button { font-family: inherit; cursor: pointer; }
.hrda-media :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* "Sound on" and "Back to page" pills */
.hv-pill { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px 16px; border: 0; border-radius: 999px; background: var(--on-ink); color: var(--ink); font-size: 13px; font-weight: 700; }
html[lang="ar"] .hv-pill { font-size: 15px; }
.hv-pill:hover { background: var(--white); }
.hv-back { inset-inline-start: auto; inset-inline-end: 24px; top: 24px; height: 44px; font-size: 14px; }
.hv-esc { position: absolute; top: 32px; inset-inline-end: 196px; z-index: 2; font-size: 13px; color: var(--on-ink-muted); background: rgba(31, 15, 49, 0.9); border-radius: 8px; padding: 6px 12px; }
html[lang="ar"] .hv-esc { inset-inline-end: 210px; font-size: 15px; }

/* centre play button: reduced motion, or when the browser refuses to start */
.hv-big { position: absolute; inset: 0; margin: auto; z-index: 2; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--on-ink); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.hv-big:hover { background: var(--white); }

/* control bar - always left to right, also on Arabic pages (a playback timeline) */
.hv-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 52px; box-sizing: border-box; padding: 0 6px; background: rgba(31, 15, 49, 0.9); display: flex; align-items: center; gap: 4px; font-family: var(--font-latin); }
.hv-btn { width: 44px; height: 44px; flex: 0 0 44px; border: 0; padding: 0; background: transparent; color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.hv-btn:hover { background: rgba(245, 241, 250, 0.1); }
.hv-btn svg { display: block; }
.hv-seek { flex: 1 1 auto; min-width: 40px; margin: 0 6px; accent-color: var(--accent); height: 24px; cursor: pointer; }
.hv-time { font-size: 12px; font-weight: 500; color: var(--on-ink-muted); padding: 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hv-volume { display: inline-flex; align-items: center; gap: 6px; }
.hv-vol { width: 64px; accent-color: var(--on-ink); height: 24px; cursor: pointer; }
.hv-vol-out { font-size: 12px; font-weight: 700; color: var(--on-ink); min-width: 30px; font-variant-numeric: tabular-nums; }

/* icon states */
.hv-play .i-play, .is-paused .hv-play .i-pause { display: none; }
.is-paused .hv-play .i-play { display: block; }
.hv-mute .i-off, .is-muted .hv-mute .i-on { display: none; }
.is-muted .hv-mute .i-off { display: block; }
.hv-full .i-shrink, .is-full .hv-full .i-grow { display: none; }
.is-full .hv-full .i-shrink { display: block; }

/* full screen: the video sits between a 72px top strip (Sound on, Esc hint, Back to page) and the
   72px control bar, so no control ever covers the video's own labels or subtitles (v21.7) */
.hrda-media.is-full { background: #1F0F31; justify-content: center; gap: 0; }
.hrda-media.is-full figcaption { display: none; }
.hrda-media.is-full .hv-frame { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.hrda-media.is-full .hv-video { position: absolute; top: 72px; bottom: 72px; left: 0; width: 100%; height: calc(100% - 144px); object-fit: contain; }
.hrda-media.is-full .hv-sound, .hrda-media.is-full .hv-back { top: 14px; }
.hrda-media.is-full .hv-sound { inset-inline-start: 20px; }
.hrda-media.is-full .hv-back { inset-inline-end: 20px; }
.hrda-media.is-full .hv-esc { top: 22px; inset-inline-end: 196px; background: transparent; }
html[lang="ar"] .hrda-media.is-full .hv-esc { inset-inline-end: 214px; }
.hrda-media.is-full .hv-big { top: 72px; bottom: 72px; }
.hrda-media.is-full .hv-bar { height: 72px; padding: 0 20px; gap: 10px; }
.hrda-media.is-full .hv-time, .hrda-media.is-full .hv-vol-out { font-size: 14px; }
.hrda-media.is-full .hv-vol { width: 120px; }
.hrda-media:not(.is-full) .hv-esc { display: none; }

@media (max-width: 1060px) {
  .hrda-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "media" "chips"; }
  .hrda-media { max-width: 640px; margin-bottom: 32px; }
  .hrda-text p { margin-bottom: 28px !important; }
}
@media (max-width: 560px) {
  .hv-bar { height: 46px; padding: 0 2px; gap: 2px; }
  .hv-volume .hv-vol, .hv-vol-out { display: none; }
  .hv-time .hv-dur { display: none; }
  .hv-pill { top: 10px; inset-inline-start: 10px; height: 36px; }
  .hv-esc { display: none; }
}
