<x-main-inner-page 
    category="Conference" title="Upcoming Conferences 2027" 
    subtitle="Plan ahead with GARI's international conference calendar for 2027. Early abstract submissions are now open."
>

@php
$events = [
    [
        'title'    => '11th International Conference on Business, Management & Economics',
        'location' => 'Tokyo, Japan',
        'date'     => 'Mar 20–21, 2027',
        'deadline' => 'Jan 15, 2027',
        'image'    => 'https://images.unsplash.com/photo-1540575467063-178a50c2df87?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'Asia-Pacific Growth & Global Markets',
        'attendees'=> '420+', 'papers' => '155+',
    ],
    [
        'title'    => '8th International Conference on Health Sciences & Nursing',
        'location' => 'Paris, France',
        'date'     => 'May 14–15, 2027',
        'deadline' => 'Mar 10, 2027',
        'image'    => 'https://images.unsplash.com/photo-1551190822-a9333d879b1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'Advancing Patient-Centered Care',
        'attendees'=> '300+', 'papers' => '110+',
    ],
    [
        'title'    => '7th International Conference on Engineering & Technology',
        'location' => 'New York, USA',
        'date'     => 'Jul 8–9, 2027',
        'deadline' => 'May 1, 2027',
        'image'    => 'https://images.unsplash.com/photo-1581092160562-40aa08e78837?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'Future Tech & Innovation Ecosystems',
        'attendees'=> '380+', 'papers' => '135+',
    ],
    [
        'title'    => '9th International Conference on Education & Pedagogy',
        'location' => 'Amsterdam, Netherlands',
        'date'     => 'Sep 17–18, 2027',
        'deadline' => 'Jul 15, 2027',
        'image'    => 'https://images.unsplash.com/photo-1524178232363-1fb2b075b655?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'Inclusive Education & AI in Learning',
        'attendees'=> '340+', 'papers' => '120+',
    ],
    [
        'title'    => '4th International Climate & Sustainability Summit',
        'location' => 'Oslo, Norway',
        'date'     => 'Oct 22–23, 2027',
        'deadline' => 'Aug 20, 2027',
        'image'    => 'https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'From Commitments to Climate Action',
        'attendees'=> '310+', 'papers' => '108+',
    ],
    [
        'title'    => '6th International Conference on Law, Policy & Governance',
        'location' => 'Geneva, Switzerland',
        'date'     => 'Nov 6–7, 2027',
        'deadline' => 'Sep 5, 2027',
        'image'    => 'https://images.unsplash.com/photo-1575505586569-646b2ca898fc?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'International Law in a Multipolar World',
        'attendees'=> '260+', 'papers' => '90+',
    ],
    [
        'title'    => '3rd International Conference on Agriculture & Food Security',
        'location' => 'Nairobi, Kenya',
        'date'     => 'Aug 28–29, 2027',
        'deadline' => 'Jun 25, 2027',
        'image'    => 'https://images.unsplash.com/photo-1605000797499-95a51c5269ae?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'Feeding the World Sustainably',
        'attendees'=> '220+', 'papers' => '80+',
    ],
    [
        'title'    => '5th International Conference on Arts, Humanities & Culture',
        'location' => 'Rome, Italy',
        'date'     => 'Dec 4–5, 2027',
        'deadline' => 'Oct 1, 2027',
        'image'    => 'https://images.unsplash.com/photo-1492684223066-81342ee5ff30?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80',
        'slug'     => null,
        'theme'    => 'Cultural Heritage in the Digital Era',
        'attendees'=> '240+', 'papers' => '85+',
    ],
];
@endphp

{{-- Section Header --}}
<div class="flex flex-col md:flex-row items-start md:items-end justify-between mb-14 gap-6">
    <div>
        <span class="text-brand-600 text-xs font-bold uppercase tracking-widest mb-2 block">2027 Events</span>
        <h2 class="text-3xl font-bold text-slate-900">Upcoming Conferences</h2>
        <p class="text-slate-500 mt-2 max-w-xl">Plan ahead and secure your spot at GARI's prestigious 2027 global academic events.</p>
    </div>
    <div class="flex items-center gap-2 text-sm text-slate-500 bg-white border border-slate-200 px-4 py-2.5 rounded-xl shadow-sm shrink-0">
        <i class="fas fa-calendar-check text-brand-500"></i>
        <span class="font-medium">{{ count($events) }} Events in 2027</span>
    </div>
</div>

{{-- Conference Cards Grid --}}
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
    @foreach($events as $conf)
        <x-conference-card :conference="$conf" />
    @endforeach
</div>

</x-main-inner-page>