/* Related courses display in single line */
#relatedCourses .owl-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

#relatedCourses .owl-carousel .owl-stage {
    display: flex;
    width: 100% !important;
}

#relatedCourses .owl-carousel .owl-item {
    flex: 0 0 auto;
    width: auto;
    margin-right: 15px;
}

#relatedCourses .owl-carousel .item {
    width: 100%;
}

/* Hide scrollbar but keep functionality */
#relatedCourses .owl-carousel::-webkit-scrollbar {
    display: none;
}

#relatedCourses .owl-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ensure equal card widths */
#relatedCourses .card {
    width: 300px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-input:checked + .toggle-label {
    background-color: #2196F3;
}

.toggle-input:focus + .toggle-label {
    box-shadow: 0 0 1px #2196F3;
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(26px);
}
