.teaching-section + .teaching-section {
  margin-top: 2.4rem;
}

.teaching-section-heading {
  padding-left: 0.9rem;
  border-left: 3px solid var(--global-theme-color);
}

.teaching-section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.teaching-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.teaching-card {
  --teaching-accent: var(--global-theme-color);
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  min-height: 14rem;
  overflow: hidden;
  background: var(--global-card-bg-color);
  border: 1px solid var(--global-divider-color);
  border-radius: 0.95rem;
  box-shadow: 0 0.55rem 1.4rem color-mix(in srgb, var(--global-text-color) 6%, transparent);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.teaching-card:hover {
  border-color: color-mix(in srgb, var(--teaching-accent) 45%, var(--global-divider-color));
  box-shadow: 0 0.85rem 1.85rem color-mix(in srgb, var(--teaching-accent) 15%, transparent);
  transform: translateY(-3px);
}

.teaching-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.2rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 110% -5%, rgb(255 255 255 / 26%) 0 25%, transparent 26%),
    radial-gradient(circle at -20% 105%, rgb(255 255 255 / 15%) 0 34%, transparent 35%),
    linear-gradient(145deg, color-mix(in srgb, var(--teaching-accent) 78%, #111827), var(--teaching-accent));
}

.teaching-visual::after {
  position: absolute;
  right: -1.4rem;
  bottom: 2.6rem;
  width: 6rem;
  height: 6rem;
  content: "";
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
}

.teaching-poster {
  display: block;
  padding: 0;
  cursor: zoom-in;
  background: color-mix(in srgb, var(--teaching-accent) 9%, #fff);
}

.teaching-poster::after {
  display: none;
}

.teaching-poster img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  object-position: center top;
}

.teaching-poster-contain {
  background: radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--teaching-accent) 10%, transparent), transparent 35%), #fff;
}

.teaching-poster-contain img {
  padding: 0.7rem;
  object-fit: contain;
  object-position: center;
}

.teaching-poster-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.34rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  pointer-events: none;
  background: rgb(15 23 42 / 78%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  box-shadow: 0 0.3rem 0.8rem rgb(0 0 0 / 20%);
  backdrop-filter: blur(4px);
}

.teaching-content {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.35rem 1.25rem;
}

.teaching-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.teaching-role {
  padding: 0.25rem 0.58rem;
  font-size: 0.67rem;
  font-weight: 800;
  color: var(--teaching-accent);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--teaching-accent) 10%, transparent);
  border-radius: 999px;
}

.teaching-date {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--global-text-color-light);
}

.teaching-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--global-text-color);
}

.teaching-venue,
.teaching-description {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
}

.teaching-venue {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
  font-weight: 650;
  color: var(--teaching-accent);
}

.teaching-description {
  color: var(--global-text-color-light);
}

.teaching-outcomes {
  padding: 0.9rem;
  margin-top: 0.95rem;
  background: color-mix(in srgb, var(--teaching-accent) 5%, var(--global-card-bg-color));
  border: 1px solid color-mix(in srgb, var(--teaching-accent) 18%, var(--global-divider-color));
  border-radius: 0.8rem;
}

.teaching-outcomes h4 {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 850;
  color: var(--teaching-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.teaching-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.teaching-outcome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.05rem 0.48rem;
  align-items: center;
  padding: 0.62rem 0.68rem;
  background: var(--global-card-bg-color);
  border: 1px solid color-mix(in srgb, var(--teaching-accent) 18%, var(--global-divider-color));
  border-radius: 0.65rem;
}

.teaching-outcome strong {
  grid-row: 1 / span 2;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
  color: var(--teaching-accent);
}

.teaching-outcome span {
  font-size: 0.7rem;
  font-weight: 780;
  line-height: 1.3;
  color: var(--global-text-color);
}

.teaching-outcome em {
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  color: #b45309;
}

.teaching-outcome-champion {
  background: linear-gradient(135deg, color-mix(in srgb, #f59e0b 14%, var(--global-card-bg-color)), var(--global-card-bg-color));
  border-color: color-mix(in srgb, #f59e0b 42%, var(--global-divider-color));
}

.teaching-outcome-champion strong {
  color: #b45309;
}

.teaching-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.teaching-team {
  min-width: 0;
  padding: 0.62rem 0.68rem;
  background: color-mix(in srgb, var(--teaching-accent) 4%, var(--global-card-bg-color));
  border-left: 3px solid var(--teaching-accent);
  border-radius: 0.25rem 0.55rem 0.55rem 0.25rem;
}

.teaching-team span,
.teaching-team strong {
  display: block;
}

.teaching-team span {
  margin-bottom: 0.15rem;
  font-size: 0.61rem;
  font-weight: 850;
  color: var(--teaching-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.teaching-team strong {
  font-size: 0.76rem;
  color: var(--global-text-color);
}

.teaching-team p {
  margin: 0.25rem 0 0;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--global-text-color-light);
}

.teaching-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding-top: 0.85rem;
  margin-top: auto;
}

.teaching-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.teaching-tags span {
  padding: 0.24rem 0.52rem;
  font-size: 0.67rem;
  color: var(--global-text-color);
  background: color-mix(in srgb, var(--teaching-accent) 7%, var(--global-card-bg-color));
  border: 1px solid color-mix(in srgb, var(--teaching-accent) 20%, var(--global-divider-color));
  border-radius: 999px;
}

.teaching-link {
  flex: 0 0 auto;
  color: var(--teaching-accent) !important;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.teaching-link i {
  margin-left: 0.25rem;
  font-size: 0.7rem;
}

@media (width <= 650px) {
  .teaching-card {
    grid-template-columns: 1fr;
  }

  .teaching-visual {
    min-height: 7rem;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  .teaching-poster {
    display: block;
    min-height: 0;
  }

  .teaching-poster img {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .teaching-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .teaching-outcome-grid,
  .teaching-team-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teaching-card {
    transition: none;
  }

  .teaching-card:hover {
    transform: none;
  }
}
