/* Modernized Team Layout */

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* space between cards */
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
}

.column {
  flex: 1 1 300px;
  max-width: 340px;
  margin: 0; /* spacing handled by gap */
}

@media screen and (max-width: 650px) {
  .column { flex: 1 1 100%; max-width: 100%; }
}

.card {
  background: #181818;
  border-radius: 24px;
  padding: 20px 22px 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}

.card:hover { box-shadow: 0 14px 48px rgba(0,0,0,0.45); transform: translateY(-3px); }

.card img {
  border-radius: 16px;
  margin-bottom: 16px;
  width: 100%;
  height: auto;
  display: block;
}

.card .container {
  padding: 0;
  max-width: 94%;
  margin: 0 auto;
}

.card h2 { margin-top: 0; font-size: 1.35rem; }
.card p { line-height: 1.4; font-size: 0.9rem; }
.card .title { font-size: 0.75rem; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; color:#9fa5ad; }

.button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg,#202020,#000000);
  text-align: center;
  cursor: pointer;
  width: 100%;
  border-radius: 12px;
  transition: background .25s, transform .25s;
}
.button:hover { background: #2d2d2d; transform: translateY(-2px); }