/* ============================================================
   TEACHERS.CSS
   Section: #teachers  |  Classes: .teachers, .teacher-card
   Animations: .tt-animate, ttPulse, ttPulseDot (in main.css)
   ============================================================ */

.teachers {
  position: relative;
  background: var(--slate-50);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 960px;
}

.teachers::before {
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-200), transparent);
  pointer-events: none;
}

.teachers__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--sp-14) var(--sp-4) var(--sp-16);
}


/* ── Section header ── */
.teachers__header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.teachers__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 14px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.teachers__label-dot {
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
  flex-shrink: 0;
  animation: ttPulseDot 2.4s ease-in-out infinite;
}

.teachers__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 6.5vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: var(--slate-900);
  margin-bottom: var(--sp-4);
}

.teachers__title-accent {
  color: var(--teal-700);
  position: relative;
  display: inline;
}
.teachers__title-accent::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-200));
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--ease-out);
}
.teachers__title.is-visible .teachers__title-accent::after { transform: scaleX(1); }

.teachers__intro {
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.72;
  color: var(--slate-500);
  max-width: 60ch;
  margin-inline: auto;
}
.teachers__intro strong { font-weight: 600; color: var(--slate-700); }


/* ── Trust statistics bar ── */
.teachers__trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-10);
}

.trust-stat {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--sp-4) var(--sp-3);
  background: var(--white);
  text-align: center;
}

.trust-stat__value {
  font-family: var(--font-head);
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 800;
  color: var(--teal-700);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.trust-stat__value--gold { color: var(--gold-500); }
.trust-stat__label { font-size: 11px; font-weight: 500; color: var(--slate-400); line-height: 1.3; }


/* ── Teachers grid ── */
.teachers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: stretch;
}


/* ── Teacher card ── */
.teacher-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--r-2xl);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms;
}
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--teal-200);
}

/* ── Photo area ── */
.teacher-card__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.teacher-card__photo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--teal-900) 0%, var(--teal-600) 100%);
}

/* Unique gradient per card position */
.teachers__grid > li:nth-child(1) .teacher-card__photo-bg {
  background: linear-gradient(155deg, #0A3D3D 0%, #0E8585 100%);
}
.teachers__grid > li:nth-child(2) .teacher-card__photo-bg {
  background: linear-gradient(155deg, #0D5454 0%, #119B9B 55%, #E2B84A 100%);
}
.teachers__grid > li:nth-child(3) .teacher-card__photo-bg {
  background: linear-gradient(155deg, #0A3D3D 0%, #0D6E6E 100%);
}
.teachers__grid > li:nth-child(4) .teacher-card__photo-bg {
  background: linear-gradient(155deg, #0D5454 0%, #C9871A 100%);
}

.teacher-card__photo-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.teacher-card__silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  max-width: 150px;
  opacity: 0.20;
  pointer-events: none;
}

/* Gender badge — top-left */
.teacher-card__gender-badge {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
}
.teacher-card__gender-badge--male   { background: rgba(10,61,61,0.70); color: rgba(255,255,255,0.92); }
.teacher-card__gender-badge--female { background: rgba(201,135,26,0.32); color: rgba(255,255,255,0.95); border-color: rgba(212,160,23,0.35); }

.gender-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.gender-dot--male   { background: var(--teal-300); }
.gender-dot--female { background: var(--gold-400); }

/* Experience badge — top-right */
.teacher-card__exp-badge {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-lg);
  line-height: 1.1;
}
.exp-badge__value {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.exp-badge__unit {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Glass strip at bottom of photo */
.teacher-card__photo-glass {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.tt-availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tt-availability__dot {
  width: 7px; height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ttPulse 2s ease-in-out infinite;
}

.tt-specialty-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tt-specialty-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-300); flex-shrink: 0; }
.tt-specialty-dot--gold { background: var(--gold-400); }


/* ── Card body ── */
.teacher-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
}

.teacher-card__role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--sp-2);
}
.teacher-card__role--gold { color: var(--gold-600); }
.role-icon { width: 13px; height: 13px; flex-shrink: 0; color: inherit; }

.teacher-card__name {
  font-family: var(--font-head);
  font-size: clamp(16px, 3.2vw, 18px);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.teacher-card__qual {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--slate-400);
  line-height: 1.45;
  margin-bottom: var(--sp-3);
}
.teacher-card__divider { height: 1px; background: var(--slate-100); margin-bottom: var(--sp-3); flex-shrink: 0; }

.teacher-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-3);
}
.tc-stars { color: var(--gold-500); font-size: 11.5px; letter-spacing: 1.5px; flex-shrink: 0; }
.tc-rating-val { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--slate-800); }
.tc-rating-count { font-size: 11px; color: var(--slate-400); }

.teacher-card__details { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--sp-3); flex-shrink: 0; }
.tc-detail { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; }
.tc-detail__icon { width: 14px; height: 14px; color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }
.tc-detail__lbl { font-weight: 600; color: var(--slate-500); min-width: 78px; flex-shrink: 0; }
.tc-detail__val { color: var(--slate-700); font-weight: 400; line-height: 1.4; }

.teacher-card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: var(--sp-4); flex-shrink: 0; }
.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--teal-700);
  white-space: nowrap;
}
.tc-badge--gold { background: var(--gold-100); border-color: var(--gold-200); color: var(--gold-600); }
.tc-badge__icon { width: 10px; height: 10px; flex-shrink: 0; }

.teacher-card__footer { margin-top: auto; flex-shrink: 0; }

.teacher-card__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 44px;
  padding: 11px var(--sp-5);
  background: linear-gradient(135deg, var(--teal-600), var(--teal-900));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 150ms var(--ease-in-out), box-shadow 150ms var(--ease-in-out);
  box-shadow: 0 2px 8px rgba(13,110,110,0.20);
}
.teacher-card__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.10) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 450ms var(--ease-out);
}
.teacher-card__cta:hover::before { transform: translateX(100%); }
.teacher-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(13,110,110,0.32);
}
.teacher-card__cta:active { transform: translateY(0); }
.cta-arrow { width: 14px; height: 14px; flex-shrink: 0; transition: transform 200ms var(--ease-in-out); }
.teacher-card__cta:hover .cta-arrow { transform: translateX(3px); }


/* ────────────────────────────────────────────────────────────
   REDUCED MOTION
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .teachers__label-dot, .tt-availability__dot { animation: none !important; }
  .teacher-card, .teacher-card__cta { transition: none !important; }
  .teachers__title-accent::after { transform: scaleX(1) !important; transition: none !important; }
}


/* ────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────────────────────────── */
@media (min-width: 375px) { .teachers__container { padding-inline: var(--sp-5); } }

@media (min-width: 425px) { .teachers__container { padding: var(--sp-16) var(--sp-5) var(--sp-20); } }

@media (min-width: 640px) {
  .teachers__trust-bar { flex-wrap: nowrap; }
  .trust-stat { min-width: 0; }
}

@media (min-width: 768px) {
  .teachers__container { padding: var(--sp-16) var(--sp-8) var(--sp-20); }
  .teachers__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .teachers__container { padding: var(--sp-20) var(--sp-8) var(--sp-24); }
  .teachers__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
  .teacher-card__photo-wrap { aspect-ratio: 1 / 1; }
  .teacher-card__body { padding: var(--sp-4); }
}

@media (min-width: 1280px) {
  .teachers__container { padding: var(--sp-24) var(--sp-6) var(--sp-24); }
  .teachers__title { font-size: 42px; }
}

@media (min-width: 1440px) {
  .teachers__grid { gap: var(--sp-6); }
  .teacher-card__body { padding: var(--sp-5); }
}
