:root {
  --testimonial-border-left: #6c63ff;
  --testimonial-name: #949ce6;
  --testimonial-comment: #000000;
  --testimonial-date: #949ce6;
  --testimonial-text: #ffffff;

  /* Animated Glow */
  --brand: #8c00ff;
  --brand-rgb: 140, 0, 255;
}

.WebWeaversWorldtestimonial-intro {
  margin: auto;
  padding: 2rem;
  display: flex;
  justify-content: center;
  color: var(--text);
  letter-spacing: 0.03em;
  flex-wrap: wrap;
  text-align: center;
}

#WebWeaversWorldtestimonials,
.comments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin: auto;
}

/* Testimonials Wrapper */
.WebWeaversWorldtestimonials-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-top: 4px solid;
  backdrop-filter: blur(50px);
  border-bottom: 2px solid;
}

/* Each Comment */
.WebWeaversWorldtestimonial {
  border-top: 2px solid transparent; /* needed for the gradient to show */
  border-radius: 10px;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  position: relative;

  border-image: linear-gradient(
      135deg,
      var(--testimonial-border-left),
      var(--bg-a-gradient)
    )
    1;
}

/* Name */
.WebWeaversWorldtestimonial-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--testimonial-name);
  margin-bottom: 0.25rem;
}

/* Comment Text */
.WebWeaversWorldtestimonial-comment,
#text {
  font-size: 0.95rem;
  color: var(--testimonial-text);
  line-height: 1.4;
  background: var(--testimonial-comment);
  border-radius: 2.5rem;
  font-family: Comic Neue;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Timestamp */
.WebWeaversWorldtestimonial-date {
  font-size: 0.8rem;
  color: var(--testimonial-date);
  right: 0;
}

@keyframes brandPulse {
  0% {
    box-shadow: 0 4px 14px var(--brand);
  }
  50% {
    box-shadow: 0 4px 20px rgba(var(--brand-rgb), 0.6);
  }
  100% {
    box-shadow: 0 4px 14px var(--brand);
  }
}

.WebWeaversWorldcomment-form {
  display: flex;
  flex-direction: column;
  background: #f6f6f6;
  margin: auto;
  padding: 1rem;
  box-shadow: 0 4px 14px var(--brand);
  max-width: fit-content;
  animation: brandPulse 3s ease-in-out infinite;
}

/* Input Fields */
#WebWeaversWorldmessage-input,
#WebWeaversWorldname-input {
  width: 50%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand);
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(6px);
}

/* Focus State */
#WebWeaversWorldmessage-input:focus,
#WebWeaversWorldname-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 12px var(--brand);
  background: rgba(255, 255, 255, 0.1);
  animation: inputPulse 3s ease-in-out infinite;
}

#WebWeaversWorldcomment-form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: space-around;
}

#submitBtn {
  background: transparent;
  border: 2px solid var(--brand);
}
/* Scroll box: 5 testimonial cards tall */
#WebWeaversWorldtestimonials {
  --card-height: 7.5rem; /* height of ONE testimonial card */
  --card-gap: 1rem; /* spacing between cards */

  max-height: calc((var(--card-height) * 2) + (var(--card-gap)));

  overflow-y: auto;
  padding-right: 0.5rem;
      display: flex;
    flex-wrap: nowrap;
}

/* Ensure consistent spacing */
#WebWeaversWorldtestimonials .WebWeaversWorldtestimonial {
  margin-bottom: var(--card-gap);
}

/* Scoped scrollbar styling for testimonials */
#WebWeaversWorldtestimonials {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--brand) color-mix(in srgb, var(--brand) 20%, transparent);
}

/* WebKit browsers (Chrome, Edge, Safari) */
#WebWeaversWorldtestimonials::-webkit-scrollbar {
  width: 8px;          /* slim */
  height: 8px;
}

#WebWeaversWorldtestimonials::-webkit-scrollbar-track {
  background: color-mix(
    in srgb,
    var(--brand) 15%,
    transparent
  );
  border-radius: 8px;
}

#WebWeaversWorldtestimonials::-webkit-scrollbar-thumb {
  background-color: var(--brand);
  border-radius: 8px;
  border: 2px solid transparent; /* gives breathing room */
  background-clip: content-box;
}

#WebWeaversWorldtestimonials::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(
    in srgb,
    var(--brand) 85%,
    black
  );
}

