/* ===== Layout Dasar ===== */
body {
  font-family: 'poppins', sans-serif;
  line-height: 1.6;
  color: #222;
  background: white;
}

h2 {
  text-align: center;
  margin-top: 10px;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000000;
  padding: 30px 20px;
}

.navbar .logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  margin-right: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #ff3939;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  color: #ffd700;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh; 
  background: url('jiipebg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

/* Lapisan gelap untuk teks lebih jelas */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content h1 span {
  color: #ff3939; 
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Tombol Hero */
.btn-hero {
  background: #ff2727;
  color: #ffffff;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-hero:hover {
  background: #ffb700;
  transform: translateY(-3px);
}

/* Animasi sederhana */
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(30px);}
  to   {opacity: 1; transform: translateY(0);}
}

/* ===== About Us (Multi Column) ===== */
.about-content {
  display: flex;
  gap: 20px;
  padding: 40px;
  flex-wrap: wrap;
}

.about-multi {
  column-count: 2;
  column-gap: 40px;
  column-rule: 1px solid #ccc;
  text-align: justify;
}

@media (max-width: 768px) {
  .about-multi {
    column-count: 1;
  }
}

/* ===== About Image dengan Filter & Transition ===== */
.about-img img {
  max-width: 100%;
  border-radius: 8px;
  display: block;

  filter: grayscale(100%);

  transition: filter 0.5s ease;

}

/* Efek saat hover: hilangkan grayscale + tambah saturasi */
.about-img img:hover {
  filter: grayscale(0%);
}


/* ===== Struktur Organisasi ===== */
.team {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px;
}

.person {
  position: relative;
  text-align: center;
  cursor: pointer;
}

.person img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Tooltip Jabatan */
.person::after {
  content: attr(data-jabatan);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.person:hover::after {
  opacity: 1;
}

/* ===== Galeri ===== */
.galeri-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}

.galeri-item {
  width: 250px;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

/* Foto agar rasio tetap, tidak terdistorsi */
.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* kunci agar gambar proporsional */
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: sepia(20%);
  /* efek awal ringan */
}

/* Efek saat hover: sedikit zoom + blur ringan */
.galeri-item img:hover {
  transform: scale(1.05);
  filter: sepia(60%) blur(2px);
}

/* ===== Berita ===== */
.berita-grid {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.berita-item {
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
}

/* ===== Kontak ===== */
.kontak {
  background: #f7f9fc;
  padding: 40px 20px;
  text-align: center;
}

.form-kontak {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Label */
.form-kontak label {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: #003366;
}

/* Input & Textarea */
.form-kontak input,
.form-kontak textarea {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-kontak input:focus,
.form-kontak textarea:focus {
  border-color: #003366;
  box-shadow: 0 0 6px rgba(0,51,102,0.4);
}

/* Tombol Kirim */
.btn-kirim {
  background: linear-gradient(135deg, #003366, #0055aa);
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-kirim:hover {
  background: linear-gradient(135deg, #0055aa, #0077cc);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-kirim:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.pagination-section {
  padding: 40px 20px;
  text-align: center;
  background: #f7f9fc;
}

.pagination {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination a {
  color: #003366;
  padding: 8px 14px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.pagination a:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.pagination a.active {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
  cursor: default;
}

.pagination a.prev,
.pagination a.next {
  font-weight: bold;
}

/* Responsive: ukuran lebih besar di layar kecil */
@media (max-width: 480px) {
  .pagination a {
    padding: 10px 16px;
  }
}
/* ===== Footer ===== */
footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 20px;
}