.faculty-section {
  background-color: var(--secondary);
}
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}
.teacher-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(78, 101, 84, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(78, 101, 84, 0.12);
}
.teacher-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 600/750;
  overflow: hidden;
  background-color: #d0d0d0;
}
.teacher-img-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.82) 70%,
    var(--white) 100%
  );
  pointer-events: none;
}
.teacher-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: #d0d0d0;
  transition: var(--transition);
}
.teacher-card:hover .teacher-img-wrap img {
  transform: scale(1.05);
}
.teacher-info {
  margin-top: -100px;
  padding: 14px 20px 16px;
  text-align: left;
  background: var(--white);
  border-top: 1px solid rgba(78, 101, 84, 0.14);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
}
.teacher-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}
.teacher-title {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
}
.teacher-divider {
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 1;
  margin: 12px 0 14px;
}
.teacher-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}
.teacher-meta {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  align-items: start;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
}
.teacher-meta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}
.teacher-meta-value {
  color: var(--text-dark);
  font-weight: 500;
}
.faculty-actions {
  text-align: center;
  margin-top: 40px;
}
@media (max-width: 1024px) {
  .faculty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .faculty-grid {
    gap: 12px;
  }
  .teacher-info {
    margin-top: -72px;
    padding: 14px 20px 16px;
    min-height: 0;
  }
  .teacher-name {
    font-size: 18px;
  }
  .teacher-desc {
    font-size: 12px;
    line-height: 1.5;
  }
  .teacher-meta {
    grid-template-columns: 68px 1fr;
    font-size: 11px;
    gap: 8px;
    margin-bottom: 6px;
  }
}
