/* Visiblytics - Unified Case Study Styles */

/* =============================================
   CASE STUDY PAGE — Visiblytics Theme Match
   ============================================= */

/* --- HERO --- */
.cs-hero {
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 50%, #f0faff 100%);
  padding: 40px 5% 40px;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(10,106,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cs-hero-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.cs-breadcrumb {
  font-size: 13px;
  color: #8896aa;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-breadcrumb a { color: #0a6aff; text-decoration: none; }

.cs-breadcrumb a:hover { text-decoration: underline; }

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0ff;
  color: #0a6aff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid #c5d9ff;
}

.cs-hero h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  color: #0f1b2d;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 auto 20px;
  max-width: 1200px;
}

.cs-hero h1 span {
  background: linear-gradient(135deg, #0a6aff, #00b4d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-hero-sub {
  font-size: 17px;
  color: #4a5568;
  max-width: 1000px;
  line-height: 1.7;
  margin: 0 auto 28px;
}

.cs-tags-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }

.cs-tag {
  background: #f0f4ff;
  color: #3b5bdb;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid #dde5ff;
}

.cs-client-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f4;
}

.cs-client-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #4a5568;
  font-weight: 500;
}

/* --- STATS BAR --- */
.cs-stats-bar { background: #0f1b2d; padding: 28px 5%; }

.cs-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.cs-stat { text-align: center; }

.cs-stat-num {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}

.cs-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 5px; font-weight: 500; }

.cs-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* --- SECTIONS --- */
.cs-section { padding: 40px 5%; background: #fff; }

.cs-alt { background: #f8f9fc; }

.cs-inner { max-width: 1200px; margin: 0 auto; }

.cs-narrow { max-width: 820px; margin: 0 auto; }

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.cs-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a6aff;
  margin-bottom: 12px;
}

.cs-section h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  color: #0f1b2d;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cs-section p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 16px;
}

.cs-intro-text {
  font-size: 16px;
  color: #4a5568;
  max-width: 1200px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* --- PROBLEM LIST --- */
.cs-problem-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }

.cs-problem-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #fde8e8;
  border-radius: 12px;
  padding: 18px 20px;
}

.cs-problem-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.cs-problem-item strong { font-size: 14px; color: #0f1b2d; display: block; margin-bottom: 4px; }

.cs-problem-item p { font-size: 13px; color: #4a5568; line-height: 1.6; margin: 0; }

/* --- SIDEBAR --- */
.cs-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }

.cs-info-box {
  background: #fff;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  padding: 22px;
}

.cs-info-highlight { background: #f0f6ff; border-color: #c5d9ff; }

.cs-info-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #0a6aff; margin-bottom: 14px; }

.cs-info-list { display: flex; flex-direction: column; gap: 8px; }

.cs-info-item { font-size: 13px; color: #4a5568; font-weight: 500; }

.cs-baseline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #4a5568;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f4;
}

.cs-baseline-row:last-child { border-bottom: none; }

.cs-baseline-row strong { color: #0f1b2d; font-weight: 700; }

/* --- PILLARS --- */
.cs-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.cs-pillar {
  background: #f8f9fc;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  padding: 26px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.cs-pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a6aff, #00b4d8);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.cs-pillar:hover::before { transform: scaleX(1); }

.cs-pillar:hover { background: #fff; box-shadow: 0 6px 28px rgba(10,30,60,0.10); }

.cs-pillar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.cs-pillar-icon { font-size: 26px; }

.cs-pillar-num { font-size: 28px; font-weight: 700; color: #0a6aff; opacity: 0.2; }

.cs-pillar h3 { font-size: 17px; font-weight: 600; color: #0f1b2d; margin-bottom: 12px; }

.cs-pillar h3 a { color: #0a6aff; text-decoration: none; }

.cs-pillar h3 a:hover { text-decoration: underline; }

.cs-pillar p { font-size: 13px; color: #4a5568; line-height: 1.65; margin-bottom: 10px; }

.cs-pillar-result { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }

.cs-pillar-metric {
  font-size: 13px;
  color: #4a5568;
  background: #e8f0ff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.cs-metric-after { color: #0a6aff; font-weight: 700; }

/* --- RESULTS --- */
.cs-results-block {
  background: #fff;
  border: 1px solid #e2e8f4;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.cs-results-title { font-size: 18px; font-weight: 700; color: #0f1b2d; margin-bottom: 8px; }

.cs-results-sub { font-size: 14px; color: #4a5568; line-height: 1.65; margin-bottom: 24px; }

.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.cs-metric-card {
  background: #f8f9fc;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: all 0.2s;
}

.cs-metric-card:hover { background: #e8f0ff; border-color: #c5d9ff; }

.cs-metric-big { background: #e8f0ff; border-color: #c5d9ff; }

.cs-metric-num {
  font-size: 24px;
  font-weight: 700;
  color: #0a6aff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 5px;
}

.cs-metric-big .cs-metric-num { font-size: 30px; }

.cs-metric-label { font-size: 12px; color: #4a5568; line-height: 1.4; font-weight: 500; }

.cs-insight-box {
  margin-top: 20px;
  background: #f0f6ff;
  border-left: 4px solid #0a6aff;
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.65;
}

.cs-insight-box strong { color: #0f1b2d; }

/* --- TABLE --- */
.cs-table-wrap { overflow-x: auto; margin-top: 16px; }

.cs-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.cs-table th {
  background: #f0f4ff;
  color: #0f1b2d;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
}

.cs-table th:first-child { border-radius: 8px 0 0 0; }

.cs-table th:last-child { border-radius: 0 8px 0 0; }

.cs-table td {
  padding: 12px 16px;
  color: #4a5568;
  border-bottom: 1px solid #e2e8f4;
}

.cs-table tr:last-child td { border-bottom: none; }

.cs-table tr:hover td { background: #f8f9fc; }

.cs-table-growth { color: #0a6aff; font-weight: 700; }

/* --- TAKEAWAYS --- */
.cs-takeaways { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }

.cs-takeaway {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8f9fc;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  padding: 22px;
}

.cs-takeaway-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.cs-takeaway strong { font-size: 15px; color: #0f1b2d; display: block; margin-bottom: 6px; }

.cs-takeaway p { font-size: 14px; color: #4a5568; line-height: 1.65; margin: 0; }

/* --- NAV ROW --- */
.cs-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cs-nav-back, .cs-nav-next {
  font-size: 14px;
  font-weight: 600;
  color: #0a6aff;
  text-decoration: none;
  padding: 10px 20px;
  border: 1.5px solid #c5d9ff;
  border-radius: 50px;
  background: #f0f6ff;
  transition: all 0.2s;
}

.cs-nav-back:hover, .cs-nav-next:hover {
  background: #0a6aff;
  color: white !important;
  border-color: #0a6aff;
}

/* --- CTA --- */
.cs-cta-section {
  background: linear-gradient(135deg, #0a6aff 0%, #0052cc 50%, #003d99 100%);
  padding: 40px 5%;
}

.cs-cta-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cs-cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.cs-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

.cs-btn-primary {
  background: white;
  color: #0a6aff !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.cs-btn-primary:hover { background: #f0f6ff; transform: translateY(-2px); }

.cs-btn-secondary-white {
  background: rgba(255,255,255,0.12);
  color: white !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.cs-btn-secondary-white:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.cs-cta-note { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }

/* --- SCREENSHOTS LAYOUT & STYLING --- */
.cs-screenshot-box {
  background: #f8f9fc;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  cursor: zoom-in;
}

.cs-screenshot-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 106, 255, 0.12);
  border-color: #0a6aff;
}

.cs-screenshot-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.cs-screenshot-caption {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

.cs-screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.cs-screenshot-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .cs-two-col { grid-template-columns: 1fr; }
  .cs-sidebar { position: static; }
  .cs-stat-divider { display: none; }
  .cs-stats-inner { justify-content: center; gap: 24px; }
}

@media (max-width: 768px) {
  .cs-screenshot-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cs-pillars { grid-template-columns: 1fr; }
  .cs-metrics-grid { grid-template-columns: 1fr 1fr; }
  .cs-nav-row { flex-direction: column; align-items: stretch; text-align: center; }
  .cs-cta-btns { flex-direction: column; align-items: center; }
  .cs-hero { padding: 60px 5% 50px; }
}

.cs-rank-before { color: #dc2626; font-weight: 500; }

.cs-rank-after { color: #16a34a; font-weight: 700; }

.cs-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.cs-problem-card {
  background: #fff8f8;
  border: 1.5px solid #fde8e8;
  border-radius: 14px;
  padding: 22px 20px;
}

.cs-problem-card-icon {
  font-size: 18px; font-weight: 700;
  color: #e53e3e; margin-bottom: 10px; display: block;
}

.cs-problem-card strong {
  display: block; font-size: 15px;
  color: #c53030; margin-bottom: 8px; font-weight: 700;
}

.cs-problem-card p { font-size: 14px; color: #4a5568; line-height: 1.6; margin: 0; }

/* PLATFORM PILLS */
.cs-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px; margin: 0 0 28px;
}

.cs-platform-pill {
  background: #fff; border: 1.5px solid #e2e8f4;
  border-radius: 10px; padding: 13px 16px;
  font-size: 14px; font-weight: 500; color: #0f1b2d;
  text-align: center; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}

.cs-platform-pill:hover { background: #e8f0ff; border-color: #c5d9ff; color: #0a6aff; }

.cs-platform-pill .tick { color: #16a34a; font-weight: 700; }

/* INSIGHT CARDS GRID */
.cs-insight-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 28px 0 0;
}

.cs-insight-card {
  background: #fff; border: 1px solid #e2e8f4;
  border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 12px rgba(10,30,60,0.04);
  transition: all 0.2s;
}

.cs-insight-card:hover {
  border-color: #c5d9ff;
  box-shadow: 0 4px 20px rgba(10,106,255,0.08);
}

.cs-insight-card .iicon { font-size: 24px; display: block; margin-bottom: 10px; }

.cs-insight-card strong { display: block; font-size: 15px; color: #36b0b0; margin-bottom: 6px; }

.cs-insight-card p { font-size: 14px; color: #4a5568; margin: 0; line-height: 1.65; }
