.doctor-wrapper {
  margin: 3em auto;
}
.doctor-inner.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  padding-bottom: 3em;
  margin: 2em auto 5em;
}

.doctor-wrapper header {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.card-profile {
  background: #fff;
  text-align: center;
  padding: 1em;
  border-radius: 2em;
  transition:.2s ease;
  flex: 1 1 20%;
  position: relative;
}
.card-profile:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.card-profile a {
  text-decoration: none;
}

.profile-pic {
  display: inline-block;
  height: 12em; 
  width: 12em;
  border-radius: 50%; 
  border: 3px solid rgba(0,0,0,.12);
  object-fit:cover; 
  object-position: 0 0;
}

.card-profile .title {
  display: block;
  color: #110057;
  font-size: 1.5em;
  font-weight: 600;
  margin: 1.25em 0 0;
}
.card-profile .title:hover {
  color: #4a00e2;
}
.profile-specialty {
  color: rgba(0, 0, 0, .6);
  margin: 0 0 1em;
  font-size: 1.125em;
  font-weight: 500;
}
.provider-rating {
  font-size: 1.25em;
  line-height: 1.2;
  padding: .25em 1.5em .1em;
  background-color: #d6e6f0;
  color: #110057;
  border-radius: 100px;
  display: flex;
  align-content: center;
  width: -moz-max-content;
  width: max-content;
  justify-content: center;
  margin: -1em auto 0;
  position: relative;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10.5em;
}
.provider-rating .svg-icon {
  margin-right: .25em;
}
.accepting-chip,
.available-chip {
  background: #e6f3f2;
  border-radius: 5px;
  color: #110057;
  font-weight: 400;
  width: -moz-max-content;
  width: max-content;
  display: flex;
  pointer-events: none;
  margin: .75em auto;
  padding: 3px 12px;
}

.card-profile a.btn-primary-outline {
  padding: .375em 1.5em;
}

/* Media Query Breakpoints */


/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) { 
  .doctor-inner.grid { grid-template-columns: repeat(2, 1fr); }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) { 
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
  .doctor-wrapper header {
    flex-direction: row;
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 
  .doctor-inner.grid { 
    grid-template-columns: repeat(3, 1fr); 
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) { 
  main {
    max-width: 1200px;
    margin: auto;
  }
  .doctor-inner.grid { 
    grid-template-columns: repeat(4, 1fr); 
  }
}

