/* ── Case Study Pages ──────────────────────────────────────── */

/* Hero */
.cs-hero {
  background: #f5f5f5;
  border-bottom: 4px solid #111111;
  padding: 10rem 0 5rem;
  color: var(--text-light);
}
.cs-hero-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.cs-hero-photos-2 {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.cs-hero-photos-2 img:first-child {
  width: 58%;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  margin-right: -5%;
  box-shadow: 8px 8px 28px rgba(0,0,0,0.18);
}
.cs-hero-photos-2 img:last-child {
  width: 50%;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  margin-top: 40px;
  box-shadow: 8px 8px 28px rgba(0,0,0,0.18);
}
.cs-hero-photo-placeholder {
  aspect-ratio: 16 / 9;
  background: #e5e5e5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaaaaa;
  font-size: 1.5rem;
}
img.cs-hero-photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-hero-photos-2 img {
  height: auto;
  object-fit: unset;
}
.cs-back {
  font-size: 0.88rem;
  font-weight: 600;
  color: #888888;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.cs-back:hover { color: #111111; }
.cs-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #505560;
  border: none;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
}
.cs-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0 0.75rem;
  color: var(--text-light);
}
.cs-subtitle {
  font-size: 1.15rem;
  color: #555555;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: #888888;
}
.cs-meta i { color: #111111; }

/* Overview cards */
.cs-overview { padding: 2rem 0 0; }
.cs-key-takeaways {
  margin: 2rem auto 0;
  max-width: 800px;
  padding: 1.5rem 2rem;
  background: rgba(122,171,138,0.1);
  border-left: 4px solid #505560;
  border-radius: 0 10px 10px 0;
}
.cs-key-takeaways-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #505560;
  margin-bottom: 0.5rem;
}
.cs-key-takeaways p {
  font-size: 1rem;
  color: #333333;
  line-height: 1.7;
  margin: 0;
}
.overview-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.25rem;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.overview-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.overview-card.highlight {
  background: #f0f0f0;
  border-color: rgba(0,0,0,0.15);
}
.overview-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #505560;
  margin-bottom: 0.5rem;
}
.overview-card p {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}
.overview-card.highlight p { color: #333; }
.overview-card.highlight strong { color: #000; }

/* Body / article */
.cs-body { background: #fff; padding: 5rem 0; }
.cs-content { max-width: 720px; margin: 0 auto; }

.cs-section { margin-bottom: 4rem; }
.cs-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}
.cs-section p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Callout */
.cs-callout {
  background: rgba(122,171,138,0.08);
  border-left: 4px solid #505560;
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  font-size: 0.97rem;
  color: #333;
  line-height: 1.7;
  margin: 1.5rem 0;
}
.cs-callout strong { color: #000; }

/* Insight grid */
.cs-insight-grid {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}
.cs-insight {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.cs-insight:last-child { border-bottom: none; }
.cs-insight-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #505560;
  min-width: 2.5rem;
  padding-top: 0.05rem;
  flex-shrink: 0;
}
.cs-insight p { font-size: 0.92rem; color: #555; line-height: 1.6; margin: 0; }

/* Image placeholder */
.cs-image-placeholder {
  background: #f0f0f0;
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  color: #888888;
  margin: 1.5rem 0;
}
.cs-image-placeholder p { margin: 0.75rem 0 0; font-size: 0.88rem; }

/* Metrics row */
.cs-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.cs-metric {
  text-align: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1.5rem 1rem;
}
.cs-metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: #505560;
  line-height: 1;
}
.cs-metric-label {
  font-size: 0.8rem;
  color: #888888;
  margin-top: 0.4rem;
  font-weight: 500;
}

/* Learnings list */
.cs-learnings {
  padding-left: 1.2rem;
  color: #444;
  line-height: 1.9;
}
.cs-learnings li { margin-bottom: 0.4rem; }

/* Subheadings within sections */
.cs-subheading {
  font-weight: 700;
  color: #111111;
  margin: 2rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

/* Body section images */
.cs-section-imgs {
  display: flex;
  align-items: flex-start;
  margin: 1.5rem 0 2rem;
}
.cs-section-imgs img:first-child {
  width: 62%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  position: relative;
  z-index: 2;
  margin-right: -6%;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.14);
}
.cs-section-imgs img:last-child {
  width: 52%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  position: relative;
  z-index: 1;
  margin-top: 36px;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.14);
}
.cs-section-img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  height: auto;
  margin: 1.5rem 0;
}

/* Two-column MVP / Roadmap layout */
.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.cs-two-col-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1.4rem;
}
.cs-two-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #505560;
  margin-bottom: 0.75rem;
}

/* Metrics table */
.cs-metrics-table {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.cs-metrics-row-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e5e5e5;
}
.cs-metrics-row-item:last-child { border-bottom: none; }
.cs-metrics-col {
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}
.cs-metrics-col:first-child { border-right: 1px solid #e5e5e5; }
.cs-metrics-col.label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111111;
  background: #f0f0f0;
}

/* Nav footer */
.cs-nav-footer { padding: 3rem 0; }

/* ── Overview B — challenge left, sidebar right ────────────── */
.cs-overview-b { padding: 3rem 0; }
.cs-overview-b-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.cs-overview-b-challenge {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cs-overview-b-challenge-text {
  font-size: 1.05rem;
  color: #1a1a1a;
  line-height: 1.7;
  margin: 0.5rem 0 1.5rem;
}
.cs-overview-b-stat {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e5e5;
}
.cs-overview-b-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
}
.cs-overview-b-stat-desc {
  font-size: 0.88rem;
  color: #888888;
}
.cs-overview-b-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cs-overview-b-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  flex: 1;
}
.cs-overview-b-item p {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
  margin: 0.4rem 0 0;
}
.cs-overview-b-item.highlight-item {
  background: #f0f0f0;
  border-color: rgba(0,0,0,0.12);
}
.cs-overview-b-item.highlight-item p { color: #333333; }

/* Responsive */
@media (max-width: 768px) {
  .cs-hero-b-inner { grid-template-columns: 1fr; }
  .cs-overview-b-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .cs-hero { padding: 8rem 0 3rem; }
  .cs-meta { gap: 0.75rem; }
}
