C drive can be extended only when unallocated space is next to it on the right. If another partition is in between, move that partition first.

Do not delete a recovery or data partition just to make space unless you have confirmed it is unnecessary and backed up its contents.
Windows cannot move partitions in Disk Management. If a data, OEM, or recovery partition sits between C drive and unallocated space, move that partition first and then extend C drive.
Open Qiling Disk Master and check the system disk from left to right. Find C drive, then identify the partition between C drive and the unallocated space. Back up that partition if it contains data.

Select the blocking partition and choose Resize/Move. Drag the entire partition to the right side, so the unallocated space moves directly behind C drive.

Check that no partition is being deleted and that the unallocated space will become adjacent to C drive. Click Proceed and wait for the move to finish.
Select C drive, choose Resize/Move, and drag its right border into the adjacent unallocated space. Leave enough free space if you still need another partition later.
Click Proceed. After Windows restarts, open File Explorer and Disk Management to confirm C drive shows the new size.
The key is partition order. C drive can be extended only after the unallocated space is placed directly to its right.