/* ===== Global Styles ===== */
body { font-family: 'Roboto', sans-serif; background-color: #f8f9fa; }

.team-section { padding: 40px 20px; }

/* 🔎 Search Bar */
.search-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f8f9fa;
  padding: 10px 0;
}
.input-group-text { background-color: lightcoral; border-radius: 20px 0 0 20px; color: black; }
.input-group { width: 75%; margin: 0 auto; }
.input-group .form-control { border-radius: 0 20px 20px 0; }




/* ===== Member Card ===== */
.member-card {
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  padding: 15px;
  text-align: center;
  background: #fff;
  word-wrap: break-word;
}
.member-card:hover { transform: translateY(-5px); }
.member-card img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.member-card h6 { margin-bottom: 5px; font-size: 15px; }
.member-card p { margin-bottom: 4px; font-size: 13px; }
.member-card small { display: block; font-size: 12px; margin-top: 2px; }

/* ===== Email link ===== */
.email-link {
  display: inline-block;
  max-width: 100%;
  font-size: 12px;
  color: #0d6efd;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-link:hover { text-decoration: underline; }

/* ===== Status Badges ===== */
.member-status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 6px;
  font-weight: bold;
  text-transform: uppercase;
}
.status-Active { background: #d4edda; color: #155724; font-weight: bold; }
.status-Expired { background: #ffe08a; color: #7c4c00; font-weight: bold; }
.status-Terminated { background: #f8d7da; color: #721c24; }

/* ===== Responsive Grid ===== */
@media (max-width: 575.98px) {
  .search-wrapper { width: 98%; margin: 0 auto; }
  .input-group { width: 95%; margin: 0 auto; }
  .col-custom { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .col-custom { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 768px) {
  .col-custom { flex: 0 0 25%; max-width: 25%; }
}

/* ===== Call-to-Action (CTA) ===== */
#ctaContainer {
  margin-top: 40px;
  text-align: center;
}
.call-to-action {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.call-to-action.show {
  opacity: 1;
  transform: translateY(0);
}
.call-to-action:hover {
  background-color: #0056b3;
  color: #fff;
}

/* ===== Avatar Fallback ===== */
.avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
}
.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #dee2e6;
  align-items: center;
  justify-content: center;
  position: relative;
}
.avatar-fallback .fallback-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.7;
}
.avatar-fallback .initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 30px;
  color: #212529;
  text-shadow: 
    -1px -1px 0 #fff,  
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff,
     0px  2px 4px rgba(0,0,0,0.3);
}
