/* ============================================================
   case-study-detail.css  -  prefix: csd-
   Colors: #0057ff (blue) | #7c3aed (purple) | #0A0820 (dark)
           #6B6B7B (muted) | #EBE8F5 (border) | #F8F7FD (light)
   NEVER use #6366f1 or #8b5cf6
   NEVER use em dash, use hyphen only
   ============================================================ */

/* ============================================================
   CONTAINER
   ============================================================ */
.csd-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 130px;
}

/* ============================================================
   BREADCRUMB (inside hero)
   ============================================================ */
.csd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B6B7B;
  margin-bottom: 18px;
}
.csd-breadcrumb a {
  color: #6B6B7B;
  text-decoration: none;
  transition: color 0.18s;
}
.csd-breadcrumb a:hover {
  color: #0057ff;
}
.csd-bc-sep {
  color: #C4C0D4;
  font-size: 14px;
}
.csd-bc-item {
  color: #6B6B7B;
}
.csd-bc-current {
  color: #0A0820;
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.csd-hero {
  background-color: #f1f2f3;
  background-image: url('https://cdn.prod.website-files.com/65c292289fb0ea1ff3a84bd3/69e74f4f8065c619d9f6af08_hero-bg.avif');
  background-position: 50% -2%;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 72px 0 64px;
}
.csd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: flex-start;
}

/* Hero left */
.csd-hero-left {
  padding-top: 8px;
}
.csd-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0057ff;
  background: rgba(0,87,255,0.08);
  border: 1px solid rgba(0,87,255,0.18);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.csd-hero-h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.22;
  color: #0A0820;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.csd-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: #6B6B7B;
  margin: 0 0 28px;
  max-width: 520px;
}
.csd-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.csd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #0A0820;
  background: #fff;
  border: 1px solid #EBE8F5;
  border-radius: 20px;
  padding: 6px 14px;
  box-shadow: 0 1px 4px rgba(10,8,32,0.06);
}
.csd-chip svg {
  color: #0057ff;
  flex-shrink: 0;
}

/* Hero right - company card */
.csd-company-card {
  background: #fff;
  border: 1px solid #EBE8F5;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 4px 24px rgba(10,8,32,0.08), 0 1px 4px rgba(10,8,32,0.05);
}
.csd-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.csd-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #EBE8F5;
  background: #F8F7FD;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
}
.csd-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.csd-card-info {
  flex: 1;
  min-width: 0;
}
.csd-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #0A0820;
  margin: 0 0 6px;
  line-height: 1.2;
}
.csd-card-industry-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 20px;
  padding: 3px 10px;
}
.csd-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #6B6B7B;
  margin: 0 0 20px;
}

/* 2x2 stats grid in card */
.csd-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #EBE8F5;
  border: 1px solid #EBE8F5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.csd-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: #fff;
}
.csd-stat-num {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0057ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.csd-stat-lab {
  font-size: 11px;
  color: #6B6B7B;
  line-height: 1.4;
}

/* Platforms row */
.csd-platforms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.csd-platforms-label {
  font-size: 12px;
  color: #6B6B7B;
  font-weight: 500;
  white-space: nowrap;
}
.csd-platform-logos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.csd-platform-pill {
  font-size: 11px;
  font-weight: 600;
  color: #0A0820;
  background: #F8F7FD;
  border: 1px solid #EBE8F5;
  border-radius: 6px;
  padding: 3px 8px;
}

/* ============================================================
   BODY LAYOUT
   ============================================================ */
.csd-body-wrap {
  background: #F8F7FD;
  padding: 56px 0 64px;
}
.csd-body-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: flex-start;
}

/* ============================================================
   SECTION CARDS (shared)
   ============================================================ */
.csd-section {
  background: #fff;
  border: 1px solid #EBE8F5;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 24px;
}
.csd-section:last-child {
  margin-bottom: 0;
}
.csd-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.csd-section-h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0A0820;
  margin: 0;
  letter-spacing: -0.01em;
}
.csd-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.csd-icon-blue {
  background: rgba(0,87,255,0.1);
  color: #0057ff;
}
.csd-icon-red {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}
.csd-icon-purple {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
}
.csd-icon-green {
  background: rgba(16,185,129,0.1);
  color: #10b981;
}
.csd-body-p {
  font-size: 15.5px;
  line-height: 1.72;
  color: #3d3b52;
  margin: 0 0 16px;
}
.csd-body-p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   THREE-COLUMN CARD
   ============================================================ */
.csd-three-col-card {
  background: #fff;
  border: 1px solid #EBE8F5;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
.csd-three-col-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.csd-three-col {
  padding: 28px 26px;
  border-right: 1px solid #EBE8F5;
}
.csd-three-col:last-child {
  border-right: none;
}
.csd-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.csd-col-h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0A0820;
  margin: 0;
}
.csd-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.csd-bullet-list li {
  font-size: 13.5px;
  line-height: 1.55;
  color: #3d3b52;
  padding-left: 16px;
  position: relative;
}
.csd-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}
.csd-strategy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.csd-strategy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #3d3b52;
}
.csd-strat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0057ff 0%, #7c3aed 100%);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.csd-results-section {
  padding-bottom: 36px;
}
.csd-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 8px;
}

/* Chart area */
.csd-chart-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.csd-chart-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B6B7B;
  margin: 0;
}
.csd-big-stat {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #0057ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0 12px;
}
.csd-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.csd-linechart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  overflow: visible;
}
.csd-month-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}
.csd-month-labels span {
  font-size: 11px;
  color: #6B6B7B;
  font-weight: 500;
}

/* Results 2x2 grid */
.csd-results-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #EBE8F5;
  border: 1px solid #EBE8F5;
  border-radius: 14px;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 40px;
}
.csd-result-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px;
  background: #fff;
}
.csd-result-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0057ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.csd-result-lab {
  font-size: 12px;
  color: #6B6B7B;
  line-height: 1.45;
}

/* ============================================================
   QUOTE SECTION
   ============================================================ */
.csd-quote-section {
  background: linear-gradient(135deg, #0A0820 0%, #130F35 55%, #1a0a3e 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.csd-quote-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,87,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.csd-quote-section::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.csd-quote-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.csd-quote-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  width: 84px;
}
.csd-quote-avatar {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}
.csd-quote-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.csd-dot-grid {
  position: absolute;
  bottom: -18px;
  right: -18px;
  display: grid;
  grid-template-columns: repeat(5, 5px);
  gap: 5px;
  opacity: 0.18;
}
.csd-dot-grid span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  display: block;
}
.csd-quote-text {
  flex: 1;
  position: relative;
}
.csd-quote-mark {
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}
.csd-quote-mark svg {
  display: block;
}
.csd-blockquote {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 24px;
  border: none;
  padding: 0;
}
.csd-quote-dash {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #0057ff, #7c3aed);
  border-radius: 2px;
  margin-bottom: 14px;
}
.csd-quote-attr {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.csd-quote-attr strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.csd-quote-attr span {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   IMPACT SUMMARY
   ============================================================ */
.csd-impact-section {
  padding: 32px 36px;
}
.csd-impact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.csd-impact-h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0A0820;
  margin: 0 0 16px;
}
.csd-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.csd-impact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #F8F7FD;
  border: 1px solid #EBE8F5;
  border-radius: 12px;
}
.csd-impact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,87,255,0.1) 0%, rgba(124,58,237,0.1) 100%);
  color: #0057ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.csd-impact-label {
  font-size: 13px;
  font-weight: 600;
  color: #0A0820;
  line-height: 1.4;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.csd-sidebar {
  min-width: 0;
  align-self: flex-start;
  position: sticky;
  top: 88px;
}
.csd-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Sidebar box - light gradient bg, no padding, overflow hidden for header strip */
.csd-sidebar-box {
  background: linear-gradient(160deg, #FAFAFD 0%, #F0EDFF 100%);
  border: 1px solid #E0D9FF;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

/* Header strip with left accent bar */
.csd-sidebar-h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #0057ff;
  padding: 13px 18px 11px;
  margin: 0;
  border-bottom: 1px solid rgba(0,87,255,0.1);
  background: linear-gradient(90deg, rgba(0,87,255,0.06) 0%, transparent 100%);
}
.csd-sidebar-h4::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0057ff, #7c3aed);
  display: block;
  flex-shrink: 0;
}

/* TOC - numbered badges */
.csd-toc {
  counter-reset: toc-step;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}
.csd-toc-link {
  counter-increment: toc-step;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #4B4869;
  text-decoration: none;
  padding: 9px 18px;
  border-left: 2px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.csd-toc-link::before {
  content: counter(toc-step);
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  background: rgba(0,87,255,0.08);
  color: #0057ff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  line-height: 1;
  transition: background 0.18s, color 0.18s;
}
.csd-toc-link:hover {
  color: #0A0820;
  background: rgba(0,87,255,0.04);
  border-left-color: rgba(0,87,255,0.3);
}
.csd-toc-link:hover::before {
  background: rgba(0,87,255,0.14);
}
.csd-toc-link.active {
  color: #0057ff;
  font-weight: 600;
  background: rgba(0,87,255,0.06);
  border-left-color: #0057ff;
}
.csd-toc-link.active::before {
  background: #0057ff;
  color: #fff;
}

/* Sidebar stats (Key Results) - row separator style */
.csd-sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.csd-sb-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0,87,255,0.07);
}
.csd-sb-stat:last-child {
  border-bottom: none;
}
.csd-sb-trend {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,87,255,0.1) 0%, rgba(124,58,237,0.1) 100%);
  color: #0057ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.csd-sb-stat-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.csd-sb-num {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0057ff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.csd-sb-lab {
  font-size: 11px;
  color: #9896A8;
  line-height: 1.3;
}

/* Platforms - 2x2 grid with dividers */
.csd-sb-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.csd-sb-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #0A0820;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,87,255,0.07);
  border-right: 1px solid rgba(0,87,255,0.07);
}
.csd-sb-platform:nth-child(2n) {
  border-right: none;
}
.csd-sb-platform:nth-last-child(-n+2) {
  border-bottom: none;
}
.csd-sb-platform-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.csd-plat-chatgpt {
  background: rgba(16,163,127,0.1);
  color: #10a37f;
}
.csd-plat-gemini {
  background: rgba(66,133,244,0.1);
  color: #4285f4;
}
.csd-plat-claude {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
}
.csd-plat-perplexity {
  background: rgba(0,87,255,0.1);
  color: #0057ff;
}

/* Sidebar CTA */
.csd-sidebar-cta {
  background: linear-gradient(160deg, #0A0820 0%, #16133E 100%);
  border-radius: 16px;
  padding: 24px 22px;
  border: 1px solid rgba(255,255,255,0.06);
}
.csd-cta-label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.csd-cta-sub {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 0 0 20px;
}
.csd-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #0057ff 0%, #7c3aed 100%);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 4px 16px rgba(0,87,255,0.35);
}
.csd-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================================================
   PREV / NEXT NAV BAR
   ============================================================ */
.csd-prevnext-bar {
  background: linear-gradient(180deg, #0A0820 0%, #0f0c2a 100%);
  padding: 0;
  border-top: none;
}
.csd-prevnext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.07);
}
.csd-prevnext-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 48px;
  text-decoration: none;
  background: #0A0820;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
}
.csd-prevnext-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,87,255,0.07) 0%, rgba(124,58,237,0.05) 100%);
  opacity: 0;
  transition: opacity 0.22s;
  pointer-events: none;
}
.csd-prevnext-card:hover::before {
  opacity: 1;
}
.csd-pn-empty {
  opacity: 0.55;
}
.csd-pn-empty:hover {
  opacity: 0.8;
}
.csd-pn-dir {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0057ff;
}
.csd-pn-dir svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.csd-prev:hover .csd-pn-dir svg {
  transform: translateX(-5px);
}
.csd-next:hover .csd-pn-dir svg {
  transform: translateX(5px);
}
.csd-next .csd-pn-dir {
  justify-content: flex-end;
}
.csd-pn-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.csd-next .csd-pn-name,
.csd-next .csd-pn-industry {
  text-align: right;
}
.csd-pn-all {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
}
.csd-pn-industry {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVE - 1280px
   ============================================================ */
@media (max-width: 1280px) {
  .csd-container {
    padding: 0 60px;
  }
  .csd-hero-grid {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }
  .csd-hero-h1 {
    font-size: 34px;
  }
}

/* ============================================================
   RESPONSIVE - 1024px (sidebar becomes 2-col grid)
   ============================================================ */
@media (max-width: 1024px) {
  .csd-container {
    padding: 0 28px;
  }
  .csd-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .csd-hero-left {
    padding-top: 0;
  }
  .csd-hero-sub {
    max-width: 100%;
  }
  .csd-company-card {
    max-width: 520px;
  }
  .csd-body-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .csd-sidebar {
    position: static;
    align-self: auto;
  }
  .csd-sidebar-sticky {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .csd-sidebar-cta {
    grid-column: 1 / -1;
  }
  .csd-three-col-inner {
    grid-template-columns: 1fr;
  }
  .csd-three-col {
    border-right: none;
    border-bottom: 1px solid #EBE8F5;
  }
  .csd-three-col:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   RESPONSIVE - 860px
   ============================================================ */
@media (max-width: 860px) {
  .csd-container {
    padding: 0 20px;
  }
  .csd-hero {
    padding: 48px 0 40px;
  }
  .csd-hero-h1 {
    font-size: 28px;
  }
  .csd-results-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .csd-results-stats {
    margin-top: 0;
  }
  .csd-impact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .csd-quote-inner {
    flex-direction: column;
    gap: 24px;
  }
  .csd-sidebar-sticky {
    grid-template-columns: 1fr;
  }
  .csd-sidebar-cta {
    grid-column: auto;
  }
  .csd-prevnext-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .csd-prevnext-card {
    padding: 28px 24px;
  }
  .csd-next .csd-pn-name,
  .csd-next .csd-pn-industry {
    text-align: left;
  }
  .csd-next .csd-pn-dir {
    justify-content: flex-start;
  }
  .csd-body-wrap {
    padding: 36px 0 48px;
  }
  .csd-section {
    padding: 24px 22px;
  }
  .csd-impact-section {
    padding: 24px 22px;
  }
  .csd-quote-section {
    padding: 28px 22px;
  }
}

/* ============================================================
   RESPONSIVE - 640px
   ============================================================ */
@media (max-width: 640px) {
  .csd-container {
    padding: 0 16px;
  }
  .csd-hero {
    padding: 28px 0 28px;
  }
  .csd-hero-h1 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .csd-hero-sub {
    font-size: 14.5px;
    margin-bottom: 18px;
  }
  .csd-breadcrumb {
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 12px;
    margin-bottom: 14px;
  }
  .csd-company-card {
    max-width: 100%;
    padding: 18px 18px 16px;
  }
  .csd-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .csd-stat-num {
    font-size: 16px;
  }
  .csd-stat-item {
    padding: 10px 12px;
  }
  .csd-three-col {
    padding: 20px 18px;
  }
  .csd-big-stat {
    font-size: 36px;
  }
  .csd-impact-grid {
    grid-template-columns: 1fr;
  }
  .csd-section-h2 {
    font-size: 18px;
  }
  .csd-section {
    padding: 20px 18px;
  }
  .csd-body-wrap {
    padding: 28px 0 36px;
  }
  .csd-blockquote {
    font-size: 15px;
  }
  .csd-quote-section {
    padding: 24px 20px;
  }
  .csd-quote-mark svg {
    width: 28px;
    height: 22px;
  }
  .csd-prevnext-card {
    padding: 24px 20px;
  }
  .csd-pn-name {
    font-size: 17px;
  }
  .csd-sidebar-sticky {
    grid-template-columns: 1fr;
  }
}

.footer {
  margin-top: 0;
}
.page-cta-wrap {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* Case study bottom CTA */
.csd-bottom-cta{
  padding: 32px 130px;
  background: linear-gradient(135deg, #eef3ff, #f3eeff);
  border-top: 1px solid rgba(0,87,255,.12);
  text-align: center;
}
.csd-bottom-cta p{ font-size: 16px; color: #0B0B12; margin: 0; font-weight: 500; }
.csd-bottom-cta a{ color: #0057ff; font-weight: 700; text-decoration: none; }
@media(max-width: 860px){
  .csd-bottom-cta{ padding: 28px 28px; text-align: left; }
  .csd-bottom-cta p{ font-size: 15px; }
}
@media(max-width: 600px){
  .csd-bottom-cta{ padding: 24px 20px; }
  .csd-bottom-cta p{ font-size: 14px; }
}
