body.learnhub-page {
    margin: 0;
    background: #070d1c;
}
html.learnhub-page,
body.learnhub-page {
    background: #070d1c;
}
body.admin-bar .hkps-learnhub { min-height: calc(100vh - 32px); }
.hkps-learnhub {
    --lh-blue: #1d69e9;
    --lh-muted: #a5b1c6;
    color: #eef4ff;
    background: #070d1c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.hkps-learnhub *, .hkps-learnhub *::before, .hkps-learnhub *::after { box-sizing: border-box; }
.hkps-learnhub a { color: inherit; text-decoration: none; }
.hkps-learnhub a:hover { color: #5fe5f4; }
.hkps-learnhub h1, .hkps-learnhub h2, .hkps-learnhub h3 { color: #f7f9ff; margin: 0; line-height: 1.3; }
.lh-header { min-height: 68px; padding: 14px 4%; display: flex; align-items: center; gap: 48px; border-bottom: 1px solid #1b2538; background: #090f1d; }
.lh-brand { font-size: 17px; font-weight: 700; white-space: nowrap; }
.lh-brand strong { margin-left: 8px; }
.lh-mark { color: #30d9ef; font-weight: 800; font-size: 22px; }
.lh-header nav { display: flex; gap: 28px; color: #aeb8c9; font-size: 14px; }
.lh-header-button { margin-left: auto; }
.hkps-learnhub .lh-button { display: inline-block; border: 0; border-radius: 6px; padding: 11px 22px; background: var(--lh-blue); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.hkps-learnhub .lh-button:hover { background: #3180f3; color: #fff; }
.lh-hero { position: relative; /*min-height: 300px;*/ display: flex; align-items: center; padding: 28px 6%; background: linear-gradient(90deg, #071121 0%, rgba(5, 15, 32, .94) 35%, rgba(6, 18, 38, .52) 100%), url("image/codingWallpaper.jpg") center 48% / cover; }
.lh-hero-content { max-width: 1550px; position: relative; }
.lh-eyebrow { color: #6edfeb; font-size: 18px; font-weight: 700; letter-spacing: .14em; margin: 0px; }
.lh-hero h1 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -.03em; }
.lh-hero h1 span { color: #40e5ef; }
.lh-hero-content > p:not(.lh-eyebrow) { color: #b6c1d3; margin: 14px 0 22px; }
.lh-main { max-width: 1440px; margin: 10px auto; padding: 32px 4% 64px; }
.lh-filters { display: flex; gap: 9px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid #1b2538; }
.lh-filters a { padding: 7px 15px; border-radius: 20px; color: #b5c1d2; font-size: 14px; }
.lh-filters a.is-active, .lh-filters a:hover { background: var(--lh-blue); color: white; }
.lh-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 32px 0 20px; }
.lh-section-heading h2 { font-size: 25px; }
.lh-search { display: flex; width: min(100%, 380px); }
.lh-search input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #26334a; border-radius: 6px 0 0 6px; color: #fff; background: #101a2b; }
.lh-search button { padding: 10px 16px; border: 0; border-radius: 0 6px 6px 0; color: white; background: #1d69e9; cursor: pointer; white-space: nowrap; }
.lh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lh-card, .lh-lesson, .lh-syllabus { background: #111a2a; border: 1px solid #222e42; border-radius: 9px; overflow: hidden; }
.lh-card-image { display: flex; align-items: center; justify-content: center; /*aspect-ratio: 16 / 9; */ background: linear-gradient(135deg, #112c4b, #101627); color: #4bcddd !important; font-size: 42px; }
.lh-card-image img { width: 100%; height: 100%; object-fit: cover; }
.lh-card-body { padding: 18px; }
.lh-tag { display: inline-block; color: #62ddeb; font-size: 12px; margin-bottom: 8px; }
.lh-card h3 { font-size: 18px; }
.lh-card p { color: var(--lh-muted); font-size: 14px; }
.lh-views { margin: 8px 0 0; color: var(--lh-muted); font-size: 13px; }
.lh-card-link { color: #66d9ee !important; font-size: 13px; font-weight: 700; }
.lh-pagination { display: flex; justify-content: center; gap: 24px; margin-top: 32px; }
.lh-empty { color: var(--lh-muted); padding: 20px 0; }
.lh-back { display: inline-block; color: #7ec9ff !important; margin-bottom: 24px; }
.lh-course-heading { margin-bottom: 28px; }
.lh-course-heading h1 { font-size: clamp(28px, 4vw, 42px); }
.lh-description { color: #bdc9d9; overflow-wrap: anywhere; }
.lh-description p { margin: 12px 0; }
.lh-description img { max-width: 100%; height: auto; cursor: zoom-in; }
.lh-description img:focus { outline: 2px solid #40e5ef; outline-offset: 3px; }
.lh-image-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; }
.lh-image-modal[hidden] { display: none; }
.lh-image-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 20, .86); }
.lh-image-modal-figure { position: relative; z-index: 1; max-width: min(1100px, 100%); margin: 0; }
.lh-image-modal-image { display: block; max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); cursor: zoom-out; }
.lh-image-modal-caption { margin: 10px 0 0; color: #d5deec; text-align: center; font-size: 14px; }
.lh-image-modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #111a2a; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lh-image-modal-close:hover, .lh-image-modal-close:focus { background: #1d69e9; color: #fff; outline: 2px solid #40e5ef; outline-offset: 2px; }
body.lh-image-modal-open { overflow: hidden; }
.lh-course-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 22px; align-items: start; }
.lh-lesson, .lh-syllabus { padding: 24px; }
.lh-lesson h2, .lh-syllabus h2 { font-size: 21px; margin-bottom: 16px; }
.lh-lesson .lh-button { margin-top: 12px; }
.lh-lesson a { color: #6fcfff; }
.lh-video { margin: 16px 0; }
.lh-video iframe, .lh-video video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.lh-syllabus p { color: var(--lh-muted); font-size: 14px; }
.lh-syllabus ol, .lh-syllabus ul { list-style: none; padding: 0; margin: 0; }
.lh-syllabus li { color: var(--lh-muted); border-top: 1px solid #26334a; }
.lh-syllabus li a { display: grid; grid-template-columns: minmax(4.5em, auto) minmax(0, 1fr) 1.25em; align-items: center; column-gap: 12px; min-height: 48px; padding: 10px 4px; }
.lh-syllabus .lh-lesson-note { text-align: left; overflow-wrap: anywhere; }
.lh-syllabus .lh-done { justify-self: center; line-height: 1; }
.lh-syllabus li a.is-active { color: #64e1ec; }
.lh-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: auto; padding: 22px 4%; border-top: 1px solid #1b2538; color: var(--lh-muted); font-size: 13px; }
.lh-footer strong { color: white; margin-left: 8px; }
.lh-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; }
@media (max-width: 800px) {
    .lh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lh-course-layout { grid-template-columns: 1fr; }
    .lh-header { gap: 20px; }
    .lh-video iframe, .lh-video video { aspect-ratio: 1 / 1; }
    .lh-lesson, .lh-syllabus { padding: 24px 5px; }
    .lh-main { margin: 2px auto; padding: 5px; }
}
@media (max-width: 520px) {
    .lh-header { flex-wrap: wrap; }
    .lh-header nav { margin-left: auto; }
    .lh-header-button { display: none !important; }
    .lh-hero { min-height: 280px; padding: 40px 5%; }
    .lh-section-heading { align-items: stretch; flex-direction: column; }
    .lh-grid { grid-template-columns: 1fr; }
    .lh-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 782px) {
    body.admin-bar .hkps-learnhub { min-height: calc(100vh - 46px); }
}
