/* Teaching page — neo-brutalist theme (variables from neo-styles.css) */

.teaching-page {
  --teach-deep: #2f114a;
  --teach-deep-2: #4b1f73;
  --teach-soft-1: #b57af3;
  --teach-signal: #b5179e;
  --teach-shadow-hard: color-mix(in srgb, var(--border) 88%, var(--primary));
  margin: 1.5rem auto 1.2rem;
  width: min(1200px, calc(100% - 2rem));
  padding-bottom: 3rem;
}

/* —— Hero —— Framed card + bold offset shadows (Impact / Lab / News parity) */
.teaching-hero {
  position: relative;
  margin: 0 0 2.5rem;
  padding: 0;
  overflow: hidden;
  border: var(--border-width) solid var(--border);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
}

body[data-theme='dark'] .teaching-hero {
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.52);
}

.teaching-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 68% 52% at 14% 20%, rgba(155, 93, 229, 0.4) 0%, transparent 56%),
    radial-gradient(ellipse 58% 48% at 86% 70%, rgba(102, 217, 239, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 45% 38% at 50% 95%, rgba(181, 23, 158, 0.15) 0%, transparent 48%),
    linear-gradient(168deg, rgba(247, 242, 255, 0.98) 0%, rgba(224, 170, 255, 0.42) 48%, rgba(199, 125, 255, 0.35) 100%);
}

body[data-theme='dark'] .teaching-hero__bg {
  background:
    radial-gradient(ellipse 62% 48% at 20% 24%, rgba(155, 93, 229, 0.26) 0%, transparent 54%),
    radial-gradient(ellipse 52% 42% at 80% 76%, rgba(102, 217, 239, 0.1) 0%, transparent 48%),
    linear-gradient(172deg, #1a0f2e 0%, #120a1f 52%, #0a0512 100%);
}

.teaching-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.065;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

body[data-theme='dark'] .teaching-hero__pattern {
  opacity: 0.1;
}

/* Monitor-style lines at hero bottom (Impact / News parity: sine + EKG) */
.teaching-hero__monitor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  height: clamp(76px, 11vw, 118px);
  padding: 0 0 0.65rem;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.teaching-monitor__sine-wrap,
.teaching-monitor__ekg-wrap {
  overflow: hidden;
  width: 100%;
  flex: 0 0 auto;
}

.teaching-monitor__sine-wrap {
  height: clamp(28px, 4.5vw, 40px);
  color: color-mix(in srgb, var(--teach-deep-2) 82%, var(--teach-soft-1));
  opacity: 0.88;
}

.teaching-monitor__sine {
  width: 200%;
  height: 100%;
  display: block;
  animation: teachingSineFlow 22s linear infinite;
}

.teaching-monitor__ekg-wrap {
  height: clamp(30px, 4.8vw, 44px);
  color: var(--teach-deep);
  opacity: 0.92;
}

body[data-theme='dark'] .teaching-monitor__sine-wrap {
  color: color-mix(in srgb, #c4b5fd 55%, var(--teach-soft-1));
  opacity: 0.75;
}

body[data-theme='dark'] .teaching-monitor__ekg-wrap {
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.88;
}

.teaching-monitor__ekg {
  width: 200%;
  height: 100%;
  display: block;
  animation: teachingEkgSlide 10s linear infinite;
}

@keyframes teachingSineFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes teachingEkgSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.teaching-hero__deco {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--border);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 6px 6px 0 var(--teach-shadow-hard);
  pointer-events: none;
  color: color-mix(in srgb, var(--primary) 70%, var(--text));
}

.teaching-hero__deco .fas {
  font-size: 1.85rem;
  opacity: 0.88;
}

.teaching-hero__deco--book {
  top: 14%;
  right: 7%;
  width: 100px;
  height: 72px;
  border-radius: 8px;
  animation: teachingFloat 7.5s ease-in-out infinite;
}

.teaching-hero__deco--cap {
  bottom: 16%;
  left: 8%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  animation: teachingFloat 6.2s ease-in-out infinite 0.4s;
}

@keyframes teachingFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-4deg);
  }
}

.teaching-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.1rem) 1.25rem clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

.teaching-hero__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: var(--border-width) solid var(--border);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--teach-shadow-hard);
  backdrop-filter: blur(8px);
}

body[data-theme='dark'] .teaching-hero__badge {
  background: rgba(36, 19, 58, 0.78);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.48);
}

.teaching-hero__title {
  font-family: 'Baloo Da 2', sans-serif;
  font-size: clamp(2.35rem, 5.2vw, 3.45rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 1rem;
  text-shadow: 3px 3px 0 rgba(155, 93, 229, 0.26);
}

body[data-theme='dark'] .teaching-hero__title {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.teaching-hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.68;
  color: var(--text);
  opacity: 0.92;
  max-width: 40rem;
  margin: 0 auto 1.35rem;
}

.teaching-kpi-grid {
  margin: 1.35rem auto 0;
  max-width: 62rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.teaching-kpi-card {
  border: var(--border-width) solid var(--border);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  background: rgba(255, 255, 255, 0.62);
  padding: 0.95rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transform: translateZ(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.teaching-kpi-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 var(--teach-shadow-hard);
  filter: brightness(1.04);
}

body[data-theme='dark'] .teaching-kpi-card {
  background: rgba(36, 19, 58, 0.78);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

body[data-theme='dark'] .teaching-kpi-card:hover {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.teaching-kpi-card__value {
  display: block;
  font-family: 'Baloo Da 2', sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  color: color-mix(in srgb, var(--primary) 72%, var(--text));
}

.teaching-kpi-card__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.88;
}

@media (max-width: 900px) {
  .teaching-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .teaching-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.teaching-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.teaching-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  border: var(--border-width) solid var(--border);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--teach-shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.teaching-hero__cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 var(--teach-shadow-hard);
  filter: brightness(1.03);
}

.teaching-hero__cta--primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 45%, #fff), var(--accent));
}

.teaching-hero__cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* —— Shell —— */
.teaching-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  counter-reset: teach-chapter;
}

.teaching-section {
  margin-bottom: clamp(2.25rem, 4vw, 3.35rem);
}

.teaching-section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0;
  margin-bottom: 3.4rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px dashed color-mix(in srgb, var(--primary) 22%, var(--border));
}

.teaching-section__head::before {
  grid-column: 1;
  grid-row: 1;
  counter-increment: teach-chapter;
  content: counter(teach-chapter, decimal-leading-zero);
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  line-height: 1;
  padding: 0.5rem 0.4rem 0.4rem;
  min-width: 2.6rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(
    155deg,
    var(--teach-signal) 0%,
    color-mix(in srgb, var(--primary) 35%, var(--teach-signal)) 100%
  );
  border: var(--border-width) solid var(--border);
  border-radius: 16px 8px 16px 8px;
  box-shadow: 4px 4px 0 var(--border);
  align-self: center;
}

body[data-theme='dark'] .teaching-section__head::before {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--teach-signal) 92%, #fff) 0%,
    color-mix(in srgb, var(--primary) 40%, var(--teach-signal)) 100%
  );
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.teaching-section__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  justify-self: start;
  min-width: 0;
  padding: 0.52rem 0.95rem;
  font-family: 'Baloo Da 2', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f1235;
  background: var(--teach-soft-1);
  border: var(--border-width) solid var(--teach-deep-2);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--teach-deep);
}

body[data-theme='dark'] .teaching-page .teaching-section__title {
  color: #ffffff !important;
}

.teaching-section__meta {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  justify-self: end;
  max-width: min(100%, 22rem);
  text-align: right;
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0.78;
  color: var(--text);
}

@media (max-width: 720px) {
  .teaching-section__head {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .teaching-section__head::before {
    grid-column: 1;
    grid-row: 1;
  }

  .teaching-section__title {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .teaching-section__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }
}

.teaching-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.teaching-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Wave dividers — elegant dual-line wave (continuous, lightweight) */
.teaching-divider--wave {
  position: relative;
  width: 100%;
  height: clamp(22px, 3.8vw, 30px);
  margin: clamp(1rem, 2.4vw, 1.75rem) 0;
  pointer-events: none;
  overflow: hidden;
}

.teaching-divider--wave::before {
  content: none;
}

body[data-theme='dark'] .teaching-divider--wave::before {
  content: none;
}

.teaching-divider--wave::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='30' viewBox='0 0 320 30'%3E%3Cpath fill='none' stroke='%234b1f73' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M0 15 C 24 7 48 23 72 15 S 120 7 144 15 S 192 23 216 15 S 264 7 288 15 S 312 23 320 15'/%3E%3C/svg%3E");
  background-size: 320px 100%;
  background-repeat: repeat-x;
  background-position: 0 center;
  opacity: 0.86;
  animation: teachingDividerLineFlow 9.5s linear infinite;
}

body[data-theme='dark'] .teaching-divider--wave:not(.teaching-divider--wave--alt)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='30' viewBox='0 0 320 30'%3E%3Cpath fill='none' stroke='%23e9e0ff' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round' d='M0 15 C 24 7 48 23 72 15 S 120 7 144 15 S 192 23 216 15 S 264 7 288 15 S 312 23 320 15'/%3E%3C/svg%3E");
  opacity: 0.74;
}

.teaching-divider--wave::before {
  content: none;
}

.teaching-divider--wave--alt::after {
  animation-duration: 7.8s;
  animation-direction: reverse;
}

body[data-theme='dark'] .teaching-divider--wave::before {
  content: none;
}

@keyframes teachingDividerLineFlow {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -320px;
  }
}

/* —— Course grid + details —— */
.teaching-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  /* Prevent row stretch from tying card heights; avoids sibling <details> looking “open” */
  align-items: start;
}

@media (max-width: 860px) {
  .teaching-courses-grid {
    grid-template-columns: 1fr;
  }
}

.teaching-course-card {
  width: 100%;
  align-self: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 255, 0.9)),
    var(--white);
  border: var(--border-width) solid color-mix(in srgb, var(--primary) 42%, var(--border));
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaching-course-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 var(--teach-shadow-hard);
}

body[data-theme='dark'] .teaching-course-card {
  background:
    linear-gradient(180deg, rgba(44, 26, 67, 0.94), rgba(28, 16, 45, 0.9)),
    var(--white);
}

.teaching-course-card__top {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 0.85rem;
  align-items: flex-start;
}

.teaching-course-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--primary) 38%, #fff));
  color: var(--teach-deep);
  font-size: 1.15rem;
}

body[data-theme='dark'] .teaching-course-card__icon {
  color: #f8f2ff;
}

.teaching-course-card__head {
  flex: 1;
  min-width: 0;
}

.teaching-course-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.teaching-course-card__term {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
}

body[data-theme='dark'] .teaching-course-card__term {
  background: rgba(36, 19, 58, 0.55);
}

.teaching-course-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.88;
}

.teaching-course-details {
  border-top: var(--border-width) solid color-mix(in srgb, var(--primary) 30%, var(--border));
  background: color-mix(in srgb, var(--bg) 88%, var(--white));
}

body[data-theme='dark'] .teaching-course-details {
  background: rgba(18, 10, 32, 0.45);
}

.teaching-course-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

.teaching-course-details > summary::-webkit-details-marker {
  display: none;
}

.teaching-course-details > summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.teaching-course-details[open] > summary::after {
  transform: rotate(180deg);
}

.teaching-course-details > summary:hover {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}

.teaching-course-details__body {
  padding: 0 1.15rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
}

.teaching-course-details__body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.teaching-course-details__body li {
  margin-bottom: 0.35rem;
}

/* —— Materials —— */
.teaching-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .teaching-materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .teaching-materials-grid {
    grid-template-columns: 1fr;
  }
}

.teaching-material-card {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.1rem;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaching-material-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 var(--teach-shadow-hard);
}

.teaching-material-card__course {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--primary) 70%, var(--text));
  margin-bottom: 0.45rem;
}

.teaching-material-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.teaching-material-card h3 .fa-fw {
  color: var(--primary);
}

.teaching-material-card__actions {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.teaching-material-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, #fff), var(--accent));
  border: 2px solid var(--border);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--teach-shadow-hard);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.teaching-material-card__btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 5px 5px 0 var(--teach-shadow-hard);
}

.teaching-material-card__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* —— Philosophy —— */
.teaching-philosophy-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .teaching-philosophy-block {
    grid-template-columns: 1fr;
  }
}

.teaching-philosophy__prose {
  padding: 1.4rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 238, 255, 0.65)),
    var(--bg);
  border: var(--border-width) solid color-mix(in srgb, var(--primary) 42%, var(--border));
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.teaching-philosophy__prose:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--teach-shadow-hard);
  filter: brightness(1.02);
}

body[data-theme='dark'] .teaching-philosophy__prose {
  background:
    linear-gradient(180deg, rgba(39, 23, 61, 0.72), rgba(23, 13, 37, 0.6)),
    var(--bg);
}

.teaching-philosophy__prose p {
  margin: 0 0 1rem;
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--text);
  opacity: 0.92;
}

.teaching-philosophy__prose p:last-child {
  margin-bottom: 0;
}

.teaching-quote {
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.2rem 1.15rem 1.5rem;
  border-left: 5px solid var(--primary);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 14px 14px 0;
  border: var(--border-width) solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-left-width: 6px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}

body[data-theme='dark'] .teaching-quote {
  background: rgba(30, 18, 48, 0.65);
}

.teaching-quote cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
  opacity: 0.85;
}

.teaching-principles {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.teaching-principle {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.teaching-principle:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--teach-shadow-hard);
  filter: brightness(1.03);
}

.teaching-principle__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--accent);
  color: var(--teach-deep);
  font-size: 1rem;
}

body[data-theme='dark'] .teaching-principle__icon {
  color: #f8f2ff;
}

.teaching-principle strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
  color: var(--text);
}

.teaching-principle span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  opacity: 0.88;
}

/* —— Timeline —— */
.teaching-timeline {
  position: relative;
  padding-left: 0.5rem;
}

.teaching-timeline::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: var(--border-width);
  background: color-mix(in srgb, var(--primary) 55%, var(--border));
  border-radius: 2px;
}

.teaching-timeline__item {
  position: relative;
  padding-left: 2.85rem;
  padding-bottom: 1.35rem;
}

.teaching-timeline__item:last-child {
  padding-bottom: 0;
}

.teaching-timeline__dot {
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
}

.teaching-timeline__year {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 6px;
  color: var(--teach-deep);
}

body[data-theme='dark'] .teaching-timeline__year {
  color: #1f1235;
}

.teaching-timeline__card {
  position: relative;
  z-index: 0;
  padding: 0.9rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 238, 255, 0.85)),
    var(--bg);
  border: var(--border-width) solid color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.teaching-timeline__card:hover {
  z-index: 2;
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--teach-shadow-hard);
  filter: brightness(1.03);
}

body[data-theme='dark'] .teaching-timeline__card {
  background:
    linear-gradient(180deg, rgba(40, 24, 62, 0.92), rgba(26, 15, 40, 0.88)),
    var(--bg);
}

.teaching-timeline__card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.teaching-timeline__card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.88;
}

/* —— Supervision —— */
.teaching-supervision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .teaching-supervision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .teaching-supervision-grid {
    grid-template-columns: 1fr;
  }
}

.teaching-student-card {
  padding: 1rem 1.05rem;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teaching-student-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 var(--teach-shadow-hard);
}

.teaching-student-card__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--cyan) 20%, var(--accent)));
  color: var(--teach-deep);
}

body[data-theme='dark'] .teaching-student-card__badge {
  color: #1f1235;
}

.teaching-student-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.teaching-student-card__role {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--primary) 65%, var(--text));
}

.teaching-student-card__topic {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.86;
}

@media (prefers-reduced-motion: reduce) {
  .teaching-hero__deco--book,
  .teaching-hero__deco--cap {
    animation: none;
  }

  .teaching-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .teaching-course-details > summary::after {
    transition: none;
  }

  .teaching-philosophy__prose,
  .teaching-principle {
    transition: none;
  }

  .teaching-philosophy__prose:hover {
    transform: none;
    filter: none;
    box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  }

  .teaching-principle:hover {
    transform: none;
    filter: none;
    box-shadow: 8px 8px 0 var(--teach-shadow-hard);
  }

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

  .teaching-timeline__card {
    transition: none;
  }

  .teaching-timeline__card:hover {
    transform: none;
    filter: none;
    box-shadow: 8px 8px 0 var(--teach-shadow-hard);
    z-index: 0;
  }

  .teaching-divider--wave::after {
    animation: none;
    transform: none;
    opacity: 0.85;
  }

  body[data-theme='dark'] .teaching-divider--wave::after {
    opacity: 0.6;
  }

  .teaching-monitor__sine,
  .teaching-monitor__ekg {
    animation: none;
  }
}
