/* Success stories page */

.page--success-stories {
  background: #f8fafc;
}

.page--success-stories main {
  padding-top: 0;
}

.ss-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 1.25rem) 0 4rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #eef5ff 100%);
  border-bottom: 1px solid var(--gray-200);
}

.ss-hero__pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 40%, rgb(37 99 235 / 0.09), transparent 28%),
    linear-gradient(90deg, transparent, rgb(37 99 235 / 0.035));
}

.ss-hero__inner {
  position: relative;
  z-index: 1;
}

.ss-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: var(--gray-600);
  font-size: 0.8rem;
  font-weight: 700;
}

.ss-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ss-breadcrumb a:hover {
  color: var(--blue-500);
}

.ss-hero__copy h1 {
  margin: 0 0 0.45rem;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
}

.ss-hero__copy p {
  margin: 0;
  max-width: 34rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.ss-hero__trophy {
  position: absolute;
  right: clamp(1rem, 12vw, 9rem);
  top: 1.4rem;
  width: clamp(7rem, 15vw, 12rem);
  color: rgb(37 99 235 / 0.14);
}

.ss-content {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  padding-bottom: 3rem;
}

.ss-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 0.8rem;
  background: var(--white);
  box-shadow: 0 16px 40px rgb(15 23 42 / 0.06);
}

.ss-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-right: 1px solid var(--gray-100);
}

.ss-stat:last-child {
  border-right: 0;
}

.ss-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
}

.ss-stat__icon--blue {
  color: #2563eb;
  background: rgb(37 99 235 / 0.1);
}

.ss-stat__icon--green {
  color: #16a34a;
  background: rgb(22 163 74 / 0.1);
}

.ss-stat__icon--amber {
  color: #d97706;
  background: rgb(245 158 11 / 0.13);
}

.ss-stat__icon--purple {
  color: #7c3aed;
  background: rgb(124 58 237 / 0.1);
}

.ss-stat strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.45rem;
  line-height: 1.1;
}

.ss-stat span span {
  display: block;
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 800;
}

.ss-stat small {
  color: var(--gray-600);
  font-size: 0.72rem;
}

.ss-section {
  margin-top: 1.55rem;
}

.ss-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.ss-section__head h2 {
  margin: 0 0 0.2rem;
  color: var(--navy-900);
  font-size: 1.15rem;
}

.ss-section__head p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.86rem;
}

.ss-link-btn,
.ss-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue-500);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.ss-link-btn {
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid rgb(37 99 235 / 0.28);
  border-radius: 0.45rem;
  background: var(--white);
}

.ss-link-btn:hover,
.ss-inline-link:hover {
  color: var(--navy-700);
}

.ss-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ss-testimonials-marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding-block: 1.25rem 1.75rem;
}

@media (min-width: 901px) {
  .ss-testimonials-marquee {
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}

.ss-testimonials-static {
  padding-inline: 0;
}

.ss-video-card {
  min-width: 0;
}

.ss-video-card__embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  background: #0f172a;
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.08);
}

.ss-video-card__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ss-video-card__subtitle {
  margin: 0.55rem 0 0;
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.ss-video-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  background: #dbeafe;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.08);
}

.ss-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-video-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(14 45 92 / 0.84), rgb(14 45 92 / 0.18));
}

.ss-video-card__text {
  position: absolute;
  left: 1rem;
  top: 1rem;
  max-width: 62%;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.ss-video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  background: #ef1f1f;
  color: var(--white);
  transform: translate(-50%, -50%);
}

.ss-video-card__duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
  background: rgb(15 23 42 / 0.8);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  pointer-events: none;
  z-index: 1;
}

.ss-video-card h3 {
  margin: 0.65rem 0 0.2rem;
  color: var(--navy-900);
  font-size: 0.88rem;
  line-height: 1.35;
}

.ss-video-card p,
.ss-video-card > span {
  margin: 0;
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 800;
}

.ss-video-card > span {
  display: block;
  color: var(--gray-600);
  font-weight: 600;
}

.ss-testimonial {
  padding: 1.2rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.04);
}

.ss-quote {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.8;
}

.ss-quote--blue {
  color: #2563eb;
}

.ss-quote--green {
  color: #16a34a;
}

.ss-quote--amber {
  color: #d97706;
}

.ss-quote--purple {
  color: #7c3aed;
}

.ss-testimonial > p {
  min-height: 5.8rem;
  margin: 0 0 1rem;
  color: var(--gray-700);
  font-size: 0.84rem;
  line-height: 1.55;
}

.ss-testimonial__person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.ss-testimonial__person img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  object-fit: cover;
}

.ss-testimonial__person strong,
.ss-testimonial__person small {
  display: block;
}

.ss-testimonial__person strong {
  color: var(--navy-900);
  font-size: 0.9rem;
}

.ss-testimonial__person small {
  color: var(--gray-600);
  font-size: 0.75rem;
}

.ss-stars {
  display: inline-flex;
  gap: 0.08rem;
  margin-top: 0.15rem;
}

.ss-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.35rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgb(37 99 235 / 0.1);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.ss-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 999px;
  background: rgb(37 99 235 / 0.1);
  color: var(--blue-500);
}

.ss-cta h2 {
  margin: 0 0 0.2rem;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.ss-cta p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.84rem;
}

.ss-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.45rem;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.ss-cta a:hover {
  background: var(--navy-700);
}

@media (max-width: 1080px) {
  .ss-stats,
  .ss-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ss-stat:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .ss-hero__trophy {
    right: -1rem;
    top: 2rem;
    width: 7rem;
  }

  .ss-stats,
  .ss-video-grid,
  .ss-cta {
    grid-template-columns: 1fr;
  }

  .ss-stat {
    border-right: 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .ss-stat:last-child {
    border-bottom: 0;
  }

  .ss-section__head {
    align-items: flex-start;
    flex-direction: column;
  }
}
