/* ================================================================
   Clients / Realisations page -- scoped under .ys-clients-page
   Design system: Plus Jakarta Sans, same palette as home.css
   Colors:
     Primary: #3B82F6
     Text dark: #0f172a
     Text secondary: #64748b
     Background light: #f8f9fb
     White: #ffffff
   Breakpoints:
     tablet: max-width 991px
     mobile-landscape: max-width 767px
     mobile-portrait: max-width 479px
   ================================================================ */

/* --- Global reset for .ys-clients-page --- */
.ys-clients-page {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f172a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ys-clients-page *,
.ys-clients-page *::before,
.ys-clients-page *::after {
  box-sizing: border-box;
}

/* ================================================================
   HERO
   ================================================================ */
.ys-clients-page .cl-hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: #ffffff;
  overflow: hidden;
}

.ys-clients-page .cl-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ys-clients-page .cl-hero__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ys-clients-page .cl-hero__bg-glow--1 {
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
  top: -20%;
  left: -10%;
}

.ys-clients-page .cl-hero__bg-glow--2 {
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  bottom: -15%;
  right: -5%;
}

.ys-clients-page .cl-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #3B82F612 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.ys-clients-page .cl-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.ys-clients-page .cl-hero__tag {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 400;
  color: #8d99ae;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.ys-clients-page .cl-hero__heading {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: #0f172a;
}

.ys-clients-page .cl-hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #0f172a;
  max-width: 38rem;
  margin: 0 auto;
}

.ys-clients-page .cl-hero__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  background: #3B82F6;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 28px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ys-clients-page .cl-hero__btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.ys-clients-page .cl-hero__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.ys-clients-page .cl-hero__trust-label {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ys-clients-page .cl-hero__trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ys-clients-page .cl-hero__trust-img {
  width: 100%;
  max-width: 860px;
  height: auto;
}

@media screen and (max-width: 991px) {
  .ys-clients-page .cl-hero__heading {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cl-hero {
    padding: 7rem 1.25rem 2.5rem;
  }
  .ys-clients-page .cl-hero__heading {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }
  .ys-clients-page .cl-hero__subtitle {
    font-size: .9375rem;
  }
  .ys-clients-page .cl-hero__trust-img {
    max-width: 280px;
  }
}

@media screen and (max-width: 479px) {
  .ys-clients-page .cl-hero__heading {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .ys-clients-page .cl-hero__subtitle {
    font-size: .875rem;
  }
}

/* ================================================================
   SECTOR FILTER
   ================================================================ */
.ys-clients-page .cl-filter {
  padding: 0 24px 40px;
  background: #ffffff;
}

.ys-clients-page .cl-filter__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ys-clients-page .cl-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ys-clients-page .cl-filter__btn:hover {
  border-color: #3B82F6;
  color: #3B82F6;
}

.ys-clients-page .cl-filter__btn--active {
  background: #3B82F6;
  border-color: #3B82F6;
  color: #ffffff;
  font-weight: 600;
}

.ys-clients-page .cl-filter__btn--active:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

@media screen and (max-width: 479px) {
  .ys-clients-page .cl-filter__inner {
    gap: 8px;
  }
  .ys-clients-page .cl-filter__btn {
    font-size: 13px;
    padding: 6px 16px;
  }
}

/* ================================================================
   CASE STUDY GRID
   ================================================================ */
.ys-clients-page .cl-grid {
  padding: 0 24px 80px;
  background: #ffffff;
}

.ys-clients-page .cl-grid__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media screen and (max-width: 991px) {
  .ys-clients-page .cl-grid__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cl-grid {
    padding: 0 16px 48px;
  }
  .ys-clients-page .cl-grid__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================================================
   CASE STUDY CARD
   ================================================================ */
.ys-clients-page .cl-card {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.ys-clients-page .cl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ys-clients-page .cl-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
}

.ys-clients-page .cl-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ys-clients-page .cl-card:hover .cl-card__image {
  transform: scale(1.04);
}

.ys-clients-page .cl-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ys-clients-page .cl-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.ys-clients-page .cl-card__logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.ys-clients-page .cl-card__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  line-height: 1.2;
}

.ys-clients-page .cl-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ys-clients-page .cl-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.ys-clients-page .cl-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ys-clients-page .cl-card__stats {
  display: flex;
  gap: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: auto;
}

.ys-clients-page .cl-card__stat {
  display: flex;
  flex-direction: column;
}

.ys-clients-page .cl-card__stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #3B82F6;
  letter-spacing: -0.01em;
}

.ys-clients-page .cl-card__stat-label {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

/* ================================================================
   CLIENT LOGOS
   ================================================================ */
.ys-clients-page .cl-logos {
  padding: 80px 24px;
  background: #f8f9fb;
}

.ys-clients-page .cl-logos__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ys-clients-page .cl-logos__header {
  text-align: center;
  margin-bottom: 48px;
}

.ys-clients-page .cl-logos__tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #3B82F6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ys-clients-page .cl-logos__heading {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ys-clients-page .cl-logos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.ys-clients-page .cl-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.ys-clients-page .cl-logos__item img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.ys-clients-page .cl-logos__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media screen and (max-width: 991px) {
  .ys-clients-page .cl-logos__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cl-logos {
    padding: 48px 16px;
  }
  .ys-clients-page .cl-logos__heading {
    font-size: 24px;
  }
  .ys-clients-page .cl-logos__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media screen and (max-width: 479px) {
  .ys-clients-page .cl-logos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   TESTIMONIALS — Row layout (video left + quote right), 2 columns
   ================================================================ */
.ys-clients-page .cl-testimonials {
  padding: 5rem 2.5rem;
  background: #ffffff;
}

.ys-clients-page .cl-testimonials__inner {
  max-width: 75rem;
  margin: 0 auto;
}

.ys-clients-page .cl-testimonials__header {
  text-align: left;
  margin-bottom: 3.5rem;
}

.ys-clients-page .cl-testimonials__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  color: #0f172a;
  border: 1px solid #e2e4e4;
  border-radius: 2rem;
  padding: .375rem .875rem;
  margin-bottom: 1rem;
}

.ys-clients-page .cl-testimonials__heading {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.ys-clients-page .cl-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
}

/* ── Testimonial row ── */
.ys-clients-page .cl-trow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Left: video thumbnail + logo badge ── */
.ys-clients-page .cl-trow__left {
  position: relative;
  width: 100%;
}

.ys-clients-page .cl-trow__video-btn {
  display: block;
  width: 100%;
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.ys-clients-page .cl-trow__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%);
  transition: transform .3s ease, filter .3s ease;
}

.ys-clients-page .cl-trow__video-btn:hover .cl-trow__thumb {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.ys-clients-page .cl-trow__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 48px;
  height: 48px;
  transition: transform .2s ease;
}

.ys-clients-page .cl-trow__video-btn:hover .cl-trow__play {
  transform: scale(1.1);
}

.ys-clients-page .cl-trow__play svg {
  width: 100%;
  height: 100%;
}

.ys-clients-page .cl-trow__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #fff;
  padding: .5rem .75rem;
}

.ys-clients-page .cl-trow__logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Text-only testimonials (no video) */
.ys-clients-page .cl-trow__left--no-video {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem;
  background: #f8f9fb;
  aspect-ratio: 16 / 9;
}

.ys-clients-page .cl-trow__logo-large {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ── Right: content ── */
.ys-clients-page .cl-trow__right {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.ys-clients-page .cl-trow__quote {
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.6;
  margin: 0;
  font-style: normal;
  flex: 1;
}

.ys-clients-page .cl-trow__person {
  font-size: .8125rem;
  font-weight: 400;
  color: #64748b;
  margin: 0;
}

.ys-clients-page .cl-trow__stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: .25rem;
}

.ys-clients-page .cl-trow__stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ys-clients-page .cl-trow__stat-label {
  font-size: .8125rem;
  font-weight: 400;
  color: #64748b;
}

.ys-clients-page .cl-trow__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  margin-top: .25rem;
}

.ys-clients-page .cl-trow__link:hover {
  text-decoration: underline;
}

/* Video modal */
.ys-clients-page .cl-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 24px;
}

.ys-clients-page .cl-video-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ys-clients-page .cl-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ys-clients-page .cl-video-modal__player {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.ys-clients-page .cl-video-modal__player iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

@media screen and (max-width: 991px) {
  .ys-clients-page .cl-testimonials__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cl-testimonials {
    padding: 3rem 1.25rem;
  }
  .ys-clients-page .cl-testimonials__heading {
    font-size: 1.5rem;
  }
  .ys-clients-page .cl-trow__stat-value {
    font-size: 2rem;
  }
}

/* ================================================================
   MID CTA (between case studies and testimonials)
   ================================================================ */
.ys-clients-page .cl-mid-cta {
  padding: 64px 24px;
  background: #f8f9fb;
  text-align: center;
}

.ys-clients-page .cl-mid-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.ys-clients-page .cl-mid-cta__heading {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 24px;
  line-height: 1.2;
}

.ys-clients-page .cl-mid-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  background: #3B82F6;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ys-clients-page .cl-mid-cta__btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.ys-clients-page .cl-mid-cta__reassurance {
  font-size: 14px;
  color: #94a3b8;
  margin: 16px 0 0;
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cl-mid-cta {
    padding: 48px 16px;
  }
  .ys-clients-page .cl-mid-cta__heading {
    font-size: 22px;
  }
}

/* ================================================================
   CTA
   ================================================================ */
.ys-clients-page .cl-cta {
  position: relative;
  padding: 5rem 2rem;
  background: #0f172a;
  overflow: hidden;
}

.ys-clients-page .cl-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ys-clients-page .cl-cta__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.ys-clients-page .cl-cta__bg-glow--1 {
  width: 45%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  top: -30%;
  left: -10%;
}

.ys-clients-page .cl-cta__bg-glow--2 {
  width: 35%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  bottom: -25%;
  right: -5%;
}

.ys-clients-page .cl-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ys-clients-page .cl-cta__heading {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.ys-clients-page .cl-cta__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  line-height: 1.6;
}

.ys-clients-page .cl-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  background: #3B82F6;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ys-clients-page .cl-cta__btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.ys-clients-page .cl-cta__steps {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin: 20px 0 0;
  letter-spacing: 0.01em;
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cl-cta {
    padding: 3rem 1rem;
  }
  .ys-clients-page .cl-cta__heading {
    font-size: 28px;
  }
  .ys-clients-page .cl-cta__text {
    font-size: 16px;
  }
}

/* ================================================================
   CASE STUDY DETAIL PAGE
   ================================================================ */
.ys-clients-page .cs-hero {
  position: relative;
  padding: 120px 24px 64px;
  background: #ffffff;
}

.ys-clients-page .cs-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ys-clients-page .cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #3B82F6;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}

.ys-clients-page .cs-hero__back:hover {
  opacity: 0.75;
}

/* Meta row: logo + title + badges */
.ys-clients-page .cs-hero__meta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.ys-clients-page .cs-hero__logo {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.ys-clients-page .cs-hero__meta-text {
  flex: 1;
  min-width: 0;
}

.ys-clients-page .cs-hero__title {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.2;
}

.ys-clients-page .cs-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ys-clients-page .cs-hero__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #3B82F6;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 100px;
  padding: 4px 14px;
  white-space: nowrap;
}

.ys-clients-page .cs-hero__badge--expertise {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.ys-clients-page .cs-hero__desc {
  font-size: 18px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 32px;
  max-width: 700px;
}

.ys-clients-page .cs-hero__image-wrap {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 32px;
}

.ys-clients-page .cs-hero__image {
  width: 100%;
  height: auto;
  display: block;
}

.ys-clients-page .cs-hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  background: #f8f9fb;
  padding: 24px 32px;
  border-radius: 12px;
}

.ys-clients-page .cs-hero__stat {
  display: flex;
  flex-direction: column;
}

.ys-clients-page .cs-hero__stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #3B82F6;
  line-height: 1.1;
}

.ys-clients-page .cs-hero__stat-label {
  font-size: 14px;
  color: #64748b;
  max-width: 200px;
  line-height: 1.4;
  margin-top: 4px;
}

@media screen and (max-width: 991px) {
  .ys-clients-page .cs-hero__title {
    font-size: 36px;
  }
  .ys-clients-page .cs-hero__stat-value {
    font-size: 30px;
  }
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cs-hero {
    padding: 100px 16px 40px;
  }
  .ys-clients-page .cs-hero__meta {
    flex-direction: column;
    gap: 12px;
  }
  .ys-clients-page .cs-hero__logo {
    height: 40px;
  }
  .ys-clients-page .cs-hero__title {
    font-size: 28px;
  }
  .ys-clients-page .cs-hero__desc {
    font-size: 16px;
  }
  .ys-clients-page .cs-hero__stats {
    gap: 24px;
    padding: 20px;
    flex-direction: column;
  }
  .ys-clients-page .cs-hero__stat-value {
    font-size: 26px;
  }
}

@media screen and (max-width: 479px) {
  .ys-clients-page .cs-hero__title {
    font-size: 24px;
  }
  .ys-clients-page .cs-hero__badges {
    gap: 6px;
  }
  .ys-clients-page .cs-hero__badge {
    font-size: 12px;
    padding: 3px 10px;
  }
}

/* ================================================================
   CASE STUDY CONTENT (Rich text)
   ================================================================ */
.ys-clients-page .cs-content {
  padding: 48px 24px 64px;
  background: #ffffff;
}

.ys-clients-page .cs-content__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Rich text styling */
.ys-clients-page .ys-richtext {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.ys-clients-page .ys-richtext h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.ys-clients-page .ys-richtext h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 36px 0 12px;
  line-height: 1.3;
}

.ys-clients-page .ys-richtext p {
  margin: 0 0 16px;
}

.ys-clients-page .ys-richtext ul,
.ys-clients-page .ys-richtext ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.ys-clients-page .ys-richtext li {
  margin-bottom: 8px;
}

.ys-clients-page .ys-richtext a {
  color: #3B82F6;
  text-decoration: underline;
}

.ys-clients-page .ys-richtext a:hover {
  color: #2563eb;
}

.ys-clients-page .ys-richtext blockquote {
  border-left: 4px solid #3B82F6;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f1f5f9;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #334155;
}

.ys-clients-page .ys-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

.ys-clients-page .ys-richtext figure {
  margin: 24px 0;
}

.ys-clients-page .ys-richtext figure img {
  margin: 0;
}

.ys-clients-page .ys-richtext strong {
  font-weight: 700;
  color: #0f172a;
}

.ys-clients-page .ys-richtext svg {
  width: 100%;
  max-height: 400px;
  margin: 24px 0;
  display: block;
}

.ys-clients-page .ys-richtext .cs-diagram {
  margin: 32px 0;
  padding: 0;
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cs-content {
    padding: 32px 16px 48px;
  }
  .ys-clients-page .ys-richtext h2 {
    font-size: 22px;
    margin-top: 32px;
  }
  .ys-clients-page .ys-richtext h3 {
    font-size: 18px;
    margin-top: 24px;
  }
}

/* ================================================================
   CASE STUDY TECH STACK
   ================================================================ */
.ys-clients-page .cs-tech {
  padding: 48px 24px;
  background: #ffffff;
}

.ys-clients-page .cs-tech__inner {
  max-width: 760px;
  margin: 0 auto;
}

.ys-clients-page .cs-tech__heading {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 20px;
}

.ys-clients-page .cs-tech__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ys-clients-page .cs-tech__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 14px;
  font-weight: 600;
  color: #3B82F6;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cs-tech {
    padding: 32px 16px;
  }
  .ys-clients-page .cs-tech__heading {
    font-size: 18px;
  }
  .ys-clients-page .cs-tech__pill {
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* ================================================================
   CASE STUDY TESTIMONIAL (detail page)
   ================================================================ */
.ys-clients-page .cs-testimonial {
  padding: 64px 24px;
  background: #f8f9fb;
}

.ys-clients-page .cs-testimonial__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Video thumbnail (clickable) */
.ys-clients-page .cs-testimonial__media {
  flex: 1;
  min-width: 0;
}

.ys-clients-page .cs-testimonial__thumb-btn {
  display: block;
  width: 100%;
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
}

.ys-clients-page .cs-testimonial__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ys-clients-page .cs-testimonial__thumb-btn:hover .cs-testimonial__thumb {
  transform: scale(1.03);
}

.ys-clients-page .cs-testimonial__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 56px;
  height: 56px;
  transition: transform 0.2s ease;
}

.ys-clients-page .cs-testimonial__thumb-btn:hover .cs-testimonial__play {
  transform: scale(1.1);
}

.ys-clients-page .cs-testimonial__play svg {
  width: 100%;
  height: 100%;
}

.ys-clients-page .cs-testimonial__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.ys-clients-page .cs-testimonial__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Quote content */
.ys-clients-page .cs-testimonial__content {
  flex: 1;
  min-width: 0;
}

.ys-clients-page .cs-testimonial__quote {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 24px;
  font-style: italic;
}

.ys-clients-page .cs-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ys-clients-page .cs-testimonial__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ys-clients-page .cs-testimonial__logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.ys-clients-page .cs-testimonial__info {
  display: flex;
  flex-direction: column;
}

.ys-clients-page .cs-testimonial__name {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.ys-clients-page .cs-testimonial__job {
  font-size: 13px;
  color: #64748b;
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cs-testimonial {
    padding: 48px 16px;
  }
  .ys-clients-page .cs-testimonial__inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ================================================================
   RELATED CASE STUDIES
   ================================================================ */
.ys-clients-page .cs-related {
  padding: 80px 24px;
  background: #ffffff;
}

.ys-clients-page .cs-related__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ys-clients-page .cs-related__heading {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 32px;
  text-align: center;
}

.ys-clients-page .cs-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ys-clients-page .cs-related__cta {
  text-align: center;
  margin-top: 40px;
}

.ys-clients-page .cs-related__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #3B82F6;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ys-clients-page .cs-related__link:hover {
  opacity: 0.75;
}

@media screen and (max-width: 991px) {
  .ys-clients-page .cs-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .ys-clients-page .cs-related {
    padding: 48px 16px;
  }
  .ys-clients-page .cs-related__heading {
    font-size: 22px;
  }
  .ys-clients-page .cs-related__grid {
    grid-template-columns: 1fr;
  }
  .ys-clients-page .cs-related__cta {
    margin-top: 32px;
  }
}
