.theme-container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.docttus-teacher-page {
  --bg: #f8fbff;
  --surface: #ffffff;
  --text: var(--gray-900);
  --muted: var(--gray-700);
  --line: rgba(11, 61, 145, 0.12);
  --cyan: var(--blue-900);
  --accent: var(--blue-800);
  --radius-card-lg: 18px;
  --radius-card: 16px;
  --theme-page-top-space: 52px;
  padding: var(--theme-page-top-space) 0 96px;
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-050) 100%);
}

.docttus-teacher-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--gray-500);
  font-size: 0.88rem;
  font-weight: 700;
}

.docttus-teacher-breadcrumb a {
  color: var(--gray-700);
  text-decoration: none;
}

.docttus-teacher-breadcrumb a:hover,
.docttus-teacher-breadcrumb strong {
  color: var(--blue-900);
}

.docttus-teacher-hero {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(11, 61, 145, 0.08);
}

.docttus-teacher-hero__side {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.docttus-teacher-hero__avatar-shell {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: border-color 0.35s ease;
}

.docttus-teacher-hero__avatar-shell:hover {
  border-color: var(--blue-900);
}

.docttus-teacher-hero__avatar-shell::before,
.docttus-teacher-hero__avatar-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(11, 61, 145, 0.28);
}

.docttus-teacher-hero__avatar-shell:hover::before {
  animation: docttus-team-pulse-light 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.docttus-teacher-hero__avatar-shell:hover::after {
  animation: docttus-team-pulse-light 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-delay: 1s;
}

.docttus-team-member__avatar {
  position: relative;
  z-index: 1;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.35s ease, transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.docttus-teacher-hero__avatar-shell:hover .docttus-team-member__avatar {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.08);
}

.docttus-teacher-hero__avatar-fallback {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 46px;
}

.docttus-teacher-hero__metrics {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 200px;
  justify-items: stretch;
  text-align: left;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.docttus-teacher-hero__metrics div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.docttus-teacher-hero__metrics strong {
  color: var(--gray-900);
  font-weight: 700;
}

.docttus-teacher-hero__metrics i {
  width: 18px;
  color: var(--blue-900);
  text-align: center;
  line-height: 1.2;
}

.docttus-teacher-hero__metric-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.docttus-teacher-hero__metric-line span,
.docttus-teacher-hero__metric-text {
  color: var(--gray-700);
  line-height: 1.35;
}

.docttus-teacher-hero__eyebrow,
.docttus-teacher-section__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docttus-teacher-hero h1 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: clamp(1.55rem, 2.5vw, 2.18rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: balance;
}

.docttus-teacher-hero__role {
  margin: 0 0 10px;
  color: var(--blue-800);
  font-size: 1rem;
  font-weight: 800;
}

.docttus-teacher-hero__tagline {
  max-width: 820px;
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.8;
}

.docttus-teacher-hero__about {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.docttus-teacher-hero__about p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.85;
}

.docttus-teacher-hero__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.docttus-teacher-hero__social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--gray-700);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.docttus-teacher-hero__social-link:hover {
  transform: translateY(-2px);
  border-color: var(--blue-900);
  background: var(--blue-100);
  color: var(--blue-900);
}

.docttus-teacher-hero__specialties {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.docttus-teacher-hero__specialties span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-050);
  color: var(--gray-900);
  font-size: 0.82rem;
  font-weight: 800;
}

.docttus-teacher-section {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(11, 61, 145, 0.08);
}

.docttus-teacher-section__header {
  margin-bottom: 22px;
}

.docttus-teacher-section__header--courses {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.docttus-teacher-section__heading-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.docttus-teacher-section__count-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--gray-700);
}

.docttus-teacher-section__count-inline strong {
  color: var(--gray-900);
  font-size: 0.98rem;
  font-weight: 800;
}

.docttus-teacher-section__count-inline span {
  color: var(--gray-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.docttus-teacher-courses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.docttus-teacher-empty {
  padding: 20px;
  border: 1px dashed rgba(11, 61, 145, 0.24);
  border-radius: var(--radius-card);
  color: var(--gray-700);
  text-align: center;
}

@keyframes docttus-team-pulse-light {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 61, 145, 0.32);
  }

  100% {
    box-shadow: 0 0 0 40px rgba(11, 61, 145, 0);
  }
}

@media (max-width: 1100px) {
  .docttus-teacher-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .docttus-teacher-page {
    padding: 48px 0 72px;
  }

  .docttus-teacher-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px;
    text-align: center;
  }

  .docttus-teacher-hero__copy {
    display: grid;
    justify-items: center;
  }

  .docttus-teacher-hero__metrics {
    max-width: 220px;
    justify-items: center;
  }

  .docttus-teacher-hero__metric-line {
    justify-content: center;
  }

  .docttus-teacher-hero__about {
    text-align: left;
  }

  .docttus-teacher-section {
    padding: 24px;
  }

  .docttus-teacher-courses {
    grid-template-columns: 1fr;
  }
}
