/* Teaching page design — uses the portfolio's existing burgundy, rose, and charcoal palette. */
.teaching-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 2.2em;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  color: #f4f4f4;
  background: linear-gradient(130deg, #1b1b1b 0%, #2a2023 100%);
  border-left: 6px solid #a51f3b;
  border-bottom: 5px solid #a51f3b;
}
.teaching-hero::after {
  position: absolute;
  right: -3.8rem;
  bottom: -6rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(232, 182, 192, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 1.4rem rgba(232, 182, 192, 0.04), 0 0 0 2.8rem rgba(232, 182, 192, 0.03);
  content: "";
  pointer-events: none;
}
.teaching-hero__eyebrow {
  margin: 0 0 0.8em;
  color: #e8b6c0;
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.teaching-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 55rem;
  margin: 0;
  color: #f4f4f4;
  font-size: 1.15em;
  line-height: 1.7;
}
.teaching-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin: 0 0 1.3em;
  padding: 1em 1.2em;
  background: #f1f1f1;
  border: 1px solid #dedede;
  border-left: 4px solid #a51f3b;
}
.teaching-role__title {
  margin: 0;
  color: #1b1b1b;
  font-weight: 700;
}
.teaching-role__date {
  flex: 0 0 auto;
  padding: 0.35em 0.75em;
  color: #fff;
  background: #a51f3b;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}
.teaching-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1em;
  margin: 1em 0 2.2em;
}
.teaching-course-card {
  min-height: 9rem;
  padding: 1.15em;
  background: #fff;
  border: 1px solid #dedede;
  border-top: 4px solid #a51f3b;
  box-shadow: 0 3px 12px rgba(27, 27, 27, 0.05);
}
.teaching-course-card__number {
  display: inline-block;
  margin-bottom: 0.7em;
  color: #a51f3b;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.teaching-course-card h3 {
  margin: 0 0 0.55em;
  color: #1b1b1b;
  font-size: 1.05em;
  line-height: 1.35;
}
.teaching-course-card p {
  margin: 0;
  color: #505050;
  font-size: 0.92em;
}
.teaching-leadership {
  margin: 1em 0 2.2em;
  padding: 1.4em 1.5em;
  color: #f4f4f4;
  background: #1b1b1b;
  border-left: 6px solid #a51f3b;
  border-bottom: 3px solid #a51f3b;
}
.teaching-leadership__eyebrow {
  margin: 0 0 0.5em;
  color: #e8b6c0;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.teaching-leadership h3 {
  margin: 0 0 0.45em;
  color: #fff;
  font-size: 1.25em;
}
.teaching-leadership p:last-child {
  margin-bottom: 0;
  color: #f4f4f4;
}
.teaching-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1em;
  margin: 1em 0 2.2em;
}
.teaching-experience-card {
  padding: 1.15em;
  background: #f7f7f7;
  border: 1px solid #dedede;
  border-left: 4px solid #a51f3b;
}
.teaching-experience-card h3 {
  margin: 0 0 0.55em;
  color: #1b1b1b;
  font-size: 1em;
  line-height: 1.4;
}
.teaching-experience-card p {
  margin: 0;
  color: #505050;
  font-size: 0.92em;
}
.teaching-supervision {
  margin: 1em 0 2.2em;
  padding: 1.2em 1.4em;
  background: #f1f1f1;
  border-left: 5px solid #a51f3b;
}
.teaching-supervision p {
  margin: 0;
}
.teaching-resources {
  margin: 1em 0 2.2em;
  overflow-x: auto;
}
.teaching-resources-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.teaching-resources-table th {
  padding: 0.85em 1em;
  color: #fff;
  background: #1b1b1b;
  border: 1px solid #343434;
  text-align: left;
}
.teaching-resources-table td {
  padding: 0.8em 1em;
  border: 1px solid #dedede;
}
.teaching-resources-table tbody tr:nth-child(even) {
  background: #f7f7f7;
}
.teaching-resources-table td:first-child {
  color: #1b1b1b;
  font-weight: 700;
}
.teaching-status {
  display: inline-block;
  padding: 0.25em 0.65em;
  color: #78172b;
  background: #f8e9ed;
  border: 1px solid #e8b6c0;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}
.teaching-contact {
  margin-top: 1em;
  padding: 1.35em 1.5em;
  color: #f4f4f4;
  background: #1b1b1b;
  border-bottom: 5px solid #a51f3b;
}
.teaching-contact p {
  margin: 0;
  color: #f4f4f4;
}
.teaching-contact a {
  color: #e8b6c0;
  font-weight: 700;
}
.teaching-contact a:hover {
  color: #fff;
}
@media (max-width: 900px) {
  .teaching-course-grid,
  .teaching-experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .teaching-course-grid,
  .teaching-experience-grid {
    grid-template-columns: 1fr;
  }
  .teaching-role {
    align-items: flex-start;
    flex-direction: column;
  }
  .teaching-hero {
    padding: 1.4rem;
  }
  .teaching-hero__copy {
    font-size: 1.02em;
  }
  .teaching-leadership,
  .teaching-contact {
    padding: 1.1em;
  }
}
