.testing-validation-page {
  background: #f5f7f9;
  color: #182c3b;
}

.testing-redesign-main { overflow: hidden; }

/* Match the compact 2400 x 480 banner treatment used on the Products page. */
.testing-validation-page main > .hero-banner:not(.d-none) {
  min-height: 0;
  line-height: 0;
}

.testing-validation-page main > .hero-banner:not(.d-none) .hero-img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  display: block;
}

.tv-hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  background: #16070a;
}

.tv-hero-image,
.tv-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tv-hero-image { object-fit: cover; object-position: center; }
.tv-hero-overlay { background: linear-gradient(90deg, rgba(26,3,7,.97) 0%, rgba(78,7,12,.84) 35%, rgba(9,20,31,.25) 68%, rgba(9,20,31,.08) 100%); }
.tv-hero-content { padding-top: 5rem; padding-bottom: 5rem; z-index: 1; }
.tv-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -.04em; margin: 1rem 0 .85rem; }
.tv-hero p { color: rgba(255,255,255,.78); max-width: 620px; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; margin: 1.5rem 0 0; }
.tv-eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: #f2bd35; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }

.tv-trust-strip {
    position: relative;
    z-index: 3;
    margin-top: -47px;
    padding-bottom: 1rem;
    background: #e7e8ea4f;
}
.tv-trust-strip .container { background: #ffffff; border: 1px solid #e6eaed; border-radius: 16px; box-shadow: 0 16px 36px rgba(18,37,53,.10); overflow: hidden; }
.tv-trust-item { min-height: 126px; padding: 1.25rem; display: flex; align-items: center; justify-content: center; gap: .85rem; border-right: 1px solid #e6eaed; background: #fff; }
.tv-trust-item.odd { background: #fbefef; }
.tv-trust-item.even { background: #fff8e5; }
.tv-trust-item.odd:hover { background: #f7e2e3; }
.tv-trust-item.even:hover { background: #fff2c9; }
.tv-trust-strip [class*="col-"]:last-child .tv-trust-item { border-right: 0; }
.tv-trust-item i { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: #fbf3e4; color: #8f1117; font-size: 1.2rem; }
.tv-trust-item span { font-weight: 700; font-size: .82rem; line-height: 1.35; color: #253947; }

.tv-intro { background: #f5f7f9; padding-top: 6.25rem; }
.tv-kicker { display: block; color: #8f1117; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; }
.tv-lead { color: #556673; font-size: 1.04rem; line-height: 1.85; }
.tv-assurance-panel { display: flex; gap: 1.1rem; align-items: center; padding: 1.5rem; border-radius: 12px; background: #fff; border: 1px solid #e2e7ea; box-shadow: 0 10px 30px rgba(18,39,53,.07); }
.tv-assurance-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 12px; background: #7a1216; color: #fff; font-size: 1.6rem; }
.tv-assurance-panel strong { display: block; margin-bottom: .25rem; }
.tv-assurance-panel span { display: block; color: #687782; font-size: .9rem; line-height: 1.5; }

.tv-facilities { background: #f5f7f9; }
.tv-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.tv-section-heading p { max-width: 470px; margin: 0; color: #687782; line-height: 1.65; }

.tv-feature-facility,
.tv-facility-card,
.tv-measurement-card { background: #fff; border: 1px solid #dde4e8; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 35px rgba(17,38,52,.07); }
.tv-facility-card { transition: transform .25s ease, box-shadow .25s ease; }
.tv-facility-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(17,38,52,.13); }

.tv-visual {
  min-height: 220px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  padding: 1.5rem;
  color: #fff;
  isolation: isolate;
  background-color: transparent !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.tv-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,18,27,.04) 25%, rgba(7,18,27,.88) 100%);
}
.tv-visual-anechoic {
  min-height: 100%;
  background-image: url('../images/testingandvalidation/Anechoic_1.JPG');
}

.tv-visual-thermal {
  background-image: url('../images/testingandvalidation/Thermal.JPG');
}

.tv-visual-vibration {
  background-image: url('../images/testingandvalidation/Vibration%20Shaker.JPG');

}

.tv-visual-altitude {
  background-image: url('../images/testingandvalidation/CATH.JPG');

}

.tv-visual-rf {
  background-image: url('../images/ttsl/TestingAndValidation/05-RF-Measurement-1200x750.png');
}
.tv-gallery-trigger { width: 100%; border: 0; padding: 0; cursor: pointer; }
.tv-gallery-trigger:focus-visible { outline: 3px solid #f4c550; outline-offset: -5px; }
.tv-gallery-hint { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; font-weight: 700; }
.tv-number { position: absolute; z-index: 2; top: 1rem; left: 1rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.94); color: #8f1117; font-weight: 800; font-size: .8rem; box-shadow: 0 6px 18px rgba(5,17,26,.2); }
.tv-visual-caption { position: relative; z-index: 1; max-width: 95%; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.tv-visual-caption span { display: block; margin-bottom: .35rem; color: #f4c550; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tv-visual-caption strong { display: block; color: #fff; font-size: 1.02rem; line-height: 1.3; }

.tv-feature-body { padding: clamp(1.5rem, 3vw, 3rem); }
.tv-card-body { padding: 1.5rem; }
.tv-card-label { display: block; color: #8f1117; text-transform: uppercase; font-size: .68rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .55rem; }
.tv-feature-body h3,
.tv-card-body h3 { color: #172d3c; font-size: 1.35rem; margin-bottom: 1.4rem; }
.tv-feature-body h4,
.tv-card-body h4 { color: #65747f; text-transform: uppercase; font-size: .68rem; font-weight: 800; letter-spacing: .1em; margin-bottom: .85rem; }
.tv-card-body ul,
.tv-spec-panel ul { color: #5d6c77; font-size: .88rem; line-height: 1.65; padding-left: 1.1rem; margin-bottom: 0; }
.tv-check-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem 1rem; }
.tv-check-grid li { display: flex; gap: .55rem; color: #4f606b; font-size: .87rem; line-height: 1.45; }
.tv-check-grid i { color: #b4871f; font-size: 1rem; }
.tv-spec-panel { height: 100%; padding: 1.25rem; border-radius: 10px; background: #f5f7f9; border-left: 3px solid #c69a2d; }

.tv-measurement-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tv-measurement-grid span { flex: 0 0 calc((100% - 2.25rem) / 4); min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center; border: 1px solid transparent; border-radius: 9px; color: #566772; font-size: .76rem; font-weight: 600; }
.tv-measurement-grid span:nth-child(odd) { background: #f8edef; border-color: #efdadd; }
.tv-measurement-grid span:nth-child(even) { background: #fff7df; border-color: #f2e3ad; }
.tv-measurement-grid span:nth-child(odd) i { color: #8f1117; }
.tv-measurement-grid span:nth-child(even) i { color: #9a7200; }
.tv-measurement-grid i { font-size: 1.15rem; }

.tv-cta { background: linear-gradient(120deg, #3a090c, #7a1216); color: #fff; }
.tv-cta h2 { color: #fff; max-width: 780px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tv-cta p { color: rgba(255,255,255,.72); margin: 1rem 0 0; }

@media (max-width: 991.98px) {
  .tv-hero { min-height: 390px; }
  .tv-trust-strip { margin-top: -28px; padding-bottom: .75rem; background: linear-gradient(180deg, transparent 0 28px, #fff 28px 100%); }
  .tv-trust-strip .container { border-radius: 12px; box-shadow: 0 16px 36px rgba(18,37,53,.10); }
  .tv-trust-item { border-bottom: 1px solid #e6eaed; }
  .tv-trust-strip [class*="col-"]:nth-child(2n) .tv-trust-item { border-right: 0; }
  .tv-trust-strip [class*="col-"]:last-child .tv-trust-item { border-bottom: 0; }
  .tv-intro { padding-top: 4rem; }
  .tv-section-heading { align-items: start; flex-direction: column; }
  .tv-visual-anechoic { min-height: 260px; }
}

@media (max-width: 767.98px) {
  .tv-hero { min-height: 360px; }
  .tv-hero-image { object-position: 62% center; }
  .tv-hero-overlay { background: linear-gradient(90deg, rgba(29,3,7,.96), rgba(58,7,11,.78)); }
  .tv-hero-content { padding-top: 4rem; padding-bottom: 4rem; }
  .tv-trust-item { min-height: 94px; padding: 1rem .7rem; justify-content: flex-start; }
  .tv-trust-item i { width: 40px; height: 40px; flex-basis: 40px; }
  .tv-check-grid { grid-template-columns: 1fr; }
  .tv-measurement-grid span { flex-basis: calc((100% - .75rem) / 2); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-facility-card { transition: none; }
}
