/* ===== CASE STUDY PAGE STYLES ===== */

/* Back link */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-light);
  font-size: 14px;
  font-weight: 500;
  padding: 24px 0 0;
  transition: color 0.3s ease, transform 0.2s ease;
}

.cs-back:hover {
  color: var(--purple-light);
  transform: translateX(-4px);
}

.cs-back svg {
  width: 16px;
  height: 16px;
}

/* Hero area */
.cs-hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 48px;
  max-width: 720px;
  margin: 0 auto;
}

/* Match main page gradient overlay behind hero */
.cs-hero::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: linear-gradient(180deg, rgba(89, 22, 139, 0.20) 0%, rgba(28, 57, 142, 0.10) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.cs-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
}

.cs-hero__subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* Hero image */
.cs-hero-image {
  max-width: 600px;
  margin: 48px auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(173, 70, 255, 0.04);
}

.cs-hero-image img {
  width: 100%;
  display: block;
}

/* Content wrapper */
.cs-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Project details box */
.cs-details {
  margin-bottom: 56px;
}

.cs-details__heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.cs-details__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Section headings */
.cs-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 56px;
}

.cs-section-title--challenge {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-section-title--solution {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-section-title--outcome {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body text */
.cs-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cs-text:last-child {
  margin-bottom: 0;
}

/* Bullet lists */
.cs-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}

.cs-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

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

/* Footer on case study pages */
.cs-footer {
  margin-top: 64px;
  padding: 32px 24px;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.cs-footer__text {
  font-size: 14px;
  color: var(--text-muted);
}

.cs-footer__text a {
  color: var(--blue-light);
}

.cs-footer__text a:hover {
  color: var(--purple-light);
}

/* Navbar override for case study – no active link */
.cs-page .navbar__link--active::after {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .cs-hero {
    padding: 64px 20px 32px;
  }

  .cs-hero__title {
    font-size: 2.25rem;
  }

  .cs-hero-image {
    margin: 32px auto;
    border-radius: 12px;
  }

  .cs-content {
    padding: 0 20px 64px;
  }

  .cs-section-title {
    font-size: 1.6rem;
  }
}
