Admissions comparing grades then vs. now

I started out in community college six years ago. My first three or four semesters were awful. I got mostly C’s and D’s and was very unfocused. I wasn’t sure what I wanted to do major wise. After my fourth semester, I got it together, figured out what I wanted to do, and left CC with a 2.6 gpa, and currently get nothing but A’s and one B as well as hold a 3.7 at my four year university. I want to go to a top grad school for International Relations/ foreign policy but I am afraid that grad schools will look unfavorably at my past grades. The overwhelming majority of my bad grades came in math and science courses and I actually am taking a science course (Oceanography) which I am struggling in at the moment. I get really good marks in anything International relations or sociology related. Will grad schools take stock of math/science courses that I did poorly in or will they be more concerned with my current success in classes actually related to my major??