/* css/casestudy.css */

.casestudy-main {
  padding-top: 0; /* Let the dark header sit flush at the top */
}

/* Header Section */
.cs-header-dark {
  background-color: #111111;
  color: #ffffff;
  padding: 100px 20px 80px;
}

.cs-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cs-back-link {
  display: inline-block;
  color: #2b82ff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  transition: opacity 0.3s;
}

.cs-back-link:hover {
  opacity: 0.8;
}

.cs-header-inner h1 {
  font-size: clamp(56px, 8vw, 84px);
  font-weight: 900;
  margin: 0;
  letter-spacing: -3px;
  line-height: 0.95;
}

.cs-header-inner p {
  font-size: 18px;
  color: #999;
  margin: 16px 0 0;
}

/* Sequential Case Studies */
.cs-seq-section {
  padding: 80px 20px;
}

.cs-seq-light {
  background-color: #f4f4f4;
  color: #111111;
}

.cs-seq-dark {
  background-color: #111111;
  color: #ffffff;
}

.cs-seq-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Desktop layout enhancement */
@media (min-width: 900px) {
  .cs-seq-inner {
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
  }
  
  .cs-seq-dark .cs-seq-inner {
    flex-direction: row-reverse;
  }
  
  .cs-seq-image-wrapper {
    flex: 1;
    position: sticky;
    top: 120px;
  }

  .cs-seq-text-wrapper {
    flex: 1;
  }
}

.cs-seq-image-wrapper {
  width: 100%;
}

.cs-seq-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cs-seq-image img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-seq-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cs-seq-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(43, 130, 255, 0.1);
  border: 1px solid rgba(43, 130, 255, 0.25);
  color: #2b82ff;
}

.cs-seq-light .badge-secondary {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  color: #666;
}

.cs-seq-dark .badge-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.cs-seq-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 40px;
}

.cs-seq-content-block {
  margin-bottom: 30px;
}

.cs-seq-content-block:last-child {
  margin-bottom: 0;
}

.cs-seq-block-title {
  color: #2b82ff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cs-seq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-seq-list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.cs-seq-light .cs-seq-list li {
  color: #444;
}

.cs-seq-dark .cs-seq-list li {
  color: #ccc;
}

.cs-seq-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #2b82ff;
  font-size: 24px;
  line-height: 1;
}

/* Bottom CTA Section */
.cs-bottom-cta {
  background-color: #f8f9fa;
  text-align: center;
  padding: 100px 20px;
}

.cs-bottom-kicker {
  color: #2b82ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cs-bottom-cta h2 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0 0 32px;
  color: #111;
}

.cs-bottom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #111;
  color: #fff;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-bottom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cs-bottom-btn .arrow {
  transition: transform 0.3s ease;
}

.cs-bottom-btn:hover .arrow {
  transform: translateX(4px);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .cs-header-dark {
    padding: 60px 20px 40px;
  }
  .cs-seq-section {
    padding: 60px 20px;
  }
  .cs-bottom-cta {
    padding: 60px 20px;
  }
  .cs-bottom-cta h2 {
    font-size: 36px;
    letter-spacing: -1px;
  }
}

/* Visit Website Button */
.cs-website-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cs-seq-light .cs-website-btn {
  background-color: #2b82ff;
  color: #fff;
  border: 1px solid #2b82ff;
}

.cs-seq-light .cs-website-btn:hover {
  background-color: #1a6be6;
  box-shadow: 0 10px 20px rgba(43, 130, 255, 0.2);
  transform: translateY(-2px);
}

.cs-seq-dark .cs-website-btn {
  background-color: #2b82ff;
  color: #fff;
  border: 1px solid #2b82ff;
}

.cs-seq-dark .cs-website-btn:hover {
  background-color: #1a6be6;
  box-shadow: 0 10px 20px rgba(43, 130, 255, 0.2);
  transform: translateY(-2px);
}

.cs-website-btn .arrow {
  transition: transform 0.3s ease;
}

.cs-website-btn:hover .arrow {
  transform: translateX(4px);
}
