/* ===== Global ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ===== Hero ===== */
.hero {
  margin-top: 90px; /* kasih jarak sesuai tinggi header */
  width: 100%;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0px; /* opsional, bisa dihapus kalau mau full edge */
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Content ===== */
.content {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1b1b1b;
}

.content p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* ===== Buttons ===== */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-download {
  background: #004aad;
  color: #fff;
}
.btn-download:hover {
  background: #0063cc;
}

.btn-daftar {
  background: #28a745;
  color: #fff;
}
.btn-daftar:hover {
  background: #1e7e34;
}

/* ===== Gallery ===== */
.gallery {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #1b1b1b;
}

.gallery-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-item {
  width: 30%;
  min-width: 250px;
  height: 220px;         /* tinggi tetap untuk seragam */
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

/* Gambar otomatis menyesuaikan ukuran card (zoom penuh) */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* gambar isi penuh kotak tanpa gepeng */
  transform: scale(1.15); /* sedikit diperbesar agar penuh */
  transition: transform 0.4s ease;
}

/* Efek hover (tambahan zoom halus) */
.gallery-item:hover img {
  transform: scale(1.25);
}

/* ===== Responsif ===== */
@media (max-width: 768px) {
  .gallery-item {
    width: 45%;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 100%;
    height: 200px;
  }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  /* Hero */
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 15px;
  }

  /* Content */
  .content {
    margin: 30px 15px;
    padding: 15px;
  }

  .content h2 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 0.95rem;
  }

  /* Button Group */
  .btn-group {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }


@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .content h2,
  .gallery h2 {
    font-size: 1.3rem;
  }
}

/* ===== Mobile Global Spacing ===== */
@media (max-width: 600px) {
  .hero {
    margin-top: 60px; /* lebih dekat dengan header */
  }

  .content,
  .gallery,
  .download-section,
  .pimpinan-container {
    margin: 20px auto;    /* kecilkan jarak atas bawah */
    padding: 20px 15px;   /* padding dalam biar tetap nyaman */
  }
}
}