:root {
  --teacher-forest: #17382c;
  --teacher-forest-deep: #0f2a20;
  --teacher-gold: #c9a961;
  --teacher-cream: #faf6ee;
  --teacher-paper: #fffdf8;
  --teacher-rule: #e3dac4;
  --teacher-muted: #665f52;
  --teacher-ink: #241f17;
}

body.teacher-section-page {
  margin: 0;
  background:
    radial-gradient(circle at 8% 6%, rgba(201, 169, 97, 0.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(23, 56, 44, 0.13), transparent 32%),
    var(--teacher-cream);
  color: var(--teacher-ink);
  font-family: Lato, Arial, sans-serif;
  line-height: 1.68;
}

.teacher-hero {
  background: linear-gradient(135deg, var(--teacher-forest-deep), var(--teacher-forest) 58%, #2d5a45);
  color: var(--teacher-cream);
  padding: 4.6rem 1.5rem 4rem;
}

.teacher-hero__inner,
.teacher-main,
.teacher-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.teacher-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(201, 169, 97, 0.48);
  border-radius: 999px;
  background: rgba(201, 169, 97, 0.14);
  color: var(--teacher-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-hero h1 {
  max-width: 870px;
  margin: 1rem 0 0.9rem;
  color: #fff9ec;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.05;
}

.teacher-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(250, 246, 238, 0.84);
  font-size: 1.06rem;
}

.teacher-main {
  padding: 3rem 1.5rem 4.8rem;
}

.teacher-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.6rem;
}

.teacher-nav a,
.teacher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(201, 169, 97, 0.44);
  border-radius: 999px;
  background: #fff;
  color: var(--teacher-forest-deep);
  font-weight: 900;
  text-decoration: none;
}

.teacher-nav a:hover,
.teacher-button:hover {
  background: var(--teacher-gold);
  color: var(--teacher-forest-deep);
}

.teacher-section {
  margin: 0 0 1.3rem;
  padding: 1.45rem;
  border: 1px solid var(--teacher-rule);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 44px rgba(15, 42, 32, 0.07);
}

.teacher-section h2 {
  margin: 0 0 0.7rem;
  color: var(--teacher-forest-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
}

.teacher-section p {
  margin: 0.25rem 0 0;
  color: var(--teacher-muted);
}

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

.teacher-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-card {
  padding: 1.15rem;
  border: 1px solid var(--teacher-rule);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbf5e8);
}

.teacher-card__meta {
  margin-bottom: 0.4rem;
  color: #a8862f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.teacher-card h3 {
  margin: 0 0 0.45rem;
  color: var(--teacher-forest-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.2;
}

.teacher-card ul,
.teacher-card ol {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
  color: var(--teacher-muted);
}

.teacher-card li {
  margin: 0.35rem 0;
}

.teacher-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--teacher-rule);
  border-radius: 18px;
  background: #fff;
}

.teacher-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.teacher-table th,
.teacher-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--teacher-rule);
  text-align: left;
  vertical-align: top;
}

.teacher-table th {
  background: #f3ead6;
  color: var(--teacher-forest-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-table td {
  color: var(--teacher-muted);
}

.teacher-callout {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--teacher-gold);
  border-radius: 14px;
  background: #fff7e7;
  color: #4f4637;
}

.teacher-footer {
  border-top: 3px solid var(--teacher-gold);
  background: var(--teacher-forest-deep);
  color: #d8cfb5;
  padding: 2.5rem 1.5rem 2rem;
}

.teacher-footer a {
  color: #f1ddaa;
}

@media (max-width: 920px) {
  .teacher-grid,
  .teacher-grid--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .teacher-hero {
    padding: 3.2rem 1.1rem 2.8rem;
  }

  .teacher-main {
    padding: 2rem 1rem 3.4rem;
  }

  .teacher-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .teacher-section,
  .teacher-card {
    border-radius: 18px;
    padding: 1.05rem;
  }

  .teacher-button {
    width: 100%;
  }
}
