#staff {
  position: relative;
  padding: 1rem 0;
}

#staff > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#staff > ul > li {
  display: none;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--theme-bg);
  background: var(--theme-bg);
  color: var(--theme-fg);
  border-radius: 8px;
}

#staff > ul > li.active { 
    display: flex; 
}

#staff > ul > li > ul {
    list-style: none;
}

#staff > ul > li > img:first-child {
  max-height: 400px;
  flex: 0 0 160px;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

#staff > ul > li > ul > li:first-child {
  font-size: 20px;
  font-weight: 500;
  color: var(--theme_fg);
  margin-bottom: 4px;
}

#staff > ul > li > ul > li:nth-child(2) {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--theme-fg);
  color: var(--theme_fg);
  margin-bottom: 12px;
  opacity: 0.7;
}

#staff ul ul > li:nth-child(3) {
  font-size: 15px;
  line-height: 1.7;
  color: var(--theme_fg);
  opacity: 0.75;
  margin: 0;
}

#staff .carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

#staff .carousel-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid var(--theme-bg);
  border-radius: 6px;
  background: transparent;
  color: var(--theme_fg);
  transition: background 0.15s, color 0.15s;
}

#staff .carousel-btn:hover {
  background: var(--theme-fg);
  color: var(--theme-bg);
}

#staff .carousel-btn:disabled { opacity: 0.3; cursor: default; }

#staff .carousel-dots { display: flex; gap: 6px; }

#staff .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-fg);
  opacity: 0.3;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

#staff .dot.active {
  opacity: 1;
  transform: scale(1.2);
}

@media (max-width: 480px) {
  #staff li.active { flex-direction: column; }
  #staff img.team_photo { flex: none; width: 100%; height: 220px; }
}

