.gamenexa-testimonials {
  --gn-text: #f6f8ff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gn-text);
  background:
    radial-gradient(
      ellipse 75% 70% at 50% 100%,
      #23539c 0%,
      #173a73 45%,
      transparent 85%
    ),
    linear-gradient(180deg, #0b1933 0%, #112b56 100%);
}
.gamenexa-testimonials:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 70% at 50% 48%,
    rgba(49, 106, 185, 0.13),
    transparent 80%
  );
}
.gamenexa-testimonials__inner {
  position: relative;
  width: min(100%, 1920px);
  height: 650px;
  margin: auto;
}
.gamenexa-testimonials__stage {
  position: absolute;
  inset: 35px 52px 90px;
  perspective: 1200px;
}
.gamenexa-testimonials__card {
  --x: 0px;
  --scale: 1;
  --rotate: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(230px, 21.7vw, 410px);
  height: clamp(340px, 26.5vw, 480px);
  padding: 78px 31px 28px;
  border-radius: 30px;
  transform: translate(-50%, -50%) translateX(var(--x)) scale(var(--scale))
    rotate(var(--rotate));
  transform-origin: center center;
  transition:
    transform 0.65s cubic-bezier(0.22, 0.75, 0.2, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  z-index: var(--z, 1);
  opacity: var(--opacity, 1);
  filter: brightness(var(--brightness, 1));
  background: linear-gradient(
    145deg,
    rgba(152, 204, 255, 0.43) 0%,
    rgba(69, 112, 179, 0.29) 28%,
    rgba(39, 60, 111, 0.62) 67%,
    rgba(144, 113, 194, 0.3) 100%
  );
  border: 1.5px solid rgba(212, 236, 255, 0.87);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.38),
    inset 0 -2px 15px rgba(156, 108, 246, 0.16),
    0 20px 34px rgba(0, 10, 39, 0.28),
    0 0 17px rgba(125, 190, 255, 0.18);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  will-change: transform;
}
.gamenexa-testimonials__card:before {
  content: "";
  position: absolute;
  inset: 12px -16px -17px 14px;
  z-index: -2;
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(82, 149, 232, 0.35),
    rgba(16, 38, 89, 0.72)
  );
  transform: rotate(4deg);
  box-shadow: 0 14px 28px rgba(0, 13, 48, 0.22);
}
.gamenexa-testimonials__card:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.18),
    transparent 33%,
    transparent 70%,
    rgba(189, 123, 255, 0.12)
  );
  z-index: -1;
}
.gamenexa-testimonials__avatar {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192, 231, 255, 0.95);
  box-shadow: 0 0 18px rgba(72, 170, 255, 0.5);
  background: #4d73a8;
}
.gamenexa-testimonials__name {
  font-size: clamp(16px, 1.32vw, 23px);
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 3px;
  white-space: nowrap;
}
.gamenexa-testimonials__role {
  font-size: clamp(11px, 0.91vw, 15px);
  margin: 0;
  font-weight: 400;
}
.gamenexa-testimonials__ornament {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b865ff;
  letter-spacing: 1px;
  font-size: 18px;
}
.gamenexa-testimonials__quote {
  color: #b965ff;
  font-family: Georgia, serif;
  font-size: 64px;
  font-weight: bold;
  line-height: 0.75;
  height: 39px;
  margin: 7px 0 13px;
}
.gamenexa-testimonials__description {
  font-size: clamp(11px, 0.83vw, 14px);
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  max-width: 340px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}
.gamenexa-testimonials__arrow {
  position: absolute;
  z-index: 20;
  top: 48%;
  width: 55px;
  height: 55px;
  border: 1px solid rgba(154, 195, 247, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 27px;
  background: rgba(3, 20, 53, 0.68);
  box-shadow: 0 0 17px rgba(98, 161, 255, 0.3);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.gamenexa-testimonials__arrow:hover {
  background: rgba(53, 103, 176, 0.75);
  transform: scale(1.06);
}
.gamenexa-testimonials__arrow--prev {
  left: 16px;
}
.gamenexa-testimonials__arrow--next {
  right: 16px;
}
.gamenexa-testimonials__dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.gamenexa-testimonials__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #e6eaff;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.gamenexa-testimonials__dot[aria-current="true"] {
  background: #18a7ff;
  box-shadow:
    0 0 0 5px rgba(42, 148, 255, 0.2),
    0 0 12px #2caeff;
}
.gamenexa-testimonials__card[data-offset="0"] {
  --x: 0px;
  --scale: 1;
  --rotate: -3deg;
  --z: 5;
}
.gamenexa-testimonials__card[data-offset="-1"] {
  --x: calc(-1 * min(25vw, 465px));
  --scale: 0.79;
  --rotate: 9deg;
  --z: 4;
}
.gamenexa-testimonials__card[data-offset="1"] {
  --x: min(25vw, 465px);
  --scale: 0.79;
  --rotate: -9deg;
  --z: 4;
}
.gamenexa-testimonials__card[data-offset="-2"] {
  --x: calc(-1 * min(42vw, 780px));
  --scale: 0.78;
  --rotate: -8deg;
  --z: 3;
}
.gamenexa-testimonials__card[data-offset="2"] {
  --x: min(42vw, 780px);
  --scale: 0.78;
  --rotate: 8deg;
  --z: 3;
}
.gamenexa-testimonials__card[data-hidden="true"] {
  --x: 0px;
  --scale: 0.4;
  --opacity: 0;
  --z: 0;
  pointer-events: none;
}
.gamenexa-testimonials__card[data-offset="0"] .gamenexa-testimonials__avatar {
  width: 110px;
  height: 110px;
  top: -53px;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 1100px) {
  .gamenexa-testimonials {
    min-height: 610px;
  }
  .gamenexa-testimonials__inner {
    height: 590px;
  }
  .gamenexa-testimonials__stage {
    inset: 40px 35px 85px;
  }
  .gamenexa-testimonials__card {
    width: 310px;
    height: 405px;
    padding: 70px 24px 20px;
  }
  .gamenexa-testimonials__card[data-offset="-2"],
  .gamenexa-testimonials__card[data-offset="2"] {
    --opacity: 0.55;
  }
  .gamenexa-testimonials__card[data-offset="-1"] {
    --x: -260px;
  }
  .gamenexa-testimonials__card[data-offset="1"] {
    --x: 260px;
  }
  .gamenexa-testimonials__card[data-offset="-2"] {
    --x: -440px;
  }
  .gamenexa-testimonials__card[data-offset="2"] {
    --x: 440px;
  }
}
@media (max-width: 700px) {
  .gamenexa-testimonials {
    min-height: 570px;
  }
  .gamenexa-testimonials__inner {
    height: 560px;
  }
  .gamenexa-testimonials__stage {
    inset: 45px 0 85px;
  }
  .gamenexa-testimonials__card {
    width: min(76vw, 330px);
    height: 390px;
    padding: 70px 22px 22px;
  }
  .gamenexa-testimonials__card[data-offset="-1"] {
    --x: -65vw;
    --scale: 0.72;
    --opacity: 0.65;
  }
  .gamenexa-testimonials__card[data-offset="1"] {
    --x: 65vw;
    --scale: 0.72;
    --opacity: 0.65;
  }
  .gamenexa-testimonials__card[data-offset="-2"],
  .gamenexa-testimonials__card[data-offset="2"] {
    --opacity: 0;
    pointer-events: none;
  }
  .gamenexa-testimonials__avatar {
    width: 90px;
    height: 90px;
    top: -43px;
    border-radius: 50%;
  }
  .gamenexa-testimonials__arrow {
    top: auto;
    bottom: 22px;
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
  .gamenexa-testimonials__arrow--prev {
    left: 20px;
  }
  .gamenexa-testimonials__arrow--next {
    right: 20px;
  }
  .gamenexa-testimonials__dots {
    bottom: 37px;
    gap: 11px;
  }
  .gamenexa-testimonials__name {
    font-size: 18px;
  }
  .gamenexa-testimonials__role {
    font-size: 12px;
  }
  .gamenexa-testimonials__description {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gamenexa-testimonials__card,
  .gamenexa-testimonials__dot {
    transition: none;
  }
}
/* Responsive refinements: five desktop, three tablet, one mobile. */
.gamenexa-testimonials__card {
  max-width: calc(100% - 32px);
}
.gamenexa-testimonials__description {
  overflow-wrap: anywhere;
}
@media (min-width: 1200px) and (max-width: 1600px) {
  .gamenexa-testimonials__card {
    width: clamp(260px, 23vw, 345px);
    height: 420px;
    padding: 72px 25px 25px;
  }
  .gamenexa-testimonials__card[data-offset="-1"] {
    --x: -24vw;
    --scale: 0.82;
  }
  .gamenexa-testimonials__card[data-offset="1"] {
    --x: 24vw;
    --scale: 0.82;
  }
  .gamenexa-testimonials__card[data-offset="-2"] {
    --x: -42vw;
    --scale: 0.74;
  }
  .gamenexa-testimonials__card[data-offset="2"] {
    --x: 42vw;
    --scale: 0.74;
  }
}
@media (min-width: 701px) and (max-width: 1199px) {
  .gamenexa-testimonials {
    min-height: 570px;
  }
  .gamenexa-testimonials__inner {
    height: 560px;
  }
  .gamenexa-testimonials__stage {
    inset: 55px 44px 82px;
  }
  .gamenexa-testimonials__card {
    width: clamp(265px, 36vw, 335px);
    height: 385px;
    padding: 68px 24px 20px;
  }
  .gamenexa-testimonials__card[data-offset="-1"] {
    --x: -34vw;
    --scale: 0.78;
    --opacity: 0.85;
  }
  .gamenexa-testimonials__card[data-offset="1"] {
    --x: 34vw;
    --scale: 0.78;
    --opacity: 0.85;
  }
  .gamenexa-testimonials__card[data-offset="-2"],
  .gamenexa-testimonials__card[data-offset="2"] {
    --opacity: 0;
    pointer-events: none;
  }
  .gamenexa-testimonials__description {
    font-size: 12px;
    line-height: 1.5;
  }
  .gamenexa-testimonials__name {
    font-size: 18px;
  }
  .gamenexa-testimonials__role {
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .gamenexa-testimonials {
    min-height: unset;
    padding: 42px 0 20px;
  }
  .gamenexa-testimonials__inner {
    height: 550px;
    max-width: 100%;
  }
  .gamenexa-testimonials__stage {
    inset: 55px 0 100px;
    overflow: visible;
  }
  .gamenexa-testimonials__card {
    width: min(82vw, 350px);
    max-width: calc(100vw - 42px);
    height: 385px;
    max-height: none;
    padding: 70px 24px 24px;
  }
  .gamenexa-testimonials__card[data-offset="0"] {
    --rotate: 0deg;
    --scale: 1;
  }
  .gamenexa-testimonials__card[data-offset="-1"],
  .gamenexa-testimonials__card[data-offset="1"],
  .gamenexa-testimonials__card[data-offset="-2"],
  .gamenexa-testimonials__card[data-offset="2"] {
    --opacity: 0;
    pointer-events: none;
  }
  .gamenexa-testimonials__card[data-offset="0"] .gamenexa-testimonials__avatar {
    width: 96px;
    height: 96px;
    top: -46px;
  }
  .gamenexa-testimonials__description {
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 9;
  }
  .gamenexa-testimonials__dots {
    bottom: 36px;
    gap: 13px;
  }
  .gamenexa-testimonials__arrow {
    bottom: 19px;
  }
}
@media (max-width: 380px) {
  .gamenexa-testimonials__inner {
    height: 535px;
  }
  .gamenexa-testimonials__card {
    height: 375px;
    padding: 65px 18px 18px;
  }
  .gamenexa-testimonials__name {
    font-size: 16px;
  }
  .gamenexa-testimonials__description {
    font-size: 11px;
  }
  .gamenexa-testimonials__dots {
    gap: 10px;
  }
  .gamenexa-testimonials__arrow--prev {
    left: 8px;
  }
  .gamenexa-testimonials__arrow--next {
    right: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gamenexa-testimonials__card {
    will-change: auto;
  }
}

/* WordPress/Elementor scoped integration */
.nexus-t2 {
  font-family: var(--font-primary, Poppins, Arial, sans-serif);
}
.nexus-t2 .gamenexa-testimonials__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #36588a;
  color: #fff;
}
.nexus-t2 .gamenexa-testimonials__rating {
  color: #d6a3ff;
  font-size: 15px;
  line-height: 1.35;
  margin: 5px 0;
}
.nexus-t2 .gamenexa-testimonials__rating span {
  opacity: 0.35;
}
.nexus-t2 .gamenexa-testimonials__review-title {
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.3;
  margin: 3px 0 8px;
  font-weight: 600;
  color: inherit;
}
.nexus-t2 .gamenexa-testimonials__card[data-hidden="true"] {
  visibility: hidden;
}
.nexus-t2 .gamenexa-testimonials__card[data-offset="0"] {
  visibility: visible;
}
.nexus-t2 .gamenexa-testimonials__card:focus-visible,
.nexus-t2 button:focus-visible {
  outline: 3px solid #82c9ff;
  outline-offset: 4px;
}

/* Elementor Style 2 controls: optional overrides preserve the default glass styling. */
.nexus-t2.gamenexa-testimonials {
  background: var(
    --gn-section-bg,
    radial-gradient(
      ellipse 75% 70% at 50% 100%,
      #23539c 0%,
      #173a73 45%,
      transparent 85%
    ),
    linear-gradient(180deg, #0b1933 0%, #112b56 100%)
  );
}
.nexus-t2 .gamenexa-testimonials__card {
  background: var(
    --gn-card-bg,
    linear-gradient(
      145deg,
      rgba(152, 204, 255, 0.43) 0%,
      rgba(69, 112, 179, 0.29) 28%,
      rgba(39, 60, 111, 0.62) 67%,
      rgba(144, 113, 194, 0.3) 100%
    )
  );
  border-color: var(--gn-card-border, rgba(212, 236, 255, 0.87));
}
.nexus-t2 .gamenexa-testimonials__ornament,
.nexus-t2 .gamenexa-testimonials__quote {
  color: var(--gn-accent, #b965ff);
}
.nexus-t2 .gamenexa-testimonials__dot[aria-current="true"] {
  background: var(--gn-accent, #18a7ff);
  box-shadow: 0 0 0 5px rgba(42, 148, 255, 0.2);
}

/* Elementor-configurable rating appearance */
.nexus-t2 .gamenexa-testimonials__rating {
  white-space: nowrap;
  letter-spacing: 2px;
}
.nexus-t2 .gamenexa-testimonials__rating span {
  color: inherit;
}
