/* Team page styling */
.team-grouppic {
    height: 80%;
    margin: 0;
    background-position: center;
    display: block;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .team-grouppic img {
    width: 100%;
    height: 100%;
    object-fit: cover;

  
  }
  
  /* Center the team title */
  .team-title {
    display: flex;
    justify-content: center;
    padding-top: 10%;
    padding-bottom: 10%;
  }
  
  /* Use grid layout for team members */
  .team-layout {
    max-width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 0;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* Individual team member cards */
  .team-member {
    max-height: 50%;
    flex-basis: 20%;
    padding: 0 15px;
    margin-bottom: 2.25rem;
  }
  
  /* Center the team member name */
  .team-name {
    text-align: center;
    padding-top: 70%;
  }
  
  /* Team card and flip animation */
  .team-card {
    position: relative;
  }
  
  .team-cardfront {
    transition: transform 0.6s ease;
  }
  
  .team-cardback {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease;
    backface-visibility: hidden;
    transform: rotateY(-180deg);
    width: 100%;
    box-sizing: border-box;
  }
  
  .team-img {
    padding-top: 100%;
    position: relative;
    margin-bottom: 1.25rem;
  }
  
  .team-imgholder {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
  }
  
  /* Apply styles when hovering over the team card */
  .team-card:hover .team-cardfront {
    transform: rotateY(180deg);
  }
  
  .team-card:hover .team-cardback {
    transform: rotateY(0deg);
  }
  
  /* Set initial styles for the team-cardfront and team-cardback */
  .team-cardfront,
  .team-cardback {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
  }
  
  .team-cardfront {
    transform: rotateY(0deg);
  }
  
  .team-cardback {
    transform: rotateY(-180deg);
  }
  
  /* Ensure the team member images fit within their containers */
  .team-img img {
    max-width: 100%;
    max-height: 100%;
    display: block;
  }

  
  
