<?php
require_once __DIR__ . '/includes/functions.php';
$currentPage = 'test-preparation';
$programs = db()->query("SELECT * FROM test_preparations WHERE status = 'active' ORDER BY sort_order")->fetchAll();
$pageSeoTitle = 'Test Preparation';
$pageSeoDescription = 'IELTS, TOEFL, SAT, PTE, GRE, GMAT preparation programs.';
require __DIR__ . '/partials/header.php';
?>
<section class="page-banner relative py-24 md:py-32 overflow-hidden">
<div class="max-w-7xl mx-auto px-6 relative z-10 text-center" data-aos="fade-up">
<span class="inline-block px-4 py-1.5 rounded-full bg-brand-gold/20 border border-brand-gold text-brand-gold text-xs font-semibold mb-5">Test Preparation</span>
<h1 class="text-white font-heading font-extrabold text-3xl md:text-5xl leading-tight mb-4">Programs That Get Results</h1>
<p class="text-gray-300 max-w-2xl mx-auto">Structured classes, expert instructors, and proven strategies for every major standardized test.</p>
</div>
</section>
<section class="py-20">
<div class="max-w-7xl mx-auto px-6">
<div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
<?php $colors = ['red','green','gold']; foreach ($programs as $i => $p): $c = $colors[$i % 3]; ?>
<a href="test-preparation-<?= e($p['slug']) ?>.php" class="card-hover bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-sm border-t-4 border-brand-<?= $c ?>" data-aos="fade-up" data-aos-delay="<?= $i * 80 ?>">
<div class="w-16 h-16 rounded-full bg-brand-<?= $c ?>/10 flex items-center justify-center font-heading font-extrabold text-brand-<?= $c ?> mb-5"><?= e($p['name']) ?></div>
<h3 class="font-heading font-bold text-lg mb-2"><?= e($p['name']) ?></h3>
<p class="text-sm text-gray-500 dark:text-gray-400 mb-4"><?= e($p['full_name']) ?></p>
<span class="text-brand-red text-sm font-semibold">View Program <i class="fa-solid fa-arrow-right ml-1"></i></span>
</a>
<?php endforeach; ?>
</div>
</div>
</section>
<?php require __DIR__ . '/partials/footer.php'; ?>