1–2, which ended up being the final score as Yugoslavia again lost at home to Spain. With his performance versus Spain, Halilhodžić's stock was somewhat raised and as a result he got to start the next qualifier away at Romania that Yugoslavia also lost, this time 2–3. The second consecutive qualifier loss prompted the end of Biće Mladinić's time as head coach – he got replaced by interim coach Dražan Jerković. Halilhodžić played the next friendly match under Jerković, scoring a hat-trick against Greece. The resumption of Euro 1980 qualifying five months later in April 1979 saw the return of Miljan Miljanić to the Yugoslav bench as the FA's permanent solution at the head coaching position. Miljanić made major changes to the team he inherited from Mladinić with Halilhodžić one of the many casualties. The changes worked as Yugoslavia won its remaining four qualifiers (including a win away at Spain) as well as its two friendlies versus Italy and Argentina (none of the six matches featured Halilhodžić), but the opening two losses still proved too much to overcome as Plavi finished a point behind Spain in the group and did not progress to Euro 1980. 1982 World Cup Halilhodžić made two substitute appearances at the 1982 World Cup: playing the last 15 minutes of the controversial group match versus Spain as well as the entire second half against Honduras. For the position of forward at the tournament, Miljanić preferred Safet Sušić, and in his later interviews, Halilhodžić often expressed dismay and disappointment with head coach Miljanić for not giving him a more prominent role in the Yugoslav team at the 1982 World Cup. On more than one occasion in the 2000s and 2010s, a retired Halilhodžić expressed bitterness over not getting a bigger part in the national team during the 1970s and 1980s, sarcastically citing "the fact my surname was too long for Belgrade scoreboards", thus insinuating that he feels the fact he is a Muslim may have been the reason for his modest playing time in the national team. Managerial career Raja Casablanca In July 1997, he signed with Moroccan side Raja Casablanca. In his first season with the club, he won the 1997 CAF Champions League in December 1997, and the 1997–98 Moroccan Championship in May 1998. These successes raised his international profile. Lille In October 1998, he returned to France to coach Lille, which at the time