/* ============================================================
   SICOMP — TESTIMONIALS.CSS
   صفحه لیست نظرات مشتریان
   نسخه: 1.0 — هماهنگ با team.css / articles.css
   ============================================================ */

/* ==================== Hero ==================== */
.testimonials-hero { height: 245px; position: relative; overflow: hidden; background: #eaf3ff; }
.testimonials-hero__bg { position: absolute; inset: 0; background: url('../images/soft.png') left center/cover no-repeat; }
.testimonials-hero__shade { position: absolute; inset: 0; background: linear-gradient(270deg, #f7faff 0%, #f7faffed 27%, #f7faff80 55%, #f7faff08 85%); }
.testimonials-hero__inner { height: 100%; display: flex; align-items: center; position: relative; }
.testimonials-hero__copy { width: 100%; margin-right: auto; border-right: 4px solid var(--red); padding: 8px 18px 8px 0; }
.testimonials-hero h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.5; margin: 0 0 8px; }
.testimonials-hero p { font-size: 14px; font-weight: 600; margin: 0; }

/* ==================== لیست نظرات ==================== */
.testimonials-main { padding-top: 28px; padding-bottom: 30px; }

.testimonials-toolbar { display: grid; grid-template-columns: 1fr minmax(250px, 370px); align-items: center; gap: 25px; }
.testimonials-toolbar .section-heading { margin: 0; }

.testimonials-search { height: 43px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 24px; padding: 0 15px; background: #fff; color: var(--blue); }
.testimonials-search span { font-size: 24px; }
.testimonials-search input { width: 100%; border: 0; outline: 0; background: transparent; font: 500 12px Vazir, Tahoma, sans-serif; color: var(--ink); }

/* ==================== فیلتر امتیاز ==================== */
.testimonials-filters { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 22px 0; }
.testimonial-filter {
    border: 1px solid #cbdcf7;
    background: #fff;
    color: var(--ink);
    padding: 8px 17px;
    border-radius: 24px;
    font: 700 11px Vazir, Tahoma, sans-serif;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.testimonial-filter:hover,
.testimonial-filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.testimonial-filter .stars { color: #f5a623; letter-spacing: 1px; font-size: 10px; }
.testimonial-filter.is-active .stars { color: #ffd76b; }

/* ==================== تیتر لیست ==================== */
.testimonials-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 14px; }
.testimonials-list-heading h2 { font-size: 19px; }
.testimonials-list-heading span { font-size: 11px; color: var(--muted); }

/* ==================== گرید نظرات — ۴ ستون ==================== */
.testimonials-page-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* کارت نظر (در صورت نبود در فایل دیگر) */
.testimonials-page-grid .testimonial-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 5px 18px rgba(9, 39, 92, .04);
    transition: transform .2s, box-shadow .2s;
}
.testimonials-page-grid .testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.testimonial-rating { display: flex; gap: 2px; margin-bottom: 10px; font-size: 16px; }
.testimonial-rating .star-filled { color: #f5a623; }
.testimonial-rating .star-empty  { color: #d4d4d4; }

.testimonial-title { font-size: 13px; font-weight: 800; margin: 0 0 6px; color: var(--navy); }
.testimonial-comment { font-size: 11px; line-height: 2; color: var(--muted); margin: 0 0 14px; flex: 1; }

.testimonial-author { display: flex; align-items: center; gap: 9px; padding-top: 12px; border-top: 1px solid #edf2fa; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0878dc, #06275f); color: #fff; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 11px; color: var(--ink); font-weight: 800; }
.testimonial-author span { display: block; font-size: 10px; color: var(--muted); }

.no-testimonials { text-align: center; padding: 30px; color: var(--muted); font-size: 13px; grid-column: 1 / -1; }

/* ==================== CTA پایین ==================== */
.testimonials-contact { margin-bottom: 38px; padding: 20px 28px; border: 1px solid #d4e4fa; border-radius: 13px; background: linear-gradient(100deg, #eaf3ff, #fff); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.testimonials-contact h2 { font-size: 17px; margin: 0 0 4px; }
.testimonials-contact p { font-size: 11px; margin: 0; color: var(--muted); }

/* ==================== ریسپانسیو ==================== */
@media (max-width: 1100px) {
    .testimonials-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
    .testimonials-toolbar { grid-template-columns: 1fr; }
    .testimonials-search { max-width: 100%; }
}
@media (max-width: 760px) {
    .testimonials-hero { height: 205px; }
    .testimonials-hero__shade { background: linear-gradient(180deg, #f7faff55, #f7faffed 65%); }
    .testimonials-hero__inner { align-items: flex-end; padding-bottom: 23px; }
    .testimonials-hero__copy { width: 100%; margin: 0; text-align: center; border: 0; padding: 0; }
    .testimonials-hero h1 { font-size: 24px; }
    .testimonials-hero p { font-size: 11px; }
    .testimonials-main { padding-top: 20px; }
    .testimonials-toolbar { gap: 15px; }
    .testimonials-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
    .testimonial-filter { white-space: nowrap; }
    .testimonials-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .testimonials-page-grid .testimonial-card { padding: 14px; }
    .testimonials-page-grid .testimonial-comment { font-size: 10px; }
    .testimonials-contact { flex-direction: column; text-align: center; padding: 17px; }
    .testimonials-contact h2 { font-size: 14px; }
    .testimonials-contact p { font-size: 10px; }
}
@media (max-width: 430px) {
    .testimonials-page-grid { grid-template-columns: 1fr; }
}
/* ==================== بهبود کارت نظر ==================== */
.testimonial-author__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.testimonial-date {
    font-size: 9px;
    color: #9aa9bb;
    margin-top: 2px;
}

/* اگر می‌خواهید کارت‌ها ارتفاع یکسان داشته باشن */
.testimonials-page-grid .testimonial-card {
    min-height: 240px;
}