.team-list img {
  width: 50%;
}

.team-list .content {
  width: 50%;
}

.team-list .content .follow {
  position: absolute;
  bottom: 24px;
}

.team-list:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.team, .team-list {
  -webkit-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.team .content .title, .team-list .content .title {
  font-size: 18px;
}

.team .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.team .member-position, .team .team-social {
  position: absolute;
  bottom: -35px;
  right: 0;
  left: 0;
  margin: auto 10%;
  z-index: 99;
}

.team .team-social {
  bottom: 40px;
  opacity: 0;
  -webkit-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0s;
}

.team:hover {
  -webkit-transform: translateY(-7px);
          transform: translateY(-7px);
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

.team:hover .overlay {
  opacity: 0.6;
}

.team:hover .team-social {
  opacity: 1;
}

@media (max-width: 768px) {
  .team-list img,
  .team-list .content {
    width: 100%;
    float: none !important;
  }
  .team-list img .follow,
  .team-list .content .follow {
    position: relative;
    bottom: 0;
  }
}

.social-icon.social li a {
    color: #adb5bd;
    border-color: #adb5bd;
}
.social-icon li a {
    color: #35404e;
    border: 1px solid #35404e;
    display: inline-block;
    height: 32px;
    text-align: center;
    font-size: 15px;
    width: 32px;
    line-height: 30px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}
.rounded {
    border-radius: 5px !important;
}

.para-desc {
    max-width: 600px;
}
.text-muted {
    color: #8492a6 !important;
}

.section-title .title {
    letter-spacing: 0.5px;
    font-size: 30px;
}

/* =========================
   TEAM MEMBERS
   ========================= */

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 25px;
    margin-bottom: 60px;
}

.team-card {
    flex: 0 1 calc(25% - 32px);
    max-width: 275px;
    min-height: 390px;

    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Small hover effect */
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* Makes every picture EXACTLY the same size */
.team-photo {
    width: 100%;
    height: 260px;

    object-fit: cover;
    object-position: center;

    display: block;
}

/* Text section */
.team-info {
    padding: 20px 18px 22px;
}

.team-info h3 {
    margin: 0 0 7px;
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.team-role {
    color: #c8102e;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
}

.team-bio {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}


/* Tablets */
@media (max-width: 1000px) {
    .team-card {
        flex: 0 1 calc(50% - 24px);
        max-width: 300px;
    } 
}


/* Phones */
@media (max-width: 600px) {
    .team-grid {
        gap: 24px;
    }

    .team-card {
        flex: 0 1 100%;
        max-width: 330px;
    }

    .team-photo {
        height: 300px;
    }
}
/* Team profile cards swap faces without a 3D animation. */
.team-card {
    height: 390px;
    min-height: 390px;
    cursor: pointer;
    outline: none;
}

.team-card:focus-visible {
    outline: 3px solid #c8102e;
    outline-offset: 4px;
}

.team-card-inner {
    width: 100%;
    height: 100%;
}

.team-card-front,
.team-card-back {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.team-card-front {
    display: flex;
    flex-direction: column;
}

.team-card-back {
    display: none;
    box-sizing: border-box;
}

.team-card.is-flipped .team-card-front {
    display: none;
}

.team-card.is-flipped .team-card-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px;
    color: #303030;
}

.team-card-back h3 {
    margin: 0 0 18px;
    color: #222;
    font-size: 22px;
}

.team-card-back p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

.team-click-hint {
    display: inline-block;
    margin-top: 10px;
    color: #777;
    font-size: 13px;
    font-weight: 600;
}

.team-card:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}




