.team-section {
    padding: 30px 0;
}
.team-section h4 {
  text-align: center;
  margin-bottom: 30px;
}
.team-member {
    background: #f9f5f0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    position: relative;
}

.team-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.team-member-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.7s ease;
    filter: saturate(0.9);
}

.team-member:hover .team-member-img img {
    transform: scale(1.08);
    filter: saturate(1);
}

.team-member-info {
    padding: 10px 15px 0;
    flex: 1;
}

.team-member-info h5 {
    color: #2c2c2c;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.team-member-info .position {
    color: #C01823;
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.team-member-info .contact-details {
    list-style: none;
    padding: 10px 0px 10px;
    margin: 0;
    border-top: 1px solid #ebebeb;
}

.team-member-info .contact-details li {
    margin-bottom: 0;
    padding: 6px 0;
}

.team-member-info .contact-details li + li {
    border-top: 1px dashed #ebebeb;
}

.team-member-info .contact-details a {
    color: #2c2c2c;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.team-member-info .contact-details a:hover {
    color: #C01823;
}

.team-member-info .contact-details a i {
    color: #113b77;
    font-size: 12px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.social-icons {
    padding: 14px 20px 18px;
    display: flex;
    gap: 6px;
    border-top: 1px solid #ebebeb;
    margin-top: auto;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #113b77;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #113b77;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .team-section {
        padding: 20px 0 30px;
    }
    .mb_team{padding: 15px;}
    .team-section h4 {
        font-size: 15px;
        margin-bottom: 35px;
    }
    .team-member {
        margin-bottom: 10px;
    }
    .team-member-info {
     padding: 10px 15px 0;
 }
 .social-icons {
    padding: 12px 16px 16px;
}
}