/* ── Case Study Detail Hero - always dark, editorial style ── */
.cs-detail-hero {
  background: linear-gradient(135deg, #05080f 0%, var(--dark-900) 55%, #0a0e1a 100%);
  padding: 5.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--secondary);
}
.cs-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cs-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 80% at -5% 115%, rgba(4,160,224,.28) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 105% -10%, rgba(227,30,37,.12) 0%, transparent 50%);
  pointer-events: none;
}
.cs-detail-hero .container { position: relative; z-index: 1; }

.cs-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}
.cs-detail-breadcrumb a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--duration), gap var(--duration);
}
.cs-detail-breadcrumb a:hover { color: var(--white); gap: .75rem; }

/* Sector badges - solid colored on dark hero */
.cs-detail-hero .cs-card-sector         { opacity: 1; }
.cs-detail-hero .sector-badge-hospitality { background: #0284c7; color: #fff; }
.cs-detail-hero .sector-badge-mobility   { background: #0d9488; color: #fff; }
.cs-detail-hero .sector-badge-education  { background: #7c3aed; color: #fff; }
.cs-detail-hero .sector-badge-transport  { background: var(--primary); color: #fff; }

.cs-detail-sector {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--secondary);
  margin-bottom: .75rem;
}
.cs-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: .85rem;
  max-width: 820px;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.cs-detail-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
  max-width: 680px;
}
.cs-detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  padding-top: .65rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cs-detail-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.cs-detail-meta i { color: var(--secondary); font-size: .75rem; }

/* ── Key Results Banner ── */
.cs-results-banner {
  background: var(--dark-900);
  padding: 2.25rem 0;
}
.cs-results-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.cs-result-banner-item {
  text-align: center;
  padding: .75rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.cs-result-banner-item:last-child { border-right: none; }
.cs-result-banner-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
}
.cs-result-banner-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-top: .3rem;
  display: block;
}

/* ── Hero Image ── */
.cs-detail-hero-img {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  line-height: 0;
}
.cs-detail-hero-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

/* ── Body Layout - light editorial background ── */
.cs-detail-body {
  background: #f2f5fa;
  padding: 3.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.cs-detail-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.038) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cs-detail-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(4,160,224,.05) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 0% 100%, rgba(227,30,37,.04) 0%, transparent 55%);
  pointer-events: none;
}
.cs-detail-body > .container { position: relative; z-index: 1; }

.cs-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .cs-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cs-detail-article { padding: 1.75rem 1.5rem !important; }
}

/* ── Article - white elevated card ── */
.cs-detail-article {
  max-width: 720px;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 28px rgba(0,0,0,.07);
}
.cs-detail-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f4;
  font-weight: 500;
}
.cs-detail-section { margin-bottom: 2.5rem; }
.cs-detail-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  padding-left: .75rem;
  border-left: 3px solid var(--secondary);
}
.cs-detail-section h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: .5rem;
}
.cs-detail-section p {
  font-size: .975rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1rem;
}
.cs-detail-section ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1rem;
}
.cs-detail-section ul li {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-body);
  padding: .3rem 0 .3rem 1.5rem;
  position: relative;
}
.cs-detail-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Challenge box ── */
.cs-challenge-box {
  background: rgba(227,30,37,.05);
  border: 1px solid rgba(227,30,37,.15);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}
.cs-challenge-box h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}
.cs-challenge-box ul { padding-left: 0; list-style: none; margin: 0; }
.cs-challenge-box li {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-body);
  padding: .3rem 0 .3rem 1.5rem;
  position: relative;
}
.cs-challenge-note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--text-mid);
}

.cs-challenge-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Solution steps ── */
.cs-solution-steps { margin-top: 1.25rem; }
.cs-solution-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  align-items: flex-start;
}
.cs-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.cs-step-body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: .5rem;
}
.cs-step-body p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: .75rem;
}
.cs-step-body ul { padding-left: 0; list-style: none; margin-bottom: .75rem; }
.cs-step-body ul li {
  font-size: .93rem;
  line-height: 1.7;
  color: var(--text-body);
  padding: .25rem 0 .25rem 1.5rem;
  position: relative;
}
.cs-step-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

/* ── Outcome box ── */
.cs-outcome-box {
  background: linear-gradient(135deg,rgba(2,132,199,.06) 0%,rgba(5,150,105,.06) 100%);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.cs-outcome-box h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 1rem;
}
.cs-outcome-box p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: .75rem;
}
.cs-outcome-box ul { padding-left: 0; list-style: none; margin: 0; }
.cs-outcome-box li {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-body);
  padding: .35rem 0 .35rem 2rem;
  position: relative;
}
.cs-outcome-box li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: .38em;
  color: #059669;
  font-size: .85rem;
}

/* ── Pull quote ── */
.cs-pull-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--secondary);
  background: var(--gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Sidebar ── */
.cs-detail-sidebar { position: sticky; top: 6rem; }
.cs-sidebar-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.cs-sidebar-card h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.cs-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
}
.cs-sidebar-row:last-child { border-bottom: none; }
.cs-sidebar-row span:first-child { color: var(--text-light); }
.cs-sidebar-row span:last-child { font-weight: 600; color: var(--dark-900); text-align: right; }
.cs-related-link {
  display: block;
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--duration);
  line-height: 1.5;
}
.cs-related-link:last-child { border-bottom: none; }
.cs-related-link:hover { color: var(--primary); }
.cs-related-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .12rem .5rem;
  border-radius: var(--radius-sm);
  margin-bottom: .3rem;
}

/* ── Footer CTA ── */
.cs-detail-cta {
  background: var(--dark-900);
  padding: 3rem 0;
  text-align: center;
}
.cs-detail-cta h3 { color: var(--white); font-size: 1.4rem; margin-bottom: .5rem; }
.cs-detail-cta p  { color: rgba(255,255,255,.6); margin-bottom: 1.5rem; font-size: .95rem; }

/* Hero is always dark, body is always light - no dark-theme overrides needed */

@media (max-width:600px) {
  .cs-result-banner-item { padding:.65rem 1.25rem; border-right:none; border-bottom:1px solid rgba(255,255,255,.08); }
  .cs-result-banner-item:last-child { border-bottom:none; }
  .cs-result-banner-num { font-size:1.75rem; }
}
