2012 ford focus sedan

So I just got this car and the dome and map lights won't turn on at night when I open the car door. It's very inconvenient, if someone knows what to do if really appreciate it. Like they stay off when I open the door, and it has 2 buttons (one has a sun icon and the other says "off")… Please help!

Generally, these interior lights have 3 setting:

Permanently on, permanently off, and while opening the (front) doors. Check you setting.

Inside each door is a small switch that tells the lighting computer when the door is open. It's usually back by the door latch. One of those is either broken in the OPEN position or just out-of-alignment.

Normal operation of the battery saver feature in your car. When the body control module detects any door open for 10 minutes or longer it will turn off interior lights.