/* ─────── Hero Section ─────── */
.team-hero {
  text-align: center;
  padding: 60px 20px 30px;
  background: linear-gradient(to right, #dff2e1, #f8f9fa);
  color: #333;
}

.team-hero h1 {
  font-size: 2.5rem;
  color: #3a5a40;
  margin-bottom: 10px;
}

.team-hero p {
  font-size: 1.1rem;
  color: #666;
}

/* ─────── Team Grid Layout ─────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

/* ─────── Team Cards ─────── */
.team-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease, border 0.3s ease;
  cursor: pointer;
}

.team-card:hover {
  transform: scale(1.05);
  background-color: #f0f4f1;
  border: 2px solid #3a5a40;
}

/* ─────── Team Image ─────── */
.team-card img {
  display: block;
  margin: 0 auto 15px; /* centers horizontally & keeps space below */
  width: 100%;
  max-width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.team-card:hover img {
  opacity: 0.8;
}

/* ─────── Basic Info ─────── */
.team-card h3 {
  color: #3a5a40;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-card p {
  color: #555;
  font-size: 0.95rem;
}

/* ─────── Hidden Detail Box ─────── */
.team-details {
  display: none;
  margin-top: 10px;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
}

.team-implements {
  margin: 5px 0 0 30px;
  padding-left: 0;
  list-style-type: disc;
  color: #333;
  font-size: 0.95rem;
}

/* ─────── Show on Hover ─────── */
.team-card:hover .team-details {
  display: block;
}

.team-details {
  margin-top: 16px;
  padding: 16px;
  background-color: #f9fdfb;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 64, 32, 0.08);
  font-family: 'Segoe UI', sans-serif;
}

.team-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #333;
}

.team-item i {
  font-size: 18px;
  color: #2e7d32;
  margin-top: 2px;
}

.impl-list {
  margin: 25px 0 0 -70px;
  padding: 0;
  list-style-type: disc;
  color: #222;
}

.linkedin-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #0a66c2;
  text-decoration: none;
  transition: color 0.3s;
}

.linkedin-link i {
  margin-right: 4px;
}

.linkedin-link:hover {
  color: #004182;
  text-decoration: underline;
}
