Improved the logic for project-card data hidden fields