
.team-card-modern {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}


.home-healthcare-team-cards {
    background-color: #f8f9fb;
    padding-top: 30px;
    padding-bottom: 30px;
}

.team-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 13px;
}


/* Mobile & Tablet View */
@media (max-width: 767.98px) {
  .team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 13px;
  }

  .team-card-content {
    padding: 10px 10px 10px !important;
    flex-grow: 1;
  }
  

.team-card-text {
    font-size: 0.95rem;
    color: #444;
    border-top: 1px solid #e1e1e1;
    padding-top: 5px;
  }
}

.team-card-content {
  padding: 24px 20px 50px;
  flex-grow: 1;
}

.team-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #cc0000;
  margin-bottom: 10px;
}

.team-card-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    border-top: 1px solid #e1e1e1;
    padding-top: 12px;
}

.team-card-modern:hover .team-card-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    border-top: 1px solid red;
    padding-top: 12px;
}

/* Bottom-right arrow container */
.team-card-arrow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: #ffeded;
  border-top-left-radius: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.team-card-arrow i {
    font-family: "Font Awesome 6 Free";
    color: rgb(202, 0, 27);
}

.team-card-arrow:hover {
  background: rgb(202, 0, 27);
}

.team-card-arrow:hover i {
  color: white;
}