/* Team Card Flip Styles for Mobile */
.team-card {
  perspective: 1000px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 24px auto;
}

.team-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4,0.2,0.2,1);
  transform-style: preserve-3d;
}

.team-card-front, .team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  background: #f6fafd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.team-card-front {
  z-index: 2;
}

.team-card-back {
  transform: rotateY(180deg);
  padding: 24px 16px 16px 16px;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
}

.team-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Specific styling for CSO image to show less zoomed in view */
.team-card-img[src*="CSO.jpg"] {
  object-fit: contain;
  object-position: center center;
}

.team-card-label {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  color: #193442;
  font-weight: 500;
  background: #e3f2fd;
  padding: 4px 12px;
  border-radius: 12px;
}

.team-card-button {
  display: none;
  margin-top: 12px;
  padding: 8px 16px;
  background: #e3f2fd;
  color: #193442;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 768px) {
  .about-team-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .team-card {
    width: 100%;
    max-width: 320px;
  }
  .team-card-inner {
    cursor: pointer;
    min-height: 260px;
    height: auto;
    box-sizing: border-box;
    overflow: visible;
  }
  .team-card-front, .team-card-back {
    min-height: 260px;
    height: auto;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px 16px 8px;
  }
  .team-card-front {
    padding-bottom: 0;
  }
  .team-card-label {
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    font-size: 1.1rem;
  }
  .team-card-back {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 18px 12px 14px 12px;
  }
  .team-card.flipped .team-card-inner {
    transform: rotateY(180deg);
  }
  .team-card-button {
    display: none;
  }
}

@media (min-width: 769px) {
  .team-card-label {
    display: none;
  }
  .team-card-inner {
    display: flex;
    flex-direction: column;
    height: auto;
    cursor: default;
    transform: none !important;
    transition: none;
  }
  .team-card-front,
  .team-card-back {
    position: static;
    transform: none;
    backface-visibility: visible;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(25,52,66,0.07);
    background: #f6fafd;
    height: auto;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .team-card-front {
    padding: 0;
  }
  .team-card-back {
    padding: 18px 16px 14px 16px;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
  .team-card.flipped .team-card-inner {
    transform: none;
  }
  .team-card-button {
    display: none;
  }
} 