.course-list-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}
.course-list-buttons>* {
    margin-top: 5px;
}

.course-list-buttons > label {
    background-color: #f5f5f5;
    height:35px;
    border-radius: 5px;
    margin-right: 20px;
    box-sizing: border-box;
    display:flex;
    flex-direction: row;
    align-items: center;
    padding-left: 7px;
    padding-right: 3px;
    margin-bottom: 0;
}

#enable-free-mode {
    height: 42px;
}

.course-list-buttons > label > i {
    padding-right: 7px;
}
.course-list-buttons > label > i.less-margin {
    padding-right: 5px;
}
.course-list-buttons > label > button {
    height: 25px;
    line-height: 20px;
}
.course-list-buttons > label > span {
    margin-right: 10px;
}
.course-list-buttons > label > input.ace-switch+.lbl {
    margin-top: 2px;
}
.course-list-buttons > label > input.search-query {
    height: 16px;
    line-height: 15px;
    padding: 4px;
    margin-right: 10px;
}
.course-list-buttons > label > input:checked+.lbl:before{
    background-color: #6fb3e0;
}

/* COURSE BOXES */

#course-list-container.reordering .widget-box{
    animation: course-list-tremble 300ms ease-in-out infinite;
}

.course-box.future-course .widget-main {
    color: #717171;
}
.course-box.future-course img {
    filter: brightness(1.1) saturate(0);
}
.course-box.future-course .widget-header {
    background-color: #bdbdbd;
}
.course-box.future-course {
    border-color: #bdbdbd;
}

.course-box.bonus-course  {
    position: relative;
    border: 3px solid #fcc45c;
    animation: glow-border 1s infinite alternate;
    z-index: 1;
    border-radius: 0.9rem;
}

.bonus-tag {
    position: absolute;
    top: -14px;
    right: -14px;
    background: var(--corporate-purple);
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    box-shadow: 0 0 15px rgba(110, 55, 140, 0.85);
    animation: floatTag 1s ease-in-out infinite alternate;
    cursor: pointer;
    z-index: 2;
}

.course-box.bonus-course .popover{
    box-shadow: 0 0 4px 2px rgba(128,0,128,0.2);
    border-color: var(--corporate-purple);
}
.course-box.bonus-course .popover .arrow{
    border-left-color: var(--corporate-purple);
}

.course-box {
    flex-basis: 22%;
    max-width: 30%;
    width: 30%;
    margin-bottom:20px;
    margin-right:1.8rem;
    border-radius: 0.8rem;
    border: 1px solid #4ebc30;
    background-color: #fff;
    transition: max-width 1s, flex-basis 1s, transform 0.35s ease, box-shadow 0.35s ease;
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
}

.course-box.completed {
    border-color: #848484;
}

.course-box:hover {
    text-decoration: none;
}

.course-box:not(.future-course):hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.course-box .widget-header {
    background: #4ebc30;
    border: none;
    border-top-left-radius: 0.73rem;
    border-top-right-radius: 0.73rem;
    flex: 0 0 auto;
}

.course-box .widget-main {
    flex: 1 1 auto;
    padding: 8px 6px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.course-box.completed .widget-header {
    background: #848484;
}
.course-box .progress {
    margin-bottom: 5px;
    background-color: #e7e7e7 !important;
    height: 23px;
    border-radius: 5px;
}
.course-box .progress .bar {
    background-color: #4ebc30;
}
.course-box .progress::after {
    line-height: 21px;
    color: #2c2c2c;
    font-weight: bold;
}

.course-box .badge {
    color: #2c2c2c;
    background-color: #e7e7e7 !important;
}

.course-box .course-image-container {
    position: relative;
    aspect-ratio: 590 / 276; /* aspect ratio of almost all course images */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-box .course-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    background-color: white;
}

@keyframes glow-border {
    from {
        box-shadow: 0 0 10px #fcc45c;
    }
    to {
        box-shadow: 0 0 30px #fcc45c;
    }
}

@keyframes floatTag {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-5px);
    }
}

@keyframes course-list-tremble {
    0% {transform: rotate(-0.5deg)}
    50% {transform: rotate(0.5deg)}
    100% {transform: rotate(-0.5deg)}
}

@media only screen and (max-width:767px) {
    .course-box {
        flex-basis: 100%;
        max-width: 100%;
        margin:20px;
    }
}
/* At the bottom since it needs to affect mobile to */
.course-box.hidden {
    max-width: 0%;
}
