/* Grid tighten */
.col-xl-3, .col-lg-4, .col-md-6, .col-sm-6 {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* Compact trainee card - COLORFUL + ANIMATED */
.trainee-card-compact {
  width: 100%;
  background: linear-gradient(145deg, #ffffff, #f3f8ff);
  border-radius: 14px;
  padding: 8px 6px;            
  box-shadow: 0 5px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Gradient strip on top */
.trainee-card-compact::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background: linear-gradient(90deg,#34c759,#00c6ff,#7f5cff,#ff5c8a);
}

/* Hover lift + glow */
.trainee-card-compact:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0,150,255,0.25);
}

/* IMAGE */
.trainee-img-compact {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg,#34c759,#00c6ff,#7f5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px)}
  50% { transform: translateY(-4px)}
  100% { transform: translateY(0px)}
}

.trainee-img-compact img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

/* INFO */
.trainee-info-compact {
  width: 100%;
  padding: 0 2px;
}

/* Name */
.trainee-name {
  margin: 5px 0 4px;
  font-size: 13.8px;
  font-weight: 700;
  background: linear-gradient(90deg,#1f2937,#2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta rows */
.meta-row {
  font-size: 11.7px;
  margin: 1px 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-row strong {
  font-weight: 600;
  color: #111827;
}

.meta-row span {
  color: #374151;
}

/* Show FULL on hover */
.trainee-card-compact:hover .meta-row,
.trainee-card-compact:hover .trainee-name {
  white-space: normal;
  overflow: visible;
}

@keyframes pulse {
  0% { box-shadow:0 0 0 0 rgba(255,214,10,0.6); }
  70% { box-shadow:0 0 0 6px rgba(255,214,10,0); }
  100% { box-shadow:0 0 0 0 rgba(255,214,10,0); }
}

/* Mobile */
@media (max-width: 575px){
  .trainee-img-compact {
    width: 56px;
    height: 56px;
  }

  .trainee-name {
    font-size: 12.5px;
  }

  .meta-row {
    font-size: 10.8px;
  }
}
