/* Smooth infinite scroll animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Duplicate items for continuous effect */
.community-grid::after {
  content: "";
}

/* Optional: responsive adjustment */
@media (max-width: 768px) {
  .ministry {
    flex: 0 0 180px;
  }
}
.service-right {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  background: #fff;
}

.community-grid {
  display: flex;
  gap: 30px;
  width: calc(250px * 18); /* duplicate items for smooth loop */
  animation: scroll 35s linear infinite;
}

.ministry {
  flex: 0 0 250px;
  text-align: center;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s;
}

.ministry:hover {
  transform: scale(1.05);
}

.ministry img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.ministry p {
  font-weight: 600;
  color: #333;
  margin: 0;
}
/* =============== SLIDER WRAPPER =============== */
.slider-track {
  display: flex;
  width: calc(250px * 18); /* number of slides × width */
  animation: scroll 35s linear infinite;
  gap: 20px;
}
