/* ============================================================
   PREMIUM FEEDBACK WIDGET THEME
   Same class names as feedback_widget.css — bas isko include
   karo (ya purani wali replace karo), HTML/JS me koi change
   nahi chahiye.
   ============================================================ */

.feedback-widget {
  --fw-gold: #c9a24b;
  --fw-gold-soft: #f6ecd8;
  --fw-ink: #16181f;
  --fw-muted: #85899a;
  --fw-bg-card: #ffffff;
  --fw-border: #efeee9;
  position: relative;
  padding: 72px 24px;
  max-width: 1320px;
  margin: 0 auto;
  background:
    radial-gradient(600px 240px at 15% 0%, rgba(201, 162, 75, 0.06), transparent 60%),
    radial-gradient(600px 240px at 85% 100%, rgba(201, 162, 75, 0.05), transparent 60%);
}

/* ---- Header ---- */
.feedback-widget__header {
  text-align: center;
  margin-bottom: 44px;
}

.feedback-widget__header::before {
  content: "TESTIMONIALS";
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--fw-gold);
  margin-bottom: 12px;
}

.feedback-widget__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--fw-ink);
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.feedback-widget__subtitle {
  color: var(--fw-muted);
  font-size: 15.5px;
  margin: 0;
}

/* ---- Track: single row, horizontal scroll, edge fade ---- */
.feedback-widget__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 34px 6px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--fw-gold) #f1efe8;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.feedback-widget__track::-webkit-scrollbar {
  height: 6px;
}

.feedback-widget__track::-webkit-scrollbar-track {
  background: #f1efe8;
  border-radius: 10px;
}

.feedback-widget__track::-webkit-scrollbar-thumb {
  background: var(--fw-gold);
  border-radius: 10px;
}

.feedback-widget__loading,
.feedback-widget__empty {
  flex: 1 0 100%;
  text-align: center;
  color: var(--fw-muted);
  padding: 48px 0;
  font-size: 14.5px;
}

/* ---- Card ---- */
.feedback-card {
  flex: 0 0 calc(25% - 21px);
  scroll-snap-align: start;
  position: relative;
  background: var(--fw-bg-card);
  border: 1px solid var(--fw-border);
  border-radius: 22px;
  padding: 54px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(20, 18, 10, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feedback-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(20, 18, 10, 0.14);
  border-color: var(--fw-gold-soft);
}

/* thin gold accent line at top of card */
.feedback-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--fw-gold), #e7cf98);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feedback-card:hover::after {
  opacity: 1;
}

/* big decorative quote mark */
.feedback-card::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 22px;
  font-size: 64px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--fw-gold-soft);
  z-index: 0;
}

/* ---- Avatar: floats above the card top edge ---- */
.feedback-card__img,
.feedback-card__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin-top: -76px;
  z-index: 1;
}

.feedback-card__img {
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--fw-gold), 0 10px 22px rgba(0, 0, 0, 0.12);
}

.feedback-card__avatar {
  background: linear-gradient(135deg, var(--fw-gold), #e2c07f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 32px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--fw-gold), 0 10px 22px rgba(0, 0, 0, 0.12);
}

.feedback-card__text {
  color: var(--fw-ink);
  font-size: 14.5px;
  line-height: 1.7;
  font-style: italic;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feedback-card__text p {
  margin: 0;
}

.feedback-card__name {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fw-ink);
}

.feedback-card__meta {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fw-gold);
  font-weight: 700;
  background: var(--fw-gold-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .feedback-card {
    flex: 0 0 calc(33.333% - 19px);
  }
}

@media (max-width: 760px) {
  .feedback-widget {
    padding: 52px 16px;
  }
  .feedback-widget__title {
    font-size: 26px;
  }
  .feedback-card {
    flex: 0 0 calc(72% - 14px);
  }
}

@media (max-width: 420px) {
  .feedback-card {
    flex: 0 0 86%;
    padding-top: 60px;
  }
  .feedback-card__img,
  .feedback-card__avatar {
    width: 80px;
    height: 80px;
    margin-top: -64px;
  }
}