The rich children could afford to get a private education (private tutors), although children in general learned how to read and write. Boys had the most opportunities. Girls would rarely go to school and usually got married off at a young age.
Union soldiers were fighting for the freedom of slaves and reuniting the states. Confederate soldiers fought for protecting the confederacy. Yes, it did change over the war.