<section class="py-20 bg-gray-100 overflow-x-hidden" x-data="{ showContent: false, slideWidth: 0, activeSlide: 0, slideCount: 3 }">
<div class="container mx-auto px-4">
<h2 class="mb-16 md:mb-24 text-4xl md:text-5xl font-bold font-heading">Latest Blog</h2>
<div :style="'transform: translateX(-' + slideWidth + 'px)'" class="mb-20 flex transition-transform duration-500 ease-in-out -m-3">
<div x-ref="slide1" class="flex-shrink-0 w-full max-w-3xl p-3">
<div class="relative">
<a class="absolute z-10 top-0 mt-80 right-0 m-5 px-8 py-2 bg-white rounded-md font-bold font-heading text-gray-400 hover:text-orange-300 uppercase tracking-widest" href="#">Summer</a>
<a class="relative block group" href="#">
<div class="relative h-96">
<img class="w-full h-96 object-cover object-top" src="yofte-assets/images/placeholder-surfboard-stands.png" alt="">
</div>
<div class="relative mt-12">
<div class="absolute top-0 h-44 px-px bg-blue-300 group-hover:bg-orange-300"></div>
<div class="px-12">
<h3 class="mb-8 text-3xl md:text-4xl font-bold font-heading">After curabitur eu laoreet libero eget en vel odio ultricies!</h3>
<span class="text-lg font-bold font-heading text-blue-300 uppercase">15 MAY 2021</span>
</div>
</div>
</a>
</div>
</div>
<div x-ref="slide2" class="flex-shrink-0 w-full max-w-3xl p-3">
<div class="relative">
<a class="absolute z-10 top-0 mt-80 right-0 m-5 px-8 py-2 bg-white rounded-md font-bold font-heading text-gray-400 hover:text-orange-300 uppercase tracking-widest" href="#">Summer</a>
<a class="relative block group" href="#">
<div class="relative h-96">
<img class="w-full h-96 object-cover object-top" src="yofte-assets/images/placeholder-girl.png" alt="">
</div>
<div class="relative mt-12">
<div class="absolute top-0 h-44 px-px bg-blue-300 group-hover:bg-orange-300"></div>
<div class="px-12">
<h3 class="mb-8 text-3xl md:text-4xl font-bold font-heading">Next year: one ultricies condimentum phare</h3>
<span class="text-lg font-bold font-heading text-blue-300 uppercase">14 MAY 2021</span>
</div>
</div>
</a>
</div>
</div>
<div x-ref="slide3" class="flex-shrink-0 w-full max-w-3xl p-3">
<div class="relative">
<a class="absolute z-10 top-0 mt-80 right-0 m-5 px-8 py-2 bg-white rounded-md font-bold font-heading text-gray-400 hover:text-orange-300 uppercase tracking-widest" href="#">Summer</a>
<a class="relative block group" href="#">
<div class="relative h-96">
<img class="w-full h-96 object-cover object-top" src="yofte-assets/images/placeholder-surfboard-stands.png" alt="">
</div>
<div class="relative mt-12">
<div class="absolute top-0 h-44 px-px bg-blue-300 group-hover:bg-orange-300"></div>
<div class="px-12">
<h3 class="mb-8 text-3xl md:text-4xl font-bold font-heading">Within aliquam erat volutpat ut pharetra sit amet aliquam id.</h3>
<span class="text-lg font-bold font-heading text-blue-300 uppercase">15 MAY 2021</span>
</div>
</div>
</a>
</div>
</div>
</div>
<div class="mb-20 flex-shrink-0 w-full">
<div class="w-full px-3 flex items-center justify-between">
<div class="relative mr-4 bg-gray-300 py-px w-full md:w-10/12">
<div class="absolute top-0 bottom-0 left-0 bg-yellow-600" :class="{ 'w-1/3': activeSlide == 0, 'w-2/3': activeSlide == 1, 'w-full': activeSlide == 2 }"></div>
</div>
<div class="ml-auto md:w-2/12 flex items-center justify-end">
<a x-on:click.prevent="activeSlide > 0 ? (activeSlide -= 1, slideWidth -= $refs['slide' + (activeSlide + 1)].offsetWidth) : null" class="mr-5 flex items-center justify-center w-12 h-12 bg-orange-300 hover:bg-orange-400 rounded-md" href="#">
<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.02344 5.99748L7.14844 10.1225L5.97043 11.3008L0.66742 5.99748L5.97043 0.694179L7.14844 1.87248L3.02344 5.99748Z" fill="white"></path>
</svg>
</a>
<a x-on:click.prevent="activeSlide < slideCount - 1 ? (activeSlide += 1, slideWidth += $refs['slide' + activeSlide].offsetWidth) : activeSlide = slideCount - 1" class="flex items-center justify-center w-12 h-12 bg-blue-300 hover:bg-blue-400 rounded-md" href="#">
<svg width="8" height="12" viewBox="0 0 8 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.97656 6.00252L0.851562 1.87752L2.02957 0.699219L7.33258 6.00252L2.02957 11.3058L0.851562 10.1275L4.97656 6.00252Z" fill="white"></path>
</svg>
</a>
</div>
</div>
</div>
<a x-on:click.prevent="showContent = true" :class="{'hidden': showContent}" class="inline-block bg-orange-300 hover:bg-orange-400 text-white font-bold font-heading py-5 px-8 rounded-md uppercase" href="#">Show More</a></div>
</section>