/* ─────────────────────────────────────────────────────────
   SECTIONS — shared layout for cases / knowledge,
   dark divider, section headers, outline button
   ───────────────────────────────────────────────────────── */

.dark-divider {
  background: var(--black);
  height: 160px;
}

.cases,
.knowledge {
  background: var(--bg);
  padding: 80px var(--pad);
}

.guide-wrap {
  background: var(--bg);
  padding: 0 var(--pad) 80px;
}

.cases-inner,
.guide-inner,
.knowledge-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.section-headline .bold { font-weight: 900; }
.section-headline .light { font-weight: 300; }

.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* CASES */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.case-card.c1 .case-card-bg { background: linear-gradient(145deg, #1a0e00, #3d2200, #1a0e00); }
.case-card.c2 .case-card-bg { background: linear-gradient(145deg, #0d0d14, #1a1a2e, #0d0d14); }
.case-card.c3 .case-card-bg { background: linear-gradient(145deg, #0a1a0a, #1a2e1a, #0a1a0a); }

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.case-tag {
  display: inline-block;
  background: rgba(234,101,37,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.case-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.case-client {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* KNOWLEDGE */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.kb-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.kb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.kb-card-img {
  height: 180px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.kb-card-img.k1 { background: linear-gradient(135deg, #1a0e00, #3d2200); }
.kb-card-img.k2 { background: linear-gradient(135deg, #0d0d14, #1a1a2e); }
.kb-card-img.k3 { background: linear-gradient(135deg, #0a0a0a, #1e1e1e); }

.kb-card-body {
  padding: 22px 24px 28px;
}

.kb-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.kb-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.kb-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
