/* ======================================
   TESTIMONIALS PAGE — Blue luxury theme
====================================== */

.testimonials-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Page Header ── */
.testi-page-header {
  text-align: center;
  margin-bottom: 52px;
}

.testi-page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 12px 0 14px;
  background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testi-page-header p {
  color: #64748b;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Cards List ── */
#testimonialsContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  text-align: left;
}

/* ── Override base public-testimony-card ── */
.public-testimony-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(59, 130, 246, 0.14) !important;
  border-radius: 18px !important;
  padding: 28px 26px !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.public-testimony-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, transparent);
}

.public-testimony-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* ── Card top: avatar + name ── */
.public-testimony-top {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 0 !important;
}

.public-testimony-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(59, 130, 246, 0.35) !important;
  flex-shrink: 0;
  object-fit: cover;
}

.public-testimony-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.public-testimony-name {
  font-family: "Playfair Display", serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #93c5fd !important;
  margin: 0 !important;
}

/* ── Quote mark before message ── */
.public-testimony-message {
  position: relative;
}

.public-testimony-message::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: -4px;
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  color: rgba(59, 130, 246, 0.18);
  line-height: 1;
  pointer-events: none;
}

.public-testimony-message p {
  color: #94a3b8 !important;
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
  padding-left: 4px;
}

/* ── Empty / loading state ── */
.testi-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #334155;
  font-size: 0.9rem;
  border: 1px dashed rgba(59, 130, 246, 0.12);
  border-radius: 14px;
  line-height: 1.7;
}

/* ── Pagination ── */
#testimonialsPagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

#testimonialsPagination .pagination-btn {
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

#testimonialsPagination .pagination-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

#testimonialsPagination .pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#testimonialsPagination .pagination-info {
  font-size: 0.82rem;
  color: #475569;
  letter-spacing: 0.5px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .testimonials-main { padding: 88px 16px 56px; }
  .testi-page-header h1 { font-size: 1.85rem; }
}
