/* styles.css */

/* Color variables */
:root {
  --dark-blue: #17365e;
  --green: #a0d8d0;
  --dark-grey: #636569;
  --orange: #ff6b00;
  --light-grey: #f7f7f7; /* Light grey for card background */
}

/* General styles */
body {
  font-family: Arial, sans-serif;
}

/* Custom styles */
.custom-h2 {
  color: var(--e-global-color-801ae62);
  font-family: proxima-nova, sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0;
  margin-top: -7px;
}

/* Header styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  flex-wrap: wrap;
  overflow: hidden;
}

.logo-container {
  display: flex;
  align-items: center;
  max-width: 200px;
}

.logo-image {
  height: 50px;
  max-width: 200px;
}

.rating-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media only screen and (max-width: 600px) {
  .rating-container {
    justify-content: center;
  }
}

.average-rating,
.rating-text-static,
.rating-text-text,
.reviews-count {
  color: var(--dark-blue);
  font-weight: bold;
}

.average-rating {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-right: 20px;
}

.rating-number {
  font-size: 24px;
  margin-bottom: 5px;
  padding-right: 8px;
  margin-right: 10px;
}

.stars {
  color: var(--orange);
  font-size: 1.5em;
  margin: 5px 0;
}

.rating-text-static {
  font-size: 1.8em;
  padding-right: 16px;
}

.rating-text-text {
  display: block;
  font-size: 1.2em;
  margin-top: 5px;
}

.total-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
}

.reviews-label {
  font-size: 1em;
  color: var(--dark-grey);
  margin-top: 5px;
}

/* Carousel styles */
.carousel-container {
  position: relative;
  font-family: Arial, sans-serif;
  max-width: 100%;
  margin: auto 0 16px;
  width: 100%;
  overflow: hidden;
  background-color: #fff;
  padding: 20px;
}

.customer-name {
  font-size: 1.3em !important;
  color: var(--dark-blue);
  font-weight: bold;
  margin: -4px 0 10px;
}

.separator {
  height: 2px;
  background-color: var(--green);
  margin: 10px 0;
}

.review-text {
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.flex-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.quote-image {
  width: 50px;
  height: 36px !important;
  margin-right: 10px;
}

.show-more {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}

.show-more:hover {
  text-decoration: underline;
}

.prev,
.next {
  position: relative;
  top: auto;
  transform: none;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
  width: 120px;
  background-color: var(--orange);
}

.next:hover,
.prev:hover {
  background-color: var(--orange);
  border-color: var(--orange);
}

button:focus {
  outline: 0;
}

.carousel {
  display: flex;
  overflow: hidden;
  padding: 0 8px;
  scroll-snap-type: x mandatory;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.review-item {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--light-grey);
  border-radius: 8px;
  margin-bottom: 20px;
}

.reviews-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.reviews-wrapper {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

@media (min-width: 768px) {
  .review-item {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    margin: 0 10px;
  }
}

@media (max-width: 767px) {
  .review-item {
    flex: 0 0 calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 0 auto 20px;
    padding: 20px;
  }
}

.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.prev-button {
  left: 0; /* Ensure it is at the edge */
}

.next-button {
  right: 0; /* Ensure it is at the edge */
}

.hidden {
  display: none;
}

.carousel-buttons {
  display: flex;
  justify-content: space-between; /* Changed from space-around to space-between */
  margin-top: 20px;
  gap: 10px;
}
