h2 {
  font-size: 2.9rem;
  font-weight: 700;
  color: #2d4b2d; /* Hijau daun */
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  font-family: "Poppins", sans-serif;
}

/* Garis hias di bawah judul untuk halaman tab dan galeri */
.tab-section h2::after,
.gallery-section h2::after {
  content: "";
  width: 150px;
  height: 3px;
  background-color: #81c784;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  animation: garisMuncul 0.6s ease-out forwards;
}

/* Keyframes animasi garis muncul */
@keyframes garisMuncul {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* === TAB SECTION WRAPPER === */
.tab-section {
  background-color: #c0e0ba; /* Latar putih kehijauan lembut */
  padding: 60px 20px;
  margin: 5px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  font-family: "Poppins", sans-serif;
}

/* === TOMBOL TAB WRAPPER === */
.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
}

/* === TOMBOL TAB INDIVIDU === */
.tab-btn {
  padding: 12px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  background-color: #c1edc1;
  border: 2px solid #304e31;
  color: #275a2a;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background-color: #a5d6a7;
  transform: translateY(-2px);
}

.tab-btn.active {
  background-color: #4caf50;
  color: #fff;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* === KONTEN TIAP TAB === */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BAGIAN GALERI DALAM TIAP TAB === */
.gallery-section {
  background-color: #f1f8e9;
  padding: 40px 20px;
  border: 2px solid #a5d6a7;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(255, 144, 144, 0.03);
  margin-bottom: 40px;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  color: #33691e;
  margin-bottom: 20px;
  position: relative;
}

.gallery-section h2::after {
  content: "";
  width: 100px;
  height: 3px;
  background: #81c784;
  display: block;
  margin: 10px auto 0;
  border-radius: 3px;
  opacity: 0;
  transform: scaleX(0);
  animation: garisMuncul 0.6s ease-out forwards;
}

@keyframes garisMuncul {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* === KONTAINER GALERI === */
.galeri-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* === ITEM GALERI === */
.galeri-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  width: 240px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.galeri-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 139, 96, 0.15);
}

.galeri-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.galeri-item p {
  margin: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2e7d32;
}

.galeri-item small {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin: 0 10px 10px;
}
