/*Carousel*/
.carousel-container {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.carousel-wrapper {
  width: calc(100% - 100px);
  height: auto;
  left: 60px;
  position: relative;
  overflow: hidden;
 
}

.carousel-track {
  display: flex;
  height: 100%;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background-color: rgba(var(--main-color-rgb), 0.7);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
  background-color: rgba(var(--highlight-color-rgb), 0.5);
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

/*list*/
.publication-list,
.alumni-list,
.collaborator-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  box-sizing: border-box;
}

.list-item {
  padding: 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  transition: background-color 0.3s;
}

.list-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/*---Works---*/
#works .section-bg {
  overflow-y: hidden;
}

#works .menu-tab-btn {
  font-size: 1.5rem;
  font-weight: 500;
  padding-right: 20px;
}

#works .menu-tab-btn.active {
  font-weight: 700;
}


.project-slide {
  flex: 0 0 calc(100% - 1rem);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-image-wrapper {
  flex: 0 0 60%;
  height: auto;
}

.project-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.project-info {
  flex: 1;
  padding-top: 1rem;
}

.thumb-track {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  gap: .5rem;
}

.thumb {
  width: 80px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: .5;
  transition: opacity .3s;
}

.thumb.active {
  opacity: 1;
  outline: 2px solid var(--highlight-color);
}