/*
 * Bar above every product landing page (resources/views/landing/partials/site-bar.blade.php):
 * back to the main site, company line, all products. It scrolls away with the page; the
 * landing headers stay sticky below it.
 */
.kbt {
    --kbt-h: 40px;
    position: relative;
    z-index: 60;
    height: var(--kbt-h);
    background: linear-gradient(90deg, #0b1437 0%, #172554 55%, #1e1b4b 100%);
    color: #cbd5f5;
    font: 500 13px/1 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.kbt-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.kbt a {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.kbt a:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kbt a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
    border-radius: 4px;
}

.kbt svg {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.kbt-back:hover svg {
    transform: translateX(-3px);
}

.kbt-all:hover svg {
    transform: translateX(3px);
}

.kbt-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.kbt-title strong {
    color: #fff;
    font-weight: 700;
}

.kbt-dot {
    margin: 0 6px;
    opacity: .6;
}

@media (max-width: 760px) {
    .kbt-title {
        display: none;
    }
}

/* School's header is fixed, not sticky: start it below the bar until the page scrolls. */
.kbt ~ .site-header.is-below-kbt {
    top: 40px;
    transition: top .25s ease;
}

.kbt ~ .site-header.is-below-kbt.scrolled {
    top: 0;
}
