/** Tiimi **/
.team-section {
  text-align: center;
  padding: 40px 20px;
}

.team-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.team-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
}

/* make whole card clickable, but no link styles */
.team-member-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  cursor: pointer;
  width: 100%;
  max-width: 380px;
}

/* Card styling */
.team-member {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  background: linear-gradient(90deg,#d6c7b3,#c9b49c);
  overflow: hidden;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.team-member img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.team-member h3 {
  font-size: 1.3rem;
  color: #FFF;
  margin-bottom: 8px;
}

.team-member p {
  font-size: 0.95rem;
  color: #FFF;
  padding: 0px 24px 15px 24px;
}

@media (max-width: 480px) {
  .team-member-link {
    max-width: 320px;
  }
}


