.teaching-main {
  padding-top: 58px;
  padding-bottom: 82px;
}

.teaching-layout {
  display: grid;
  grid-template-columns: minmax(290px, 33%) minmax(0, 67%);
  gap: 72px;
  align-items: start;
}

.teaching-sidebar {
  position: sticky;
  top, 33%) minmax(0, 67%);
  gap: 72: 42px;
  min-width: 0;
}

.teaching-illustration {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
}

.teaching-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.teaching-content {
  min-width: 0;
}

.teaching-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.teaching-lead {
  max-width: 980px;
  margin: 0 0 0.9rem;
  color: #24333c;
  font-size: 1.08rem;
  line-height: 1.5;
}

.teaching-introduction {
  max-width: 1020px;
  margin: 0 0 2.35rem;
  color: #263238;
  font-size: 0.87rem;
  line-height: 1.64;
}

.teaching-section + .teaching-section {
  margin-top: 2.45rem;
  padding-top: 2.15rem;
  border-top: 1px solid #dce1e8;
}

.teaching-section-title {
  margin: 0 0 1.15rem;
  color: #0f6f72;
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.25;
}

.course-list,
.supervision-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 1.65rem;
}

.course-entry + .course-entry {
  padding-top: 1.65rem;
  border-top: 1px solid #e4e7ec;
}

.course-entry:last-child {
  padding-bottom: 0;
}

.course-year {
  color: #2f4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.course-body {
  min-width: 0;
}

.course-title {
  margin: 0 0 0.24rem;
  color: #24333c;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.34;
}

.course-institution {
  margin: 0 0 0.55rem;
  color: #68747b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.course-description {
  margin: 0;
  color: #3d4b53;
  font-size: 0.79rem;
  line-height: 1.58;
}

.course-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-top: 0.7rem;
}

.course-detail {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0.15rem 0.55rem;
  color: #435159;
  background: #f4f6fd;
  border: 1px solid #dce2f3;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
}

.teaching-practice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.practice-item {
  padding-top: 0.85rem;
  border-top: 3px solid #2f4ed8;
}

.practice-item:nth-child(2) {
  border-top-color: #0f6f72;
}

.practice-item:nth-child(3) {
  border-top-color: #f28c28;
}

.practice-item h3 {
  margin: 0 0 0.42rem;
  color: #24333c;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.practice-item p {
  margin: 0;
  color: #536068;
  font-size: 0.72rem;
  line-height: 1.52;
}

.supervision-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 1.4rem;
}

.supervision-entry + .supervision-entry {
  padding-top: 1.4rem;
  border-top: 1px solid #e4e7ec;
}

.supervision-entry:last-child {
  padding-bottom: 0;
}

.supervision-type {
  color: #0f6f72;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.supervision-title {
  margin: 0 0 0.34rem;
  color: #24333c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.supervision-description {
  margin: 0;
  color: #536068;
  font-size: 0.75rem;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .teaching-layout {
    grid-template-columns: minmax(250px, 32%) minmax(0, 68%);
    gap: 48px;
  }

  .teaching-practice {
    gap: 17px;
  }
}

@media (max-width: 820px) {
  .teaching-main {
    padding-top: 38px;
    padding-bottom: 56px;
  }

  .teaching-layout {
    display: flex;
    flex-direction: column;
    gap: 38px;
  }

  .teaching-sidebar {
    position: static;
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .teaching-illustration {
    max-width: 500px;
  }

  .teaching-practice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .teaching-lead {
    font-size: 1rem;
  }

  .course-entry,
  .supervision-entry {
    display: block;
  }

  .course-year,
  .supervision-type {
    display: block;
    margin-bottom: 0.35rem;
  }
}


/* TEACHING-SUPERVISION-REFINEMENT-START */

.teaching-document-link {
  margin: -1.25rem 0 2.4rem;
}

.teaching-statement-link {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: #2f4ed8;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.teaching-statement-link:hover,
.teaching-statement-link:focus-visible {
  color: #6f83e8;
  text-decoration: underline;
}

.teaching-statement-symbol {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  color: #2f4ed8;
  background: #eef2ff;
  border: 1px solid #b9c5ef;
  border-radius: 3px;
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-decoration: none;
}

.teaching-statement-arrow {
  font-size: 0.78rem;
  line-height: 1;
}

.supervision-group-title {
  margin: 0 0 0.75rem;
  color: #24333c;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.supervision-group-title-later {
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e7ec;
}

.bachelor-supervision-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bachelor-supervision-entry {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(170px, 0.65fr);
  gap: 20px;
  align-items: baseline;
  padding: 0.65rem 0;
}

.bachelor-supervision-entry + .bachelor-supervision-entry {
  border-top: 1px solid #edf0f3;
}

.bachelor-supervision-year {
  color: #2f4ed8;
  font-size: 0.72rem;
  font-weight: 700;
}

.bachelor-supervision-students {
  color: #24333c;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.42;
}

.bachelor-supervision-institution {
  color: #68747b;
  font-size: 0.67rem;
  line-height: 1.4;
  text-align: right;
}

@media (max-width: 600px) {
  .bachelor-supervision-entry {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .bachelor-supervision-institution {
    grid-column: 2;
    text-align: left;
  }
}

/* TEACHING-SUPERVISION-REFINEMENT-END */
