.a8-team {
  padding-block: clamp(40px, 4vw, 62px) clamp(37px, 3.6vw, 56px);
  background: #fff;
}

.a8-team-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin-bottom: clamp(20px, 2vw, 30px);
}

.a8-team-all {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 15px 6px 18px;
  border: 1px solid #cddbd3;
  border-radius: 25px;
  color: #234b3f;
  background: #f5f9f6;
  font-size: 15px;
  font-weight: 590;
}

.a8-team-all:hover,
.a8-doctor-details:hover {
  background: #e6f1eb;
}

.a8-team-all > .icon,
.a8-doctor-details > .icon {
  width: 17px;
  height: 17px;
  color: var(--strong);
}

.a8-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.45vw, 24px);
}

.a8-doctor {
  --a8-card-space: clamp(16px, 1.5vw, 24px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dae6df;
  border-radius: 23px;
  background: #fcfefc;
  box-shadow: 0 8px 24px #2543370a;
}

.a8-doctor-media {
  aspect-ratio: 3 / 2;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e1ebe4;
}

.a8-doctor-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a8-doctor-bio {
  flex: 1;
  min-width: 0;
  padding: 20px var(--a8-card-space) 18px;
}

.a8-doctor-bio h3 {
  font-size: clamp(22px, 1.83vw, 28px);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.a8-doctor-bio h3 > span {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -.015em;
  line-height: 1.3;
}

.a8-doctor-credentials {
  display: grid;
  gap: 4px;
  margin-block-start: 14px;
}

.a8-doctor-role {
  font-size: 15px;
  color: #23594d;
  font-weight: 620;
  line-height: 1.48;
}

.a8-doctor-experience {
  color: #476355;
  font-size: 14px;
  line-height: 1.4;
}

.a8-doctor-practice {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e0ebe4;
  color: #3c5147;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.a8-doctor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  padding: 0 var(--a8-card-space) 17px;
}

.a8-doctor-book,
.a8-doctor-details {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 11px;
  border-radius: 23px;
  color: var(--strong);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.a8-doctor-book {
  flex: 1 1 110px;
  color: #fff;
  background: var(--primary);
  font-weight: 630;
}

.a8-doctor-details {
  flex: 0 0 auto;
  padding-inline: 9px;
}

.a8-doctor-book:hover {
  color: #fff;
  background: var(--strong);
}

.a8-team-specialties {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 20px;
  color: #4b6055;
  font-size: 14px;
}

.a8-team-specialties p {
  font-weight: 570;
}

.a8-team-specialties ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.a8-team-specialties a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 3px;
  color: var(--strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.a8-team-specialties a:hover {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .a8-team-heading h2 {
    font-size: clamp(32px, 5vw, 43px);
  }
  .a8-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .a8-doctor-bio h3 {
    font-size: clamp(24px, 2.75vw, 28px);
  }
}

@media (max-width: 619px) {
  .a8-team {
    padding-block: 32px 29px;
  }
  .a8-team-heading {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 17px;
  }
  .a8-team-heading h2 {
    flex: 1 0 100%;
    font-size: clamp(29px, 8.4vw, 37px);
  }
  .a8-team-all {
    min-height: 44px;
    padding-inline: 13px;
    font-size: 14px;
  }
  .a8-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .a8-doctor {
    border-radius: 21px;
  }
  .a8-doctor-bio {
    padding-block: 17px 16px;
  }
  .a8-doctor-bio h3 {
    font-size: clamp(24px, 6.1vw, 28px);
  }
  .a8-team-specialties {
    gap: 2px 10px;
    margin-top: 15px;
  }
  .a8-team-specialties ul {
    column-gap: 5px;
  }
  .a8-team-specialties a {
    padding-inline: 2px;
  }
}

.a8-booking .request-context:not([hidden]) {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: #274c40;
  background: #edf5ef;
  font-size: 15px;
  line-height: 1.4;
}
