.team-accordion {
  border-radius: 4px;
  overflow: hidden;
}

.team-item {
  border-bottom: 1px solid #eee;
}

.team-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 24px 0 24px;
  gap: 0;
}

.team-header .team-header-left {
  width: 96%;
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.team-header .team-icon {
  width: 4%;
}

.team-header .team-header-left .team-name {
  width: 460px;
  display: inline-block;
}

.team-content {
  width: 96%;
}

.mobile-job-title {
  display: none;
}

@media (max-width: 767px) {
  .mobile-job-title {
    display: block;
  }

  .team-header .team-title {
    display: none;
  }
}

.team-description-wrapper {
  flex: 1;
}

.team-content .team-image {
  width: 460px;
  display: inline-block;
}

.team-content .team-description-wrapper .team-readmore-toggle {
  border: 1px solid #DDDDDD;
  margin-bottom: 24px;
  margin-top: 24px;
}

.team-header .team-icon img {
  width: 100%;
  max-width: 24px;
  margin-left: auto;
}

.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;
}

.team-icon .icon-open {
  opacity: 0;
}

.team-item.open .team-icon .icon-closed {
  opacity: 0;
}

.team-item.open .team-icon .icon-open {
  opacity: 1;
}

.team-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0px;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

@media (max-width: 767px) {
  .team-content {
    flex-direction: column;
    width: 100%;
  }

  .team-content.no-readmore {
  }
}

.team-item.open .team-content {
  opacity: 1;
  padding: 16px;
}

.team-image img {
  width: 100%;
  max-width: 300px;
  height: 300px;
  border-radius: 16px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .team-content .team-image {
    width: 100%;
  }

  .team-image img {
    max-width: 100%;
  }
}

.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: 700;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.team-readmore-toggle:hover {
    color: #777;
}

