@extends('layouts.pustaka')

@section('title', 'Layanan - Pustaka Nawasena Bakorwil III Malang')

@section('content')
<div class="container py-5">

  <div class="section-box text-center mt-4 mx-3 mx-md-5" data-aos="fade-up">
    <h2 class="section-title-custom">Layanan Pustaka Nawasena</h2>
    <p class="text-muted">
      Pilih salah satu layanan berikut untuk mendukung kegiatan literasi, penelitian, dan pengembangan kebijakan di 
      <strong>Pustaka Nawasena Bakorwil III Malang</strong>.
    </p>
    <p class="hero-subtext">
      Explore our library services — from reference and borrowing to digital access and consultation — designed to help you learn, research, and grow.
    </p>
  </div>

  <div class="section-box" data-aos="fade-up">
    <h2 class="section-title-custom">Pilih Jenis Layanan</h2>

    <div class="row text-center mt-4">
      
      <div class="col-md-6 mb-4 collection-item" data-aos="zoom-in" data-aos-delay="100">
        <img src="{{ asset('images/layanan_referensi.jpg') }}" alt="Layanan Referensi" class="content-image mb-3">
        <h5 class="fw-bold text-warning">Layanan Referensi</h5>
        <p class="text-muted">
          Panduan menemukan sumber informasi, literatur, dan dokumen penting untuk riset dan kebijakan.
        </p>
        <a href="{{ route('user.layanan.referensi') }}" class="btn btn-outline-warning btn-sm mt-2 fw-semibold">
          Selengkapnya
        </a>
      </div>

      <div class="col-md-6 mb-4 collection-item" data-aos="zoom-in" data-aos-delay="200">
        <img src="{{ asset('images/layanan_peminjaman.jpg') }}" alt="Layanan Peminjaman" class="content-image mb-3">
        <h5 class="fw-bold text-success">Layanan Sirkulasi</h5>
        <p class="text-muted">
          Akses koleksi fisik maupun digital dengan sistem peminjaman terintegrasi untuk anggota terdaftar.
        </p>
        <a href="{{ route('user.layanan.peminjaman') }}" class="btn btn-outline-success btn-sm mt-2 fw-semibold">
          Selengkapnya
        </a>
      </div>

      <div class="col-md-6 mb-4 collection-item" data-aos="zoom-in" data-aos-delay="300">
        <img src="{{ asset('images/layanan_digital.png') }}" alt="Layanan Digital" class="content-image mb-3">
        <h5 class="fw-bold text-primary">Layanan Digital</h5>
        <p class="text-muted">
          Akses e-book, arsip digital, dan laporan kegiatan melalui portal daring Pustaka Nawasena.
        </p>
        <a href="{{ route('user.layanan.digital') }}" class="btn btn-outline-primary btn-sm mt-2 fw-semibold">
          Selengkapnya
        </a>
      </div>

      <div class="col-md-6 mb-4 collection-item" data-aos="zoom-in" data-aos-delay="400">
        <img src="{{ asset('images/layanan_informasi.jpg') }}" alt="Layanan Informasi" class="content-image mb-3">
        <h5 class="fw-bold text-danger">Layanan Informasi & Konsultasi</h5>
        <p class="text-muted">
          Layanan konsultasi dan literasi digital untuk mendukung kebutuhan informasi pegawai dan mitra kerja.
        </p>
        <a href="{{ route('user.layanan.informasi') }}" class="btn btn-outline-danger btn-sm mt-2 fw-semibold">
          Selengkapnya
        </a>
      </div>
      
<div class="col-md-6 offset-md-3 mb-4 collection-item text-center" 
     data-aos="zoom-in" data-aos-delay="500">

    <img src="{{ asset('images/manualbook.jpg') }}" 
         alt="Manual Book" 
         class="content-image mb-3">

    <h5 class="fw-bold text-secondary">Manual Book Sistem</h5>

    <p class="text-muted">
        Panduan lengkap penggunaan Sistem Pustaka Nawasena untuk pengguna dan admin.
    </p>

    <a href="{{ asset('pdf/manualbookuser.pdf') }}" target="_blank" 
       class="btn btn-outline-secondary btn-sm mt-2 fw-semibold">
        Buka Manual Book
    </a>
</div>


    </div>
  </div>

</div>

<style>
body {
  background: linear-gradient(135deg, #fff8f1, #ffffff, #fff8f1) !important;
  font-family: 'Inter', sans-serif;
  color: #333;
}

.section-box {
  background-color: #ffffff;
  padding: 40px 30px;
  margin-bottom: 40px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-left: 6px solid #ff9800;
  transition: all 0.4s ease;
}
.section-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255,152,0,0.15);
}

.section-title-custom {
  font-size: 2rem;
  color: #ff9800;
  font-weight: 700;
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}
.section-title-custom::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ff9800;
  border-radius: 5px;
  margin: 10px auto 0;
}
.hero-subtext {
  color: #1565c0;
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.collection-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 12px;
  background-color: #fcfcfc;
}
.collection-item:hover {
  transform: translateY(-6px);
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(255,152,0,0.15);
}

.content-image {
  width: 100%;
  aspect-ratio: 2 / 1 ; 
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #ff9800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.collection-item:hover .content-image {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(255,152,0,0.2);
}

.subtitle-english {
  font-size: 1rem;
  font-weight: 600;
  color: #ff6f00;
  margin-bottom: 6px;
}
.btn {
  border-radius: 20px;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .section-title-custom { font-size: 1.8rem; }
}
@media (max-width: 576px) {
  .section-title-custom { font-size: 1.5rem; }
  .section-box { padding: 25px; }
}
</style>

<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init({
    duration: 1000,
    once: false,
    mirror: true,
    offset: 50
});
</script>
@endsection
