.page-teachers {
  background: #f5f6f8;
}

.teachers-banner {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.teachers-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: cover;
}

.teachers-banner__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1.2;
  pointer-events: none;
}

.teachers-filter-section {
  position: relative;
  margin-top: -72px;
  z-index: 1;
  padding-bottom: 8px;
}

.teachers-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 24px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.teachers-filter-bar__label {
  font-size: var(--font-size-sm);
  color: #666666;
  white-space: nowrap;
}

.teachers-filter-bar__tabs {
  display: flex;
  align-items: center;
  gap: 28px;
}

.teachers-filter-bar__tab {
  font-size: var(--font-size-sm);
  color: #666666;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.teachers-filter-bar__tab:hover,
.teachers-filter-bar__tab--active {
  color: #58a6f7;
  font-weight: 500;
}

.teachers-main {
  padding: 32px 0 64px;
}

.teachers-loading,
.teachers-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: #999999;
  font-size: var(--font-size-sm);
}

.teachers-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.teachers-search {
  display: flex;
  align-items: center;
  width: 280px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.teachers-search__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: transparent;
}

.teachers-search__input::placeholder {
  color: #bbbbbb;
}

.teachers-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  border: none;
  background: transparent;
  color: #999999;
  cursor: pointer;
}

.teachers-search__btn:hover {
  color: #58a6f7;
}

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

.teacher-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.teacher-card:hover {
  transform: translateY(-6px);
  border-color: #b8d9fc;
  box-shadow: 0 12px 28px rgba(88, 166, 247, 0.18);
}

.teacher-card__photo {
  flex-shrink: 0;
  width: 96px;
  height: 128px;
  background: #e8e8e8;
  border-radius: 2px;
}

.teacher-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.teacher-card__name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.teacher-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 12px;
  color: #58a6f7;
  background: #eef6ff;
  border-radius: 2px;
  margin-bottom: 12px;
}

.teacher-card__summary {
  flex: 1;
  font-size: var(--font-size-sm);
  color: #999999;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teacher-card__link {
  align-self: flex-end;
  margin-top: 12px;
  font-size: var(--font-size-sm);
  color: #58a6f7;
  transition: color 0.2s ease;
}

.teacher-card:hover .teacher-card__name {
  color: #58a6f7;
}

.teacher-card:hover .teacher-card__link {
  color: #3d96f5;
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .teachers-banner img {
    max-height: 200px;
  }

  .teachers-banner__title {
    font-size: 24px;
  }

  .teachers-filter-section {
    margin-top: -52px;
  }

  .teachers-filter-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .teachers-filter-bar__tabs {
    gap: 16px;
    flex-wrap: wrap;
  }

  .teachers-toolbar {
    justify-content: stretch;
  }

  .teachers-search {
    width: 100%;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card__photo {
    width: 80px;
    height: 108px;
  }
}
