:root {
  --svc-blue: #17668e;
  --svc-ink: #16384a;
  --svc-muted: #637b88;
  --svc-line: #dbe7eb;
  --svc-pale: #f3f8fa;
}
.section[id] {
  scroll-margin-top: 100px;
}
#models .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 35px;
}
.section-heading > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--svc-muted);
  margin: 0;
  max-width: 380px;
}
.custom-model {
  margin-top: 42px;
  background: #e9f2f5;
  padding: 42px;
  display: flex;
  gap: 45px;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid var(--svc-blue);
}
.custom-model h2 {
  font-size: 26px;
  color: var(--svc-ink);
  margin: 12px 0 15px;
}
.custom-model p:not(.eyebrow) {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.9;
  color: #4e6c7b;
  margin: 0;
}
.custom-model .button {
  white-space: nowrap;
  flex-shrink: 0;
}
.service-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.test-breadcrumb {
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--svc-muted);
}
.test-breadcrumb a {
  text-decoration: none;
  color: var(--svc-blue);
}
.testing-detail-hero {
  background: var(--svc-pale);
  padding: 50px 0 60px;
}
.testing-detail-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.testing-detail-hero h1 {
  font-size: 42px;
  color: var(--svc-ink);
  margin: 16px 0;
}
.testing-detail-hero p:not(.eyebrow) {
  color: var(--svc-muted);
  line-height: 1.9;
  font-size: 16px;
  max-width: 500px;
}
.testing-hero-visual {
  min-height: 300px;
  background: #e0edf2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.testing-hero-visual:before,
.testing-hero-visual:after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid #aec9d633;
  border-radius: 50%;
}
.testing-hero-visual:after {
  width: 400px;
  height: 400px;
}
.testing-hero-visual > span:last-child {
  position: absolute;
  bottom: 25px;
  left: 25px;
  letter-spacing: 3px;
  color: #8ca9b7;
  font-size: 11px;
}
.test-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 55px;
}
.test-content-section {
  margin-bottom: 38px;
}
.test-content-section h2 {
  font-size: 25px;
  margin: 0 0 22px;
  color: var(--svc-ink);
}
.test-content-section p,
.test-content-section li {
  font-size: 15px;
  line-height: 1.95;
  color: #58727f;
}
.test-sidebar {
  align-self: start;
  position: sticky;
  top: 110px;
}
.test-menu {
  border: 1px solid var(--svc-line);
  padding: 24px;
}
.test-menu h2 {
  font-size: 17px;
  margin: 0 0 17px;
  color: var(--svc-ink);
}
.test-menu a {
  display: block;
  text-decoration: none;
  color: var(--svc-muted);
  padding: 13px 0;
  border-bottom: 1px solid #edf2f4;
  font-size: 14px;
}
.test-menu a:last-child {
  border: 0;
}
.test-menu a[aria-current='page'] {
  color: var(--svc-blue);
  font-weight: 700;
}
.legacy-cases {
  padding: 85px 0;
  min-height: 65vh;
}
.legacy-cases h1 {
  font-size: 34px;
  color: var(--svc-ink);
}
.legacy-cases > div > p {
  font-size: 16px;
  color: var(--svc-muted);
  line-height: 1.9;
  max-width: 670px;
}
.legacy-case-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 35px;
}
.legacy-case-links a {
  padding: 30px;
  border: 1px solid var(--svc-line);
  text-decoration: none;
  color: var(--svc-ink);
  background: var(--svc-pale);
}
.legacy-case-links h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.legacy-case-links p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--svc-muted);
}
.legacy-case-links span {
  font-size: 14px;
  color: var(--svc-blue);
}
@media (max-width: 1100px) {
  .custom-model {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .test-detail-grid {
    gap: 30px;
    grid-template-columns: 1fr 270px;
  }
}
@media (max-width: 800px) {
  .section-heading {
    align-items: start !important;
  }
  .section-heading > p {
    max-width: 270px;
  }
  .service-case-grid {
    gap: 16px;
  }
  .testing-detail-hero .container {
    gap: 35px;
  }
  .test-detail-grid {
    grid-template-columns: 1fr;
  }
  .test-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .testing-detail-hero h1 {
    font-size: 36px;
  }
}
@media (max-width: 560px) {
  #models .section-heading {
    display: block;
  }
  .section-heading > p {
    max-width: none;
    margin-top: 17px;
    font-size: 13px;
  }
  .section-heading br {
    display: none;
  }
  .custom-model {
    padding: 28px 23px;
    gap: 25px;
  }
  .custom-model h2 {
    font-size: 23px;
    line-height: 1.5;
  }
  .custom-model .button {
    white-space: normal;
    font-size: 12px;
  }
  .service-case-grid {
    grid-template-columns: 1fr;
  }
  .testing-detail-hero {
    padding: 25px 0 38px;
  }
  .testing-detail-hero .container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .testing-detail-hero h1 {
    font-size: 33px;
  }
  .testing-detail-hero p:not(.eyebrow) {
    font-size: 14px;
  }
  .testing-hero-visual {
    min-height: 220px;
  }
  .test-breadcrumb {
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .test-sidebar {
    grid-template-columns: 1fr;
  }
  .test-content-section h2 {
    font-size: 23px;
  }
  .test-content-section p,
  .test-content-section li {
    font-size: 14px;
  }
  .legacy-case-links {
    grid-template-columns: 1fr;
  }
  .legacy-cases {
    padding: 50px 0;
  }
  .legacy-cases h1 {
    font-size: 28px;
  }
  .legacy-cases > div > p {
    font-size: 14px;
  }
}
.testing-hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testing-hero-visual > span:last-child {
  z-index: 2;
  background: #ffffffdc;
  padding: 7px 10px;
  color: #5c7c8d;
  left: auto;
  right: 15px;
  bottom: 15px;
  letter-spacing: 1px;
}
.testing-hero-visual:before,
.testing-hero-visual:after {
  display: none;
}
