.teacher-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 40px;
  width: 100%;
}

.teacher-loader {
  text-align: center;
  color: var(--color-primary);
  margin: 40px 0;
}

.teacher-404 {
  text-align: center;
  color: var(--color-secondary, #d32f2f);
  margin: 60px 0;
}

.teacher-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 30px;
}

.teacher-card {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  padding: 32px;
  border-radius: 12px;
  background-color: var(--color-bg-plashka);
  background-image: url('../img/webp/Frame 2131329884.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.teacher-photo {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.teacher-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-gray-shield);
  color: #111111;
}

.teacher-info-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.teacher-left-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teacher-name {
  margin-bottom: 0;
  max-width: 100%;
}

.teacher-qualifications-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-qualifications-tags .events-tag {
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
  max-width: 100%;
  line-height: 1.3;
}

.teacher-additional-info {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.teacher-additional-info li {
  color: var(--color-text-plashka);
  line-height: var(--line-height-140);
}

.teacher-events {
  margin-top: 80px;
  width: 100%;
}

.teacher-events-title {
  color: var(--color-text-main);
  margin-bottom: 26px;
  margin-left: 28px;
}

.teacher-event-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.teacher-event-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.teacher-event-card:hover {
  transform: translateY(-4px);
}

.teacher-event-card .events-tag-burgundy {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 20px;
  width: 100%;
}

a.event-card-link,
a.event-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.event-title-link:hover .teacher-event-title {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.teacher-event-image {
  width: 100%;
  height: 200px;
  background: var(--color-bg-plashka);
  position: relative;
  overflow: hidden;
}

.teacher-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.event-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--color-bg-plashka);
  color: var(--color-text-gray);
}

.teacher-event-title {
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teacher-event-description {
  color: var(--color-text-plashka);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.teacher-event-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: auto;
  width: fit-content;
}

.teacher-event-more:hover {
  background: var(--color-primary-hover);
}

.event-content-wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex: 1;
}

.event-teacher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.teacher-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.event-teacher span {
  color: var(--color-text-plashka);
}

.event-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.event-price h3 {
  color: var(--color-text-green);
  margin: 0;
}

.event-actions {
  display: flex;
  gap: 12px;
}

.event-actions .btn-sm {
  width: 100%;
}

.teacher-events-empty {
  text-align: center;
  padding: 48px;
  background: var(--color-bg-gray-shield);
  border-radius: 30px;
  color: var(--color-text-plashka);
}
/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs-section {
    background: transparent;
    padding: 20px 0;
}

.breadcrumbs {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.breadcrumbs a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--color-link-hover);
}

.breadcrumb-separator {
    color: var(--color-text-gray);
}

.breadcrumbs span:last-child {
    color: var(--color-text-plashka);
}


/* ===== МЕДИА-ЗАПРОСЫ ===== */

/* Планшеты (1024px) */
@media screen and (max-width: 1024px) {
  .teacher-event-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* Адаптив teacher-card как в event.html */
  .teacher-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 16px;
    padding: 20px;
  }

  .teacher-photo {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    order: 0;
  }

  .teacher-info-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    text-align: left;
  }

  .teacher-left-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .teacher-name {
    order: 1;
    text-align: left;
    flex: none;
    min-width: auto;
  }

  .teacher-qualifications-tags {
    order: 2;
    position: static;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }

  .teacher-additional-info {
    order: 3;
    margin: 0;
    width: 100%;
    text-align: left;
  }
}

/* Мобильные устройства (768px) */
@media screen and (max-width: 768px) {
  .teacher-main { padding: 32px 20px; }
  .teacher-event-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Адаптив teacher-card как в event.html */
  .teacher-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 16px;
    padding: 20px;
  }
  
  .teacher-photo {
    width: 300px;
    height: 300px;
    order: 0;
    margin: 0 auto;
  }
  
  .teacher-info-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    text-align: left;
  }
  
  .teacher-left-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .teacher-name {
    order: 1;
    text-align: left;
    flex: none;
    min-width: auto;
  }
  
  .teacher-qualifications-tags {
    order: 2;
    position: static;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }
  
  .teacher-additional-info {
    order: 3;
    margin: 0;
    width: 100%;
    text-align: left;
  }
}

/* Маленькие экраны (480px) */
@media (max-width: 480px) {
  .teacher-main { padding: 32px 20px; }
  .teacher-event-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Адаптив teacher-card как в event.html */
  .teacher-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 20px;
    gap: 16px;
  }
  
  .teacher-photo {
    width: 100%;
    height: auto;
    order: 0;
    margin: 0;
    aspect-ratio: 1 / 1;
  }
  
  .teacher-photo img {
    width: 100%;
    height: auto;
  }
  
  .teacher-initials {
    aspect-ratio: 1 / 1;
  }
  
  .teacher-info-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    text-align: left;
  }
  
  .teacher-left-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .teacher-name {
    order: 1;
    text-align: left;
    flex: none;
    min-width: auto;
  }
  
  .teacher-qualifications-tags {
    order: 2;
    position: static;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    gap: 8px;
  }
  
  .teacher-additional-info {
    order: 3;
    margin: 0;
    width: 100%;
    text-align: left;
  }
} 