/* ═══════════════════════════════════════════════════════
   NM-CASE-STUDIES — page-specific styles  (prefix: nm-cs-)
═══════════════════════════════════════════════════════ */

/* ── 1. HERO ────────────────────────────────────────── */
.nm-cs-hero {
  position: relative;
  min-height: 520px;
  padding: 148px 0 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nm-cs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.nm-cs-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.nm-cs-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, 0.92) 0%, rgba(5, 10, 20, 0.72) 42%, rgba(5, 10, 20, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.35) 0%, rgba(5, 10, 20, 0.55) 100%);
}
.nm-cs-hero .nm-wrap {
  position: relative;
  z-index: 1;
}
.nm-cs-hero-inner {
  max-width: 640px;
}
.nm-cs-hero-h1 {
  font-family: var(--fd);
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
}
.nm-cs-acc {
  background: linear-gradient(90deg, #1a6eff 0%, #3d8bff 55%, #7b61ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nm-cs-hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px;
}
.nm-cs-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}
.nm-cs-hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nm-cs-hero-stat-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(26, 110, 255, 0.16);
  border: 1px solid rgba(26, 110, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-l);
  font-size: 16px;
  flex-shrink: 0;
}
.nm-cs-hero-stat-num {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.nm-cs-hero-stat-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}

/* ── 2. TRUSTED LOGOS ───────────────────────────────── */
.nm-cs-trusted {
  background: #ffffff;
  padding: 28px 0 32px;
  border-bottom: 1px solid #e8edf5;
}
.nm-cs-trusted-label {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a9bb8;
  margin-bottom: 22px;
}
.nm-cs-trusted-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nm-cs-trusted-track {
  display: flex;
  align-items: center;
  gap: 36px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 48px 4px 0;
  flex: 1;
}
.nm-cs-trusted-track::-webkit-scrollbar { display: none; }
.nm-cs-trusted-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  opacity: 0.72;
  transition: var(--ease);
}
.nm-cs-trusted-logo i {
  font-size: 22px;
  color: #64748b;
}
.nm-cs-trusted-logo img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}
.nm-cs-trusted-logo:hover {
  opacity: 1;
}
.nm-cs-trusted-next {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: var(--ease);
}
.nm-cs-trusted-next:hover {
  color: var(--blue);
  border-color: rgba(26, 110, 255, 0.35);
}

/* ── 3. MAIN GRID ───────────────────────────────────── */
.nm-cs-main {
  background: #f4f7fb;
  padding: 56px 0 72px;
}
.nm-cs-main-head {
  margin-bottom: 32px;
}
.nm-cs-main-h2 {
  font-family: var(--fd);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 22px;
}
.nm-cs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nm-cs-filter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  transition: var(--ease);
}
.nm-cs-filter:hover {
  border-color: rgba(26, 110, 255, 0.35);
  color: var(--blue);
}
.nm-cs-filter.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(26, 110, 255, 0.28);
}

.nm-cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.nm-cs-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: var(--ease);
}
.nm-cs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(26, 110, 255, 0.22);
}
.nm-cs-card.is-hidden {
  display: none;
}

.nm-cs-card-media {
  position: relative;
  height: 168px;
  background: #0b1628;
  overflow: hidden;
}
.nm-cs-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.22) 100%);
}
.nm-cs-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  text-transform: uppercase;
}
.nm-cs-card-float {
  position: absolute;
  left: 18px;
  bottom: -22px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.nm-cs-card-body {
  padding: 34px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nm-cs-card-title {
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}
.nm-cs-card-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 10px;
}
.nm-cs-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.nm-cs-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e8edf5;
  margin-bottom: 14px;
}
.nm-cs-metric-val {
  font-family: var(--fd);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.nm-cs-metric-val--blue { color: var(--blue); }
.nm-cs-metric-val--green { color: #059669; }
.nm-cs-metric-lbl {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.35;
}
.nm-cs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  margin-top: auto;
  transition: var(--ease);
}
.nm-cs-card-link:hover {
  color: var(--blue-l);
  gap: 9px;
}

/* ── 4. CTA ─────────────────────────────────────────── */
.nm-cs-cta {
  padding: 0 0 72px;
  background: #f4f7fb;
}
.nm-cs-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 48px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, 0.88) 0%, rgba(5, 10, 20, 0.72) 100%),
    url('../UI-Design/about_cta_bg.png') center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(5, 10, 20, 0.18);
}
.nm-cs-cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nm-cs-cta-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(26, 110, 255, 0.35);
}
.nm-cs-cta-h2 {
  font-family: var(--fd);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 6px;
}
.nm-cs-cta-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 520px;
}
.nm-cs-cta-btn {
  flex-shrink: 0;
  font-size: 15px;
  padding: 13px 26px;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .nm-cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nm-cs-hero { min-height: 460px; padding: 132px 0 56px; }
  .nm-cs-hero-stats { gap: 18px 24px; }
  .nm-cs-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .nm-cs-cta-left {
    flex-direction: column;
    text-align: center;
  }
  .nm-cs-cta-sub { margin: 0 auto; }
}
@media (max-width: 640px) {
  .nm-cs-grid { grid-template-columns: 1fr; }
  .nm-cs-card-metrics { grid-template-columns: 1fr; gap: 12px; }
  .nm-cs-filters { gap: 8px; }
  .nm-cs-filter { font-size: 12px; padding: 8px 14px; }
  .nm-cs-trusted-next { display: none; }
  .nm-cs-trusted-track { padding-right: 0; }
}
