/* public/css/testimonials.css */

/* ── Container ── */
.testimonialContainer {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* ── Summary header ── */
.testimonialSummary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0 16px 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.summaryRatingBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}

.summaryScore {
  font-size: var(--font-22);
  font-weight: 700;
  color: var(--primary-color, #0066CC);
  line-height: 1;
}

.summaryStars {
  display: flex;
  gap: 2px;
  font-size: var(--tag-font);
  height: 25.2px;
}

.summaryStarWrap {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.summaryStarBase {
  color: #D8DCE1;
  position: absolute;
  top: 0;
  left: 0;
}

.summaryStarFillClip {
  position: absolute;
  top: 0;
  left: 0;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
}

.summaryStarFill {
  color: #F5B041;
}

.summaryDivider {
  width: 1px;
  align-self: stretch;
  background: rgba(0, 0, 0, 0.08);
}

.summaryCountBlock {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summaryCount {
  font-size: var(--font-21);
  font-weight: 700;
  color: var(--dark-gray, #1c1e21);
  line-height: 1;
  margin-top: -3px;
}


.add-review-div{
    text-align: center;
    line-height: 1.1;
    margin-left: auto;
    font-size: var(--p-font);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    background: #f0f2f5;
    color: var(--primary-color, #0066CC);
    border: 1.5px solid rgba(0, 102, 204, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: baseline;
    cursor: pointer;
    transition: background 0.15s ease;
}

.summaryCountLabel {
  font-size: var(--p-font);
  color: var(--gray, #65676b);
  font-weight: 500;
  margin-top: -2px;
}

/* ── Individual card ── */
.testimonialCardWide {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease;
  cursor: default;
  border-radius: 6px;
  margin: 0 -4px;
  width: calc(100% + 8px);
  position: relative;
}

.testimonialCardWide:last-child {
  border-bottom: none;
}

.testimonialCardWide:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* ── Reviewer avatar placeholder (initial) ── */
.testimonialAvatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light, #e6f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--p-font);
  font-weight: 700;
  color: var(--primary-color, #0066CC);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Card main content ── */
.testimonialCardContent {
  flex: 1;
  min-width: 0;
}

/* ── Reviewer name + time ── */
.testimonialReviewer {
  display: flex;
  align-items: baseline;
  gap: clamp(1px, 4px , 8px);
  flex-wrap: wrap;
  
}

.reviewerName {
  font-size: var(--sub-header-font);
  font-weight: 600;
  color: var(--dark-gray, #1c1e21);
  line-height: 1.3;
}

.reviewerTime {
  font-size: var(--tag-font);
  color: var(--gray, #65676b);
  font-weight: 400;
}

.reviewerTimeGoolge {
  font-size: var(--tag-font);
  color: var(--gray, #65676b);
  font-weight: 400;
  margin: -13px 0 5px;
  order: 3;
  flex-basis: 100%;

}

.expandableHeader {
  scroll-margin-top: 95px;
}

/* ── Source badge ── */
.testimonialSource {
  text-align: center;
  font-size: var(--error-font);
  color: var(--gray, #65676b);
  font-weight: 500;
  background: #f0f2f5;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  margin-left: auto;
  border-radius: 5px;
  min-width: 94px;
}

.testimonialSource i {
  font-size: var(--error-font);
  color: #DB4437;
}

/* ── Quote text ── */
.testimonialQuote {
  font-size: var(--p-font);
  color: var(--dark-gray, #1c1e21);
  line-height: 1.6;
  margin: 0 0 6px;
  font-style: normal;
  position: relative;
}

.testimonialQuote::before {
  content: none;
}

/* ── Stars ── */
.testimonialStars {
  display: flex;
  gap: 2px;
  color: #F5B041;
  font-size: var(--tag-font);
  margin-bottom: 8px;
}

.testimonialStars .far {
  color: #D8DCE1;
}

/* ── Patient satisfied ── */
.patientSatisfied {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #10B981;
  font-weight: 600;
  font-size: var(--tag-font);
  margin-bottom: 2px;
}

.satisfied-text {
  color: #10B981;
  font-size: var(--p-font);
  font-weight: 500;
}

/* ── Plain rating ── */
.testimonialPlainRating {
  font-weight: 600;
  color: var(--primary-color, #0066CC);
  font-size: var(--tag-font);
  margin-bottom: 4px;
}

/* ── Meta row ── */
.testimonialMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.review-source-score {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Marham tags ── */
.marhamTagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}

.marhamTag {
  display: inline-block;
  font-size: var(--tag-font);
  font-weight: 500;
  /* color: #10B981;
  
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
   */

  color: var(--primary-color, #0066CC);
  background: var(--primary-light, #e6f0ff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── Load more ── */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.load-more-wrapper .btn.secondary {
  font-size: var(--tag-font);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  background: #f0f2f5;
  color: var(--primary-color, #0066CC);
  border: 1.5px solid rgba(0, 102, 204, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.load-more-wrapper .btn.secondary:hover {
  background: var(--primary-light, #e6f0ff);
}

.btn.secondary.close-btn {
  background: #f0f2f5;
  color: var(--gray, #65676b);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn.secondary.close-btn:hover {
  background: #e4e6eb;
  color: var(--dark-gray, #1c1e21);
}

/* ── Partial star ── */
.partial-star {
  position: relative;
  display: inline-block;
  color: #D8DCE1;
}

.partial-star::after {
  content: "\f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #F5B041;
  position: absolute;
  inset: 0;
  width: 70%;
  overflow: hidden;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .testimonialSummary {
    padding: 12px 0 12px 4px;
    gap: 14px;
  }

  .hide-on-mobile{
    display: none;
  }

.add-review-div{
  text-align: center;
  line-height: 1.1;
  margin-left: auto;
  padding: 8px 10px;
  
}


  .summaryScore {
    font-size: var(--font-19);
  }

  .summaryCount {
    font-size: 18.5px;
  }

  .testimonialCardWide {
    padding: 10px 4px;
  }

  .marhamTag {
    font-size: var(--tag-font);
    padding: 3px 8px;
  }

  .load-more-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .load-more-wrapper .btn.secondary {
    justify-content: center;
  }

  .reviewerName {
  font-size: var(--sub-header-font);
  }

  /* ── Quote text ── */
  .testimonialQuote {
    font-size: var(--p-font);
  }
}