/* Home — Success Stories / testimonials carousel */

.testimonials-section {
  position: relative;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 12% 0%, rgba(13, 148, 136, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 15%, rgba(99, 102, 241, 0.07) 0%, transparent 72%),
    radial-gradient(ellipse 45% 35% at 50% 100%, rgba(20, 184, 166, 0.06) 0%, transparent 68%),
    linear-gradient(180deg, #f1f5f9 0%, #ffffff 38%, #f8fafc 100%) !important;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 42%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 42%, #000 15%, transparent 80%);
  pointer-events: none;
  opacity: 0.5;
}

.testimonials-section > .absolute {
  opacity: 0.7;
}

/* Header */
.testimonials-header {
  margin-bottom: 3.25rem;
}

.testimonials-eyebrow {
  margin-bottom: 1.4rem;
  padding: 0.52rem 1.15rem !important;
  border: 1px solid rgba(13, 148, 136, 0.22) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(13, 148, 136, 0.1) !important;
}

.testimonials-eyebrow .w-2 {
  background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.6);
}

.testimonials-eyebrow .home-eyebrow {
  color: #0f766e !important;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.testimonials-header .home-section-title {
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4.5vw, 2.75rem) !important;
}

.testimonials-header .home-section-title span {
  background: linear-gradient(90deg, #047857 0%, #0d9488 50%, #2dd4bf 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.testimonials-header .home-section-copy {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #64748b !important;
}

/* Carousel */
.testimonials-carousel {
  position: relative;
  padding-top: 1.5rem;
}

.testimonials-carousel::before {
  content: "Verified Parent Story";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #5eead4;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 28px rgba(13, 148, 136, 0.2),
    0 8px 24px rgba(15, 23, 42, 0.18);
  z-index: 4;
  white-space: nowrap;
}

.testimonials-carousel::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1rem 3.75rem;
  border-radius: 2.25rem;
  border: 1px solid rgba(13, 148, 136, 0.1);
  background:
    radial-gradient(ellipse 75% 60% at 50% 40%, rgba(13, 148, 136, 0.07) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.testimonials-track {
  min-height: 0;
  position: relative;
  z-index: 2;
}

.testimonials-slide {
  position: relative;
  width: 100%;
}

/* Card */
.testimonials-card {
  height: auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 0.75rem;
  padding: 2.5rem 2rem 0 !important;
  border: 1px solid rgba(13, 148, 136, 0.16) !important;
  border-radius: 2rem !important;
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fffe 45%, #ffffff 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 60px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 80px rgba(13, 148, 136, 0.06) !important;
  transition:
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.testimonials-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.28) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 36px 72px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(13, 148, 136, 0.08),
    0 0 100px rgba(13, 148, 136, 0.1) !important;
}

.testimonials-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #14b8a6 15%, #34d399 50%, #14b8a6 85%, transparent);
  box-shadow: 0 0 24px rgba(13, 148, 136, 0.4);
  z-index: 3;
}

@media (min-width: 768px) {
  .testimonials-card {
    padding: 3rem 2.75rem 0 !important;
    border-radius: 2.25rem !important;
  }
}

.testimonials-card-inner {
  height: auto;
  min-height: 0;
  padding-bottom: 0;
}

/* Quote mark */
.testimonials-quote-mark {
  opacity: 0.07 !important;
  top: 0.75rem !important;
  right: 1.5rem !important;
}

.testimonials-quote-mark svg {
  width: 9rem !important;
  height: 9rem !important;
  color: #0d9488 !important;
  fill: #0d9488 !important;
  filter: drop-shadow(0 0 30px rgba(13, 148, 136, 0.2));
}

/* Stars */
.testimonials-stars {
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  display: inline-flex !important;
  align-items: center;
  gap: 0.15rem !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
  width: fit-content;
}

.testimonials-stars::after {
  content: "5.0";
  margin-left: 0.45rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.75rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.02em;
}

.testimonials-stars svg {
  width: 1.1rem !important;
  height: 1.1rem !important;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

/* Quote */
.testimonials-quote {
  margin-bottom: 1.5rem;
}

.testimonials-quote blockquote {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.15rem !important;
  font-size: clamp(1.4rem, 2.9vw, 2rem) !important;
  line-height: 1.26 !important;
  letter-spacing: -0.025em;
  color: #0f172a !important;
}

.testimonials-quote blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2dd4bf, #0d9488, #047857);
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.4);
}

.testimonials-quote p {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: #64748b !important;
  max-width: 40rem;
}

/* Improvement pill */
.testimonials-improvement {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 1.75rem;
  padding: 0.6rem 1.05rem 0.6rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.14);
}

.testimonials-improvement::before {
  content: "↑";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

/* Footer — full-width author panel */
.testimonials-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 -2rem;
  padding: 1.35rem 2rem 1.65rem;
  border-top: none;
  position: relative;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.65) 0%, rgba(236, 254, 255, 0.9) 100%);
  border-radius: 0 0 2rem 2rem;
}

.testimonials-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.25) 25%, rgba(148, 163, 184, 0.3) 50%, rgba(13, 148, 136, 0.25) 75%, transparent);
}

@media (min-width: 640px) {
  .testimonials-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 0 -2.75rem;
    padding: 1.5rem 2.75rem 1.85rem;
    border-radius: 0 0 2.25rem 2.25rem;
  }
}

.testimonials-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.testimonials-avatar {
  width: 3.85rem;
  height: 3.85rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
  border: 3px solid #ffffff;
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.12),
    0 0 0 3px rgba(13, 148, 136, 0.15);
  outline: none;
  position: relative;
}

.testimonials-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.testimonials-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.testimonials-role {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d9488;
}

.testimonials-meta-dot {
  color: #cbd5e1;
}

.testimonials-syllabus {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.testimonials-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.testimonials-verified svg {
  color: #10b981;
}

/* Navigation */
.testimonials-nav {
  margin-top: 2rem;
  padding: 0.65rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.testimonials-nav > button:first-child,
.testimonials-nav > button:last-child {
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(13, 148, 136, 0.2) !important;
  background: #ffffff !important;
  color: #0f766e !important;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(15, 23, 42, 0.07) !important;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.testimonials-nav > button:first-child:hover,
.testimonials-nav > button:last-child:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%) !important;
  border-color: rgba(13, 148, 136, 0.4) !important;
  box-shadow:
    0 14px 32px rgba(13, 148, 136, 0.16),
    0 0 0 1px rgba(13, 148, 136, 0.1) !important;
  color: #0d9488 !important;
}

.testimonials-nav .flex.items-center.gap-2 {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.testimonials-nav .flex.items-center.gap-2 button {
  transition: all 0.3s ease;
}

.testimonials-nav .flex.items-center.gap-2 button[class*="bg-claps-teal"] {
  background: linear-gradient(90deg, #0d9488, #14b8a6) !important;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

/* Stats */
.testimonials-stats {
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.testimonials-stats-bar {
  padding: 0.65rem !important;
  border: 1px solid rgba(13, 148, 136, 0.14) !important;
  border-radius: 1.75rem !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 20px 48px rgba(15, 23, 42, 0.07) !important;
  overflow: hidden;
}

.testimonials-stats-bar .grid {
  gap: 0.65rem !important;
}

.testimonials-stats-bar .grid > div {
  position: relative;
  padding: 1.5rem 1.15rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.testimonials-stats-bar .grid > div:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.1);
}

.testimonials-stats-bar .grid > div:not(:last-child)::after {
  display: none;
}

.testimonials-stats-bar .grid > div > div:first-child {
  font-size: clamp(1.55rem, 3vw, 2rem) !important;
  background: linear-gradient(135deg, #0f172a 20%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  margin-bottom: 0.3rem !important;
  font-weight: 900 !important;
}

.testimonials-stats-bar .grid > div > div:nth-child(2) {
  color: #0d9488 !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em;
  font-size: 0.6875rem !important;
}

.testimonials-stats-bar .grid > div > div:nth-child(3) {
  color: #94a3b8 !important;
  font-size: 0.625rem !important;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}

@media (min-width: 768px) {
  .testimonials-stats-bar .grid > div {
    padding: 1.65rem 1.25rem;
  }
}

@media (max-width: 639px) {
  .testimonials-section {
    padding: 3.75rem 0 3.5rem;
  }

  .testimonials-header {
    margin-bottom: 2.25rem;
  }

  .testimonials-card {
    padding: 2rem 1.35rem 0 !important;
    border-radius: 1.5rem !important;
  }

  .testimonials-footer {
    margin: 0 -1.35rem;
    padding: 1.2rem 1.35rem 1.45rem;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .testimonials-quote blockquote {
    padding-left: 0.9rem;
    font-size: 1.3rem !important;
  }

  .testimonials-stats {
    margin-top: 2.25rem;
  }

  .testimonials-stats-bar {
    padding: 0.5rem !important;
    border-radius: 1.35rem !important;
  }

  .testimonials-stats-bar .grid {
    gap: 0.5rem !important;
  }

  .testimonials-stats-bar .grid > div {
    padding: 1.15rem 0.9rem;
  }

  .testimonials-nav {
    gap: 1rem;
    padding: 0.5rem 0.75rem;
  }
}
