/* testimonials.css - full professional UI (paste whole file) */

/* Root variables */
:root{
  --ct-blue: #0056ff;
  --ct-dark: #111;
  --ct-muted: #666;
}

/* wrapper */
.ct-wrap{
  max-width:1200px;
  margin:36px auto;
  padding:18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--ct-dark);
}

/* ===== Summary block used under featured image ===== */
.ct-review-summary-wrap {
  display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgb(13 38 76 / 14%);
    margin-bottom: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.ct-summary-left { flex:0 0 220px; text-align:center; }
.ct-average { font-size:38px; font-weight:700; }
.ct-average span { display:block; font-size:14px; color:var(--ct-muted); margin-top:4px; }
.ct-stars-inline .ct-star { color:#f5b301; font-size:20px; margin-right:2px; }
.ct-total { color:var(--ct-muted); margin-top:8px; font-weight:600; }
.ct-open-modal { background:var(--ct-blue); color:#fff; padding:8px 16px; border-radius:10px; border:none; cursor:pointer; font-weight:700; }

/* center bars */
.ct-summary-center { flex:1; padding:4px 6px; }
.ct-reviews-heading { margin:0 0 8px 0; font-weight:700; }
.ct-bar-row { display:flex; align-items:center; gap:12px; margin:8px 0; }
.ct-bar-label { width:36px; font-weight:700; color:var(--ct-dark); }
.ct-bar-bg { flex:1; height:10px; background:#f0f3f8; border-radius:8px; overflow:hidden; }
.ct-bar-fill { height:100%; width:0; background:var(--ct-blue); border-radius:8px 0 0 8px; transition:width .6s ease; }
.ct-bar-num { width:36px; text-align:right; color:var(--ct-muted); font-weight:700; }

/* right circle */
.ct-summary-right { flex:0 0 160px; text-align:center; }
.ct-circle-chart { width:110px; height:110px; transform:rotate(-90deg); margin:0 auto; display:block; }
.ct-circle-bg { fill:none; stroke:#eee; stroke-width:4; }
.ct-circle-progress { fill:none; stroke:var(--ct-blue); stroke-width:4; stroke-linecap:round; transition:stroke-dasharray .9s ease; }
.ct-recommend-text { margin-top:8px; color:var(--ct-muted); font-weight:600; }
.ct-percentage {fill:#0056ff;font-size:0.6rem;font-weight:700;text-anchor:middle;dominant-baseline:middle;transform: translate(100%, 0%) rotate(90deg);}

/* modal */
.ct-modal { display:none; position:fixed; inset:0; z-index:99999; align-items:center; justify-content:center; background:rgba(0,0,0,0.45); }
.ct-modal-box { width:92%; max-width:720px; background:#fff; border-radius:12px; padding:20px; max-height:92vh; overflow:auto; box-shadow:0 18px 48px rgba(3,12,28,0.18); }
.ct-modal-close { position:absolute; right:18px; top:14px; background:transparent; border:none; font-size:22px; cursor:pointer; color:#333; }
.ct-modal-box h3 { margin-top:0; font-size:20px; text-align:center; }
#ct-modal input[type=text], #ct-modal input[type=url], #ct-modal textarea, #ct-modal select { width:100%; padding:10px; margin:8px 0; border-radius:8px; border:1px solid #e6e9ef; }
.ct-modal .ct-social-fields label { margin-top:8px; display:block; font-weight:600; color:var(--ct-muted); }
.ct-modal .ct-modal-actions { display:flex; gap:10px; margin-top:10px; }
.ct-submit-btn { background:var(--ct-blue); color:#fff; padding:10px 14px; border-radius:8px; border:none; cursor:pointer; font-weight:700; }
.ct-cancel-btn { background:#f1f3f6; color:#333; padding:10px 12px; border-radius:8px; border:none; cursor:pointer; }

/* ===== Grid and cards on testimonials page ===== */
.ct-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; margin-top:18px; }
@media (max-width:1100px){ .ct-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px){ .ct-grid { grid-template-columns: 1fr; } .ct-summary-right{display:none;} .ct-review-summary-wrap{justify-content: center;} }

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all .28s ease;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow:0 12px 30px rgba(0,0,0,0.12); }
.testimonial-inner { display:flex; flex-direction:column; gap:12px; }
.testimonial-header { display:flex; align-items:center; gap:12px; }
.testimonial-photo { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.testimonial-initial { width:64px; height:64px; border-radius:50%; background:#e8ebf5; display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--ct-blue); }
.testimonial-name { margin:0; font-size:18px; font-weight:700; color:var(--ct-dark); }
.testimonial-job { margin:2px 0 0 0; font-size:13px; color:var(--ct-muted); }
.testimonial-rating { display:flex; align-items:center; gap:8px; margin-top:6px; }
.star { font-size:18px; color:#ccc; }
.star.filled { color:#f5b301; }
.rating-number { font-size:15px; font-weight:700; color:var(--ct-dark); }
.testimonial-text { font-size:15px; line-height:1.6; color:var(--ct-dark); margin-top:8px; }
.testimonial-footer { margin-top:12px; display:flex; justify-content:flex-start; align-items:center; gap:10px; }
.testimonial-social a { display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center; border-radius:50%; background:#f7f9fc; color:#333; text-decoration:none; transition:all .25s ease; }
.testimonial-social a:hover { background:var(--ct-blue); color:#fff; }

/* pager */
.ct-pagination { margin-top:16px; text-align:center; }

/* small utilities */
.no-reviews { color:var(--ct-muted); font-style:italic; }