/* ══ CASGO CASE STUDY ══ */

.casgo-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 480px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%,
    rgba(74,222,128,.07) 0%, rgba(168,85,247,.05) 50%, transparent 80%);
  pointer-events: none; z-index: 0;
}
.casgo-hero .cs-hero-inner { position: relative; z-index: 1; }

/* Hero image — white bg slides, fit nicely */
.casgo-hero-img {
  background: #f4f4f4;
  border-radius: 12px 12px 0 0 !important;
  object-fit: contain !important;
  max-height: 380px;
}

/* ── Problem + pain points layout ──────── */
.casgo-problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 64px 24px;
  align-items: start;
}
@media(max-width: 700px) { .casgo-problem-layout { grid-template-columns: 1fr; } }

.casgo-pain-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 32px 28px;
  height: 100%;
}

.casgo-pain-problem {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #f87171;
  line-height: 1.55;
  background: rgba(248,113,113,.07);
  border: 1px solid rgba(248,113,113,.2);
  border-left: 3px solid #f87171;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 28px;
}

.casgo-pain-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.casgo-pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.casgo-pain-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.casgo-pain-item:last-child { border-bottom: none; padding-bottom: 0; }

.casgo-pain-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.casgo-pain-item h4 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.casgo-pain-item p {
  font-size: 15px;
  color: #8080a0;
  line-height: 1.7;
  padding-left: 24px;
}

/* ── Wide image pair for problem slides ─ */
.casgo-img-pair-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 64px 24px;
}
@media(max-width: 700px) { .casgo-img-pair-wide { grid-template-columns: 1fr; } }

.casgo-img-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.casgo-img-box img { width: 100%; display: block; }

/* ── Research layout ──────────────────── */
.casgo-research-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media(max-width: 860px) { .casgo-research-layout { grid-template-columns: 1fr; } }

.casgo-research-img img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

.casgo-research-notes {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.casgo-note {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.casgo-note:last-child { border-bottom: none; }
.casgo-diamond {
  color: #6ab37a;
  font-size: 14px;
  flex-shrink: 0;
  padding-top: 3px;
}
.casgo-note h4 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
}
.casgo-note p { font-size: 15px; color: #8080a0; line-height: 1.75; }

/* ── Workflow list ────────────────────── */
.casgo-workflow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.casgo-workflow-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .22s;
  cursor: default;
}
.casgo-workflow-item:last-child { border-bottom: none; }
.casgo-workflow-item:hover { padding-left: 8px; }
.casgo-wf-num {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #6ab37a;
  letter-spacing: .1em;
  flex-shrink: 0;
  width: 28px;
  padding-top: 4px;
}
.casgo-workflow-item h4 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.casgo-workflow-item p { font-size: 16px; color: #8080a0; line-height: 1.7; }

/* ── Outcomes / learnings ─────────────── */
.casgo-outcomes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media(max-width: 760px) { .casgo-outcomes-layout { grid-template-columns: 1fr; } }

.casgo-outcomes-layout img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

/* ── Outcome quote ────────────────────── */
.casgo-outcome-block {
  background: rgba(106,179,122,.07);
  border: 1px solid rgba(106,179,122,.2);
  border-left: 3px solid #6ab37a;
  border-radius: 12px;
  padding: 32px 36px;
}
.casgo-outcome-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: #d4e8d4;
  line-height: 1.6;
  margin: 0;
}

/* ── Learnings grid ───────────────────── */
.casgo-learnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media(max-width: 860px) { .casgo-learnings-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 560px) { .casgo-learnings-grid { grid-template-columns: 1fr; } }

.casgo-learning-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px 24px;
  transition: border-color .3s, transform .3s;
}
.casgo-learning-card:hover {
  border-color: rgba(106,179,122,.3);
  transform: translateY(-4px);
}
.casgo-learning-card .casgo-diamond {
  font-size: 13px;
  display: block;
  margin-bottom: 12px;
}
.casgo-learning-card h4 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.casgo-learning-card p {
  font-size: 16px;
  color: #8080a0;
  line-height: 1.75;
}

/* ── Closing statement ────────────────── */
.casgo-closing {
  font-size: 16px;
  color: #6060a0;
  line-height: 1.8;
  font-style: italic;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Prose sizes ──────────────────────── */
.cs-prose p         { font-size: 18px; }
.cs-step-content h3 { font-size: 18px; }
.cs-step-content p  { font-size: 16px; }
