/* Case study branded layout — source structure, LogiBrisk theme */

.cs-ats {
  --red: var(--orange-cta);
  --red2: var(--orange-hover);
  --red3: var(--blue-primary);
  --red-lt: var(--orange-light);
  --red-mid: var(--cs-accent-mid);
  --char: var(--blue-primary);
  --char2: var(--blue-secondary);
  --char3: #05122e;
  --silver: var(--bg-light-alt);
  --silver2: var(--cs-accent-light);
  --silver3: var(--border);
  --white: var(--bg-white);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --light: var(--cs-label);
  --border: #D6DCE5;
  --radius: 10px;
  --font-head: var(--font-heading);
  --font-serif: var(--font-heading);
  --navbar-offset: var(--cs-navbar-offset);
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-white);
  font-size: var(--text-base);
  line-height: 1.7;
  padding-top: var(--navbar-offset);
}

.cs-ats *,
.cs-ats *::before,
.cs-ats *::after {
  box-sizing: border-box;
}

.cs-ats a {
  color: inherit;
  text-decoration: none;
}

.cs-ats-back-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 40px 0;
}

.cs-ats-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-primary);
}

.cs-ats-back:hover {
  color: var(--orange-cta);
}

.cs-ats .hero .cs-ats-back {
  color: var(--cs-hero-tag);
  margin-bottom: 18px;
}

.cs-ats .hero .cs-ats-back:hover {
  color: var(--orange-cta);
}

.cs-ats .clients-strip {
  background: var(--red);
  padding: 12px 40px;
  overflow: hidden;
  white-space: nowrap;
}

.cs-ats .cs-track {
  display: inline-flex;
  gap: 0;
  animation: cs-ats-slide 30s linear infinite;
}

@keyframes cs-ats-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cs-ats .cs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cs-hero-tag);
}

.cs-ats .cs-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.cs-ats .page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.cs-ats .section {
  padding: 68px 0;
}

.cs-ats .section + .section {
  padding-top: 0;
}

.cs-ats .divider {
  height: 1px;
  background: var(--border);
}

/* Section labels — shared via case-study-tokens.css */

.cs-ats .sec-title {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--char);
  line-height: 1.2;
  margin-bottom: 14px;
}

.cs-ats .sec-body {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.8;
  max-width: 660px;
}

.cs-ats .svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-ats .svc {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.2s;
}

.cs-ats .svc:nth-child(4n) {
  border-right: none;
}

.cs-ats .svc:nth-last-child(-n+4) {
  border-bottom: none;
}

.cs-ats .svc:hover {
  background: var(--red-lt);
}

.cs-ats .svc-icon {
  font-size: var(--text-2xl);
  display: block;
  margin-bottom: 8px;
}

.cs-ats .svc-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--char);
  line-height: 1.35;
}

.cs-ats .svc-sub {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 3px;
}

.cs-ats .svc-heading {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--char);
  margin-top: 44px;
  margin-bottom: 4px;
}

.cs-ats .svc-intro {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0;
}

.cs-ats .profile-table {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-ats .pt-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
}

.cs-ats .pt-row:last-child {
  border-bottom: none;
}

.cs-ats .pt-key {
  padding: 16px 22px;
  background: var(--silver);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.cs-ats .pt-val {
  padding: 16px 22px;
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}

.cs-ats .challenge-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
  margin-top: 40px;
}

.cs-ats .challenge-text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.cs-ats .pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-ats .pain-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.65;
}

.cs-ats .pain-item:first-child {
  border-top: 1px solid var(--border);
}

.cs-ats .pain-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--red-lt);
  border: 1px solid var(--red-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--red);
  flex-shrink: 0;
}

.cs-ats .sc-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 78px;
}

.cs-ats .sc {
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.cs-ats .sc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}

.cs-ats .sc-val {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.cs-ats .sc-label {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.cs-ats .sc-note {
  font-size: var(--text-xs);
  line-height: 1.65;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cs-ats .sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cs-ats .sol-card {
  border-radius: var(--radius);
  padding: 24px;
}

.cs-ats .sol-tag {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-ats .sol-tag::after {
  content: '';
  flex: 1;
  max-width: 20px;
  height: 1px;
  background: rgba(225, 109, 16, 0.35);
}

.cs-ats .sol-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 8px;
}

.cs-ats .sol-body {
  font-size: var(--text-xs);
  line-height: 1.65;
}

.cs-ats .int-label {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 6px;
}

.cs-ats .int-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cs-ats .ic {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
}

.cs-ats .ic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cs-ats .feat-bg {
  background: var(--silver);
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.cs-ats .feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.cs-ats .feat {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--red);
  transition: box-shadow 0.2s;
}

.cs-ats .feat:hover {
  box-shadow: var(--shadow-card-hover);
}

.cs-ats .feat-icon {
  font-size: var(--text-xl);
  margin-bottom: 10px;
  display: block;
}

.cs-ats .feat-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--char);
  margin-bottom: 5px;
  font-family: var(--font-head);
}

.cs-ats .feat-body {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

.cs-ats .metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}

.cs-ats .mc {
  padding: 32px 22px;
  text-align: center;
  background: var(--white);
  border-right: 1px solid var(--border);
}

.cs-ats .mc:last-child {
  border-right: none;
}

.cs-ats .mc-val {
  font-family: var(--font-head);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--red-mid);
  line-height: 1;
}

.cs-ats .mc-label {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.cs-ats .mc.hl {
  background: var(--red-lt);
}

.cs-ats .outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.cs-ats .oc {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 2px solid var(--red-mid);
}

.cs-ats .oc-text {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

.cs-ats .oc-text strong {
  color: var(--char);
  font-weight: 600;
}

@media (max-width: 920px) {
  .cs-ats .hero-inner,
  .cs-ats .challenge-layout,
  .cs-ats .sol-grid,
  .cs-ats .feat-grid,
  .cs-ats .metric-row,
  .cs-ats .outcome-grid,
  .cs-ats .svc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-ats .hero-inner {
    padding: 48px 24px 0;
    grid-template-columns: 1fr;
  }

  .cs-ats .page {
    padding: 0 24px;
  }

  .cs-ats-back-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cs-ats .cert-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cs-ats .cert-bar-inner {
    justify-content: flex-start;
  }

  .cs-ats .clients-strip {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cs-ats .sc-col {
    position: static;
  }

  .cs-ats .pt-row {
    grid-template-columns: 1fr;
  }

  .cs-ats .pt-key {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cs-ats .mc {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cs-ats .mc:last-child {
    border-bottom: none;
  }

  .cs-ats .svc:nth-child(4n) {
    border-right: 1px solid var(--border);
  }

  .cs-ats .svc:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .cs-ats .sol-grid,
  .cs-ats .feat-grid,
  .cs-ats .metric-row,
  .cs-ats .outcome-grid,
  .cs-ats .svc-grid {
    grid-template-columns: 1fr;
  }

  .cs-ats .svc {
    border-right: none !important;
  }
}

