/* NMF service detail pages */

.nmf-svc {
  --nmf-svc-ink: #1a1c4d;
  --nmf-svc-muted: #5c5f66;
  --nmf-svc-blue: #0047c7;
  --nmf-svc-soft: #eef1f8;
  box-sizing: border-box;
  width: 100%;
  padding:
    calc(var(--header-height, 101px) + 1.5rem)
    max(1rem, env(safe-area-inset-right, 0px))
    4rem
    max(1rem, env(safe-area-inset-left, 0px));
  background:
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 28%, #f5f6f8 100%);
  color: var(--nmf-svc-ink);
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

@media (max-width: 919.98px) {
  .nmf-svc {
    padding-top: calc(var(--header-height-mobile, 113px) + 1rem);
  }
}

.nmf-svc *,
.nmf-svc *::before,
.nmf-svc *::after {
  box-sizing: border-box;
}

.nmf-svc__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.nmf-svc__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  color: var(--nmf-svc-muted);
}

.nmf-svc__crumb a {
  color: var(--nmf-svc-blue);
  text-decoration: none;
  font-weight: 600;
}

.nmf-svc__crumb a:hover {
  text-decoration: underline;
}

.nmf-svc__eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nmf-svc-blue);
  background: rgba(0, 71, 199, 0.08);
  border: 1px solid rgba(0, 71, 199, 0.14);
}

.nmf-svc__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 750;
  color: var(--nmf-svc-ink);
}

.nmf-svc__lead {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--nmf-svc-muted);
}

.nmf-svc__hero {
  margin: 0 0 2rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(36, 38, 102, 0.1);
  box-shadow: 0 16px 36px rgba(36, 38, 102, 0.08);
  background: #fff;
}

.nmf-svc__hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nmf-svc__body {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.25rem;
}

.nmf-svc__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #3a3d55;
}

.nmf-svc__points {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.nmf-svc__points li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.6rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(36, 38, 102, 0.1);
  box-shadow: 0 8px 20px rgba(36, 38, 102, 0.04);
  color: #3a3d55;
  line-height: 1.5;
}

.nmf-svc__points li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  transform: skewX(-12deg);
  background: linear-gradient(145deg, #0056ef, #0047c7);
}

.nmf-svc__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.nmf-svc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nmf-svc__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0047c7, #0056ef);
  box-shadow: 0 10px 24px rgba(0, 71, 199, 0.22);
}

.nmf-svc__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 71, 199, 0.28);
}

.nmf-svc__btn--ghost {
  color: var(--nmf-svc-blue);
  background: rgba(0, 71, 199, 0.06);
  border: 1px solid rgba(0, 71, 199, 0.16);
}

.nmf-svc__btn--ghost:hover {
  background: rgba(0, 71, 199, 0.1);
}

.nmf-svc__more {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(36, 38, 102, 0.1);
}

.nmf-svc__more-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--nmf-svc-ink);
}

.nmf-svc__more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.nmf-svc__more a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--nmf-svc-ink);
  background: #fff;
  border: 1px solid rgba(36, 38, 102, 0.1);
  font-weight: 650;
  line-height: 1.35;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nmf-svc__more a:hover {
  border-color: rgba(0, 71, 199, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(36, 38, 102, 0.08);
}

.nmf-svc__more a span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--nmf-svc-muted);
}

/* Services listing: make card titles/arrows clearly clickable */
#ai-oacV13 .nmf-svc-link {
  color: inherit;
  text-decoration: none;
}

#ai-oacV13 .nmf-svc-link:hover {
  color: #0047c7;
  text-decoration: underline;
}

#ai-oacV13 .nmf-svc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, #0047c7, #0056ef);
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0, 71, 199, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#ai-oacV13 .nmf-svc-arrow:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 22px rgba(0, 71, 199, 0.32);
}
