I have hit what seems to be a contradiction concerning entropy.
In my class, we measured the entropy change of photosynthesis which is obviously a non-spontaneous process. We used the formula, $$\Delta S_{universe}=\Delta S_{system} +\Delta S_{surroundings}.$$ For this process, we found that the entropy change of the universe was negative. That makes sense, but, I was told that for an isolated system, the entropy change of the universe is always greater than or equal to 0.
So I seem to have hit a contradiction because we can think of the universe as an isolated system, so the entropy change for the universe must always be greater than or equal to 0, but for the photosynthesis process, we found the entropy change of the universe to be negative.
My question is, when can the entropy change of the universe be negative and positive, as we consider the universe to be an isolated system.
If you want to know how we calculated the entropy change of the universe for this process, it is below:
We found the entropy change of the universe for the photosynthesis process to be negative. So here is the chemical reaction. $$6CO_2 +6 H_2O\to C_6H_{12}O_6 + 6O_2.$$ To find the entropy change of the system, we took the standard entropy changes of products minus reactants and got -262 J/mol K. Now this process is at constant pressure, so for the entropy change on the surroundings, we can use the heat of the system, which is equal to the enthalpy change of the system is also equal to the negative of the enthalpy change of the surroundings. We found $\Delta S_{surr}=-9398$ J/mol K. So the sum is -9.66 kJ/mol K