/* Teacher Info Card (shortcode) */
.teacher-info-card-shortcode {
  display: flex;
  align-items: center;
  background: linear-gradient(131deg, var(--first-bg, #e0f7fa) 0%, var(--second-bg, #e0f7fa) 100%);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  font-family: sans-serif;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.teacher-info-card-shortcode .avatar-wrapper {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  margin: -40px 0px;
  border-radius: 50%;
  background-color: var(--avatar-bg, #1e99a6);
  margin-right: -40px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--first-bg, #e0f7fa);
}
.teacher-info-card-shortcode .avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 100%;
}
.teacher-info-card-shortcode .avatar-wrapper .avatar-text {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}
.teacher-info-card-shortcode .info-content {
  flex-grow: 1;
  padding-left: 60px;
  z-index: 1;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.teacher-info-card-shortcode .teacher-name {
  font-size: 1.25em;
  font-weight: bold;
  color: var(--name-color, #007bff);
  margin: 0 0 5px 0;
  text-decoration: none;
}
.teacher-info-card-shortcode .teacher-name:hover {
  text-decoration: underline;
}
.teacher-info-card-shortcode .short-description {
  font-size: 0.9em;
  color: var(--desc-color, #333333);
  margin: 0 0 10px 0;
  line-height: 1.5;
  max-height: 8rem;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden !important;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
}
.teacher-info-card-shortcode .read-more-button {
  align-self: flex-end;
  background-color: var(--button-bg, #dc3545);
  color: var(--button-text, #ffffff);
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
  transition: filter 0.2s ease-in-out;
}
.teacher-info-card-shortcode .read-more-button:hover {
  filter: brightness(90%);
}

/* Responsive */
@media (max-width: 520px) {
  .teacher-info-card-shortcode {
    flex-direction: column;
    align-items: center;
    padding: 15px;
    max-width: 90%;
  }
  .teacher-info-card-shortcode .avatar-wrapper {
    margin-right: 0;
    margin-bottom: -40px;
    width: 90px;
    height: 90px;
  }
  .teacher-info-card-shortcode .info-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 50px;
    align-items: center;
    text-align: center;
  }
  .teacher-info-card-shortcode .read-more-button {
    align-self: center;
    margin-top: 10px;
  }
}
