html {
    scroll-behavior: smooth;
    scroll-padding-top: 10rem;
}

.search-hero {
    padding-top: 5rem;
    height: calc(100vh - 7.9rem - 1rem);
}
.search-hero-content {
    margin-inline: auto;
    max-width: 65rem;
}
.search-hero-icon {
    height: 10rem;
}
.search-hero-title {
    margin-block: 1rem 2rem;
    font-size: var(--bc-fs-900);
    color: var(--bc-clr-primary-400);
}
.search-hero-input {
    transition: width 0s;
}
.search-hero-input::before {
    content: "";
    background: linear-gradient(var(--bc-clr-dark-900), transparent);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: -1;
    height: 0;
    animation: lessons_search_hero_input-scroll-out .3s forwards;
}
.search-hero-input.scrolled {
    position: fixed;
    top: 2rem;
    z-index: 2;
    isolation: isolate;
    width: 65rem;
}
.search-hero-input.scrolled::before {
    animation: lessons_search_hero_input-scroll-in .3s forwards;
}
.search-hero-go {
    margin-block: auto;
    height: fit-content;
    line-height: 0;
    font-size: var(--bc-fs-700);
    color: var(--bc-clr-secondary-400);
    transition: .3s ease-in-out;
}
.search-hero-go:hover {
    scale: 1.25;
}
.search-hero-links {
    margin-top: 1rem;
    color: var(--bc-clr-text-800);
}
.search-hero-links a {
    font-weight: 400;
    color: var(--bc-clr-text-100);
    transition: .3s;
}
.search-hero-links a:hover {
    text-decoration: none;
    color: var(--bc-clr-secondary-400);
}

@keyframes lessons_search_hero_input-scroll-in {
    from {height: 0}
    to {height: 10rem}
}
@keyframes lessons_search_hero_input-scroll-out {
    from {height: 10rem}
    to {height: 0}
}

.search-results-header {
    margin-bottom: 2rem;
}
.search-results-count {
    margin-right: 1rem;
    font-size: var(--bc-fs-300);
    font-weight: 300;
    color: var(--bc-clr-text-800);
}
.search-filter-button {
    background: var(--bc-clr-dark-800);
    border: none;
    border-radius: .5rem;
    padding: 1rem;
}
.search-filter-button:is(:hover, :focus-visible) {
    background: var(--bc-clr-dark-900);
}

.search-results:empty::after {
    margin-block: 4rem;
    grid-column: 1 / -1;
    text-align: center;
    font-family: var(--bc-ff-heading);
    font-size: var(--bc-fs-800);
    color: var(--bc-clr-text-600);
}
.search-results.loading:empty::after {
    content: "Loading Lessons...";
    animation: lessons_search_results_loading-loading 3s infinite alternate;
}
.search-results:not(.loading):empty::after {
    content: "No Lessons Found :(";
}

@keyframes lessons_search_results_loading-loading {
    0% {content: "Loading Lessons ..."}
    50% {content: "Loading Lessons .."}
    100% {content: "Loading Lessons ."}
}
@media (max-width: 650px) {
    .search-results.search-results.search-results.search-results {
        grid-template-columns: 1fr;
    }
}

.lesson-item {
    background: var(--bc-clr-dark-400);
    border-radius: 1rem;
    padding: 1rem;
}
.lesson-title {
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--bc-fs-700);
    font-family: var(--bc-ff-heading);
    font-weight: 800;
    color: var(--bc-clr-primary-400);
    overflow: hidden;
}
.lesson-title a {
    font: inherit;
    color: inherit;
}
.lesson-date {
    font-size: var(--bc-fs-300);
    color: var(--bc-clr-text-100);
}
.lesson-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    text-overflow: ellipsis;
    overflow: hidden;
}

.lesson-author-avatar {
    border-radius: 100%;
    height: 4rem;
    aspect-ratio: 1 / 1;
}
.lesson-author-displayname {
    margin: 0;
    line-height: 1;
    font-size: var(--bc-fs-500);
    font-weight: 600;
    color: var(--bc-clr-primary-400);
}
.lesson-author-username {
    line-height: 1;
    font-size: var(--bc-fs-300);
    color: var(--bc-clr-text-600);
}

.lesson-stats {
    gap: .25rem;
    color: var(--bc-clr-text-100);
}
.lesson-stats br {
    margin-inline: .75rem;
}
.lesson-stats i {
    color: var(--bc-clr-text-600);
}
.lesson-stats .bx-downvote {
    color: var(--bc-clr-danger-400);
}
.lesson-stats .bx-upvote {
    color: var(--bc-clr-success-400);
}