.tgp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 80px 40px; /* side padding reduced */
  max-width: 900px; /* limit total width */
  margin: 0 auto; /* center align grid */
  justify-content: center;
}

.tgp-card {
  text-align: center;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

.tgp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* fixed image height */
.tgp-imgbox {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.tgp-imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tgp-card:hover img {
  transform: scale(1.08);
}

.tgp-name {
  font-size: 17px;
  margin-top: 12px;
  font-weight: 600;
  color: #133050 !important;
}

.tgp-designation {
  color: #777;
  font-size: 14px;
  margin-bottom: 10px;
}

/* button */
.tgp-details-btn {
  background: linear-gradient(90deg, #f6aa29, #fbd71a, #6bb855);
  background-size: 200% 200%;
  background-position: 100% 0;
  border: none;
  color: #fff !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  position: relative;
  font-size: 13px !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  transition: all 0.6s ease;
}

.tgp-details-btn:hover {
  background-position: 0 0;
}

.tgp-details-btn::after {
  content: "";
  display: block;
  height: 2px;
  background: #fff;
  width: 0%;
  transition: width 0.3s;
  margin: auto;
}

.tgp-details-btn:hover::after {
  width: 100%;
}

/* popup */
.tgp-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.tgp-popup-content {
  background: #fff;
  padding: 25px 35px;
  border-radius: 10px;
  width: 90%;
  max-width: 480px;
  position: relative;
  text-align: center;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tgp-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.popup-team-name {
  color: #133050 !important;
}

.popup-team-desination {
  color: #777 !important;
  margin-top: 10px;
  margin-bottom: 10px;
}

.tgp-social a {
  margin: 0 10px;
  font-size: 20px;
  color: #0073aa;
  transition: color 0.3s ease;
}

.tgp-social a:hover {
  color: #111;
 }
