.person-category-tabs {
  --accent-color: #ff004c;
  --bullet-size: 12px;
  --line-thickness: 2px;
}

.person-category-tabs .tabs-layout {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.person-category-tabs .tab-headers {
  margin: 0;
  padding: 2rem 0 2rem 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-width: 180px;
}

.person-category-tabs .tab-headers::before {
  content: "";
  position: absolute;
  top: 0;
  right: calc(var(--bullet-size)/2 - var(--line-thickness)/2);
  width: var(--line-thickness);
  height: 100%;
  background: #d4d7dd;
}

.person-category-tabs .tab-header {
  position: relative;
  padding: .65rem 1rem .65rem calc(1rem + var(--bullet-size));
  cursor: pointer;
}

.person-category-tabs .tab-header::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--bullet-size);
  height: var(--bullet-size);
  border-radius: 50%;
  background: #d4d7dd;
  z-index: 1;
  transition: background .25s ease;
}

.person-category-tabs .tab-header.active::before {
  background: var(--accent-color);
}

.person-category-tabs .tab-header a {
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  font-weight: 500;
  position: relative;
  display: inline-block;
  border-radius: 1rem;
  padding: .35rem 1rem;
  transition: background .2s, color .2s;
}

.person-category-tabs .tab-header.active a {
  background: var(--accent-color);
  color: #fff;
}

.person-category-tabs .tab-header.active a::after {
  content: "";
  position: absolute;
  right: calc(100% - 2px);
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 2px 0 0 0;
}

.person-category-tabs .tab-contents {
  flex: 1;
  min-width: 0;
}

.person-category-tabs .tab-content {
  display: none;
}

.person-category-tabs .tab-content.active {
  display: block;
}

.person-carousel .item {
  padding: 1rem .5rem;
}

.person-carousel .person-image {
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f1f1f1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .06);
  transition: transform .2s;
}

.person-carousel .item:hover .person-image {
  transform: scale(1.05);
}

.person-name {
  font-size: 1rem;
  font-weight: 600;
  margin-top: .75rem;
}

@media (max-width: 768px) {
  .person-category-tabs .tabs-layout {
    flex-direction: column-reverse;
  }

  .person-category-tabs .tab-headers {
    flex-direction: row;
    justify-content: center;
    padding: 1rem 0;
    overflow-x: auto;
    direction: ltr;
  }

  .person-category-tabs .tab-headers::before {
    display: none;
  }

  .person-category-tabs .tab-header {
    padding: .35rem 1rem .35rem 0;
  }

  .person-category-tabs .tab-header::before {
    right: 50%;
    transform: translateX(50%) translateY(-50%);
  }

  .person-category-tabs .tab-header a::after {
    display: none;
  }
}