/* Services — Recent case studies: white like blog + same cs-card design */
.svc-recent {
  --ac: #ee3d25;
  --navy: #233058;
  --bl-accent: #ee3d25;
  --bl-accent-line: rgba(238, 61, 37, 0.35);
  padding: 5.2vw 0 6.2vw;
  overflow: hidden;
  background: #fff;
  color: #0a0803;
  font-family: "Geometria", sans-serif;
  position: relative;
}
.svc-recent::before {
  display: none;
}
.svc-recent .w {
  width: min(1180px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Eyebrow — same as home Live Apps (.pf-eyebrow) size/color + L/R lines */
.svc-recent .svc-recent-head .tag {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 1.2vw;
  width: 100%;
  margin: 0;
  padding: 0 0 1.2vw;
  font-family: "Geometria", sans-serif;
  font-size: 1.35vw !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #6b6862 !important;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.svc-recent .svc-recent-head .tag::before,
.svc-recent .svc-recent-head .tag::after {
  content: "";
  display: block;
  flex: 1 1 0;
  height: 1px;
  min-width: 2vw;
}
.svc-recent .svc-recent-head .tag::before {
  background: linear-gradient(90deg, rgba(10, 8, 3, 0), rgba(10, 8, 3, 0.18));
}
.svc-recent .svc-recent-head .tag::after {
  background: linear-gradient(90deg, rgba(10, 8, 3, 0.18), rgba(10, 8, 3, 0));
}

/* Title + tagline centered; All Case Studies removed */
.svc-recent .svc-recent-head {
  display: block;
  margin-bottom: 0;
  text-align: center;
}
.svc-recent .svc-recent-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin: 1.4vw 0 1.2vw;
}
.svc-recent .svc-recent-head h2 {
  margin: 0;
  font-size: 2.9vw;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #0a0803 !important;
  padding-top: 0 !important;
  position: static !important;
  text-align: center;
  flex: 1 1 auto;
  min-width: 0;
}
.svc-recent .svc-recent-head h2:before {
  display: none !important;
  content: none !important;
}
.svc-recent .svc-recent-head h2 em {
  font-style: normal;
  color: var(--ac) !important;
}

/* One-line lede under title row */
.svc-recent .svc-recent-lede {
  margin: 0 auto 4.6vw;
  max-width: 52rem;
  font-family: "Raleway", sans-serif;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.5;
  color: rgba(35, 48, 88, 0.62);
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Button removed from markup; keep hidden if residual */
.svc-recent .svc-cs-cta {
  display: none !important;
}

.svc-recent .svc-recent-scroller {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 1.2vw 0 1.6vw;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.svc-recent .svc-recent-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  padding: 0.4vw 0;
  will-change: transform;
  animation: svc-recent-marquee 48s linear infinite;
}
.svc-recent .svc-recent-scroller:hover .svc-recent-track {
  animation-play-state: paused;
}
@keyframes svc-recent-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Same overlay card design — hover lift = blog amount */
.svc-recent .cs-card {
  flex: 0 0 min(380px, 82vw);
  width: min(380px, 82vw);
  min-height: clamp(420px, 48vw, 520px);
  margin-right: 22px;
  --cs-ac: #ee3d25;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
}
.svc-recent .svc-recent-track:hover .cs-card:not(:hover) {
  opacity: 0.55;
  filter: brightness(0.9) saturate(0.92);
}
.svc-recent .cs-card:hover {
  transform: translateY(-0.65vw) !important;
  border-color: rgba(238, 61, 37, 0.5);
  box-shadow: 0 1.2vw 2.8vw rgba(35, 48, 88, 0.18);
  z-index: 2;
}
.svc-recent .cs-body {
  padding: clamp(18px, 2vw, 28px);
  padding-top: clamp(64px, 7vw, 110px);
}
.svc-recent .cs-title {
  font-size: clamp(24px, 2.2vw, 34px) !important;
  color: #fff !important;
}
.svc-recent .cs-desc {
  color: rgba(255, 255, 255, 0.72) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-recent .cs-btn {
  background: #ee3d25 !important;
  border-color: #ee3d25 !important;
}
.svc-recent .cs-card:hover .cs-btn {
  background: linear-gradient(135deg, #6e5cbf 0%, #544199 50%, #3e2b7a 100%) !important;
  border-color: #8b78de !important;
}

.mad section.svc-recent:after {
  display: none !important;
  content: none !important;
}
.mad section.svc-recent h2 {
  padding-top: 0 !important;
}
.mad section.svc-recent h2:before {
  display: none !important;
}

@media (max-width: 700px) {
  .svc-recent {
    padding: 14vw 0;
  }
  .svc-recent .svc-recent-head .tag {
    font-size: 3.4vw !important;
    padding-bottom: 4vw;
    gap: 3vw;
  }
  .svc-recent .svc-recent-title-row {
    flex-direction: column;
    align-items: center;
    gap: 3vw;
    margin: 6vw 0 4vw;
  }
  .svc-recent .svc-recent-head h2 {
    font-size: 8vw;
    text-align: center;
  }
  .svc-recent .svc-recent-lede {
    white-space: normal;
    margin: 0 auto 8vw;
    font-size: 3.6vw;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-recent .svc-recent-track {
    animation: none;
  }
  .svc-recent .cs-card {
    transition: none;
  }
  .svc-recent .cs-card:hover {
    transform: none !important;
  }
}
