@extends('layouts.site', ['title' => '怡SPA｜最新消息'])

@section('seo_title', '怡SPA｜最新消息｜' . config('app.name'))
@section('seo_description', '怡SPA 最新消息與活動資訊。')
@section('seo_keywords', '怡SPA, 最新消息, 活動資訊')
@section('canonical', route('pages.spa.news.index'))

@section('body_class', 'home-page')

@push('head')
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Mr+Dafoe&display=swap" rel="stylesheet">
@endpush

@section('content')
    {{-- Hero / Page title --}}
    <section id="hero-section" class="relative bg-[#b6c800]  px-6 pt-36 md:pt-48 lg:pt-56 pb-8 lg:pb-12 md:px-12">
        <div class="mx-auto max-w-7xl">
            <div class="flex items-end justify-end">
                <div class="text-right">
                    <nav aria-label="Breadcrumb" class="flex justify-end">
                        <ol class="flex items-center gap-x-1 text-xs font-semibold tracking-[0.2em] text-white/60">
                            <li>
                                <a href="{{ route('pages.home') }}" class="uppercase hover:text-white/85 transition-colors">HOME</a>
                            </li>
                            <li aria-hidden="true" class="inline-flex items-center">
                                <svg viewBox="0 0 24 24" fill="none" class="h-4 w-4 text-white/60">
                                    <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
                                </svg>
                            </li>
                            <li>
                                <a href="{{ route('pages.spa.index') }}" class="uppercase hover:text-white/85 transition-colors">怡SPA</a>
                            </li>
                            <li aria-hidden="true" class="inline-flex items-center">
                                <svg viewBox="0 0 24 24" fill="none" class="h-4 w-4 text-white/60">
                                    <path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
                                </svg>
                            </li>
                            <li>
                                <span aria-current="page">最新消息</span>
                            </li>
                        </ol>
                    </nav>
                    <h1 class="mt-1 lg:mt-3 text-4xl md:text-5xl font-bold tracking-tight text-white">
                        最新消息
                    </h1>
                </div>
            </div>
        </div>
    </section>
    <section class="bg-amber-100/70 px-6 py-14 md:px-12">
        <div class="mx-auto max-w-5xl">
            {{-- <div class="text-black/35 italic tracking-widest">NEWS</div>
            <h1 class="mt-3 text-4xl font-bold tracking-tight text-neutral-800 md:text-5xl">最新消息</h1> --}}
            <div class="">
                @include('pages.spa.news._list', ['posts' => $posts ?? []])
            </div>
        </div>
    </section>
    <section id="spa-booking" class="scroll-mt-28 bg-[#b6c800] px-6 py-4 md:px-12">
    </section>
@endsection
