<?php
// Quick check: render website/courses.php (region=usa) and confirm course-content exists
$_GET['region'] = 'usa';
ob_start();
include __DIR__ . '/website/courses.php';
$html = ob_get_clean();
$foundContent = stripos($html, '<div class="course-content">') !== false;
$foundTitle = stripos($html, 'Security Foundation') !== false;
header('Content-Type: application/json');
echo json_encode([
    'course_content_present' => $foundContent,
    'contains_security_foundation' => $foundTitle,
    'snippet' => substr($html, strpos($html, '<div class="course-content">'), 300)
]);
