/* Enhanced Testimonials Styles - Force Override */

.testimonials {
    background: #f8fafc !important;
    padding: 80px 0 !important;
}

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 50px !important;
}

.testimonial-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 35px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.testimonial-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.15) !important;
    border-color: #0284c7 !important;
}

.testimonial-card.featured {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%) !important;
    border-color: #0284c7 !important;
}

.featured-badge {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: white !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

.testimonial-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 25px !important;
}

.testimonial-author-info {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
}

.testimonial-author-info img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #0284c7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2) !important;
}

.testimonial-author-info h4 {
    margin: 0 0 5px 0 !important;
    color: #0f172a !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.member-title {
    margin: 0 0 3px 0 !important;
    color: #64748b !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.member-since {
    margin: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    font-style: italic !important;
}

.quote-mark {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
}

.quote-mark i {
    color: white !important;
    font-size: 1.3rem !important;
}

.testimonial-text {
    color: #334155 !important;
    line-height: 1.8 !important;
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
    flex-grow: 1 !important;
    font-style: italic !important;
}

.rating {
    display: flex !important;
    gap: 5px !important;
    margin-top: auto !important;
}

.rating i {
    color: #f97316 !important;
    font-size: 1rem !important;
}

.testimonial-card.featured .rating i {
    color: #0284c7 !important;
}
/* ── Avatar Ring Styles (add to your stylesheet) ── */
.avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.avatar-wrap::before,
.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #c9a84c, #f0d080, #c9a84c, #8a6a1f, #c9a84c);
  animation: spin 5s linear infinite;
}
.avatar-wrap::after {
  filter: blur(6px);
  opacity: 0.5;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-wrap img {
    visibility: hidden;
  position: relative;
  z-index: 1;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.avatar-wrap:hover img { transform: scale(1.06); }
.avatar-gloss {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #1a1a1a;
  z-index: 3;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px rgba(74,222,128,0.8); }
  50%       { box-shadow: 0 0 16px rgba(74,222,128,1); }
}

@media (max-width: 968px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .testimonials {
        padding: 60px 0 !important;
    }
}
