<?php $site_name = "{{DOMAIN}}"; ?>
<!DOCTYPE html>
<html lang="vi">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Blog - <?=$site_name?></title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
</head>
<body>
    <nav class="bg-white shadow-lg">
        <div class="max-w-7xl mx-auto px-4">
            <div class="flex justify-between items-center h-16">
                <div class="flex items-center">
                    <span class="text-2xl font-bold text-indigo-600">📝 Blog</span>
                    <span class="ml-2 text-gray-500"><?=$site_name?></span>
                </div>
                <div class="flex space-x-4">
                    <a href="#" class="text-gray-700 hover:text-indigo-600">Trang chủ</a>
                    <a href="#" class="text-gray-700 hover:text-indigo-600">Bài viết</a>
                    <a href="#" class="text-gray-700 hover:text-indigo-600">Giới thiệu</a>
                    <a href="#" class="text-gray-700 hover:text-indigo-600">Liên hệ</a>
                </div>
            </div>
        </div>
    </nav>
    <div class="max-w-7xl mx-auto px-4 py-12">
        <div class="text-center">
            <h1 class="text-4xl font-bold text-gray-800 mb-4">📝 Blog <?=$site_name?></h1>
            <p class="text-gray-600 mb-8">Chia sẻ kiến thức và kinh nghiệm</p>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mt-8">
            <?php for($i=1; $i<=4; $i++): ?>
            <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl transition">
                <div class="h-48 bg-gradient-to-r from-indigo-100 to-purple-100 flex items-center justify-center">
                    <span class="text-6xl">📄</span>
                </div>
                <div class="p-4">
                    <h3 class="font-bold text-lg">Bài viết <?=$i?></h3>
                    <p class="text-gray-500 text-sm">Mô tả bài viết <?=$i?></p>
                    <div class="flex justify-between items-center mt-4">
                        <span class="text-sm text-gray-400"><i class="fa-regular fa-clock"></i> 2 phút đọc</span>
                        <a href="#" class="text-indigo-600 hover:text-indigo-800 font-semibold">Đọc thêm →</a>
                    </div>
                </div>
            </div>
            <?php endfor; ?>
        </div>
    </div>
    <footer class="bg-gray-800 text-white py-8 mt-12">
        <div class="max-w-7xl mx-auto px-4 text-center">
            <p>© <?=date('Y')?> <?=$site_name?>. All rights reserved.</p>
        </div>
    </footer>
</body>
</html>