.teacher-reviews {
  position: relative;
  background: #f4f3f1;
  padding: 72px 0 88px;
  overflow: hidden;
}

.teacher-review-wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.teacher-review-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
  color: #e36a6a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teacher-review-bar {
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #e36a6a 10%, #e36a6a 90%, transparent 100%);
}

.teacher-review-head p {
  margin: 0;
  color: #e36a6a;
}

.teacher-reviews h2 {
  margin: 0 0 34px;
  text-align: center;
  color: #001d32;
  font-size: clamp(3rem, 5vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  font-weight: 900;
}

.teacher-review-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 18px;
}

.review-viewport {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(83, 67, 52, 0.18);
  background: rgba(255, 255, 255, 0.38);
  padding: 18px 12px 12px;
}

.review-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: reviewSlide 40s linear infinite;
}

.teacher-review-card {
  width: min(360px, 30vw);
  min-width: 300px;
  background: #fdfcfa;
  border: 1px solid rgba(29,20,15,.1);
  border-radius: 26px;
  padding: 20px 20px 22px;
  box-shadow: 0 10px 30px rgba(31,20,15,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.google-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(31,20,15,0.1);
  flex-shrink: 0;
}

.google-star {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  color: #f8b400;
  text-shadow: 0 0 1px rgba(0,0,0,0.15);
}

.review-quote {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
  color: #1d140f;
  min-height: 132px;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(29,20,15,.08);
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d406d;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.review-meta {
  display: grid;
  gap: 4px;
}

.review-meta strong {
  font-size: 18px;
  font-weight: 800;
  color: #1d140f;
}

.review-meta span {
  font-size: 14px;
  color: #5f4a3f;
}

.review-arrow {
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #1d140f;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(31,20,15,.08);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.review-arrow:hover {
  transform: translateY(-1px);
}

@keyframes reviewSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .teacher-review-shell {
    grid-template-columns: 1fr;
  }

  .review-arrow {
    display: none;
  }

  .teacher-review-card {
    width: min(340px, 80vw);
    min-width: 280px;
  }
}

@media (max-width: 640px) {
  .teacher-reviews {
    padding: 54px 0 62px;
  }

  .teacher-review-head {
    gap: 10px;
    font-size: 12px;
  }

  .teacher-review-bar {
    width: 48px;
  }

  .teacher-review-card {
    width: min(300px, 78vw);
    min-width: 260px;
  }

  .review-quote {
    font-size: 16px;
    min-height: 118px;
  }
}
