.hrm-ratings-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  /* extra horizontal room for the side arrows */
  padding: 0 3.5rem;
}

.hrm-ratings-carousel .splide__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hrm-rating-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.25rem 2rem;
  background: #EDE6DE;
  border-radius: 4px;
  box-sizing: border-box;
  height: auto;
  min-height: 180px;
}

.hrm-rating-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 0;
}

.hrm-star {
  width: 22px;
  height: 22px;
  display: inline-block;
}

.hrm-star--filled {
  fill: #C9A267;
}

.hrm-star--empty {
  fill: #d8d2c8;
}

.hrm-rating-quote {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 70ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #2a2520;
  font-style: italic;
  quotes: "\201C" "\201D";
}

.hrm-rating-quote p {
  margin: 0 0 0.75rem;
}

.hrm-rating-quote p:last-child {
  margin-bottom: 0;
}

.hrm-rating-author {
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #6b5a45;
  margin-top: 0.25rem;
}

/* ---------- Splide overrides scoped to this widget ---------- */

/* Arrows: centered on the card, brand-gold accent. */
.hrm-ratings-carousel .splide__arrows {
  pointer-events: none;
}

.hrm-ratings-carousel .splide__arrow {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid #C9A267;
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hrm-ratings-carousel .splide__arrow--prev {
  left: 0;
}

.hrm-ratings-carousel .splide__arrow--next {
  right: 0;
}

.hrm-ratings-carousel .splide__arrow svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: #C9A267;
  transition: fill 0.2s ease;
}

.hrm-ratings-carousel .splide__arrow:hover:not(:disabled) {
  background: #C9A267;
  border-color: #C9A267;
}

.hrm-ratings-carousel .splide__arrow:hover:not(:disabled) svg {
  fill: #fff;
}

.hrm-ratings-carousel .splide__arrow:focus-visible {
  outline: 2px solid #C9A267;
  outline-offset: 2px;
}

/* Pagination */
.hrm-ratings-carousel .splide__pagination {
  position: relative;
  bottom: auto;
  padding: 1rem 0 0;
  gap: 6px;
}

.hrm-ratings-carousel .splide__pagination__page {
  background: #d8d2c8;
  opacity: 1;
  width: 8px;
  height: 8px;
  margin: 0 3px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hrm-ratings-carousel .splide__pagination__page.is-active {
  background: #C9A267;
  transform: scale(1.2);
}

/* ---------- Section wrapper used in single-kiinteistonvalittaja.php ---------- */
.hrm-ratings-section {
  padding: 3rem 1rem;
}

.hrm-ratings-section > h6 {
  color: #C9A267;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hrm-ratings-carousel {
    padding: 0 2.5rem;
  }

  .hrm-rating-card {
    padding: 1.75rem 1.25rem;
  }

  .hrm-rating-quote {
    font-size: 1rem;
  }

  .hrm-ratings-carousel .splide__arrow {
    width: 2rem;
    height: 2rem;
  }

  .hrm-ratings-carousel .splide__arrow svg {
    width: 0.75rem;
    height: 0.75rem;
  }
}
