/* ============================================================
   CASE STUDIES PAGE
   ============================================================ */

/* HERO */
.cs-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  text-align: center;
}

.cs-hero-label {
  display: inline-block;
  background: rgba(120,58,243,0.15);
  border: 1px solid rgba(120,58,243,0.3);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.cs-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cs-hero h1 span {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-hero p {
  font-size: 17px;
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.cs-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cs-hero-stat h3 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.cs-hero-stat p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* CASE STUDY CARD */
.cs-section {
  padding: 80px 0;
  background: #f8fafc;
}

.cs-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 48px;
  transition: 0.3s;
}

.cs-card:hover {
  box-shadow: 0 28px 70px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

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

/* Card top banner */
.cs-card-banner {
  padding: 36px 44px 32px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cs-tag {
  display: inline-block;
  background: rgba(120,58,243,0.2);
  border: 1px solid rgba(120,58,243,0.4);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.cs-card-banner h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cs-card-banner p {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
}

.cs-banner-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cs-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #cbd5e1;
  white-space: nowrap;
}

.cs-meta-item i {
  font-size: 14px;
  color: #783af3;
}

/* Card body */
.cs-card-body {
  padding: 40px 44px;
}

/* Info boxes */
.cs-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  height: 100%;
  transition: 0.3s;
}

.cs-box:hover {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.cs-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cs-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a72ec, #783af3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-box-icon i { font-size: 16px; color: #fff; }

.cs-box h5 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cs-box p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
  line-height: 1.6;
}

.cs-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-box ul li {
  font-size: 14px;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.cs-box ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a72ec, #783af3);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Flow box */
.cs-flow-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: transparent;
}

.cs-flow-box:hover { background: linear-gradient(135deg, #0f172a, #1e293b); border-color: #783af3; }
.cs-flow-box h5 { color: #e2e8f0; }

.cs-flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cs-flow-step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

.cs-flow-arrow {
  color: #783af3;
  font-size: 14px;
}

/* Results strip */
.cs-results {
  border-top: 1px solid #e2e8f0;
  margin: 0 44px;
  padding: 32px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.cs-result-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  padding: 0 24px;
}

.cs-result-item h3 {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(90deg, #1a72ec, #783af3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.cs-result-item p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.cs-result-divider {
  width: 1px;
  height: 50px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* CTA */
.cs-cta {
  padding: 80px 0;
  background: #fff;
}

.cs-cta-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  padding: 60px 56px;
  text-align: center;
}

.cs-cta-box h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.cs-cta-box p {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cs-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cs-btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.cs-btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .cs-hero h1 { font-size: 38px; }
  .cs-card-banner { padding: 28px 28px 24px; }
  .cs-card-body { padding: 28px 28px; }
  .cs-results { margin: 0 28px; }
  .cs-cta-box { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .cs-hero { padding: 130px 0 60px; }
  .cs-hero h1 { font-size: 28px; }
  .cs-hero-stats { gap: 28px; }
  .cs-hero-stat h3 { font-size: 28px; }
  .cs-card-banner { padding: 24px 20px; flex-direction: column; }
  .cs-card-banner h2 { font-size: 20px; }
  .cs-card-body { padding: 24px 20px; }
  .cs-results { margin: 0 20px; flex-direction: column; gap: 20px; }
  .cs-result-divider { width: 60px; height: 1px; }
  .cs-result-item { padding: 0; }
  .cs-cta-box { padding: 36px 20px; }
  .cs-cta-box h2 { font-size: 24px; }
}

@media (max-width: 576px) {
  .cs-hero h1 { font-size: 24px; }
  .cs-flow-steps { flex-direction: column; align-items: flex-start; }
  .cs-flow-arrow { transform: rotate(90deg); }
}

/* ---- Additional responsive fixes ---- */
@media (max-width: 576px) {
  .cs-section { padding: 40px 0; }
  .cs-card { border-radius: 16px; }
  .cs-card-banner { padding: 18px 16px; }
  .cs-card-banner h2 { font-size: 17px; }
  .cs-card-body { padding: 18px 16px; }
  .cs-box { padding: 16px; }
  .cs-box h5 { font-size: 13px; }
  .cs-box ul li { font-size: 13px; }
  .cs-results { margin: 0 16px; padding: 24px 0 28px; }
  .cs-result-item h3 { font-size: 28px; }
  .cs-cta-box { padding: 28px 16px; }
  .cs-cta-box h2 { font-size: 20px; }
  .cs-cta-box p { font-size: 14px; }
  .cs-banner-meta { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cs-meta-item { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 400px) {
  .cs-hero h1 { font-size: 20px; }
  .cs-hero-stat h3 { font-size: 22px; }
  .cs-card-banner h2 { font-size: 16px; }
}
