:root {
  --teacher-bg: #f5f7fc;
  --teacher-surface: #ffffff;
  --teacher-text: #081734;
  --teacher-muted: #62708c;
  --teacher-border: rgba(8, 23, 52, 0.08);
  --teacher-shadow: 0 24px 70px rgba(6, 19, 46, 0.08);
}

html { scroll-behavior: smooth; }
body.teachers-page {
  margin: 0;
  background: var(--teacher-bg);
  color: var(--teacher-text);
}

.teachers-page .container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.teachers-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8,23,52,0.06);
}
.teachers-navbar__inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
}
.teachers-navbar__logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.teachers-navbar__logo-img,
.footer__logo-img--large {
  width: clamp(164px, 13vw, 200px);
  height: auto;
  display: block;
}
.teachers-navbar__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2vw, 34px);
}
.teachers-navbar__links a {
  color: var(--teacher-text);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  white-space: nowrap;
}
.teachers-navbar__links a.is-active {
  color: #2f63ff;
}
.teachers-navbar__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7cc4ff, #4d7dff);
}
.teachers-navbar__cta {
  white-space: nowrap;
}
.teachers-navbar__burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(47,99,255,0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.teachers-navbar__burger span {
  width: 18px;
  height: 2px;
  background: var(--teacher-text);
  border-radius: 999px;
}
.teachers-navbar__mobile {
  display: none;
  padding: 0 20px 20px;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(8,23,52,0.06);
}
.teachers-navbar__mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.teachers-navbar__mobile a {
  color: var(--teacher-text);
  text-decoration: none;
  font-weight: 700;
}

.teachers-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, #153b7c 0%, #0a224d 44%, #061631 100%);
  padding: 38px 0 72px;
}
.teachers-hero__bg,
.teachers-hero__overlay,
.hero__particles,
.blob { position: absolute; inset: 0; }
.teachers-hero__bg {
  background:
    radial-gradient(circle at 12% 20%, rgba(95,140,255,0.28), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(111,214,255,0.18), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(95,140,255,0.16), transparent 20%);
}
.teachers-hero__overlay { background: linear-gradient(180deg, rgba(7,22,47,0.04), rgba(7,22,47,0.24)); }
.teachers-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 460px);
  gap: 34px;
  align-items: start;
}
.teachers-hero__content {
  padding-top: 34px;
}
.badge--floating { animation: badgeFloat 4.6s ease-in-out infinite; }
.teachers-hero__title {
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 0.98;
  max-width: 10ch;
}
.teachers-hero__sub {
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 18px;
  line-height: 1.72;
  max-width: 60ch;
}
.teachers-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #eef4ff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.float-chip { animation: chipFloat 5.5s ease-in-out infinite; }
.float-chip--delay-1 { animation-delay: .8s; }
.float-chip--delay-2 { animation-delay: 1.6s; }

.teacher-showcase {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.18fr .92fr;
  gap: 18px;
  align-items: stretch;
  max-width: 760px;
}
.card-glow {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 24px 60px rgba(0,0,0,0.18);
}
.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 36%, transparent 70%, rgba(255,255,255,0.08));
  pointer-events: none;
}
.teacher-showcase__main,
.teacher-showcase__side {
  position: relative;
  min-height: 360px;
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .35s ease;
}
.teacher-photo.is-ready img { opacity: 1; }
.teacher-photo__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  color: rgba(255,255,255,0.95);
}
.teacher-photo__fallback--main {
  background:
    linear-gradient(180deg, rgba(84,124,255,0.14), rgba(5,18,41,0.76)),
    radial-gradient(circle at 20% 18%, rgba(130,170,255,0.28), transparent 24%),
    linear-gradient(135deg, #183a76, #0b224d 55%, #081734);
}
.teacher-photo__fallback--side {
  background:
    linear-gradient(180deg, rgba(89,143,255,0.12), rgba(6,18,43,0.82)),
    radial-gradient(circle at 30% 16%, rgba(136,176,255,0.24), transparent 23%),
    linear-gradient(135deg, #17356e, #0b2148 58%, #081734);
}
.teacher-photo__fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,225,198,0.98) 0 7%, transparent 7.2%),
    radial-gradient(ellipse at 30% 52%, rgba(58,108,255,0.98) 0 18%, transparent 18.3%),
    linear-gradient(0deg, transparent 0 100%);
  opacity: .95;
}
.teacher-photo__fallback--side::before {
  background:
    radial-gradient(circle at 62% 24%, rgba(255,225,198,0.98) 0 7%, transparent 7.2%),
    radial-gradient(ellipse at 62% 57%, rgba(255,255,255,0.92) 0 18%, transparent 18.3%),
    radial-gradient(circle at 62% 22%, rgba(53,42,39,0.2) 0 10%, transparent 10.2%);
}
.teacher-photo__fallback > * { position: relative; z-index: 1; }
.teacher-photo__fallback strong { font-size: 22px; }
.teacher-photo__fallback span { font-size: 14px; color: rgba(255,255,255,0.76); }
.teacher-photo__fallback-tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 700;
}
.teacher-photo.is-ready .teacher-photo__fallback { display: none; }
.teacher-showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,24,53,0.02) 0%, rgba(8,24,53,0.16) 100%);
}
.teacher-showcase__badge {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 18px 40px rgba(6,19,46,0.18);
  animation: badgeDrift 4.8s ease-in-out infinite;
}
.teacher-showcase__badge strong { font-size: 28px; line-height: 1; color: var(--teacher-text); }
.teacher-showcase__badge span { color: var(--teacher-muted); font-size: 14px; }
.teacher-showcase__badge--left { left: 18px; top: 18px; }
.teacher-showcase__badge--right { right: 18px; bottom: 18px; animation-delay: 1.1s; }

.teachers-hero__form {
  padding-top: 10px;
}
.form-card--teachers {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 34px 72px rgba(0,0,0,0.26);
  animation: formFloat 6.4s ease-in-out infinite;
}
.form-card__title {
  margin: 0 0 18px;
}

.section-pad { padding: 94px 0; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 22px; }
.teacher-benefits__grid,
.teacher-steps__grid,
.teacher-testimonials__grid {
  display: grid;
  gap: 22px;
}
.teacher-benefits__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teacher-steps__grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teacher-testimonials__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto;
}
.teacher-info-card,
.teacher-step-card,
.testimonial-card,
.teacher-note-card {
  background: var(--teacher-surface);
  border: 1px solid var(--teacher-border);
  border-radius: 26px;
  box-shadow: var(--teacher-shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.teacher-info-card:hover,
.teacher-step-card:hover,
.testimonial-card:hover,
.teacher-note-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(6,19,46,0.12);
  border-color: rgba(47,99,255,0.16);
}
.teacher-info-card,
.teacher-step-card,
.testimonial-card,
.teacher-note-card { padding: 28px; }
.teacher-info-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(47,99,255,0.12), rgba(47,99,255,0.04));
  font-size: 24px;
}
.teacher-info-card h3,
.teacher-step-card h3,
.teacher-note-card h3 { margin: 0 0 12px; color: var(--teacher-text); }
.teacher-info-card p,
.teacher-step-card p,
.testimonial-card p,
.teacher-note-card li,
.teacher-requirements__list li { color: var(--teacher-muted); line-height: 1.75; }

.teacher-step-card { position: relative; overflow: hidden; }
.teacher-step-card::before {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,99,255,0.12), transparent 70%);
}
.teacher-step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f63ff, #7298ff);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(47,99,255,0.28);
}

.teacher-requirements__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.teacher-requirements__list,
.teacher-note-card ul { list-style: none; padding: 0; margin: 0; }
.teacher-requirements__list li,
.teacher-note-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(8,23,52,0.06);
}
.teacher-requirements__list li:last-child,
.teacher-note-card li:last-child { border-bottom: 0; }
.teacher-requirements__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: rgba(47,99,255,0.12);
  color: #2f63ff;
  font-weight: 800;
}
.teacher-note-card--accent {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}
.testimonial-card__author span { color: var(--teacher-muted); }

.final-cta--teachers {
  background: linear-gradient(135deg, #143a79, #0a224d 58%, #071733);
}
.footer--teachers .footer__inner {
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes badgeDrift {
  0%,100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-6px,0); }
}
@keyframes formFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1080px) {
  .teachers-navbar__inner {
    grid-template-columns: auto 1fr auto;
  }
  .teachers-navbar__links { display: none; }
  .teachers-navbar__burger { display: inline-flex; }
  .teachers-hero__inner,
  .teacher-requirements__grid {
    grid-template-columns: 1fr;
  }
  .teachers-hero__form { max-width: 620px; }
  .teacher-benefits__grid,
  .teacher-steps__grid--four,
  .teacher-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .teachers-page .container { width: min(100% - 24px, 1180px); }
  .teachers-navbar__inner {
    min-height: 78px;
    gap: 14px;
  }
  .teachers-navbar__logo-img,
  .footer__logo-img--large {
    width: 138px;
  }
  .teachers-navbar__cta { display: none; }
  .teachers-hero {
    padding: 24px 0 54px;
  }
  .teachers-hero__title {
    font-size: clamp(38px, 11vw, 56px);
  }
  .teachers-hero__sub {
    font-size: 16px;
  }
  .teacher-showcase {
    grid-template-columns: 1fr;
  }
  .teacher-showcase__main,
  .teacher-showcase__side {
    min-height: 300px;
  }
  .teacher-benefits__grid,
  .teacher-steps__grid--four,
  .teacher-testimonials__grid {
    grid-template-columns: 1fr;
  }
  .section-pad { padding: 72px 0; }
}


/* Shared navbar parity with home page */
.teachers-page .navbar {
  position: fixed;
}
.teachers-page .navbar__links a.active,
.teachers-page .navbar__mobile a.active {
  color: #2563eb;
  font-weight: 700;
}
.teachers-page .teachers-hero {
  padding-top: 108px;
}
.teachers-page .navbar__logo-img {
  height: 120px;
  width: auto;
}
.teacher-photo img {
  opacity: 1;
}
.teacher-photo__fallback {
  display: none;
}
@media (max-width: 1080px) {
  .teachers-page .teachers-hero {
    padding-top: 98px;
  }
}
@media (max-width: 720px) {
  .teachers-page .teachers-hero {
    padding-top: 86px;
  }
}
