.card {
  background-color: #fff;
  position: relative;
  width: 360px;
  height: 400px;
  border-radius: 3rem;
  border: 6px solid #e7e7e7;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(-0.6rem);
}

.img-wrapper {
  position: relative;

  overflow: hidden;
}

.img-wrapper::after {
  content: '';
  /* Order: color overlay on top of background image */
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.4)),
    url('images/images.png') center 20% / contain no-repeat;

  position: absolute;
  inset: 0;
  /* Higher z-index puts this ON TOP of the image */
  /* z-index: -1; */
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Dark gradient overlay */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255.99),
    rgba(255, 255, 255.95),
    rgba(255, 255, 255, 0.9),
    transparent
  );
  z-index: 2;
}

.card:hover .overlay {
  height: 58%;
  background: linear-gradient(to top, rgba(255, 255, 255), rgba(255, 255, 255), rgba(255, 255, 255), transparent);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #333;
  /* width: 100%; */
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-content h2 {
  color: #111;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.doc-name {
  color: #111;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.name-wrapper {
  display: inline-flex;
  /* Keeps the badge anchored to the end of the text */
  align-items: center;
  gap: 6px;
  /* Adjust this for the perfect distance */
  vertical-align: middle;
}

.name-wrapper img {
  flex-shrink: 0;
  /* Prevents the badge from squishing on small screens */
}

.verified {
  font-size: 14px;
  background: white;
  color: black;
  border-radius: 50%;
  padding: 2px 6px;
}

.dept {
  margin-top: 8px;
  border-radius: 20px;
  background-color: #ff704021;
  display: inline-block;
  padding: 0.25rem 0.4rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #222;
}

.bio {
  padding: 0 0.4rem;
  margin-top: 4px;
  font-size: 13.6px;
  line-height: 1.5;
  color: #333;
}

.card-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 1rem;
}

.stats {
  display: flex;
  gap: 15px;
  font-family: inherit;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  border: none;
  background: none;
}

.stats:hover {
  color: #ff6f40;
}

.hire-btn {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600 !important;
  background: #ff6f40;
  color: #fff;
  border: none;
  padding: 8px 80px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  /* transform: translateY(0); */
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.1s ease;
}

.hire-btn:hover {
  color: #000;
  background: #ffc816;
  transform: translateY(-5px);
  box-shadow: 4px 8px 1px #d4a301;
}

.hire-btn:active {
  transform: translateY(0px);
  box-shadow: 0px 0px 2px #b88d00;
}
