.teacher-cards-showcase {
  overflow: hidden;
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(27, 64, 52, .09);
}

.teacher-cards-showcase img {
  width: 100%;
}

.teacher-entry-section {
  background: linear-gradient(180deg, #f2faf7 0%, #fff 100%);
}

.teacher-entry-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 70px;
  align-items: end;
  margin-bottom: 38px;
}

.teacher-entry-heading .page-kicker { grid-column: 1 / -1; }
.teacher-entry-heading h2 { margin: 0; color: #143b30; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.35; }
.teacher-entry-heading p { margin: 0 0 7px; color: #5e716b; font-size: 14px; line-height: 2; }

.teacher-entry-photo {
  position: relative;
  height: 510px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d5e5df;
  border-radius: 27px;
  background: #edf6f2;
  box-shadow: 0 24px 65px rgba(18, 72, 54, .11);
}

.teacher-entry-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-entry-photo figcaption { position: absolute; right: 24px; bottom: 24px; display: grid; gap: 5px; max-width: 430px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.teacher-entry-photo figcaption span { color: #0c7759; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.teacher-entry-photo figcaption b { color: #163d32; font-size: 14px; }

.teacher-entry-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 24px 0 0; padding: 0; list-style: none; }
.teacher-entry-flow li { position: relative; min-height: 270px; padding: 24px 22px; border: 1px solid #dae7e2; border-radius: 18px; background: #fff; }
.teacher-entry-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 39px; right: -13px; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #d3e3dd; border-radius: 50%; background: #fff; color: #0c7759; font-size: 11px; }
.teacher-entry-flow li > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 30px; border-radius: 50%; background: #e7f4ef; color: #0b7256; font: 800 11px "Manrope", sans-serif; }
.teacher-entry-flow small { color: #0b7256; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.teacher-entry-flow h3 { margin: 7px 0 10px; color: #183d33; font-size: 20px; }
.teacher-entry-flow p { margin: 0; color: #64756f; font-size: 12px; line-height: 1.85; }
.teacher-entry-result { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: center; margin-top: 16px; padding: 20px 24px; border-radius: 15px; background: #0b5e48; color: #fff; }
.teacher-entry-result > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 18px; }
.teacher-entry-result div { display: grid; gap: 4px; }
.teacher-entry-result b { font-size: 15px; }
.teacher-entry-result p { margin: 0; color: #d4e8e0; font-size: 10px; line-height: 1.7; }

.teacher-ai-section {
  color: #fff !important;
  background: #0a4d3b !important;
}

.teacher-ai-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.teacher-ai-section .page-kicker {
  color: #83d1b6;
}

.teacher-ai-section h2 {
  margin: 10px 0 22px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.35;
  color: #fff !important;
}

.teacher-ai-section h2 em {
  color: #83d1b6;
  font-style: normal;
}

.teacher-ai-section p {
  color: #d1e4dd !important;
  line-height: 2;
}

.ai-development-note {
  display: inline-block;
  margin-top: 22px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #d1e4dd;
  font-size: 11px;
}

.teacher-ai-flow {
  display: grid;
  gap: 12px;
}

.teacher-ai-flow article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1) !important;
}

.teacher-ai-flow span {
  color: #83d1b6;
  font-size: 12px;
  font-weight: 900;
}

.teacher-ai-flow b,
.teacher-ai-flow small {
  display: block;
}

.experience-badge-block {
  margin-top: 56px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.experience-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.experience-badge-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.experience-badge-grid span {
  color: #177b5e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.experience-badge-grid h4 {
  margin: 10px 0 8px;
  font-size: 19px;
}

.experience-badge-grid p,
.experience-caution {
  color: #617069;
  font-size: 13px;
  line-height: 1.8;
}

.experience-caution {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid #177b5e;
  background: #f6f9f7;
}

.teacher-ai-flow b {
  color: #fff !important;
}

.teacher-ai-flow small {
  margin-top: 4px;
  color: #d1e4dd !important;
}

@media (max-width: 900px) {
  .teacher-ai-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .experience-badge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-entry-heading { grid-template-columns: 1fr; gap: 15px; }
  .teacher-entry-flow { grid-template-columns: 1fr 1fr; }
  .teacher-entry-flow li:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  .teacher-cards-showcase {
    margin-top: 35px;
    border-radius: 14px;
  }

  .teacher-cards-showcase img {
    width: 175%;
    max-width: none;
    transform: translateX(-1%);
  }

  .experience-badge-grid {
    grid-template-columns: 1fr;
  }

  .teacher-entry-photo { height: 350px; }
  .teacher-entry-photo img { width: 175%; max-width: none; transform: translateX(-18%); }
  .teacher-entry-photo figcaption { right: 12px; bottom: 12px; left: 12px; }
  .teacher-entry-flow { grid-template-columns: 1fr; }
  .teacher-entry-flow li { min-height: 0; }
}
