/* Variabel CSS untuk kemudahan pengelolaan warna */
:root {
  --primary-color: #f4631e; /* Contoh warna primer: Pink cerah */
  --grup-wa-color: #25d366; /* Hijau WhatsApp */
  --button-color: #4e6688; /* Biru umum untuk tombol */
  --text-color: #2a4759; /* Warna teks umum */
  --light-gray: #f2f2f2; /* Warna abu-abu terang */
  --border-color: #cbd5e1; /* Warna border default */
  --text-slate-color: #64748b; /* Warna teks untuk ikon sosial media */
}

/* Reset CSS dasar (sangat direkomendasikan) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif; /* Font default yang bersih */
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff; /* Latar belakang halaman */
}

/* CONTAINER agar konten selalu di tengah */
.container {
  max-width: 768px; /* Default untuk mobile */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%; /* Pastikan container mengisi lebar yang tersedia */
}

/* Header Section */
.header {
  padding-top: 1.25rem;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: transparent;
}

.header-logo {
  height: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Hero Thumbnail Section */
.hero-thumbnail {
  padding-top: 2.5rem;
}

.flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Tambahkan ini untuk menengahkan konten di dalam flex-wrapper */
}

.content-center {
  width: 100%;
  text-align: center;
  /* Hilangkan padding-left/right di sini jika sudah ada di .container */
  /* padding-left: 1rem; */
  /* padding-right: 1rem; */
  align-self: center;
}

.thumbnail-image {
  padding-top: 2.5rem;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto; /* Pastikan gambar ini juga di tengah */
  margin-right: auto;
}

.button-link {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-top: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.button-link:hover {
  opacity: 0.8;
}

.button-map {
  background-color: var(--button-color);
}

.section-title {
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.text-primary {
  color: var(--primary-color);
}

/* ======================================= */
/* PERBAIKAN UTAMA UNTUK SLIDER SWIPER */
/* ======================================= */
.swiper-container-wrapper {
  margin-top: 1.25rem;
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex; /* Tambahkan flex untuk menengahkan Swiper itu sendiri */
  justify-content: center; /* Menengahkan swiper-container dalam wrapper-nya */
  align-items: center;
}

.swiper-container {
  width: 100%; /* Lebar 100% dari parent (swiper-container-wrapper) */
  max-width: 600px; /* Batasi lebar Swiper agar tidak terlalu besar di desktop. SESUAIKAN INI! */
  height: auto; /* Swiper akan mengatur tinggi otomatis */
  overflow: hidden;
  position: relative; /* Penting untuk navigasi Swiper */
}

.swiper-wrapper {
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
  align-items: flex-start; /* Mengatur item dari atas */
}

.swiper-slide {
  width: 100%; /* Slide mengisi lebar container */
  height: auto; /* Tinggi slide menyesuaikan gambar */
  display: flex;
  justify-content: center; /* PENTING: Untuk menengahkan konten (gambar) di dalam slide */
  align-items: center; /* PENTING: Untuk menengahkan vertikal */
  border: 1px solid var(--border-color); /* Untuk visualisasi */
  background-color: #fff; /* Latar belakang slide */
  box-sizing: border-box; /* Pastikan padding/border tidak menambah lebar */
}

.swiper-slide img {
  display: block;
  max-width: 100%; /* Gambar tidak melebihi lebar slide */
  height: auto; /* Pertahankan aspek rasio */
  object-fit: contain; /* Gambar akan dimuat penuh tanpa terpotong. Mungkin ada ruang kosong */
  /* Jika gambar terpotong, coba: object-fit: cover; (akan mengisi slide, tapi bisa terpotong) */
  /* Atau, jika gambar Anda memiliki rasio yang sangat konsisten, Anda bisa coba mengatur tinggi tetap pada .swiper-slide img */
  margin: 0 auto; /* Fallback untuk menengahkan gambar jika flexbox gagal */
}

/* Swiper Navigation & Pagination */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
  transform: scale(0.8);
  top: 50% !important; /* Pastikan tombol navigasi di tengah vertikal */
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}
/* ======================================= */
/* AKHIR PERBAIKAN SWIPER */
/* ======================================= */

/* Purchase Links Section */
.purchase-links-section {
  padding-top: 2.5rem;
}

.purchase-title {
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
}

.additional-buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* Agar tombol berada di tengah */
}

.additional-buttons .button-link {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 250px; /* Batasi lebar agar tidak terlalu besar di desktop */
}

.additional-buttons .button-link:first-child {
  margin-top: 0;
}

.button-primary {
  background-color: var(--button-color);
}

.button-whatsapp {
  background-color: var(--grup-wa-color);
}

/* Social Media Section */
.social-media-section {
  padding-bottom: 8rem;
  padding-top: 3.5rem;
}

.social-title {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-link {
  margin-right: 0.75rem;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  color: var(--text-slate-color);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.social-icon-link:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
}

.social-icon {
  fill: currentColor;
}

/* Footer Section */
.footer {
  background-color: var(--primary-color);
  padding-bottom: 1.25rem;
  padding-top: 1.25rem;
}

.footer-content {
  width: 100%;
  padding-top: 0.5rem;
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.5s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

/* Media Queries untuk Responsivitas */
@media (max-width: 767px) {
  .section-title {
    font-size: 1.25rem;
  }
  .additional-buttons .button-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Perbaikan untuk tampilan desktop */
@media (min-width: 768px) {
  .container {
    /* Meningkatkan lebar container untuk desktop agar ada lebih banyak ruang di tengah */
    max-width: 960px; /* Anda bisa coba 1024px, 1140px, dll. Sesuaikan kebutuhan. */
  }

  /* Memastikan elemen di dalam container tetap di tengah meskipun container melebar */
  .hero-thumbnail .content-center,
  .purchase-links-section .container,
  .social-media-section .content-center {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Pastikan tidak ada batasan lebar yang mengganggu */
  }

  .additional-buttons .button-link {
    max-width: 300px; /* Batasi lebar tombol di desktop */
  }

  .social-title {
    padding-top: 2.5rem;
    font-size: 1.875rem;
  }
}

/* Opsional: Untuk layar yang sangat lebar */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px; /* Contoh: Lebar container untuk layar sangat besar */
  }
}
