.hp-related-reviews,
.hp-reviews-page {
  --hp-review-ink: #0b132b;
  --hp-review-muted: #56647a;
  --hp-review-line: #dbe5f3;
  --hp-review-blue: #2563eb;
  --hp-review-violet: #7046ef;
  color: var(--hp-review-ink);
}

.hp-related-reviews {
  overflow: hidden;
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  border-block: 1px solid rgba(37, 99, 235, 0.12);
  background:
    radial-gradient(circle at 12% 10%, rgba(6, 182, 212, 0.14), transparent 28%),
    radial-gradient(circle at 88% 90%, rgba(112, 70, 239, 0.14), transparent 30%),
    linear-gradient(135deg, #eaf4ff 0%, #f1edff 52%, #eafcff 100%);
}

.hp-review-shell,
.hp-reviews-shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.hp-review-heading {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.hp-review-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.15;
}

.hp-review-heading p:not(.hp-review-eyebrow) {
  max-width: 680px;
  margin: 0.55rem auto 0;
  color: var(--hp-review-muted);
}

.hp-review-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--hp-review-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hp-review-all-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.42rem;
  color: var(--hp-review-blue);
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.hp-review-all-link:hover,
.hp-review-all-link:focus-visible {
  color: var(--hp-review-violet);
  text-decoration: underline;
}

.hp-review-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hp-review-viewport::-webkit-scrollbar {
  display: none;
}

.hp-review-track {
  display: grid;
  grid-auto-columns: calc((100% - 2rem) / 3);
  grid-auto-flow: column;
  gap: 1rem;
}

.hp-review-slide {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.hp-review-slide > a,
.hp-review-gallery-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--hp-review-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(11, 19, 43, 0.09);
  color: var(--hp-review-ink);
  text-decoration: none;
}

.hp-review-slide > a {
  height: 100%;
}

.home-modern .hp-review-home-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hp-review-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(11, 19, 43, 0.09);
}

.home-modern .hp-review-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-modern .hp-review-image-link:focus-visible,
.home-modern .hp-review-summary-source:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: -3px;
}

.home-modern .hp-review-html-summary {
  display: grid;
  align-items: initial;
  justify-content: initial;
  gap: 0.55rem;
  padding: 1rem;
}

.home-modern .hp-review-summary-person {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-modern .hp-review-html-summary .hp-review-summary-person span {
  color: var(--hp-review-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.home-modern .hp-review-html-summary p {
  margin: 0;
}

.home-modern .hp-review-summary-service {
  color: var(--hp-review-blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-modern .hp-review-summary-excerpt {
  color: var(--hp-review-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-modern .hp-review-summary-source {
  width: fit-content;
  color: var(--hp-review-blue);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.home-modern .hp-review-summary-source:hover {
  color: var(--hp-review-violet);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hp-review-slide img,
.hp-review-gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
}

.hp-review-slide figcaption,
.hp-review-gallery-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--hp-review-line);
}

.hp-review-slide figcaption span,
.hp-review-gallery-card figcaption span {
  color: var(--hp-review-muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.hp-review-slide figcaption strong,
.hp-review-gallery-card figcaption strong {
  color: var(--hp-review-ink);
  font-size: 0.92rem;
}

.hp-review-slide > a:hover,
.hp-review-slide > a:focus-visible,
.hp-review-gallery-card:hover,
.hp-review-gallery-card:focus-visible {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.14);
}

.hp-review-gallery-card > a:focus-visible {
  display: block;
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: -3px;
}

.hp-review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hp-review-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--hp-review-line);
  border-radius: 50%;
  background: #fff;
  color: var(--hp-review-ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.hp-review-controls button:hover:not(:disabled),
.hp-review-controls button:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hp-review-blue), var(--hp-review-violet));
  color: #fff;
}

.hp-review-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.hp-review-status {
  min-width: 7rem;
  color: var(--hp-review-muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

.hp-reviews-page {
  background: #f8fbff;
}

.hp-reviews-hero {
  overflow: hidden;
  padding: clamp(3.25rem, 6vw, 5rem) 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.24), transparent 28%),
    linear-gradient(135deg, #081326 0%, #123474 58%, #7046ef 100%);
  color: #fff;
}

.hp-reviews-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
}

.hp-reviews-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.hp-reviews-hero .hp-review-eyebrow {
  color: #7de4ff;
}

.hp-reviews-hero-copy > p:last-child {
  max-width: 650px;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
}

.hp-reviews-summary {
  display: grid;
  gap: 0.7rem;
}

.hp-reviews-summary span {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 800;
}

.hp-reviews-summary strong {
  font-size: 1.12em;
}

.hp-reviews-library {
  padding: clamp(3.25rem, 6vw, 5rem) 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(37, 99, 235, 0.08), transparent 26%),
    #f8fbff;
}

.hp-reviews-library-head {
  display: grid;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto 1.45rem;
  text-align: center;
}

.hp-reviews-library-head h2,
.hp-reviews-library-head p {
  margin: 0;
}

.hp-reviews-library-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.16;
}

.hp-reviews-library-head > p:last-child {
  max-width: 640px;
  margin-top: 0.65rem;
  color: var(--hp-review-muted);
}

.hp-review-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.45rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 19, 43, 0.08);
}

.hp-review-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hp-review-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.hp-review-tabs button span {
  display: grid;
  min-width: 1.55rem;
  height: 1.55rem;
  padding-inline: 0.35rem;
  place-items: center;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--hp-review-blue);
  font-size: 0.72rem;
}

.hp-review-tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--hp-review-blue), var(--hp-review-violet));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.hp-review-tabs button[aria-selected="true"] span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hp-review-tabs button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
}

.hp-review-results {
  margin: 0.9rem 0 1.2rem;
  color: var(--hp-review-muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.hp-review-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hp-review-gallery-card {
  margin: 0;
}

.hp-review-gallery-card[hidden] {
  display: none;
}

.hp-reviews-cta {
  padding: 0 0 clamp(3.25rem, 6vw, 5rem);
}

.hp-reviews-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1c39, #17488f);
  color: #fff;
}

.hp-reviews-cta-panel h2,
.hp-reviews-cta-panel p {
  margin: 0;
  color: #fff;
}

.hp-reviews-cta-panel p {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 780px) {
  .hp-reviews-cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hp-review-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

  .hp-reviews-hero-grid {
    grid-template-columns: 1fr;
  }

  .hp-reviews-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-review-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hp-related-reviews {
    padding: 2.7rem 0;
  }

  .hp-review-track {
    grid-auto-columns: 94%;
  }

  .hp-reviews-summary,
  .hp-review-gallery {
    grid-template-columns: 1fr;
  }

  .hp-review-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hp-review-tabs button {
    justify-content: center;
  }

  .hp-review-slide figcaption,
  .hp-review-gallery-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-review-viewport {
    scroll-behavior: auto;
  }
}
