/* ==========================================================================
   Service — Related Insights, Variant 1. Black section, centered header
   (title_lead + colored title_accent — same two-field pattern as Why Us,
   assets/css/services/why-us.css `.svc-whyus1-*`), a Service/Blogs pill-tab
   toggle, and a 3-up grid of cards: a compact 16:9 rounded thumbnail with
   the title below it in normal flow (not overlaid on the image). Built
   from a reference screenshot the user shared.
   ========================================================================== */

.svc-related1 {
  position: relative;
  background: #000000;
  padding: 80px 0;
}

.svc-related1-head {
  text-align: center;
  margin: 0 0 28px;
}

.svc-related1-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
}

.svc-related1-accent {
  color: #2f5fe6;
}

/* ---- Tabs ---- */

.svc-related1-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 40px;
}

.svc-related1-tab {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.svc-related1-tab:hover {
  color: rgba(255, 255, 255, 0.75);
}

.svc-related1-tab.is-active {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* ---- Grid ---- */

.svc-related1-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.svc-related1-grid.is-active {
  display: grid;
}

.svc-related1-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.svc-related1-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

a.svc-related1-card:hover .svc-related1-card-media {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
}

.svc-related1-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 400ms ease;
}

a.svc-related1-card:hover .svc-related1-card-img {
  transform: scale(1.05);
}

.svc-related1-card-title {
  display: block;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .svc-related1-tab,
  .svc-related1-card-media,
  .svc-related1-card-img {
    transition: none;
  }
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .svc-related1-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .svc-related1 {
    padding: 64px 0;
  }

  .svc-related1-tabs {
    margin-bottom: 28px;
  }

  .svc-related1-grid {
    grid-template-columns: 1fr;
  }
}
