/* team.css */

body {
  font-family: 'Lato', sans-serif;
}

.team-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.team-card {
  width: 360px;
  height: 420px;
  perspective: 1200px;
  font-family: 'Lato', sans-serif;
}

.team-card .content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease-in-out;
}

.team-card input.more:checked ~ .content {
  transform: rotateY(180deg);
}

.team-card .front,
.team-card .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
}

.team-card .front {
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.team-card .front:hover {
  opacity: 1;
}

.team-card .front .inner,
.team-card .back .inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  height: 100%;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.team-card .front h2,
.team-card .front p {
  margin: 0 0 0.3rem;
  color: #fff;
}

.team-card .button {
  background-color: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s ease;
  text-shadow: none;
}

.team-card .button:hover {
  background-color: #0056b3;
}

.team-card .back {
  background: #f8f9fa;
  color: #333;
  transform: rotateY(180deg);
  border: 1px solid #ccc;
}

.team-card .back .inner {
  text-align: left;
  padding: 1.5rem;
  position: relative;
  font-family: 'Lato', sans-serif;
  display: flex;
  flex-direction: column;
}

.team-card .description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  font-family: 'Lato', sans-serif;
}

.team-card .description i {
  margin-right: 0.5rem;
  color: #0d6efd;
}

/* Removed old social icon rules from inside .description */
.team-card .social-icons {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 1rem;
}

/* Repositioned return button higher above social icons */
.team-card .button.return {
  align-self: flex-end;
  margin-top: 1rem;
  margin-bottom: auto;
  margin-right: 0.25rem;
  font-size: 1rem;
  background: transparent;
  color: #0d6efd;
  border: 1px solid #0d6efd;
  padding: 0.35rem 0.75rem;
}

.team-card .button.return:hover {
  background-color: #0d6efd;
  color: #fff;
}

@media (max-width: 768px) {
  .team-card {
    width: 90%;
    margin-bottom: 2rem;
  }
}

