.team-section {
  padding: 40px 20px;
}

h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  font-family: 'Georgia', serif;
  font-size: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; 
  text-align: center;
  padding: 20px 16px;
  border: 2px solid #ffffff;
  border-radius: 14px;
  background: #0a1530;
  cursor: pointer;
  min-height: 280px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
  border-color: #4a9eff;
}

.avatar {
  width: 100%;
  height: 160px;
  background: transparent;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 12px;
  display: block;
  opacity: 1;
  transition: all 0.3s ease;
  filter: brightness(1) contrast(1) saturate(1);
}

.avatar:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.card:hover h3 {
  color: #4a9eff;
  transform: translateY(-2px);
}

.card p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.card:hover p {
  color: #e8e8f2;
  transform: translateY(-1px);
}

.site-footer {
  text-align: center;
  font-family: 'Georgia', serif;
  color: #e8e8f2;
  font-size: 14px;
  margin-top: 30px;
  background: none;
  border: none;
  padding: 60px 0;
}

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  
  .card {
    min-height: 260px;
    padding: 16px 12px;
  }
  
  .avatar {
    height: 140px;
  }
  
  .card h3 {
    font-size: 1rem;
    margin: 12px 0 6px;
  }
  
  .card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .card {
    min-height: 240px;
    padding: 12px 8px;
  }
  
  .avatar {
    height: 120px;
  }
}