/* DigiX Technologies — Related services & guides cards
   Scoped styles: only affects the related resources section. */
.dx-related-resources,
.dx-related-resources * { box-sizing: border-box; }
.dx-related-resources {
  --dxr-ink: #101a46;
  --dxr-muted: #65718e;
  --dxr-blue: #1769d2;
  --dxr-cyan: #13a9e5;
  --dxr-border: #e4eaf5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(54px, 6vw, 86px) 0;
  background:
    radial-gradient(circle at 92% 12%, rgba(23,105,210,.09), transparent 26%),
    radial-gradient(circle at 4% 96%, rgba(19,169,229,.07), transparent 27%),
    linear-gradient(180deg, #f7f9ff 0%, #f1f5fd 100%);
  border-top: 1px solid #e8edf7;
}
.dx-related-resources::before,
.dx-related-resources::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(23,105,210,.08);
  border-radius: 50%;
  pointer-events: none;
}
.dx-related-resources::before { width: 330px; height: 330px; right: -170px; top: -180px; }
.dx-related-resources::after { width: 230px; height: 230px; left: -145px; bottom: -150px; }
.dx-related-container { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }
.dx-related-heading { max-width: 760px; margin: 0 0 30px; }
.dx-related-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 12px; padding: 7px 12px;
  border: 1px solid rgba(23,105,210,.13); border-radius: 999px;
  background: rgba(255,255,255,.78); color: var(--dxr-blue);
  font: 800 .72rem/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
}
.dx-related-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg,var(--dxr-blue),var(--dxr-cyan)); box-shadow: 0 0 0 4px rgba(23,105,210,.10); }
.dx-related-heading h2 {
  margin: 0 0 10px; max-width: 720px;
  color: var(--dxr-ink); font: 800 clamp(1.75rem,3.2vw,2.35rem)/1.16 "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing: -.045em;
}
.dx-related-heading > p { margin: 0; color: var(--dxr-muted); max-width: 690px; font: 400 1rem/1.75 Inter, system-ui, sans-serif; }
.dx-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.dx-related-card {
  --dxr-accent: #1769d2;
  display: flex; flex-direction: column; min-width: 0; min-height: 260px;
  position: relative; overflow: hidden; padding: 25px 25px 21px;
  color: var(--dxr-ink); text-decoration: none !important;
  background: rgba(255,255,255,.94); border: 1px solid var(--dxr-border); border-radius: 20px;
  box-shadow: 0 9px 28px rgba(21,43,92,.055);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.dx-related-card::after {
  content: ""; position: absolute; width: 150px; height: 150px; right: -95px; top: -95px;
  border-radius: 50%; background: var(--dxr-accent); opacity: .055; transition: transform .3s ease, opacity .3s ease;
}
.dx-related-card:hover { transform: translateY(-5px); border-color: rgba(23,105,210,.32); box-shadow: 0 18px 42px rgba(19,60,130,.12); background: #fff; }
.dx-related-card:hover::after { transform: scale(1.35); opacity: .10; }
.dx-related-card:focus-visible { outline: 3px solid rgba(23,105,210,.35); outline-offset: 4px; }
.dx-related-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; position: relative; z-index: 1; }
.dx-related-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px;
  border-radius: 15px; color: #fff; background: linear-gradient(135deg,var(--dxr-accent),#19a9e5);
  box-shadow: 0 8px 18px rgba(23,105,210,.18);
}
.dx-related-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dx-related-number { color: #94a0b8; font: 700 .72rem/1 Inter,system-ui,sans-serif; letter-spacing: .09em; }
.dx-related-card-content { position: relative; z-index: 1; flex: 1; }
.dx-related-card h3 {
  margin: 0 0 10px; color: var(--dxr-ink);
  font: 800 1.13rem/1.42 "Plus Jakarta Sans",Inter,system-ui,sans-serif; letter-spacing: -.025em;
}
.dx-related-card p { margin: 0; color: var(--dxr-muted); font: 400 .91rem/1.68 Inter,system-ui,sans-serif; }
.dx-related-card-footer {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 22px; padding-top: 15px; border-top: 1px solid #edf1f7;
  color: var(--dxr-accent); font: 800 .84rem/1.3 Inter,system-ui,sans-serif;
}
.dx-related-arrow { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(23,105,210,.08); transition: transform .24s ease, background .24s ease, color .24s ease; }
.dx-related-arrow svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dx-related-card:hover .dx-related-arrow { transform: translateX(3px); background: var(--dxr-accent); color: #fff; }
@media (max-width: 900px) { .dx-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .dx-related-resources { padding: 48px 0; }
  .dx-related-container { width: min(100% - 32px, 500px); }
  .dx-related-heading { margin-bottom: 22px; }
  .dx-related-heading h2 { font-size: clamp(1.55rem,7vw,2rem); }
  .dx-related-heading > p { font-size: .94rem; line-height: 1.65; }
  .dx-related-grid { grid-template-columns: 1fr; gap: 14px; }
  .dx-related-card { min-height: 0; padding: 21px; border-radius: 18px; }
  .dx-related-card-top { margin-bottom: 16px; }
  .dx-related-card h3 { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-related-card, .dx-related-card::after, .dx-related-arrow { transition: none !important; }
  .dx-related-card:hover { transform: none; }
}
