/* ====== CUSTOMER STORIES PAGE ====== */

/* Hero */
.cs-hero {
  background: #0c1820;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 183, 229, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cs-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.cs-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00b7e5;
  text-align: center;
  margin-bottom: 16px;
}

.cs-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cs-hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* Featured Video */
.cs-featured {
  max-width: 880px;
  margin: 0 auto;
}

.cs-featured-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cs-featured-logo {
  height: 28px;
  opacity: 0.9;
}

.cs-featured-company {
  font-size: 13px;
  font-weight: 700;
  color: #00b7e5;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cs-featured-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.cs-featured-context {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.cs-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cs-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cs-featured-quote-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.cs-featured-quote-mark {
  font-size: 36px;
  line-height: 1;
  color: #00b7e5;
  font-weight: 800;
}

.cs-featured-quote {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-style: italic;
}

.cs-featured-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  padding-left: 28px;
}

.cs-featured-attr-dash {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.cs-featured-person-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.cs-featured-person-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* Featured Stats */
.cs-featured-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.cs-featured-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 28px 24px;
  text-align: center;
}

.cs-featured-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #00b7e5;
  margin-bottom: 6px;
}

.cs-featured-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ====== FILTER TOGGLE ====== */
.cs-filter-section {
  background: #fff;
  padding: 48px 0 0;
  border-bottom: 1px solid #e8eaed;
}

.cs-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-filter-heading {
  font-size: 28px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 8px;
  text-align: center;
}

.cs-filter-sub {
  font-size: 15px;
  color: #5a6670;
  margin-bottom: 28px;
  text-align: center;
}

.cs-toggle {
  display: flex;
  background: #f0f3f7;
  border-radius: 20px;
  padding: 3px;
  border: 1px solid #e0e4ea;
  margin-bottom: 48px;
}

.cs-toggle-btn {
  padding: 8px 20px;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6670;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cs-toggle-btn.active {
  background: #1a2b3c;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cs-toggle-btn:hover:not(.active) {
  color: #1a2b3c;
}

/* ====== CASE STUDY CARDS ====== */
.cs-grid-section {
  background: #f0f2f5;
  padding: 64px 0 80px;
}

.cs-grid-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cs-card {
  background: #fff;
  border: 1px solid #d8dce2;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.cs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cs-card-logo {
  height: 24px;
  max-width: 120px;
  object-fit: contain;
}

.cs-card-initial {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #1a2b3c;
}

.cs-card-tags {
  display: flex;
  gap: 6px;
}

.cs-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.cs-card-tag-fs {
  background: rgba(0, 183, 229, 0.08);
  color: #00b7e5;
}

.cs-card-tag-dist {
  background: rgba(43, 108, 176, 0.08);
  color: #2B6CB0;
}

.cs-card-industry {
  font-size: 11px;
  font-weight: 600;
  color: #8a939d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cs-card-company {
  font-size: 20px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 16px;
}

.cs-card-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background: #fafbfc;
  border-radius: 8px;
  border-left: 3px solid #00b7e5;
}

.cs-card-metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #00b7e5;
  line-height: 1;
}

.cs-card-metric-label {
  font-size: 13px;
  color: #5a6670;
  font-weight: 500;
  line-height: 1.3;
}

.cs-card-desc {
  font-size: 14px;
  color: #5a6670;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.cs-card-quote {
  font-size: 13px;
  color: #5a6670;
  font-style: italic;
  line-height: 1.5;
  padding: 12px 16px;
  background: #fafbfc;
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
}

.cs-card-quote::before {
  content: '\201C';
  font-size: 24px;
  color: #00b7e5;
  font-weight: 800;
  line-height: 1;
  margin-right: 4px;
}

.cs-card-attr {
  font-size: 12px;
  color: #8a939d;
  font-weight: 500;
  margin-bottom: 20px;
}

.cs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #00b7e5;
  margin-top: auto;
  transition: gap 0.2s;
}

.cs-card:hover .cs-card-link {
  gap: 10px;
}

.cs-card-link svg {
  width: 14px;
  height: 14px;
}

/* Card hidden by filter */
.cs-card.hidden {
  display: none;
}

/* ====== AGGREGATE RESULTS ====== */
.cs-results {
  background: #1a2b3c;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cs-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 183, 229, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(43, 108, 176, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cs-results-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.cs-results-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-bottom: 48px;
}

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.cs-result-item {
  text-align: center;
}

.cs-result-value {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1;
}

.cs-result-value span {
  color: #00b7e5;
}

.cs-result-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  line-height: 1.4;
}

/* ====== LOGO BAND ====== */
.cs-logos {
  background: #fff;
  padding: 64px 0;
  border-top: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
}

.cs-logos-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.cs-logos-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8a939d;
  margin-bottom: 36px;
}

.cs-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.cs-logos-row img {
  height: 28px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}

.cs-logos-row img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ====== BOTTOM CTA ====== */
.cs-cta {
  background: #f4f5f7;
  padding: 80px 0;
}

.cs-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.cs-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1a2b3c;
  margin-bottom: 16px;
  line-height: 1.15;
}

.cs-cta-sub {
  font-size: 16px;
  color: #5a6670;
  margin-bottom: 32px;
  line-height: 1.6;
}

.cs-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #7ed321;
  color: #001e39;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
}

.cs-btn-primary:hover {
  background: #ffd012;
}

.cs-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: #1a2b3c;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.cs-btn-secondary:hover {
  border-color: #1a2b3c;
  background: #fafbfc;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .cs-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .cs-hero {
    padding: 60px 0 48px;
  }
  .cs-hero h1 {
    font-size: 32px;
  }
  .cs-hero-sub {
    font-size: 15px;
  }
  .cs-featured-stats {
    grid-template-columns: 1fr;
  }
  .cs-grid {
    grid-template-columns: 1fr;
  }
  .cs-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .cs-result-value {
    font-size: 36px;
  }
  .cs-cta-buttons {
    flex-direction: column;
  }
  .cs-logos-row {
    gap: 24px;
  }
  .cs-logos-row img {
    height: 22px;
  }
}

@media (max-width: 768px) {
  /* Apply consistent 16 px outer rhythm at all phone widths, not only ≤400 */
  .cs-hero-inner,
  .cs-filter-inner,
  .cs-grid-inner,
  .cs-results-inner,
  .cs-logos-inner,
  .cs-cta-inner {
    padding: 0 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  .cs-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Mega Menu - Explore Further Buttons */
.feature-group .mega-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 16px;
  background: #7ed321;
  color: #001e39;
  font-size: 12px;
  font-weight: 600;
  border-radius: 16px;
  transition: background 0.2s, transform 0.15s;
}
.feature-group .mega-explore-btn:hover {
  background: #ffd012;
  transform: translateY(-1px);
  color: #001e39;
}
.feature-group .mega-explore-btn span {
  font-size: 13px;
  transition: transform 0.2s;
}
.feature-group .mega-explore-btn:hover span {
  transform: translateX(2px);
}

.integration-more {
  font-size: 13px;
  font-weight: 600;
  color: #00b7e5;
  white-space: nowrap;
}
/* ============================================================
   eLogii Case Study DETAIL pages — /case-studies/<slug>/
   Loaded together with the root /styles.css.
   Class prefix: .csd-* (Case Study Detail)
   ============================================================ */

/* ===== HERO ===== */
.csd-hero {
  background: linear-gradient(180deg, #fbfbfd 0%, #fff 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid #eef0f3;
  position: relative;
  overflow: hidden;
}

.csd-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(0, 183, 229, 0.08), transparent 70%);
  pointer-events: none;
}

.csd-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.csd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6670;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.csd-back:hover { color: #00b7e5; }
.csd-back svg { width: 14px; height: 14px; }

.csd-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6670;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.csd-eyebrow-sep {
  color: #c0c8d0;
}

.csd-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.csd-tag-fs { background: #d9f4fb; color: #00b7e5; }
.csd-tag-dist { background: #e8f4fd; color: #2b9fd9; }

.csd-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.csd-hero-text { min-width: 0; }

.csd-hero-logo {
  height: 48px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  display: block;
}

.csd-hero-h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a2b3c;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.csd-hero-overview {
  font-size: 17px;
  line-height: 1.65;
  color: #5a6670;
  margin: 0 0 32px;
  max-width: 620px;
}

.csd-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.csd-hero-img {
  width: 100%;
  max-width: 620px;
  height: auto;
  border-radius: 12px;
  margin: 0 0 28px;
  display: block;
  border: 1px solid #eef0f3;
}

/* Hero stats column */
.csd-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: start;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(20, 30, 50, 0.04);
}

.csd-stat {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbfbfd;
  border: 1px solid #f0f2f5;
}

.csd-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #00b7e5;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 6px;
}

.csd-stat-label {
  font-size: 12px;
  color: #5a6670;
  line-height: 1.4;
  font-weight: 500;
}

/* ===== PULL QUOTE BAR ===== */
.csd-quote {
  background: #1a2b3c;
  color: #fff;
  padding: 56px 0;
}

.csd-quote-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
}

.csd-quote-mark {
  font-size: 72px;
  font-weight: 800;
  color: #00b7e5;
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.csd-quote-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: #fff;
}

.csd-quote-attr {
  font-size: 14px;
  color: #c0c8d0;
  font-weight: 500;
}

.csd-quote-name {
  color: #fff;
  font-weight: 700;
}

/* ===== BODY (Challenge / Solution / Results) ===== */
.csd-body {
  padding: 80px 0;
  background: #fff;
}

.csd-body-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px;
}

.csd-section {
  margin-bottom: 56px;
}
.csd-section:last-child { margin-bottom: 0; }

.csd-section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #00b7e5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.csd-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1a2b3c;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  line-height: 1.2;
}

.csd-section p {
  font-size: 17px;
  line-height: 1.7;
  color: #3d4a57;
  margin: 0 0 16px;
}

.csd-list {
  margin: 0 0 20px;
  padding-left: 32px;
  list-style: disc;
}
ol.csd-list { list-style: decimal; }
.csd-list li {
  font-size: 17px;
  line-height: 1.7;
  color: #3d4a57;
  margin: 0 0 8px;
  padding-left: 4px;
}
.csd-list li::marker {
  color: #00b7e5;
  font-weight: 700;
}
/* Nested list inside an <li>: tighter indent, switches to circle. */
.csd-list .csd-list {
  margin: 8px 0 12px;
  padding-left: 28px;
  list-style: circle;
}
.csd-list strong { color: #1a2b3c; }

/* Inline screenshots living inside a bullet (production places these
   after `<br><br>` within the <li>) — give them air, drop the column
   border so they read as part of the list-item content rather than as
   separate body images. */
.csd-list li > .csd-body-img {
  margin: 12px 0 16px;
}

.csd-body-img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 24px auto 28px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
}

/* Portrait / narrow screenshots (phones, tall UI captures, small notification
   panels): render at their natural pixel width so we don't upscale, and cap
   at half the paragraph width so they don't dominate the column. */
.csd-body-img-portrait {
  width: auto;
  max-width: 350px;
}

.csd-intro-media {
  margin-bottom: 48px;
}
.csd-intro-media .csd-body-img {
  margin-top: 0;
}

.csd-results-metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: #fbfbfd;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 24px;
}

.csd-results-metric {
  padding: 8px 4px;
}
.csd-results-metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #00b7e5;
  line-height: 1.05;
  margin-bottom: 6px;
}
.csd-results-metric-label {
  font-size: 13px;
  color: #5a6670;
  line-height: 1.4;
}

/* ===== RELATED STORIES ===== */
.csd-related {
  background: #fbfbfd;
  padding: 64px 0;
  border-top: 1px solid #eef0f3;
}

.csd-related-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.csd-related-heading {
  font-size: 14px;
  font-weight: 700;
  color: #5a6670;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.csd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.csd-related-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.csd-related-card:hover {
  border-color: #00b7e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 30, 50, 0.06);
}

.csd-related-logo {
  height: 28px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
}

.csd-related-company {
  font-size: 16px;
  font-weight: 700;
  color: #1a2b3c;
}

.csd-related-metric {
  font-size: 14px;
  color: #5a6670;
}
.csd-related-metric strong {
  color: #00b7e5;
  font-weight: 800;
}

.csd-related-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #00b7e5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== BOTTOM CTA (mirrors customer-stories cs-cta) ===== */
.csd-cta {
  background: #f4f5f7;
  padding: 80px 0;
}
.csd-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.csd-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1a2b3c;
  margin: 0 0 16px;
  line-height: 1.15;
}
.csd-cta-sub {
  font-size: 16px;
  color: #5a6670;
  margin: 0 0 32px;
  line-height: 1.6;
}
.csd-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.csd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #7ed321;
  color: #001e39;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.csd-btn-primary:hover { background: #ffd012; }
.csd-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: #1a2b3c;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.csd-btn-secondary:hover { border-color: #1a2b3c; background: #fafbfc; }

/* ============================================================
   === MOBILE: Case-study detail rules (≤1024 / ≤640) ===
   ============================================================ */
@media (max-width: 1024px) {
  .csd-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .csd-hero-h1 { font-size: 36px; }
  .csd-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .csd-hero { padding: 36px 0 48px; }
  .csd-hero-inner,
  .csd-quote-inner,
  .csd-body-inner,
  .csd-related-inner,
  .csd-cta-inner {
    padding: 0 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .csd-hero-h1 { font-size: 28px; }
  .csd-hero-overview { font-size: 16px; }
  .csd-hero-stats {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 12px;
  }
  .csd-stat-value { font-size: 24px; }
  .csd-quote { padding: 40px 0; }
  .csd-quote-text { font-size: 19px; }
  .csd-quote-mark { font-size: 56px; }
  .csd-body { padding: 56px 0; }
  .csd-section { margin-bottom: 40px; }
  .csd-section h2 { font-size: 24px; }
  .csd-section p { font-size: 16px; }
  .csd-results-metrics {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 12px;
  }
  .csd-results-metric-value { font-size: 24px; }
  .csd-related { padding: 48px 0; }
  .csd-related-grid { grid-template-columns: 1fr; }
  .csd-cta { padding: 56px 0; }
  .csd-cta h2 { font-size: 24px; }
  .csd-cta-buttons { flex-direction: column; }
  .csd-cta-buttons a { justify-content: center; }
}
