/* New Teacher Card Styling */
.teacher-card-container {
  position: relative;
  background-color: white;
  border-radius: 18px;
  padding: 0;
  width: 320px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  margin: 0 auto 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 480px;
}

.teacher-card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

/* Card Header Section */
.teacher-card-header {
  background-color: #f0f0ff;
  padding: 30px 20px 25px;
  position: relative;
  border-radius: 18px 18px 0 0;
  margin-bottom: 0;
}

/* Container for all mobile teacher cards */
.teachers-mobile-container {
  padding: 20px 0;
  display: none; /* Hidden by default, shown by JS on mobile */
  max-width: 360px;
  margin: 0 auto;
}

/* Avatar/Photo Container */
.teacher-avatar-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 20px auto;
  overflow: visible;
  z-index: 2;
  cursor: pointer;
}

/* Avatar Image - circular */
.teacher-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: white;
}

/* Real Photo (initially hidden) - square with rounded corners */
.teacher-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  border-radius: 16px;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  background-color: white;
  transform: scale(0.95);
}

/* Class for showing the real photo */
.show-photo .teacher-avatar {
  opacity: 0;
  transform: scale(0.95);
}

.show-photo .teacher-photo {
  opacity: 1;
  transform: scale(1);
}

/* Status Badge */
.teacher-status {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #4cd964;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Teacher Info Section */
.teacher-info-section {
  padding: 15px 20px 25px;
}

/* Teacher Name */
.teacher-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 5px 0 2px;
}

/* Teacher Rating */
.teacher-rating {
  font-size: 16px;
  font-weight: 500;
  color: #444;
  margin: 2px 0 8px;
}

/* Teacher Title */
.teacher-title {
  font-size: 14px;
  color: #555;
  margin: 8px 0;
  line-height: 1.3;
}

/* Teacher Location */
.teacher-location {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}

/* Teacher Languages */
.teacher-languages {
  font-size: 13px;
  color: #666;
  margin: 4px 0 18px;
}

/* Teacher Tags Container */
.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

/* Individual Tag */
.teacher-tag {
  background-color: #fff5f0;
  color: #ff9d71;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

/* Tags for Cambridge */
.teacher-tag:nth-child(1) {
  background-color: #fff2e8;
  color: #ff9a5b;
}

/* Tags for Business English */
.teacher-tag:nth-child(2) {
  background-color: #fff5f0;
  color: #ff9d71;
}

/* Tags for IELTS */
.teacher-tag:nth-child(3) {
  background-color: #fff2e8;
  color: #ff9a5b;
}
