/* ═══════════════════════════════════════
   TESTIMONIALS PAGE — AIDevExpert
═══════════════════════════════════════ */

/* ── HERO ── */
.testi-hero {
  background: linear-gradient(135deg, #0A0B0D 0%, #1C2431 100%);
  padding: 72px 0 60px;
  color: #fff;
}
.testi-hero__inner { text-align: center; max-width: 780px; margin: 0 auto; }
.testi-hero__kicker {
  display: inline-block;
  background: rgba(253,201,15,.12);
  color: #FDC90F;
  border: 1px solid rgba(253,201,15,.3);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.testi-hero__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
}
.testi-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  margin: 0 0 36px;
  line-height: 1.6;
}
.testi-hero__stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.testi-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testi-stat strong {
  font-size: 26px;
  font-weight: 900;
  color: #FDC90F;
  display: block;
}
.testi-stat strong span { font-size: 18px; color: rgba(255,255,255,.5); }
.testi-stat > span:nth-child(2) { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600; }
.testi-stars { color: #FDC90F; font-size: 13px; letter-spacing: 1px; }

/* ── GRID SECTION ── */
.testi-grid-section { padding: 70px 0 0; background: #F8FAFC; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

/* ── CARD ── */
.testi-card {
  background: #fff;
  border: 1px solid #E5EBF0;
  border-radius: 18px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 72px;
  font-family: Georgia, serif;
  color: #F1F5F9;
  line-height: 1;
  pointer-events: none;
}
.testi-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.testi-card--hidden { display: none; }
.testi-card--reveal { animation: testiReveal .4s ease forwards; }
@keyframes testiReveal {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Card head */
.testi-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.testi-card__meta { display: flex; align-items: center; gap: 12px; flex:1; min-width:0; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.testi-card__info { min-width: 0; }
.testi-card__info strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0A0B0D;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.testi-card__info span {
  font-size: 12px;
  color: #64748B;
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.testi-card__badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.testi-flag { font-size: 18px; line-height: 1; }
.testi-verified {
  font-size: 10.5px; font-weight: 700;
  color: #22C55E;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Stars */
.testi-card__stars {
  color: #FDC90F;
  font-size: 15px;
  letter-spacing: 2px;
}

/* Text */
.testi-card__text {
  font-size: 13.5px;
  line-height: 1.7;
  color: #374151;
  flex: 1;
  margin: 0;
}

/* Service tag */
.testi-card__service {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748B;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  margin-top: auto;
}
.testi-card__service svg { color: #FDC90F; flex-shrink: 0; }
.testi-card__service strong { color: #0A0B0D; font-weight: 700; }

/* ── SEE MORE ── */
.testi-see-more {
  text-align: center;
  padding: 10px 0 60px;
}
.testi-see-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0A0B0D;
  color: #FDC90F;
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
  letter-spacing: .01em;
}
.testi-see-more__btn:hover { background: #1C2431; transform: translateY(-2px); }
.testi-see-more__btn svg { transition: transform .3s; }
.testi-see-more__btn.open svg { transform: rotate(180deg); }
.testi-see-more__count {
  margin: 12px 0 0;
  font-size: 13px;
  color: #94A3B8;
}

/* ── KWORK CTA SECTION ── */
.testi-kwork-section {
  padding: 70px 0 80px;
  background: #fff;
}
.testi-kwork-card {
  background: linear-gradient(135deg, #0A0B0D 0%, #1a2744 100%);
  border-radius: 24px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  gap: 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.testi-kwork-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(253,201,15,.06);
  pointer-events: none;
}
.testi-kwork-card__left { flex: 1; }
.testi-kwork-kicker {
  display: inline-block;
  background: rgba(253,201,15,.15);
  color: #FDC90F;
  border: 1px solid rgba(253,201,15,.3);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.testi-kwork-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}
.testi-kwork-desc {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 520px;
}
.testi-kwork-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.testi-kwork-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
}
.testi-kwork-card__right {
  flex-shrink: 0;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 36px 44px;
}
.testi-kwork-stars {
  font-size: 24px;
  color: #FDC90F;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.testi-kwork-number {
  font-size: 58px;
  font-weight: 900;
  color: #FDC90F;
  line-height: 1;
  margin-bottom: 4px;
}
.testi-kwork-label {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
  font-weight: 600;
}
.testi-kwork-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FDC90F;
  color: #0A0B0D;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.testi-kwork-btn:hover {
  background: #f0b800;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253,201,15,.35);
  color: #0A0B0D;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .testi-kwork-card { flex-direction: column; gap: 36px; padding: 36px 28px; }
  .testi-kwork-card__right { width: 100%; }
  .testi-hero__stats { gap: 8px; }
  .testi-stat { min-width: 100px; padding: 12px 16px; }
}
@media (max-width: 640px) {
  .testi-grid { grid-template-columns: 1fr; gap: 16px; }
  .testi-hero { padding: 52px 0 44px; }
  .testi-kwork-card { padding: 28px 20px; }
}
