:root {
  --blue: #034295;
  --blue-deep: #022f68;
  --gold: #ffaa02;
  --ink: #1f2a3d;
  --muted: #6c7888;
  --line: #dfe7f0;
  --soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(3, 66, 149, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  background:
   radial-gradient(circle at top left, rgba(255, 170, 2, 0.12), transparent 28%),
  linear-gradient(180deg, #f4f8fd 0%, #ffffff 36%, #edf4fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(3, 66, 149, 0.9), rgba(3, 66, 149, 0.58)),;
  color: var(--white);
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.04;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.8;
}

.score-card {
  justify-self: end;
  width: min(100%, 320px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  text-align: center;
}

.score-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.18em;
}

.section {
  padding: clamp(34px, 5vw, 66px) clamp(18px, 5vw, 64px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.counter {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.carousel-card,
.photo-card,
.review-card {
  border: 1px solid rgba(3, 66, 149, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.carousel-card {
  overflow: hidden;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 45vw, 540px);
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 170, 2, 0.16), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
}

.stage img,
.stage video {
  width: 100%;
  max-height: clamp(244px, 42vw, 500px);
  border-radius: 20px;
  object-fit: cover;
}

.carousel-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 22px;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.arrow-btn:hover {
  transform: translateY(-2px);
  background: var(--blue-deep);
}

.slide-name {
  min-width: 0;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.photo-grid,
.reviews {
  display: grid;
  gap: 22px;
}

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

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

.photo-card {
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 16px 18px 18px;
  color: var(--ink);
  font-weight: 600;
}

.review-card {
  padding: 24px;
}

.review-card p {
  margin: 14px 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.review-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #3477db);
  color: var(--white);
  font-weight: 700;
}

.empty-state {
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.button,
.btn,
.btn-primary {
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
}

.button:hover,
.btn:hover,
.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--white);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .score-card {
    justify-self: start;
  }

  .photo-grid,
  .reviews {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .section,
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-head,
  .carousel-bar {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .section-head {
    display: grid;
  }

  .photo-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

  .carousel-bar {
    justify-items: start;
  }

  .arrow-btn {
    width: 100%;
  }
}

/* Testimonial redesign */
.testimonial-page {
  --tp-navy: #052f63;
  --tp-navy-deep: #021a38;
  --tp-gold: #ffb323;
  --tp-cream: #fff8e8;
  --tp-surface: rgba(255, 255, 255, 0.9);
  --tp-line: rgba(5, 47, 99, 0.12);
  --tp-shadow: 0 24px 60px rgba(2, 26, 56, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 179, 35, 0.14), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(3, 66, 149, 0.13), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.testimonial-page .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: center;
  padding: clamp(42px, 6vw, 84px) clamp(18px, 5vw, 64px);
  color: #fff;
  background:linear-gradient(130deg, rgba(2, 26, 56, 0.94), rgba(5, 47, 99, 0.84));
  overflow: hidden;
}

.testimonial-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 179, 35, 0.26), transparent 20%),
    radial-gradient(circle at 86% 26%, rgba(255, 255, 255, 0.12), transparent 16%);
  pointer-events: none;
}

.testimonial-page .hero-copy,
.testimonial-page .score-card {
  position: relative;
  z-index: 1;
}

.testimonial-page .hero h1 {
  max-width: 800px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.testimonial-page .hero-text {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.03rem;
  line-height: 1.8;
}

.testimonial-page .hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.testimonial-page .hero-chips span,
.testimonial-page .card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.testimonial-page .score-card {
  justify-self: end;
  width: min(100%, 320px);
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: var(--tp-shadow);
  text-align: center;
}

.testimonial-page .content-shell {
  padding: clamp(26px, 4vw, 52px) clamp(18px, 5vw, 64px) 72px;
}

.testimonial-page .spotlight-section {
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid var(--tp-line);
  border-radius: 30px;
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow);
}

.testimonial-page .section-head {
  align-items: end;
}

.testimonial-page .section-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
}

.testimonial-page .media-viewport {
  overflow: hidden;
}

.testimonial-page .media-track {
  display: flex;
  gap: 18px;
  width: 100%;
  will-change: transform;
  transition: transform 0.55s ease;
}

.testimonial-page .media-track.is-animating {
  transform: translateX(calc(-1 * ((100% - 36px) / 3 + 18px)));
}

.testimonial-page .media-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 100%;
  border: 1px solid rgba(5, 47, 99, 0.1);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.96));
  box-shadow: 0 16px 40px rgba(2, 26, 56, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.testimonial-page .media-card.is-updating {
  animation: tp-card-pop 0.45s ease;
}

.testimonial-page .media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(2, 26, 56, 0.16);
}

.testimonial-page .media-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 179, 35, 0.18), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #e8f0fb 100%);
}

.testimonial-page .media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(2, 26, 56, 0), rgba(2, 26, 56, 0.18));
  pointer-events: none;
}

.testimonial-page .media-frame img,
.testimonial-page .media-frame video {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  background: #dfe8f4;
}

.testimonial-page .media-card-video .media-frame {
  aspect-ratio: 4 / 5;
}

.testimonial-page .media-card-image .media-frame {
  aspect-ratio: 1 / 1;
}

.testimonial-page .media-card-video .media-frame img,
.testimonial-page .media-card-video .media-frame video {
  min-height: 100%;
}

.testimonial-page .media-card-image .media-frame img,
.testimonial-page .media-card-image .media-frame video {
  min-height: 100%;
}

.testimonial-page .media-footer {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
}

.testimonial-page .media-footer strong {
  color: var(--tp-navy);
  font-size: 1.02rem;
}

.testimonial-page .media-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.testimonial-page .media-card-video .card-tag {
  background: rgba(5, 47, 99, 0.9);
}

.testimonial-page .media-card-image .card-tag {
  background: rgba(255, 179, 35, 0.92);
  color: #1d2430;
}

.testimonial-page .reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-page .review-card {
  border: 1px solid rgba(5, 47, 99, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(2, 26, 56, 0.08);
}

.testimonial-page .review-card p {
  color: var(--muted);
}

.testimonial-page .empty-state {
  padding: 28px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1100px) {
  .testimonial-page .media-track {
    gap: 16px;
  }

  .testimonial-page .media-track.is-animating {
    transform: translateX(calc(-1 * ((100% - 16px) / 2 + 16px)));
  }

  .testimonial-page .media-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .testimonial-page .reviews {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .testimonial-page .hero {
    grid-template-columns: 1fr;
  }

  .testimonial-page .score-card {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .testimonial-page .media-track {
    gap: 14px;
  }

  .testimonial-page .media-track.is-animating {
    transform: translateX(calc(-1 * (100% + 14px)));
  }

  .testimonial-page .media-card {
    flex-basis: 100%;
  }

  .testimonial-page .reviews {
    grid-template-columns: 1fr;
  }

  .testimonial-page .spotlight-section {
    padding: 18px;
    border-radius: 24px;
  }

  .testimonial-page .section-head {
    display: grid;
    gap: 14px;
  }

  .testimonial-page .media-frame {
    min-height: 0;
  }

  .testimonial-page .media-frame img,
  .testimonial-page .media-frame video {
    min-height: 100%;
  }
}

@keyframes tp-card-pop {
  0% {
    transform: scale(0.985);
    filter: saturate(0.92);
  }
  55% {
    transform: scale(1.01);
    filter: saturate(1.04);
  }
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
}
