

<?php $__env->startSection('content'); ?>
<section class="relative overflow-hidden py-20">
  
  <div class="absolute inset-0 bg-gradient-to-b from-blue-50 via-white to-purple-50"></div>

  
  <div class="absolute top-10 left-[-50px] w-72 h-72 bg-blue-200 rounded-full mix-blend-multiply filter blur-3xl opacity-30 animate-pulse"></div>
  <div class="absolute bottom-10 right-[-50px] w-72 h-72 bg-purple-200 rounded-full mix-blend-multiply filter blur-3xl opacity-30 animate-pulse"></div>

  <div class="relative max-w-6xl mx-auto px-6">
    <h2 class="text-3xl text-[#0A0A78] md:text-4xl font-bold mb-12 text-center">
      Artikel & Blog Terbaru
    </h2>

    
    <div class="grid gap-10">
      <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="group relative flex flex-col md:flex-row rounded-2xl overflow-hidden shadow-xl hover:shadow-2xl transition bg-white/80 backdrop-blur">
          
          
          <div class="md:w-1/2 relative overflow-hidden">
            <img src="<?php echo e($post['thumbnail']); ?>" 
                 alt="<?php echo e($post['title']); ?>" 
                 class="w-full h-64 md:h-full object-cover group-hover:scale-110 transition duration-700">
            <div class="absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-transparent"></div>
            <span class="absolute bottom-4 left-4 bg-blue-600 text-white text-xs font-semibold px-3 py-1 rounded-full shadow">
              <?php echo e($post['category']['name'] ?? 'Umum'); ?>

            </span>
          </div>

          
          <div class="md:w-1/2 p-8 flex flex-col justify-center relative z-10">
            
            <h3 class="text-2xl font-bold mb-2 group-hover:text-blue-600 transition">
              <?php echo e($post['title']); ?>

            </h3>

            
            <p class="text-sm text-gray-500 mb-3">
              <?php echo e(\Carbon\Carbon::parse($post['created_at'])->translatedFormat('d F Y')); ?>

            </p>

            
            <p class="text-gray-700 mb-4 leading-relaxed">
              <?php echo e(\Illuminate\Support\Str::limit($post['excerpt'], 150)); ?>

            </p>

            
            <a href="<?php echo e(route('blog.show', $post['slug'])); ?>" 
               class="inline-block text-blue-600 font-medium hover:underline mt-auto">
              Baca Selengkapnya →
            </a>
          </div>

        </div>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

  </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\ampj\laravel\ampj-web\resources\views/blog/index.blade.php ENDPATH**/ ?>