/* Section Styling */
.reviews-section {
  margin: 0 auto;
}

/* Title & Subtitle */
.reviews-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.reviews-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 30px;
}

/* Review Grid */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
}

/* Review Card Styling */
.review-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #ddd;
}

/* Review Header */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.review-logo {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Stars */
.stars {
  font-size: 18px;
  color: #ffa600 !important;
  margin-right: 5px;
}

/* Rating Number */
.review-rating {
  font-size: 16px;
  color: #333;
}

/* Review Text */
.review-text {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* Review Footer */
.review-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
}

/* "View all reviews" link */
.reviews-more {
  text-align: center;
  margin-top: 20px;
}

.reviews-more-link {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* ===== Styling options (selectable per block in Umbraco) =====
   Dark/Accent variants follow the site's CSS variables
   (--primary / --secondary / --accent as HSL values) with fallbacks. */

/* Section background variants */
.reviews-bg--dark,
.reviews-bg--accent {
  padding: 40px 20px;
  border-radius: 8px;
}

.reviews-bg--dark {
  background: hsl(var(--secondary, 140deg 100% 6%));
}

.reviews-bg--accent {
  background: hsl(var(--accent, 128deg 68% 83%));
}

.reviews-bg--dark .reviews-title,
.reviews-bg--dark .reviews-more-link {
  color: #fff;
}

/* Card style: Dark */
.reviews-cards--dark .review-card {
  background: hsl(var(--primary, 139deg 53% 21%));
  border-color: transparent;
}

.reviews-cards--dark .review-text {
  color: rgba(255, 255, 255, 0.9);
}

.reviews-cards--dark .review-rating,
.reviews-cards--dark .review-author {
  color: #fff;
}

.reviews-cards--dark .review-footer {
  color: rgba(255, 255, 255, 0.7);
}

/* Card style: Accent */
.reviews-cards--accent .review-card {
  background: hsl(var(--accent, 128deg 68% 83%));
  border-color: transparent;
}

.reviews-cards--accent .review-text,
.reviews-cards--accent .review-rating,
.reviews-cards--accent .review-author {
  color: hsl(var(--secondary, 140deg 100% 6%));
}

.reviews-cards--accent .review-footer {
  color: hsl(var(--primary, 139deg 53% 21%));
}

/* Title alignment and size (default: left, 24px) */
.reviews-title--left {
  text-align: left;
}

.reviews-title--center {
  text-align: center;
}

.reviews-title--right {
  text-align: right;
}

.reviews-title--small {
  font-size: 18px;
}

.reviews-title--medium {
  font-size: 28px;
}

.reviews-title--large {
  font-size: 36px;
}

/* Section spacing: set independently of the background variants.
   Declared after the background rules so an explicit choice always wins. */
.reviews-spacing--none {
  padding: 0;
}

.reviews-spacing--small {
  padding: 20px 16px;
}

.reviews-spacing--medium {
  padding: 40px 20px;
}

.reviews-spacing--large {
  padding: 64px 32px;
}

/* Card style: Transparent (inherits colors from the surrounding section) */
.reviews-cards--transparent .review-card {
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(127, 127, 127, 0.35);
}

.reviews-cards--transparent .review-text,
.reviews-cards--transparent .review-rating,
.reviews-cards--transparent .review-author,
.reviews-cards--transparent .review-footer {
  color: inherit;
}