/* ==========================================================================
   COMPONENT / REVIEW CARDS ("הורים משתפים" / "כך שינה הקורס...")
   Header (title + rating + "write a review" button) + 3 pastel review
   cards (cream/blue/white). Moved out of pages/_course.css (2026) —
   Tool.html shows the exact same reviews, so this now lives here
   instead of being duplicated per page. Distinct from the generic,
   much plainer components/_review-card.css (used as-is on SignIn.html)
   — that component's single-style card doesn't have this page's 21px
   quote text or per-card color treatment.
   ========================================================================== */

/* ==========================================================================
   Reviews — rebuilt (2026) from the real Figma CSS export: a header
   (title + rating summary + "write a review" button) and 3 pastel
   review cards, each with its own background/border/avatar color
   (cream, light blue, white). Page-specific rather than the shared
   components/_review-card.css — that component's generic single-style
   card (used as-is on SignIn.html) is much smaller/plainer than this
   page's actual 21px quote text and per-card color treatment, so
   forcing this page onto it would mean either bloating the shared
   component with course-only variants or losing the pastel cards
   entirely. SignIn.html's copy is left untouched.
   ========================================================================== */
.course-reviews-section {
  width: 100%;
  max-width: 1469px;
  margin: 0 auto 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.course-reviews-header {
  display: flex;
  direction: rtl;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.course-reviews-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  color: #000080;
  margin: 0 0 11px;
}

.course-reviews-header .rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-reviews-header .rating-stars {
  color: #C22DAF;
  font-size: 20px;
  letter-spacing: 2px;
}

.course-reviews-header .rating-summary-value {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  color: #000080;
}

.course-write-review-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  padding: 16px 40px;
  height: 50px;
  box-sizing: border-box;
  background: #CB6DA7;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.course-write-review-btn:hover {
  background: #c22daf;
}

.course-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 73px;
}

.course-review-card {
  box-sizing: border-box;
  padding: 40px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.05), 0px 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.course-review-card--cream {
  background: #FAF9F5;
  border: 1px solid #E2E8F0;
}

.course-review-card--blue {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
}

.course-review-card--white {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
}

.course-review-card .rating-stars {
  color: #C22DAF;
  font-size: 20px;
  letter-spacing: 2px;
}

.course-review-card-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 29px;
  color: #183B51;
  margin: 0;
  text-align: right;
}

.course-review-card-author {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
}

.course-review-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.course-review-card--cream .course-review-card-avatar {
  background: rgba(190, 225, 218, 0.7);
  color: #67B8A8;
}

.course-review-card--blue .course-review-card-avatar {
  background: rgba(161, 206, 224, 0.7);
  color: #3A6A82;
}

.course-review-card--white .course-review-card-avatar {
  background: #F6DFEC;
  color: #CB6DA7;
}

.course-review-card-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #000080;
}

.course-review-card-role {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 16px;
  color: #000080;
}

@media (max-width: 1023px) {
  .course-reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .course-reviews-header h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .course-write-review-btn {
    width: 100%;
  }

  .course-reviews-section {
    max-width: calc(100% - 40px);  
  }
  
}
