/* Horizontal instructor recommendations with clear desktop controls. */
.other_insturctor_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.other_insturctor_head h4 {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 18px;
}

.other_instructor_controls {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.other_insturctor_sec.has-instructor-overflow .other_instructor_controls {
    display: flex;
}

.other_instructor_scroll_button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dedbea;
    border-radius: 50%;
    background: #fff;
    color: #292465;
    box-shadow: 0 2px 8px rgba(37, 32, 82, 0.08);
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, opacity .16s ease;
}

.other_instructor_scroll_button:hover:not(:disabled) {
    border-color: #f4a640;
    background: #fff8ed;
}

.other_instructor_scroll_button:focus-visible {
    outline: 2px solid #f4a640;
    outline-offset: 3px;
}

.other_instructor_scroll_button:disabled {
    cursor: default;
    opacity: .38;
}

.other_instructor_chevron {
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.other_instructor_chevron--previous {
    transform: translateX(2px) rotate(-135deg);
}

.other_instructor_chevron--next {
    transform: translateX(-2px) rotate(45deg);
}

.other_insturctor_sec .insturctor_suggested_list {
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 32px;
    overscroll-behavior-x: contain;
    scroll-padding-left: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.other_insturctor_sec .suggested_instructor_box {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (max-width: 767px) {
    .other_instructor_controls {
        display: none !important;
    }

    .other_insturctor_head h4 {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .other_insturctor_sec .insturctor_suggested_list {
        scroll-behavior: auto;
    }
}
