.teachers-page {
  background: var(--bg-white);
  padding: 80px 0;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.teacher-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.teacher-image {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.teacher-card:hover .teacher-image img {
  transform: scale(1.1);
}

.teacher-social {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  justify-content: center;
  gap: 18px;
  transform: translateY(100%);
  transition: var(--transition);
}

.teacher-card:hover .teacher-social {
  transform: translateY(0);
}

.teacher-social a {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition);
}

.teacher-social a:hover {
  background: var(--primary-color);
  color: #fff;
}

.teacher-info {
  padding: 35px;
  text-align: center;
}

.teacher-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.teacher-info .title {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 500;
}

.teacher-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.teacher-stats {
  display: flex;
  justify-content: center;
  gap: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.teacher-stats span {
  text-align: center;
}

.teacher-stats span strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 600;
}

.teacher-stats span small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .teachers-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}
