/* ─── Section Base ─────────────────────────────────────── */
.sec-cases {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  background: #07091f;
}

.sec-cases::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 100% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 0% 70%, rgba(58, 141, 255, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.sec-cases::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.25), transparent);
}

.cases-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

/* ─── Header ────────────────────────────────────────────── */
.cases-header {
  text-align: center;
  margin-bottom: 68px;
}

.cases-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 30px;
  padding: 7px 20px;
  margin-bottom: 22px;
}

.cases-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.cases-eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.cases-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cases-headline .hl-gold {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cases-subhead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Industry Filter Tabs ──────────────────────────────── */
.cases-filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
  user-select: none;
}

.filter-tab:hover {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.07);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

/* ─── Main Case Study Card (HR Featured) ───────────────── */
.case-featured-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.case-featured-card:hover {
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 168, 76, 0.25);
}

.case-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Top meta bar */
.cfc-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(201, 168, 76, 0.04);
  flex-wrap: wrap;
  gap: 12px;
}

.cfc-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cfc-industry-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.cfc-region-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(58, 141, 255, 0.1);
  border: 1px solid rgba(58, 141, 255, 0.2);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8dc4ff;
}

.cfc-scope-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

/* Main content area */
.cfc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cfc-left {
  padding: 40px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.cfc-right {
  padding: 40px 36px;
}

/* Case title */
.cfc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cfc-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Pain point block */
.cfc-pain-block {
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-left: 3px solid #ff6b6b;
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin-bottom: 28px;
  position: relative;
}

.cfc-pain-block::before {
  content: '\26A0';
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 18px;
  opacity: 0.15;
}

.cfc-pain-label {
  font-size: 10px;
  font-weight: 800;
  color: #ff9f9f;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cfc-pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cfc-pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.cfc-pain-list li::before {
  content: '\2014';
  color: rgba(255, 107, 107, 0.6);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}

/* Scope block */
.cfc-scope-block {
  margin-bottom: 0;
}

.cfc-scope-label-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cfc-scope-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

/* Engagement Steps */
.cfc-right-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cfc-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.cfc-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: default;
}

.cfc-step:hover {
  background: rgba(201, 168, 76, 0.05);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateX(4px);
}

.cfc-step-num {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'Space Grotesk', sans-serif;
}

.cfc-step-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

/* ─── Impact Cards Row ──────────────────────────────────── */
.cfc-impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.impact-card {
  padding: 28px 24px;
  background: rgba(6, 9, 30, 0.8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.impact-card:hover {
  background: rgba(201, 168, 76, 0.06);
}

.impact-card:hover::before {
  opacity: 1;
}

.impact-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
}

.impact-num.green {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-num.gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-num.blue {
  background: linear-gradient(135deg, #3a8dff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.impact-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  text-align: center;
}

.impact-sublabel {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.3);
}

/* ─── Secondary Case Cards Row ──────────────────────────── */
.cases-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.case-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-mini-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
  transition: background 0.3s;
}

.case-mini-card:hover {
  background: rgba(201, 168, 76, 0.05);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.4);
}

.case-mini-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cmc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cmc-industry {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cmc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.cmc-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  flex: 1;
}

.cmc-impact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cmc-pill {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
}

.cmc-pill.blue-pill {
  background: rgba(58, 141, 255, 0.08);
  border-color: rgba(58, 141, 255, 0.2);
  color: #8dc4ff;
}

.cmc-pill.gold-pill {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
}

.cmc-arrow {
  font-size: 13px;
  color: rgba(201, 168, 76, 0.5);
  transition: all 0.2s;
  align-self: flex-end;
}

.case-mini-card:hover .cmc-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ─── Bottom CTA ────────────────────────────────────────── */
.cases-cta-block {
  text-align: center;
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.07), rgba(201, 168, 76, 0.02));
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.cases-cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cases-cta-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 168, 76, 0.06), transparent);
  pointer-events: none;
}

.ccb-icon {
  font-size: 44px;
  margin-bottom: 16px;
  display: block;
  animation: floatEmoji 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.ccb-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.ccb-title span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ccb-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.48);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.ccb-sub strong {
  color: var(--gold-light);
  font-weight: 600;
}

.ccb-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-cases-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
  font-family: 'Space Grotesk', sans-serif;
}

.btn-cases-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(201, 168, 76, 0.55);
}

.btn-cases-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-cases-ghost:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.07);
  transform: translateY(-3px);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cfc-body {
    grid-template-columns: 1fr;
  }

  .cfc-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .cfc-impact-row {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .cases-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .cases-container {
    padding: 0 20px;
  }

  .cfc-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cases-secondary-grid {
    grid-template-columns: 1fr;
  }

  .cases-cta-block {
    padding: 40px 24px;
  }

  .sec-cases {
    padding: 80px 0 70px;
  }
}