/* Shared blue LMS shell. Existing course/account page styles stay scoped to their pages. */
:root {
    --bt-blue: #0565e8;
    --bt-blue-dark: #034fc0;
    --bt-navy: #072548;
    --bt-gold: #f7b84b;
    --bt-teal: var(--bt-blue);
    --bt-coral: var(--bt-gold);
    --bt-slate: #5b6b7c;
    --bt-line: #e2eaf4;
    --bt-soft: #f4f8fe;
    --bt-header-height: 79px;
}
html { scroll-padding-top: calc(var(--bt-header-height) + 12px); }

.bt-container { width: min(1680px, calc(100% - 64px)); margin-inline: auto; }
.bt-header, .bt-footer, .bt-btn, .bt-skip-link { font-family: 'Inter', sans-serif; }
.bt-header *, .bt-footer *, .bt-header-search, .bt-btn { box-sizing: border-box; }
.bt-header a, .bt-footer a, a.bt-btn { text-decoration: none; }
.bt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bt-skip-link { position: fixed; z-index: 1000; left: 16px; top: 8px; transform: translateY(-160%); padding: 12px 18px; border-radius: 7px; color: #fff; background: var(--bt-navy); }
.bt-skip-link:focus { transform: translateY(0); color: #fff; }
#bt-main:focus { outline: none; }
.bt-header a:focus-visible, .bt-header button:focus-visible, .bt-header summary:focus-visible, .bt-footer a:focus-visible, .bt-btn:focus-visible, .bt-skip-link:focus-visible { outline: 3px solid #e6a52d; outline-offset: 4px; }
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 7px; padding: 13px 22px; font-size: 14px; line-height: 1.5; font-weight: 700; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.bt-btn-primary { color: #fff; background: var(--bt-blue); box-shadow: 0 3px 8px rgba(5,101,232,.14); }
.bt-btn-primary:hover { color: #fff; background: var(--bt-blue-dark); }
.bt-btn-secondary { color: var(--bt-blue); background: #fff; border-color: #91baf3; }
.bt-btn-secondary:hover { color: var(--bt-blue-dark); background: #eef5ff; border-color: var(--bt-blue); }
.bt-btn-light { color: var(--bt-blue); background: #fff; }
.bt-btn-light:hover { color: var(--bt-blue-dark); background: #eef5ff; }
.bt-btn-compact { padding: 11px 20px; font-size: 13px; }
.bt-icon { flex: 0 0 auto; width: 22px; height: 22px; }

.bt-header { position: sticky; top: 0; z-index: 40; color: var(--bt-navy); background: #fff; border-bottom: 1px solid var(--bt-line); box-shadow: 0 4px 18px rgba(7,37,72,.055); }
.bt-header-main { display: grid; grid-template-columns: auto auto minmax(220px,1fr) auto; align-items: center; gap: 28px; min-height: 78px; padding-block: 16px; }
.bt-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; color: var(--bt-navy); white-space: nowrap; }
.bt-brand:hover { color: var(--bt-navy); }
.bt-brand-mark { flex: 0 0 42px; width: 42px; height: 42px; color: var(--bt-blue); }
.bt-brand-label { display: block; color: var(--bt-navy); font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.55px; }
.bt-brand-tagline { display: block; margin-top: 3px; color: #415a77; font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
.bt-header-search { position: relative; display: flex; min-width: 0; height: 44px; margin: 0; border: 1px solid var(--bt-line); border-radius: 6px; background: #f5f7fb; }
.bt-header-search:focus-within { background: #fff; border-color: var(--bt-blue); box-shadow: 0 0 0 3px rgba(5,101,232,.1); }
.bt-header-search input { display: block; width: 100%; min-width: 0; padding: 10px 14px; border: 0; border-radius: 6px 0 0 6px; color: var(--bt-navy); background: transparent; font-family: inherit; font-size: 13px; line-height: 22px; outline: 0; }
.bt-header-search input::placeholder { color: #65758c; opacity: 1; }
.bt-header-search button { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0 6px 6px 0; color: #fff; background: var(--bt-blue); cursor: pointer; }
.bt-header-search button .bt-icon { width: 21px; height: 21px; }
.bt-header-search button:hover { color: #fff; background: var(--bt-blue-dark); }
.bt-autocomplete-results { position: absolute; top: calc(100% + 9px); right: 0; left: 0; z-index: 70; min-width: min(300px,calc(100vw - 36px)); max-height: 330px; overflow-y: auto; margin: 0; padding: 7px; border: 1px solid var(--bt-line); border-radius: 9px; background: #fff; list-style: none; box-shadow: 0 15px 40px rgba(7,37,72,.14); }
.bt-autocomplete-results[hidden] { display: none; }
.bt-autocomplete-results li { margin: 0; padding: 0; }
.bt-autocomplete-results a { display: block; padding: 12px; border-radius: 6px; color: var(--bt-navy); font-size: 14px; line-height: 1.55; }
.bt-autocomplete-results a:hover, .bt-autocomplete-results [aria-selected="true"] a { color: var(--bt-blue); background: #eef5ff; }
.bt-header-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.bt-menu-toggle, .bt-mobile-search-toggle { display: none; }
.bt-close-icon { display: none; }
.bt-nav-panel { min-width: 0; }
.bt-nav-inner { display: flex; align-items: center; }
.bt-nav { position: relative; display: flex; align-items: center; gap: 22px; }
.bt-nav > a, .bt-nav summary { display: inline-flex; align-items: center; gap: 5px; padding: 11px 0; color: #18324e; font-size: 13px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.bt-nav > a:hover, .bt-nav summary:hover, .bt-nav-disclosure[open] > summary, .bt-nav > a[aria-current="page"] { color: var(--bt-blue); }
.bt-nav summary { list-style: none; cursor: pointer; }
.bt-nav summary::-webkit-details-marker { display: none; }
.bt-nav summary::marker { display: none; content: ''; }
.bt-chevron { width: 12px; height: 12px; transition: transform .18s ease; }
.bt-nav-disclosure[open] .bt-chevron { transform: rotate(180deg); }
.bt-nav-disclosure { position: relative; }
.bt-nav-courses { position: static; }
.bt-dropdown { position: absolute; top: calc(100% + 13px); left: -12px; z-index: 60; padding: 22px; border: 1px solid var(--bt-line); border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 20px 45px rgba(7,37,72,.13); }
.bt-courses-dropdown { left: 0; width: min(900px,calc(100vw - 64px)); }
.bt-dropdown-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--bt-line); }
.bt-dropdown-heading > span { color: var(--bt-slate); font-size: 12px; line-height: 1.5; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.bt-dropdown-heading a { color: var(--bt-blue); font-size: 14px; font-weight: 600; }
.bt-menu-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; max-height: min(470px,60vh); overflow-y: auto; }
.bt-menu-category { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 8px; color: var(--bt-navy); font-size: 15px; line-height: 1.5; font-weight: 700; }
.bt-menu-category:hover { color: var(--bt-blue); }
.bt-dropdown ul { margin: 0; padding: 0; list-style: none; }
.bt-menu-course-group li { margin: 0; padding: 0; }
.bt-menu-course-group li a { display: block; padding: 7px 0; color: var(--bt-slate); font-size: 14px; line-height: 1.6; }
.bt-menu-course-group li a:hover { color: var(--bt-blue); text-decoration: underline; text-underline-offset: 3px; }
.bt-resources-dropdown, .bt-more-dropdown { width: 300px; max-height: min(470px,60vh); overflow-y: auto; padding: 10px; }
.bt-resources-dropdown a, .bt-more-dropdown a { display: block; padding: 12px; border-radius: 6px; color: var(--bt-navy); font-size: 14px; line-height: 1.5; }
.bt-resources-dropdown a:hover, .bt-more-dropdown a:hover { color: var(--bt-blue); background: #eef5ff; }
.bt-mobile-actions { display: none; }

/* Keep secondary sticky panels below the shared bar, including its tablet layout. */
.bt-site .bt-mock-page .bt-mock-sidebar, .bt-site .bt-category-sidebar,
.bt-site .bt-pages .bt-account-story,
.bt-site .bt-course-detail .bt-detail-sidebar { top: calc(var(--bt-header-height) + 24px); }
@media (min-width: 1100px) {
    .bt-site .bt-course-detail .bt-enrolment-card { top: calc(var(--bt-header-height) + 24px); }
}

.bt-footer { padding: 56px 0 0; color: var(--bt-slate); background: #fff; border-top: 1px solid var(--bt-line); }
.bt-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.05fr 1.05fr; gap: 44px; padding-bottom: 44px; }
.bt-footer-brand .bt-brand { margin-bottom: 21px; }
.bt-footer-brand p { max-width: 340px; margin: 0 0 20px; color: var(--bt-slate); font-size: 14px; line-height: 1.8; }
.bt-footer-contact { display: inline-flex; align-items: center; gap: 7px; color: var(--bt-blue); font-size: 13px; line-height: 1.6; word-break: break-word; }
.bt-footer-contact:hover { color: var(--bt-blue-dark); }
.bt-footer-column h2 { margin: 3px 0 18px; color: var(--bt-navy); font-size: 15px; line-height: 1.5; font-weight: 800; }
.bt-footer-column ul { margin: 0; padding: 0; list-style: none; }
.bt-footer-column li { margin: 0 0 10px; padding: 0; }
.bt-footer-column a { color: var(--bt-slate); font-size: 14px; line-height: 1.7; }
.bt-footer-column a:hover { color: var(--bt-blue); text-decoration: underline; text-underline-offset: 4px; }
.bt-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 23px 0; border-top: 1px solid var(--bt-line); }
.bt-footer-bottom p { margin: 0; color: #758499; font-size: 12px; line-height: 1.7; }
.bt-footer-bottom .bt-footer-tagline { color: var(--bt-blue); font-size: 13px; font-weight: 700; }

@media (max-width: 1279px) and (min-width: 761px) {
    :root { --bt-header-height: 130px; }
    .bt-container { width: calc(100% - 48px); }
    .bt-header-main { grid-template-columns: auto minmax(200px,1fr) auto; gap: 15px 24px; padding-bottom: 0; }
    .bt-header-search { grid-column: 2; grid-row: 1; }
    .bt-header-actions { grid-column: 3; grid-row: 1; }
    .bt-nav-panel { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #edf2f9; }
    .bt-nav { gap: 32px; }
    .bt-nav > a, .bt-nav summary { padding-block: 14px; font-size: 13px; }
    .bt-dropdown { top: 100%; }
    .bt-footer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; }
    .bt-footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: start; gap: 28px; }
    .bt-footer-brand p { flex: 1 1 280px; max-width: 460px; margin: 0; }
    .bt-footer-brand .bt-brand { margin: 0; }
}
@media (max-width: 760px) {
    :root { --bt-header-height: 65px; }
    .bt-container { width: calc(100% - 32px); }
    .bt-header-main { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 0 8px; min-height: 64px; padding: calc(10px + env(safe-area-inset-top,0px)) 0 10px; }
    .bt-header .bt-brand { min-width: 0; gap: 7px; }
    .bt-header .bt-brand-label { font-size: 18px; letter-spacing: -.45px; }
    .bt-header .bt-brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
    .bt-header .bt-brand-tagline { font-size: 8px; margin-top: 2px; }
    .bt-header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 44px; margin-top: 10px; }
    .bt-js .bt-header-search { display: none; }
    .bt-js .bt-header.is-search-open .bt-header-search { display: flex; }
    .bt-header-search input { font-size: 16px; padding-left: 13px; }
    .bt-header-search button { flex-basis: 44px; }
    .bt-autocomplete-results { min-width: 0; }
    .bt-header-actions { display: none; }
    .bt-js .bt-menu-toggle, .bt-js .bt-mobile-search-toggle { display: inline-flex; align-items: center; justify-content: center; grid-row: 1; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bt-line); border-radius: 10px; color: var(--bt-navy); background: #fff; cursor: pointer; }
    .bt-js .bt-menu-toggle { grid-column: 3; }
    .bt-js .bt-mobile-search-toggle { grid-column: 2; }
    .bt-mobile-search-toggle[aria-expanded="true"] { border-color: #b5d2fa; color: var(--bt-blue); background: #edf5ff; }
    .bt-menu-toggle[aria-expanded="true"] .bt-menu-icon { display: none; }
    .bt-menu-toggle[aria-expanded="true"] .bt-close-icon { display: block; }
    .bt-nav-panel { grid-column: 1 / -1; grid-row: 3; width: 100%; border-top: 1px solid var(--bt-line); }
    .bt-js .bt-nav-panel { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--bt-header-height)); max-height: calc(100dvh - var(--bt-header-height)); padding: 8px 16px calc(16px + env(safe-area-inset-bottom,0px)); overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: 0 16px 30px rgba(7,37,72,.12); }
    .bt-js .bt-nav-panel:not(.is-open) { display: none; }
    .bt-nav-inner { display: block; padding: 4px 0 7px; }
    .bt-nav { display: block; }
    .bt-nav > a, .bt-nav summary { display: flex; width: 100%; justify-content: space-between; padding: 14px 2px; font-size: 14px; }
    .bt-nav > a { justify-content: flex-start; gap: 10px; }
    .bt-nav-disclosure { border-bottom: 1px solid #edf2f9; }
    .bt-chevron { width: 13px; height: 13px; }
    .bt-dropdown { position: static; width: 100%; margin-bottom: 10px; padding: 15px; border-radius: 7px; box-shadow: none; }
    .bt-dropdown-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .bt-menu-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; max-height: 370px; }
    .bt-menu-course-group li a { font-size: 13px; }
    .bt-resources-dropdown, .bt-more-dropdown { max-height: 320px; padding: 6px; }
    .bt-resources-dropdown a, .bt-more-dropdown a { font-size: 14px; }
    .bt-mobile-actions { display: flex; gap: 12px; margin-top: 12px; padding-top: 15px; border-top: 1px solid var(--bt-line); }
    .bt-mobile-actions .bt-btn { flex: 1; font-size: 13px; }
    .bt-footer { padding-top: 40px; }
    .bt-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; padding-bottom: 34px; }
    .bt-footer-brand { grid-column: 1 / -1; }
    .bt-footer-brand p { max-width: 450px; font-size: 14px; }
    .bt-footer-column h2 { font-size: 14px; margin-bottom: 15px; }
    .bt-footer-column a, .bt-footer-contact { font-size: 13px; }
    .bt-footer-bottom { display: block; padding-block: 18px; }
    .bt-footer-bottom p { font-size: 12px; margin-bottom: 7px; }
}
@media (max-width: 380px) {
    .bt-header .bt-brand-label { font-size: 16px; }
    .bt-header .bt-brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
    .bt-menu-course-grid { grid-template-columns: 1fr; }
    .bt-footer-grid { gap: 25px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .bt-btn, .bt-chevron { transition: none; }
    .bt-site .wow { animation: none !important; }
}
