/* ===== Member Cards Section ===== */
.area {
  padding: 20px;
}

.card-container {
  display: grid;
  gap: 20px;
  padding: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cards {
  background: white;
  border-radius: 12px;
  padding: 15px;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.cards:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.cards img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #FEBA17;
  margin-bottom: 10px;
}

.cards h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #333;
}

.cards p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading State */
.loading .cards {
  background: #f5f5f5;
  min-height: 200px;
}

.loading .cards img {
  background: #e0e0e0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #FEBA17;
  color: white;
  border-color: #FEBA17;
}

.page-btn.active {
  background: #74512D;
  color: white;
  border-color: #74512D;
}

/* Responsive Grid */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1025px) {
  .card-container {
    grid-template-columns: repeat(5, 1fr);
  }
}