.team-wrapper-container {
  padding-inline: 32px;
}
.team-card-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  justify-content: start;
  max-width: 1424px;
  margin: 0;
}

.team-card-main-title h6 {
  font-size: 48px;
  margin-bottom: 30px;
  color: #030001;
  text-align: center;
}
.team-card-main-title p {
  color: #030001;
  max-width: 670px;
  margin: 0 auto;
  padding-bottom: 70px; 
  text-align: center;
  font-size: 17px; 
  line-height: 24px; 
  font-weight: 400;
  letter-spacing: 0.26px;
}

.team-card {
  overflow: hidden;
  background: #fff;
  text-align: left;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.team-card-image {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

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

.team-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0px;
  min-height: 167px;
}

.team-name {
  font-size: 32px !important;
  font-weight: 400;
  margin: 16px 0 0px;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: #030001;
  min-height: 40px; 
}

.team-position {
  font-size: 17px;
  font-weight: 600;
  color: #030001;
  margin-top: 10px;
  margin-bottom: 0 !important;
  display: block;
  margin-block-start: 0em;
  margin-block-end: 0em;
  min-height: 40px !important; 
  line-height: 19px;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #0085FF;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  padding-bottom: 2px;
  padding-left: 0 !important;
  transition: 0.2s ease;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #0085FF;
}

.team-linkedin,
.team-linkedin:link,
.team-linkedin:visited,
.team-linkedin:active,
.team-linkedin:focus {
  color: #0085FF !important;      
  text-decoration: none !important;
  font-weight: 700 !important;      
  border-bottom: 1px solid #0085FF;
  outline: none;                    
}

.team-card-content:hover .team-linkedin {
  box-shadow: inset 0 -2px 0 #0085FF;
  color: #0085ff;
  text-decoration: none;
  font-weight: 700;
}


.hs_cos_wrapper_type_inline_text[data-hs-cos-field="field_group.person_linkedin"] {
  margin-bottom: 20px;
}

.team-linkedin .arrow {
  margin-left: 6px;
  display: inline-block;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .team-card-wrapper {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 32px;
  }

  .team-card-main-title h6 {
    font-size: 42px;
  }
  .team-card-main-title p {
    font-size: 16px; 
    padding-bottom: 50px;

  }
  .team-wrapper-container {
    padding-inline: 16px;
  }

  .team-name {
    font-size: 28px !important;
    line-height: 36px;
  }

  .team-position {
    font-size: 16px;
  }

  .team-linkedin {
    margin-top: 24px;
  }


  @media (max-width: 767px) {
    .team-card-wrapper {
      grid-template-columns: 1fr;
    }
    .team-card-main-title h6 {
      font-size: 32px;
    }
    .team-card-main-title p {
      padding-bottom: 40px;
      margin-bottom: 40px;
    }

    .team-name {
      font-size: 28px !important;
      line-height: 36px;
    }

    .team-position {
      font-size: 16px;
    }

    .team-linkedin {
      margin-top: 24px;
    }
  }