/* Case Study Details — premium B2B editorial layout */
.cs-page {
  background: #ffffff;
  color: #2c3e50;
  font-family: var(--fontFamily, "Poppins", sans-serif);
}

.cs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cs-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: #1e5a9e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.cs-page h1,
.cs-page h2,
.cs-page h3 {
  color: #0f172a;
  font-weight: 700;
}

.cs-hero {
  padding: 48px 0 56px;
  background: #ffffff;
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .cs-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
  }
}

.cs-hero__copy h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.cs-hero__summary {
  margin: 0;
  max-width: 540px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.cs-hero__media {
  margin: 0;
}

.cs-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e8eef5;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

/* Info strip */
.cs-info {
  border-top: 1px solid #e8eef5;
  border-bottom: 1px solid #e8eef5;
  background: #f8fafc;
  padding: 28px 0;
}

.cs-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-info__grid dt {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.cs-info__grid dd {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* Shared section shell */
.cs-section {
  padding: 88px 0;
}

.cs-section--muted {
  background: #f8fafc;
}

.cs-section--border {
  border-top: 1px solid #e8eef5;
}

.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 64px;
  align-items: start;
}

.cs-overview {
  width: 100%;
}

.cs-overview .cs-section__heading {
  margin: 0 0 24px;
}

.cs-overview__body {
  width: 100%;
}

.cs-section__heading {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cs-section__body {
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

.cs-section__body p {
  margin: 0 0 1rem;
}

.cs-section__body p:last-child {
  margin-bottom: 0;
}

.cs-section__body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.cs-chapter {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.cs-chapter__num {
  margin: 0;
  color: #276CBD;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.85;
}

.cs-chapter__rule {
  width: 40px;
  height: 2px;
  margin: 18px 0 0;
  background: #276CBD;
}

/* Features */
.cs-features__intro {
  max-width: 640px;
  margin: 0 0 40px;
}

.cs-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-feature {
  height: 100%;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cs-feature:hover {
  transform: translateY(-4px);
  border-color: #d0e0f2;
  box-shadow: 0 10px 28px rgba(39, 108, 189, 0.08);
}

.cs-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cs-feature__mark {
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: #276CBD;
}

.cs-feature__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.cs-feature__desc {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* Automation / Role */
.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.cs-chips li {
  padding: 8px 14px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  background: #ffffff;
  color: #1e4a72;
  font-size: 13px;
  font-weight: 600;
}

.cs-role {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-left: 3px solid #276CBD;
  background: #ffffff;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
}

/* Tech stack */
.cs-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-tech li {
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

/* Results */
.cs-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.cs-result {
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
}

.cs-result__value {
  margin: 0 0 6px;
  color: #276CBD;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cs-result__metric {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
}

.cs-result__desc {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

/* Gallery */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.cs-gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e8eef5;
}

/* Testimonial */
.cs-quote {
  margin: 0;
  max-width: 820px;
}

.cs-quote__text {
  margin: 0 0 24px;
  color: #0f172a;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.cs-quote__author {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.cs-quote__meta {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

/* Related */
.cs-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.cs-related__card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cs-related__card:hover {
  transform: translateY(-4px);
  border-color: #d0e0f2;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cs-related__card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cs-related__body {
  padding: 18px 18px 22px;
}

.cs-related__body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #0f172a;
}

.cs-related__body p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

/* Final CTA */
.cs-cta {
  padding: 88px 0;
  background: linear-gradient(135deg, #f4f8fc 0%, #eef4fa 100%);
  border-top: 1px solid #e8eef5;
  text-align: center;
}

.cs-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
}

.cs-cta p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
}

.cs-cta .default-btn {
  margin: 0 6px 8px;
}

@media (max-width: 991px) {
  .cs-hero__grid,
  .cs-split,
  .cs-chapter {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cs-hero {
    padding: 32px 0 40px;
  }

  .cs-section {
    padding: 64px 0;
  }

  .cs-features__grid,
  .cs-related__grid,
  .cs-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-chapter__num {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .cs-inner {
    padding: 0 18px;
  }

  .cs-hero__summary {
    font-size: 16px;
  }

  .cs-features__grid,
  .cs-related__grid,
  .cs-gallery {
    grid-template-columns: 1fr;
  }

  .cs-gallery img,
  .cs-related__card img {
    height: 200px;
  }

  .cs-info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-cta {
    padding: 64px 0;
  }
}
