@import "../component-loading/style.css";

.team-doctors-list {
  overflow: hidden;
}

.team-doctors-list > .container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.team-doctors-category {
  z-index: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  width: fit-content;
  margin-bottom: 80px;
  margin-left: auto;
  padding: 16px 0 16px 60px;
  display: flex;
  position: relative;
}

.team-doctors-category:after {
  content: "";
  z-index: -1;
  background-color: var(--color-secondary-1);
  border-radius: 999px 0 0 999px;
  width: 100vw;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
}

.team-doctors-category > button {
  opacity: .4;
  font-weight: 500;
  transition: opacity .3s;
}

.team-doctors-category > button:hover {
  opacity: 1;
}

.team-doctors-category > button.active {
  opacity: 1;
}

.team-doctors-mobile-category {
  margin-bottom: 40px;
  display: none;
  position: relative;
}

.team-doctors-mobile-category #team-doctors-mobile-category {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--color-secondary-1);
  width: 100%;
  color: var(--color-gray-2);
  text-align: center;
  border: none;
  border-radius: 999px;
  outline: none;
  padding: 12px 24px;
}

.team-doctors-mobile-category > div {
  position: absolute;
  top: 12px;
  right: 24px;
}

.doctors-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
  display: grid;
}

.doctors-list > .card {
  grid-row: span 3;
  grid-template-rows: subgrid;
  margin-bottom: 60px;
  display: grid;
}

.doctors-list > .card > .img {
  border-radius: 50%;
  margin-bottom: 24px;
  overflow: hidden;
}

.doctors-list > .card > .img > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .3s;
}

.doctors-list > .card > p {
  text-align: center;
  color: var(--color-primary-2);
  margin-bottom: 4px;
  font-weight: 500;
}

.doctors-list > .card > h4 {
  text-align: center;
  transition: color .3s;
}

.doctors-list > .card:hover > .img > img {
  transform: scale(1.1);
}

.doctors-list > .card:hover > h4 {
  color: var(--color-primary-2);
}

.doctors-list > .no-data {
  grid-column: 1 / -1;
}

.doctors-list > .no-data > p {
  text-align: center;
  padding: 200px 0;
}

@media screen and (max-width: 767px) {
  .team-doctors-category {
    gap: 16px;
    padding: 16px 0 16px 40px;
  }
}

@media screen and (max-width: 575px) {
  .team-doctors-list > .container {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .team-doctors-category {
    display: none;
  }

  .team-doctors-mobile-category {
    display: block;
  }

  .doctors-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 8px;
  }

  .doctors-list > .card {
    margin-bottom: 36px;
  }
}