/* ============================================
   teachers.css – Sprout Tutor Centre
   Premium Teachers Page Styles
   ============================================ */

:root {
  --primary: #3D0B52;
  --primary-light: #6A1B9A;
  --primary-glow: rgba(61, 11, 82, 0.12);
  --accent: #FFD54A;
  --accent-soft: rgba(255, 213, 74, 0.15);
  --text: #2B2B2B;
  --muted: #6b7280;
  --surface: #ffffff;
  --bg: #f8f7fc;
  --border: rgba(61, 11, 82, 0.09);
}

body {
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* ── BACKGROUND BLOBS ── */
.blob-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
}

.b1 {
  width: 500px;
  height: 500px;
  background: #8E24AA;
  top: -140px;
  left: -160px;
  animation: drift1 14s ease-in-out infinite alternate;
}

.b2 {
  width: 420px;
  height: 420px;
  background: #FFD54A;
  bottom: -100px;
  right: -120px;
  animation: drift2 18s ease-in-out infinite alternate;
}

.b3 {
  width: 260px;
  height: 260px;
  background: #4A148C;
  top: 42%;
  right: 6%;
  opacity: 0.12;
  animation: drift1 22s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(28px, -28px) scale(1.06); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-22px, 22px) scale(1.04); }
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(90deg, #4A148C, #8E24AA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

nav a {
  text-decoration: none;
  margin: 0 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.82rem;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.nav-active::after {
  width: 100%;
}

nav a.nav-active {
  color: var(--primary);
  font-weight: 700;
}

.trial-btn {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 213, 74, 0.4);
}

/* ── HERO ── */
.teachers-hero {
  text-align: center;
  padding: 70px 6% 20px;
  position: relative;
  z-index: 1;
}

.t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 213, 74, 0.4);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.teachers-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 14px;
}

.teachers-hero h1 span {
  background: linear-gradient(120deg, #6A1B9A, #FFD54A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.teachers-hero > p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* ── STATS ── */
.t-stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.t-stat h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.t-stat p {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── FILTER PILLS ── */
.filter-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.pill {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
}

.pill.active,
.pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── TEACHER GRID ── */
.teacher-grid-wrap {
  position: relative;
  z-index: 1;
  padding: 0 5% 70px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ── TEACHER CARD ── */
.t-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 28px 22px 22px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(61, 11, 82, 0.06);
  transition: transform 0.35s, box-shadow 0.35s, opacity 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.t-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 213, 74, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.t-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 44px rgba(61, 11, 82, 0.14);
}

.t-card:hover::before {
  opacity: 1;
}

.t-card.hidden {
  display: none;
}

/* ── AVATAR ── */
.t-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.t-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f2e8ff;
  transition: transform 0.35s;
}

.t-card:hover .t-avatar {
  transform: rotate(-3deg) scale(1.06);
}

.t-badge {
  position: absolute;
  bottom: 4px;
  right: -4px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  border: 2px solid white;
  white-space: nowrap;
}

/* ── NAME & ROLE ── */
.t-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.t-role {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── TAGS ── */
.t-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.t-tag {
  background: #f2e8ff;
  color: #6A1B9A;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* ── DIVIDER ── */
.t-divider {
  height: 1px;
  background: rgba(61, 11, 82, 0.07);
  margin: 0 0 14px;
}

/* ── BOTTOM ROW ── */
.t-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.t-rating {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.t-view {
  background: var(--primary);
  color: white;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.t-card:hover .t-view {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 11, 82, 0.25);
}

/* ── CTA BANNER ── */
.teachers-cta {
  position: relative;
  z-index: 1;
  padding: 0 5% 80px;
}

.cta-inner {
  background: linear-gradient(135deg, var(--primary), #6A1B9A);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  color: white;
  box-shadow: 0 16px 40px rgba(61, 11, 82, 0.25);
}

.cta-inner h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-inner p {
  font-size: 0.88rem;
  opacity: 0.82;
  margin-bottom: 26px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 213, 74, 0.4);
}

/* ── FOOTER ── */
footer {
  background: #220630;
  color: white;
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.68rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 5%;
  }

  nav {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .t-stats {
    gap: 22px;
  }

  .teacher-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 500px) {
  .teachers-hero h1 {
    font-size: 1.8rem;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 36px 22px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
