

/* Member Card Box */
.member-card {
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dee2e6;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px;             /* card ke andar space */
  transition: all 0.3s ease-in-out;
  height: 300px;             /* ✅ uniform card height */
  box-sizing: border-box;    /* padding ko include kare height me */
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.25);
}

/* Card Image Box */
.member-card .image {
  width: 100%;
  height: 220px;             /* ✅ fixed photo height */
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f0;
  padding: 5px;              /* photo ke andar margin */
  box-sizing: border-box;
}

.member-card .image img {
  width: 100%;
  height: 100%;
           /* photo box fully fill kare */
  display: block;
  border-radius: 10px;
}

/* Caption */
.member-card .caption {
  text-align: center;
  padding: 10px;
  flex-grow: 1;
}
.member-card .caption p {
  margin: 2px 0;
  font-size: 0.85rem;
}
.member-card .caption .name {
  font-weight: bold;
  font-size: 1rem;
  color: #0d6efd;
}
.member-card .caption .desig {
  font-weight: 500;
  color: #198754;
}
.member-card .caption .mobail_no {
  font-size: 0.9rem;
  color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
  .member-card {
    height: auto;            /* mobile me flexible height */
  }
  .member-card .image {
    height: 180px;           /* mobile friendly photo height */
  }
}

/* ✅ Your original code (no change) */

/* Extra Responsive Grid Adjustments */
.member-card {
  flex: 1 1 calc(25% - 20px);   /* 4 cards in a row on large screens */
  margin: 10px;
}

/* Laptop / Medium Screens (3 in a row) */
@media (max-width: 1200px) {
  .member-card {
    flex: 1 1 calc(33.333% - 20px);
  }
}

/* Tablet (2 in a row) */
@media (max-width: 992px) {
  .member-card {
    flex: 1 1 calc(50% - 20px);
  }
}

/* Mobile (1 in a row) */
@media (max-width: 576px) {
  .member-card {
    flex: 1 1 100%;
  }
}
