/* ===== PORTFOLIO CASE STUDY PAGES ===== */

/* Hero */
.cs-hero {
  position: relative;
  padding: 100px 0 70px;
  color: #fff;
  overflow: hidden;
}
.cs-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,0.04) 0%, transparent 45%);
  pointer-events: none;
}
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.cs-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}
.cs-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
  max-width: 620px;
  margin-bottom: 28px;
}
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.cs-tag {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
}
.cs-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.cs-metric {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
}
.cs-metric-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}
.cs-metric-label {
  font-size: .73rem;
  color: rgba(255,255,255,.72);
  font-weight: 500;
  line-height: 1.3;
}
@media(max-width:768px) {
  .cs-hero-metrics { grid-template-columns: repeat(2,1fr); }
}

/* Client info bar */
.cs-client-bar {
  background: #fff;
  border-bottom: 1px solid #e8edf8;
  padding: 18px 0;
}
.cs-client-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-client-item i {
  color: var(--accent2, #00C9A7);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
.cs-client-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #8892b0;
  margin-bottom: 2px;
}
.cs-client-value {
  font-size: .88rem;
  font-weight: 600;
  color: #1B3A6B;
}

/* Section styles */
.cs-section { padding: 72px 0; }
.cs-section-alt { padding: 72px 0; background: #f4f7ff; }
.cs-section-dark { padding: 72px 0; background: #1B3A6B; color: #fff; }
.cs-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary, #1B3A6B);
  margin-bottom: 14px;
}
.cs-section-dark .cs-section-title { color: #fff; }
.cs-lead {
  font-size: .97rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 0;
}
.cs-section-dark .cs-lead { color: rgba(255,255,255,.8); }
.eyebrow-label {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2, #00C9A7);
  margin-bottom: 10px;
}

/* Challenge / Solution / Result cards */
.cs-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  height: 100%;
  box-shadow: 0 4px 24px rgba(10,36,99,.08);
  border-top: 3px solid var(--accent, #1565C0);
  transition: transform .25s, box-shadow .25s;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10,36,99,.13);
}
.cs-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1B3A6B, #1565C0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.cs-card h5 {
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 10px;
}
.cs-card p {
  font-size: .88rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Process timeline */
.cs-process { counter-reset: steps; }
.cs-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(10,36,99,.07);
  margin-bottom: 14px;
  counter-increment: steps;
  border-left: 4px solid var(--accent, #1565C0);
  transition: border-color .2s, transform .2s;
}
.cs-step:hover { border-color: var(--accent2, #00C9A7); transform: translateX(4px); }
.cs-step-num {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B3A6B, #1565C0);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-step-body h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 4px;
  font-size: .93rem;
}
.cs-step-body p {
  font-size: .86rem;
  color: #555;
  margin: 0;
  line-height: 1.65;
}

/* Results big numbers */
.result-number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width:768px) {
  .result-number-grid { grid-template-columns: repeat(2,1fr); }
}
.result-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 26px 20px;
  text-align: center;
}
.result-box-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent2, #00C9A7);
  line-height: 1;
  margin-bottom: 6px;
}
.result-box-label {
  font-size: .83rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}
.result-box-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
}

/* Testimonial */
.cs-testimonial {
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 8px 40px rgba(10,36,99,.1);
  border-left: 5px solid var(--accent2, #00C9A7);
  position: relative;
}
.cs-testimonial::before {
  content: '\201C';
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--accent2, #00C9A7);
  opacity: .15;
  position: absolute;
  top: 10px;
  left: 24px;
  line-height: 1;
}
.cs-testimonial-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.cs-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cs-testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B3A6B, #1565C0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cs-testimonial-name { font-weight: 700; color: #1B3A6B; font-size: .95rem; }
.cs-testimonial-role { font-size: .8rem; color: #888; }

/* Tools used */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e2e8f4;
  border-radius: 30px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(10,36,99,.05);
}
.tool-pill i { color: var(--accent, #1565C0); font-size: .8rem; }

/* Related work */
.related-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,36,99,.08);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(10,36,99,.14);
  color: inherit;
}
.related-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card-thumb i { font-size: 4rem; color: rgba(255,255,255,.3); }
.related-card-body { padding: 20px; }
.related-card-tag {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent, #1565C0);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
.related-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #1B3A6B;
  margin-bottom: 6px;
}
.related-card-body p { font-size: .82rem; color: #666; margin: 0; }

/* Nav breadcrumb */
.cs-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .2s;
}
.cs-nav-back:hover { color: #fff; }
