               /* Grid spacing */
.grid-item {
  margin-bottom: 20px;
  /* gap:35px !important; */
  display: flex;
  justify-content: center;
}

/* Card */
.ht-team-member-card {
  width: 100% !important;
  padding: 20px;
  border-radius: 20px;
  gap: 10px;
  /* background: #fff; */
  transition: 0.3s ease;
  border-bottom: 3px solid #20537d;
}

/* Hover */
.ht-team-member-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Top section */
.ht-team-member-card .top-section {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 168px;
}

/* Wrapper for image + LinkedIn */
.team-image-wrapper {
  position: relative;
  width: 154px;
  height: 154px;
  flex-shrink: 0; /* prevents shrinking in flex layout */
}

/* Team image */
.ht-team-member-card .top-section .team-image {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.ht-team-member-card .top-section .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills circle nicely */
  object-position: center;
}

.team-linkedin-icon {
  width: 30px;
  height: 30px;
  position: absolute;
  transform: translate(-72%, -45%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  margin-top: 180px;
  margin-left: 45px;
}

.team-linkedin-icon .profile-img {
  width: 30px;
  height: 30px;
  border-radius: 16px;
}

/* Info */
.ht-team-member-card .top-section .team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Name */
.ht-team-member-card .top-section .team-info .name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #20537d;
}

/* Position */
.ht-team-member-card .top-section .team-info .position {
  font-size: 14px;
  color: #575757;
  margin-top: 10px;
  font-weight: 500;
}

/* Domain */
.ht-team-member-card .top-section .team-info .domain {
  font-size: 14px;
  color: #575757;
  /* margin-top: 10px; */
  font-weight: 400;

  font-family: Inter;
  font-weight: 400;
  font-style: Italic;
  font-size: 14px;
}

/* Expand content - premium animation */
.ht-team-member-card .extra-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Active state */
.ht-team-member-card.active .extra-info {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0) scale(1);
  margin-top: 15px;
}
/* .ht-team-member-card .extra-info p {
  text-align: justify;
  text-justify: inter-word;
} */
.ht-team-member-card:hover .top-section .expand-btn {
  background: #20537d; /* your theme color */
  color: #ffffff; /* icon becomes white */
}
/* Arrow */
.ht-team-member-card .top-section .expand-btn {
  align-self: flex-end;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s ease;
  width: 25px;
  height: 25px;
  border-radius: 50%; /* better than 12.5px */
  background: #e8edf2;
  color: #20537d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ht-team-member-card .top-section .expand-btn i {
  font-size: 12px;
}
/* Rotate arrow */
.ht-team-member-card.active .top-section .expand-btn {
  /* transform: rotate(180deg); */
  transform: rotate(-90deg);
}



