<?php
$files = [
  'cloud-computing/microsoft-azure-fundamentals-training.php',
  'project-management/capm-certification-training.php',
  'project-management/pmp-certification-training.php',
  'data-science/data-science-with-python-certification-training.php',
  'data-science/generative-ai-and-prompt-engineering-course.php',
  'data-science/applied-agentic-ai-certification-course.php',
  'data-science/ai-product-management-course.php',
  'cyber-security/cissp-certification-training.php'
];

foreach ($files as $file) {
  if (file_exists($file)) {
    $content = file_get_contents($file);
    if (strpos($content, '<div <style>') !== false) {
      $content = str_replace('<div <style>', '<div><style>', $content);
      file_put_contents($file, $content);
      echo "Fixed markup in $file\n";
    } else {
      echo "No markup fixes needed in $file\n";
    }
  } else {
    echo "File not found: $file\n";
  }
}
