Render Flow - Importance of order
Parse CSS file
Read rules in order
Apply styles to elements
If conflict, later rule overrides earlier
Calculate final styles
Layout and paint
The browser reads CSS rules from top to bottom. When two rules target the same element and property, the one that comes later in the CSS wins and changes the visual style.