.teacher-profile-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(11, 27, 59, 0.08);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.teacher-profile-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  height: 100%;
  padding: 16px;
}

.teacher-profile-avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f6;
  flex-shrink: 0;
}

.teacher-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.teacher-profile-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  color: #0b1b3b;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teacher-profile-subject {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.teacher-profile-name {
  margin: 0;
  color: #0b1b3b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.teacher-profile-details {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

.teacher-profile-details p:first-child,
.teacher-profile-details ul:first-child,
.teacher-profile-details ol:first-child {
  margin-top: 0;
}

.teacher-profile-details p:last-child {
  margin-bottom: 0;
}

.teacher-profile-details ul,
.teacher-profile-details ol {
  margin-bottom: 0;
  padding-left: 18px;
}

.teacher-profile-details ul:last-child,
.teacher-profile-details ol:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .teacher-profile-card {
    border-radius: 14px;
  }

  .teacher-profile-inner {
    padding: 14px;
    gap: 12px;
  }

  .teacher-profile-avatar {
    border-radius: 10px;
  }

  .teacher-profile-name {
    font-size: 18px;
  }

  .teacher-profile-fallback {
    font-size: 36px;
  }
}
