html {
    overflow-x: visible !important;
}

body {
    overflow-x: clip !important;
}

.team-img {
  width: 100%;
  height: auto;
  max-height: 500px; /* Slightly increased for 1440p */
  object-fit: cover;
  object-position: top center; /* Ensures faces are not cut off from the top */
  display: block;
  border-radius: 0.5rem;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.team-img:hover {
    transform: translateY(-5px); /* Subtle lift instead of scale to maintain composition */
}

/* Core Expertise List Fix */
#lawyer-expertise li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    line-height: 26px;
}

#lawyer-expertise li i {
    margin-top: 4px;
    flex-shrink: 0;
}

#lawyer-expertise li div {
    flex-grow: 1;
}

#lawyer-expertise li strong {
    color: var(--dark-gray);
    font-weight: 700;
}

#lawyer-expertise li,
#lawyer-education li,
#lawyer-membership li {
    font-size: 18px;
}
