.team-accordion {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.team-item {
  border-top: 1px solid #eee;
}

.team-item:first-child {
  border-top: none;
}

/*.team-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  transition: background 0.3s;
}*/
.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px;
}

.team-header:hover {
  background: #f8f8f8;
}

.team-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.team-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /*transition: transform 0.3s ease;*/
}

.team-icon .icon-open {
  opacity: 0;
  /*transform: scale(0.8);*/
}

.team-item.open .team-icon .icon-closed {
  opacity: 0;
  /*transform: scale(0.8);*/
}

.team-item.open .team-icon .icon-open {
  opacity: 1;
  /*transform: scale(1);*/
}

.team-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 0 16px;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.team-item.open .team-content {
  opacity: 1;
  padding: 16px;
}

.team-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.readmore-description-wrapper {
  flex: 1;
  padding-bottom: 40px;
}

.readmore-description-wrapper {
    position: relative;
    overflow: hidden;
}

.team-description {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.readmore-description-wrapper.collapsing .team-description {
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.readmore-description-wrapper .team-description {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

/* ✅ Sync paragraph margins with line-height */
.readmore-description-wrapper .team-description p {
    margin-top: 0;
    margin-bottom: var(--readmore-lineheight, 1em); /* fallback */
}


.team-readmore-toggle {
    background: none;
    border: none;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.team-readmore-toggle:hover {
    color: #777;
}

