/* Case study listing & detail page styles */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 48px 0;
}
@media (max-width: 768px) {
  .cs-grid { grid-template-columns: 1fr; }
}

.cs-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.28s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.cs-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.cs-card-img {
  position: relative;
  max-height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}
.cs-card-img img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}
.cs-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gold);
  color: var(--navy);
}
.cs-card-badge.green { background: #2d5a1e; color: #fff; }
.cs-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cs-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cs-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.cs-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.cs-card-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cs-stat-chip {
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}
.cs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--red);
  font-size: 0.9rem;
}
.cs-card-link::after { content: '→'; }

/* Detail pages */
.case-study-content { max-width: 900px; margin: 0 auto; }
.case-study-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 20px;
}
.case-study-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 680px;
}
.case-study-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 8px;
}
.cs-stats-bar {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cs-stat-item { text-align: center; }
.cs-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.cs-stat-num.green { color: #2d5a1e; }
.cs-stat-lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.cs-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.cs-gallery figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}
.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 32px 0;
}
.cs-two-col img { width: 100%; border-radius: 12px; }
.cs-titles-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.cs-titles-col strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.cs-titles-col span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.cs-titles-col strong em { font-style: normal; color: var(--gold); }
.cs-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: #faf9f7;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}
.cs-quote.green {
  border-left-color: #2d5a1e;
  background: #f0f7ea;
}
.cs-highlight-box {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.page-header--green {
  background: linear-gradient(160deg, #0a1a0a, #1a2a1a, #2d5a1e, #1a3a0a);
}
.page-header--green h1 em { color: #8bc34a; }
@media (max-width: 768px) {
  .cs-two-col { grid-template-columns: 1fr; }
  .cs-gallery { grid-template-columns: repeat(2, 1fr); }
}
