/* Bloomreach Demo Hub — styled per Figma "Video Tours - Page Design"
   Brand tokens: navy #002840, secondary #335366, muted #667E8C,
   yellow #FEED1B (black text on yellow), borders #E5E9EC, link #039ACE
   Selectors are double-classed (.br-demo-hub .x) to beat the Elementor kit's
   global button/heading/img styling. */

.br-demo-hub {
    color: #002840;
    position: relative;
    /* Brand font ships only in 400/500 — no 600/700 weights anywhere below,
       they would faux-bold. */
    font-family: 'Bloomreach Sans', Arial, sans-serif;
}
.br-demo-hub *,
.br-demo-hub *::before,
.br-demo-hub *::after {
    box-sizing: border-box;
}

/* ---------- Reset theme's global img rounding inside the hub ---------- */
.br-demo-hub .br-demo-hub__row-thumb img,
.br-demo-hub .br-demo-hub__stage img,
.br-demo-hub .br-demo-hub__stage iframe,
.br-demo-hub .br-demo-hub__stage video,
.br-demo-hub .br-demo-hub__media,
.br-demo-hub .br-demo-hub__media * {
    border-radius: 0 !important;
}
.br-demo-hub .br-demo-hub__gate img {
    border-radius: 0 !important;
}

/* ---------- Reset kit button styling inside the hub ---------- */
.br-demo-hub button.br-demo-hub__row,
.br-demo-hub button.br-demo-hub__btn,
.br-demo-hub a.br-demo-hub__btn,
.br-demo-hub button.br-demo-hub__replay {
    background: none;
    background-image: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    text-decoration: none;
    color: #002840;
    line-height: 1.2;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.br-demo-hub .br-demo-hub__btn,
.br-demo-hub a.br-demo-hub__btn,
.br-demo-hub button.br-demo-hub__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.br-demo-hub .br-demo-hub__btn--yellow,
.br-demo-hub button.br-demo-hub__btn--yellow,
.br-demo-hub a.br-demo-hub__btn--yellow {
    background: #FEED1B;
    color: #000;
}
.br-demo-hub .br-demo-hub__btn--yellow:hover {
    background: #F2E116;
    color: #000;
}
.br-demo-hub .br-demo-hub__btn--dark,
.br-demo-hub a.br-demo-hub__btn--dark {
    background: #000;
    color: #fff;
}
.br-demo-hub .br-demo-hub__btn--dark:hover {
    background: #333;
    color: #fff;
}
.br-demo-hub .br-demo-hub__btn--outline,
.br-demo-hub button.br-demo-hub__btn--outline {
    background: #fff;
    color: #002840;
    border: 1px solid #002840;
}
.br-demo-hub .br-demo-hub__btn--outline:hover {
    background: #F2F4F5;
    color: #002840;
}
.br-demo-hub .br-demo-hub__btn-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 auto;
    border-radius: 0 !important;
}
.br-demo-hub .br-demo-hub__btn--ghost,
.br-demo-hub button.br-demo-hub__btn--ghost {
    background: #fff;
    color: #002840;
    border: 1px solid #fff;
}
.br-demo-hub .br-demo-hub__btn--ghost:hover {
    background: #F2F4F5;
    border-color: #F2F4F5;
    color: #002840;
}

/* ---------- Badges ---------- */
.br-demo-hub .br-demo-hub__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .2s ease;
}
.br-demo-hub .br-demo-hub__badge--video {
    background: #FEED1B;
    color: #000;
}
.br-demo-hub .br-demo-hub__badge--video::before {
    content: "";
    width: 7px;
    height: 9px;
    flex: 0 0 auto;
    background: url(../../../../images/icon-play.svg) center/contain no-repeat;
}
.br-demo-hub .br-demo-hub__badge--tour {
    background: transparent;
    color: #000;
    border: 1px solid #99A9B3;
}
.br-demo-hub .br-demo-hub__badge--tour::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    background: url(../../../../images/icon-tour-stroke.svg) center/contain no-repeat;
}

/* ---------- Layout ---------- */
.br-demo-hub .br-demo-hub__layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ---------- Sidebar: borderless list of rounded cards ---------- */
.br-demo-hub .br-demo-hub__sidebar {
    width: 380px;
    flex: 0 0 380px;
}
.br-demo-hub .br-demo-hub__sidebar-head {
    padding: 0 6px 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.br-demo-hub .br-demo-hub__sidebar-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #002840;
}
.br-demo-hub .br-demo-hub__sidebar-count {
    font-size: 12px;
    color: #99A9B3;
}
.br-demo-hub .br-demo-hub__group-label {
    padding: 6px 6px 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #002840;
}
.br-demo-hub .br-demo-hub__row + .br-demo-hub__group-label {
    margin-top: 18px;
}
.br-demo-hub button.br-demo-hub__row {
    display: flex;
    gap: 14px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 18px;
    text-align: left;
    transition: background .2s ease;
}
.br-demo-hub button.br-demo-hub__row:hover {
    background: #F4F4F4;
}
.br-demo-hub button.br-demo-hub__row.is-active {
    background: #FFFBD1;
}
.br-demo-hub .br-demo-hub__row-thumb {
    position: relative;
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    height: 91px;
    background: #F2F4F5;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}
.br-demo-hub .br-demo-hub__row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.br-demo-hub .br-demo-hub__row-thumb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.br-demo-hub .br-demo-hub__row-thumb-icon.is-video {
    background: #FEED1B;
}
.br-demo-hub .br-demo-hub__row-thumb-icon.is-video::before {
    content: "";
    width: 9px;
    height: 12px;
    margin-left: 2px;
    background: url(../../../../images/icon-play.svg) center/contain no-repeat;
}
.br-demo-hub .br-demo-hub__row-thumb-icon.is-tour {
    background: #fff;
}
.br-demo-hub .br-demo-hub__row-thumb-icon.is-tour::before {
    content: "";
    width: 12px;
    height: 12px;
    background: url(../../../../images/icon-tour-filled.svg) center/contain no-repeat;
}
.br-demo-hub .br-demo-hub__row-body {
    flex: 1;
    min-width: 0;
    display: block;
}
.br-demo-hub .br-demo-hub__row-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 7px;
    color: #002840;
    white-space: normal;
}
.br-demo-hub .br-demo-hub__row-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.br-demo-hub .br-demo-hub__row-meta {
    font-size: 12px;
    font-weight: 400;
    color: #99A9B3;
}

/* ---------- Sidebar CTA (brand yellow card) ---------- */
.br-demo-hub .br-demo-hub__sidebar-cta {
    margin-top: 22px;
    padding: 16px 30px;
    background: #FEED1B;
    border-radius: 20px;
}
.br-demo-hub .br-demo-hub__sidebar-cta-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
}
.br-demo-hub .br-demo-hub__sidebar-cta-text {
    font-size: 14px;
    color: #000;
    line-height: 1.45;
    margin-bottom: 18px;
}

/* ---------- Stage / player ---------- */
.br-demo-hub .br-demo-hub__main {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.br-demo-hub .br-demo-hub__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    background: #F2F4F5;
    overflow: hidden;
}
/* Demo switch: fade + slight move up, same pattern as the quotes/tabs widgets */
.br-demo-hub .br-demo-hub__stage,
.br-demo-hub .br-demo-hub__info {
    transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}
.br-demo-hub.is-switching .br-demo-hub__stage,
.br-demo-hub.is-switching .br-demo-hub__info {
    opacity: 0;
    transform: translateY(12px);
}
.br-demo-hub .br-demo-hub__stage-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.br-demo-hub .br-demo-hub__media {
    position: absolute;
    inset: 0;
    display: none;
}
.br-demo-hub .br-demo-hub__media iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}
.br-demo-hub .br-demo-hub__media--video img,
.br-demo-hub .br-demo-hub__media--video > div {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    max-width: none !important;
}
.br-demo-hub.is-playing-video .br-demo-hub__media--video,
.br-demo-hub.is-playing-tour .br-demo-hub__media--tour {
    display: block;
}

/* Loader shown while the video player / tour iframe is booting */
.br-demo-hub .br-demo-hub__loader {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 26, 41, .45);
}
.br-demo-hub.is-loading .br-demo-hub__loader {
    display: flex;
}
.br-demo-hub .br-demo-hub__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #FEED1B;
    animation: br-demo-hub-spin .8s linear infinite;
}
@keyframes br-demo-hub-spin {
    to {
        transform: rotate(360deg);
    }
}

.br-demo-hub .br-demo-hub__poster {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #0000008C;
}
.br-demo-hub .br-demo-hub__poster .br-demo-hub__btn {
    box-shadow: 0 8px 24px rgba(0, 26, 41, .22);
}
.br-demo-hub button.br-demo-hub__play-tour {
    border-color: #555555;
}
.br-demo-hub.is-playing-video .br-demo-hub__poster,
.br-demo-hub.is-playing-tour .br-demo-hub__poster,
.br-demo-hub.is-ended .br-demo-hub__poster {
    display: none;
}
.br-demo-hub .br-demo-hub__play-icon {
    width: 12px;
    height: 16px;
    display: block;
    flex: 0 0 auto;
    background: url(../../../../images/icon-play.svg) center/contain no-repeat;
}
/* Tour disabled on small screens (Navattic is desktop-only) */
.br-demo-hub button.br-demo-hub__btn.is-disabled {
    background: #F2F4F5;
    color: #667E8C;
    border: 1px solid #E5E9EC;
    cursor: not-allowed;
    box-shadow: none;
    gap: 8px;
}
.br-demo-hub button.br-demo-hub__btn.is-disabled:hover {
    background: #F2F4F5;
    color: #667E8C;
}
.br-demo-hub button.br-demo-hub__btn.is-disabled img {
    width: 16px;
    height: 16px;
    display: block;
    flex: 0 0 auto;
    border-radius: 0 !important;
}

/* ---------- Ended overlay ---------- */
.br-demo-hub .br-demo-hub__ended {
    position: absolute;
    inset: 0;
    z-index: 12;
    background: rgba(0, 26, 41, .82);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
}
.br-demo-hub.is-ended .br-demo-hub__ended {
    display: flex;
}
.br-demo-hub .br-demo-hub__ended-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #FEED1B;
    margin-bottom: 14px;
}
.br-demo-hub .br-demo-hub__ended-title {
    font-size: 30px;
    font-weight: 500;
    color: #fff;
    line-height: 1.2;
    max-width: 560px;
    margin-bottom: 28px;
}
.br-demo-hub .br-demo-hub__ended-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.br-demo-hub button.br-demo-hub__replay {
    margin-top: 24px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.br-demo-hub button.br-demo-hub__replay::before {
    content: "\21BB";
    font-size: 15px;
}
.br-demo-hub button.br-demo-hub__replay:hover {
    color: #fff;
    background: none;
}

/* ---------- Info below player ---------- */
.br-demo-hub .br-demo-hub__info {
    padding: 100px 2px 0;
}
.br-demo-hub .br-demo-hub__info-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.br-demo-hub .br-demo-hub__info-badge-video,
.br-demo-hub .br-demo-hub__info-badge-tour {
    display: none;
}
.br-demo-hub.has-video .br-demo-hub__info-badge-video,
.br-demo-hub.has-tour .br-demo-hub__info-badge-tour {
    display: inline-flex;
}
.br-demo-hub .br-demo-hub__info-duration {
    font-size: 13px;
    color: #99A9B3;
    order: 1;
}
.br-demo-hub .br-demo-hub__info-badge-tour {
    order: 2;
}
.br-demo-hub h2.br-demo-hub__info-title {
    font-family: inherit;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 12px;
    padding: 0;
    color: #002840;
}
.br-demo-hub .br-demo-hub__info-desc {
    font-size: 16px;
    line-height: 1.55;
    color: #335366;
    margin: 0 0 18px;
    max-width: 720px;
}
.br-demo-hub .br-demo-hub__info-link-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.br-demo-hub .br-demo-hub__q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    background: #FEED1B;
    color: #000;
    font-size: 15px;
    font-weight: 500;
}
.br-demo-hub a.br-demo-hub__info-link {
    font-size: 15px;
    color: #039ACE;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.br-demo-hub a.br-demo-hub__info-link:hover {
    color: #0284B0;
}

/* ---------- Gate ---------- */
/* Full-viewport overlay, but BELOW the fixed .brheader (z-index 1000) so the
   navigation stays reachable while everything else is blurred behind it. */
.br-demo-hub .br-demo-hub__gate {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 26, 41, .35);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 150px 24px 40px;
    overflow-y: auto;
}
.br-demo-hub.is-locked .br-demo-hub__gate {
    display: flex;
}
.br-demo-hub.is-locked .br-demo-hub__inner {
    pointer-events: none;
    user-select: none;
}
.br-demo-hub .br-demo-hub__gate-box {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    box-shadow: 0 24px 64px rgba(0, 26, 41, .3);
    margin: auto;
    overflow: hidden;
}
.br-demo-hub .br-demo-hub__gate-left {
    flex: 1;
    min-width: 0;
    padding: 52px 48px;
}
.br-demo-hub .br-demo-hub__gate-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #667E8C;
    margin-bottom: 18px;
}
.br-demo-hub h2.br-demo-hub__gate-heading {
    font-family: inherit;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 18px;
    padding: 0;
    color: #002840;
    max-width: 420px;
}
.br-demo-hub .br-demo-hub__gate-text {
    font-size: 17px;
    line-height: 1.5;
    color: #335366;
    margin: 0 0 30px;
    max-width: 400px;
}
.br-demo-hub .br-demo-hub__gate-trusted {
    font-size: 14px;
    font-weight: 500;
    color: #667E8C;
    margin-bottom: 22px;
}
.br-demo-hub .br-demo-hub__gate-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 22px;
    align-items: center;
    margin-bottom: 30px;
    max-width: 440px;
}
.br-demo-hub .br-demo-hub__gate-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}
.br-demo-hub .br-demo-hub__gate-logo img {
    max-height: 28px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 0 !important;
}
.br-demo-hub .br-demo-hub__gate-g2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid #E5E9EC;
    max-width: 440px;
}
.br-demo-hub img.br-demo-hub__gate-g2-badge {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}
.br-demo-hub .br-demo-hub__gate-g2-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.br-demo-hub .br-demo-hub__gate-g2-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
    color: #002840;
}
.br-demo-hub .br-demo-hub__gate-g2-stars {
    color: #F6CE46;
    font-size: 19px;
    letter-spacing: 4px;
    line-height: 1;
    font-weight: 400;
}
.br-demo-hub .br-demo-hub__gate-g2-sub {
    font-size: 14.5px;
    color: #99A9B3;
}
.br-demo-hub .br-demo-hub__gate-form {
    flex: 0 0 440px;
    padding: 52px 48px;
    border-left: 1px solid #E5E9EC;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.br-demo-hub .br-demo-hub__form-target {
    width: 100%;
}
.br-demo-hub .br-demo-hub__gate-footnote {
    font-size: 12.5px;
    color: #99A9B3;
    line-height: 1.45;
    text-align: center;
    margin-top: 16px;
}

/* ---------- Responsive: player first, library as card grid ---------- */
@media (max-width: 1024px) {
    .br-demo-hub .br-demo-hub__layout {
        flex-direction: column-reverse;
        gap: 36px;
    }
    .br-demo-hub .br-demo-hub__sidebar {
        width: 100%;
        flex: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
        align-items: start;
    }
    .br-demo-hub .br-demo-hub__sidebar-head,
    .br-demo-hub .br-demo-hub__group-label,
    .br-demo-hub .br-demo-hub__sidebar-cta {
        grid-column: 1 / -1;
    }
    .br-demo-hub button.br-demo-hub__row {
        margin-bottom: 4px;
    }
    .br-demo-hub .br-demo-hub__row + .br-demo-hub__group-label {
        margin-top: 16px;
    }
    .br-demo-hub .br-demo-hub__sidebar-cta {
        text-align: center;
        padding: 34px 28px;
        margin-top: 26px;
    }
    .br-demo-hub .br-demo-hub__sidebar-cta-text {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .br-demo-hub .br-demo-hub__gate-box {
        flex-direction: column;
    }
    .br-demo-hub .br-demo-hub__gate-form {
        flex: none;
        border-left: none;
        border-top: 1px solid #E5E9EC;
        padding: 32px 28px;
    }
    .br-demo-hub .br-demo-hub__gate-left {
        padding: 32px 28px;
    }
    /* Tablet/mobile gate: drop the trusted-by logo wall so the form is
       visible asap; the G2 rating stays. */
    .br-demo-hub .br-demo-hub__gate-trusted,
    .br-demo-hub .br-demo-hub__gate-logos {
        display: none;
    }
    .br-demo-hub .br-demo-hub__gate-g2 {
        border-top: none;
        padding-top: 0;
    }
    .br-demo-hub h2.br-demo-hub__gate-heading {
        font-size: 28px;
    }
    .br-demo-hub h2.br-demo-hub__info-title {
        font-size: 26px;
    }
}
@media (max-width: 767px) {
    .br-demo-hub .br-demo-hub__sidebar {
        grid-template-columns: 1fr;
    }
    .br-demo-hub .br-demo-hub__poster {
        flex-direction: column;
        padding: 16px;
    }
    .br-demo-hub .br-demo-hub__stage {
        border-radius: 12px;
    }
    .br-demo-hub .br-demo-hub__gate {
        padding: 110px 12px 24px;
    }
    .br-demo-hub .br-demo-hub__gate-left,
    .br-demo-hub .br-demo-hub__gate-form {
        padding: 26px 22px;
    }
    .br-demo-hub h2.br-demo-hub__gate-heading {
        font-size: 24px;
    }
    .br-demo-hub .br-demo-hub__gate-box {
        border-radius: 16px;
    }
}
