/* ─── Case Study Detail Page ─────────────────────── */

/* Hero */
.cs-hero {
  background-image: url('../assets/experience-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  padding: 8rem 0 4rem;
}

.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 37, 53, 0.82);
  pointer-events: none;
}

.cs-hero .container {
  position: relative;
  z-index: 1;
}

.cs-back {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.cs-back:hover {
  color: var(--green);
}

.cs-hero .case-study-tag {
  display: block;
  margin-bottom: 0.75rem;
}

.cs-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.cs-subtitle {
  font-family: var(--font-condensed);
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.cs-client {
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}

/* TL;DR */
.cs-tldr {
  background-color: var(--bg);
  border-left: 3px solid var(--green);
  padding: 3rem 0;
}

.cs-tldr .container {
  max-width: 760px;
}

.cs-tldr-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--white);
  font-weight: 300;
}

/* Body */
.cs-body {
  background-color: var(--bg);
  padding: 4rem 0 2rem;
}

.cs-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.cs-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cs-section-title::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--green);
  margin-top: 0.4rem;
}

.cs-section p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.8;
}

/* Feature grid */
.cs-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.cs-feature {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem;
}

.cs-feature h3 {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.cs-feature p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* List */
.cs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.cs-list li {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.75;
  padding-left: 1.25rem;
  position: relative;
}

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

.cs-list strong {
  color: var(--white);
  font-weight: 600;
}

/* Result callout */
.cs-result {
  background: var(--bg-dark);
  border: 1px solid rgba(0, 214, 70, 0.2);
  padding: 2.5rem;
}

.cs-result-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-result .cs-section-title {
  margin-bottom: 0;
}

.cs-result-lead {
  font-size: 1.15rem !important;
  color: var(--white) !important;
  font-weight: 400 !important;
}

.cs-result p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.8;
}

/* CTA */
.cs-cta-section {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 0;
  text-align: center;
}

.cs-cta-section p {
  color: var(--muted);
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* ─── Carousel ───────────────────────────────────── */
.cs-carousel-section {
  background-color: var(--bg-dark);
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cs-carousel-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 4rem;
}

.cs-carousel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}

.cs-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.cs-slide img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  display: block;
}

.cs-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cs-carousel-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg-dark);
}

.cs-carousel-prev { left: 0; }
.cs-carousel-next { right: 0; }

.cs-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cs-dot.active {
  background: var(--green);
  transform: scale(1.4);
}

/* Mobile */
@media (max-width: 600px) {
  .cs-features {
    grid-template-columns: 1fr;
  }

  .cs-result {
    padding: 1.75rem;
  }
}
