:root {
  --testimonial-bg: rgba(255,255,255,0.04);
  --testimonial-border: rgba(255,255,255,0.08);
  --testimonial-accent: var(--aws-orange, #ff9900);
}

.testimonials-area {
  margin: 48px auto 0;
  max-width: 1040px;
  padding: 0 24px 8px;
}

.testimonials-heading {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  background: linear-gradient(90deg,var(--aws-orange),#ffb84d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: .5px;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  /* Gradiente base EXATO solicitado (idêntico header/footer) */
  background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
  padding: 44px 38px 76px;
  min-height: 300px;
  box-shadow: 0 10px 34px -16px rgba(35,47,62,.55),0 4px 18px -10px rgba(35,47,62,.35);
}
.testimonials-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Só o mesmo radial âmbar do footer para consistência */
  background: radial-gradient(circle at 30% 70%, rgba(255,153,0,0.10) 0%, transparent 50%);
  pointer-events: none;
  opacity: .85;
}
/* Removido ::after para não alterar matiz/luminância do gradiente base */

.testimonial-track {
  display: flex;
  gap: 28px;
  transition: transform .7s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(150deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.14) 100%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 22px;
  padding: 28px 30px 26px;
  position: relative;
  box-shadow: 0 4px 14px -10px rgba(35,47,62,.55),0 2px 8px -6px rgba(35,47,62,.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .35s ease, transform .35s ease, background .35s ease, border-color .35s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(150deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.20) 100%);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 18px 40px -18px rgba(35,47,62,.55),0 10px 22px -12px rgba(35,47,62,.45),0 0 0 1px rgba(255,153,0,0.18);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.55;
  color: #ffffff;
  margin: 0 0 28px;
  position: relative;
  font-weight: 500;
}

.testimonial-text:before {
  content: "\201C";
  font-size: 3.4rem;
  line-height: .6;
  position: absolute;
  left: -4px;
  top: -26px;
  font-family: Georgia,serif;
  background: linear-gradient(135deg,rgba(255,255,255,0.32),rgba(255,255,255,0.08));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .35;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ff9900,#ffb84d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #161d22;
  font-size: .85rem;
  letter-spacing: .6px;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.55),0 0 0 3px rgba(0,0,0,.55);
  border: 2px solid rgba(255,255,255,0.65);
  outline: 2px solid rgba(255,153,0,0.65);
}

.testimonial-author {
  font-size: .78rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.testimonial-rating {
  font-size: .72rem;
  letter-spacing: .7px;
  color: #ffb84d;
  font-weight: 600;
}

.testimonial-nav {
  position: absolute;
  bottom: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  background: linear-gradient(135deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aws-blue);
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
  box-shadow: 0 4px 18px -8px rgba(35,47,62,.55),0 2px 8px -4px rgba(35,47,62,.40);
  backdrop-filter: blur(6px);
}

.testimonial-nav:hover {
  transform: scale(1.1);
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--aws-orange);
  box-shadow: 0 12px 34px -14px rgba(35,47,62,.65),0 8px 20px -10px rgba(35,47,62,.50);
}

.testimonial-nav:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.testimonial-nav.prev { left: 18px; }
.testimonial-nav.next { right: 18px; }

.testimonial-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 2;
}

.testimonial-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.25);
  transition: background .35s ease, transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  backdrop-filter: blur(4px);
}

.testimonial-dot:hover { background: rgba(255,153,0,0.55); }

.testimonial-dot.active {
  background: var(--aws-orange);
  border-color: var(--aws-orange-light);
  box-shadow: 0 0 0 5px rgba(255,153,0,.28),0 0 10px -2px rgba(255,184,77,.55);
  transform: scale(1.2);
}

/* Auto progress ring */
.testimonial-dot .progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,#ff9900,#ffb84d);
  opacity: .9;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 5s linear;
}

/* Responsive */
@media (min-width: 680px) {
  .testimonial-card { flex: 0 0 calc(50% - 22px); }
  .testimonials-carousel { padding: 54px 60px 108px; }
  .testimonial-text { font-size: 1.02rem; }
}

@media (min-width: 1080px) {
  .testimonial-card { flex: 0 0 calc(33.333% - 26px); }
  .testimonial-text { font-size: 1.06rem; }
}

/* Dark mode (futuro / fallback) */
@media (prefers-color-scheme: dark) {
  /* Mantém o mesmo gradiente também no dark mode para evitar ficar preto */
  .testimonials-carousel { background: linear-gradient(135deg, #232F3E 0%, #37475A 100%); border-color:#222; }
  .testimonial-card { background:#1b2127; border-color:#2a323a; }
  .testimonial-text { color:#e6e9ec; }
  .testimonial-author { color:#fff; }
  .testimonial-nav { background:linear-gradient(135deg,#ff9900,#ffb84d); color:#14181d; }
  .testimonial-footnote { color: rgba(255,255,255,0.70); }
}

/* Footnote / disclaimer abaixo do carrossel */
.testimonial-footnote {
  font-size: 0.78rem;
  color: rgba(35,47,62,0.65); /* visível sobre fundo claro fora do gradiente */
  margin-top: 18px;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .25px;
  user-select: none;
}
/* Removidos estilos de link: label informativa sem interação */

@media (max-width: 680px) {
  .testimonial-footnote { font-size: 0.7rem; padding: 0 12px; }
}
