.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  filter: brightness(1) contrast(1);
  z-index: 1;
 
}

.webp .page-hero::before {
  background-image: url("/images/banners/employee-lifting.webp");
}

.no-webp .page-hero::before {
  background-image: url("/images/banners/employee-lifting.png");
}
/* Modern Reviews Summary Section */
.reviews-summary {
  padding: 3rem 1rem;

  position: relative;
  overflow: hidden;
}

.reviews-summary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-color: var(--light-gray);
  z-index: 1;
}

.overall-rating {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-large);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rating-badge:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.05);
}

.rating-number {
  font-size: 4rem;
  font-weight: var(--font-extrabold);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.rating-stars {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating-stars svg {
  width: 32px;
  height: 32px;
  color: #FFC107;
}

.rating-source {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.rating-platforms {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-large);
  transition: 
    transform 0.3s ease,
    background-color 0.3s ease;
}

.platform-badge:hover {
  transform: scale(1.05);
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.platform-badge img {
  height: 24px;
  width: auto;
  filter: grayscale(20%) brightness(0.9);
  transition: filter 0.3s ease;
}

.platform-badge:hover img {
  filter: grayscale(0%) brightness(1);
}

.platform-badge span {
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .reviews-summary {
    padding: 2rem 1rem;
  }

  .rating-number {
    font-size: 3rem;
  }

  .rating-stars svg {
    width: 28px;
    height: 28px;
  }

  .rating-platforms {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .platform-badge {
    width: 100%;
    max-width: 350px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .reviews-summary {
    padding: 1.5rem 0.75rem;
  }

  .rating-badge {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .rating-number {
    font-size: 2.5rem;
  }

  .rating-stars svg {
    width: 24px;
    height: 24px;
  }

  .platform-badge {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .platform-badge img {
    height: 32px;
    margin-bottom: 0.5rem;
  }

  .platform-badge span {
    font-size: 0.9rem;
  }
}

@media (max-width: 370px) {
  .rating-number {
    font-size: 2.2rem;
  }

  .rating-stars svg {
    width: 20px;
    height: 20px;
  }

  .platform-badge {
    padding: 0.75rem;
  }
}
  
  /* Reviews Filter */
.reviews-filter {
  padding: 2rem 1rem;
  background-color: var(--light-gray);
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.filter-controls select,
.filter-controls input {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-medium);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease;
}

.filter-controls select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233a3a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}

.filter-controls input {
  flex-grow: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-controls select,
  .filter-controls input {
    width: 100%;
    max-width: none;
  }

  .filter-controls input[type="text"] {
    flex-grow: 0;
  }
}

@media (max-width: 480px) {
  .filter-controls select,
  .filter-controls input {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }
}
  
  /* Reviews Grid */
  .reviews-grid {
    padding: 3rem 1rem;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
}

  
.reviews-grid .section-container {
    max-width: var(--container-width);
    width: 100%;
}
  
.reviews-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}


.review-card {
    background-color: var(--white);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; 
    width: 100%;
    max-width: 400px;
    margin: 0 auto;

}

  .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .review-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.review-body p {
    width: 100%;
}
  
  .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .reviewer-info {
    display: flex;
    flex-direction: column;
  }
  
  .reviewer-name {
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin-bottom: 0.25rem;
  }
  
  .reviewer-location {
    color: var(--text-mid);
    font-size: 0.95rem;
  }
  
  .review-rating {
    display: flex;
    gap: 0.25rem;
  }
  
  .review-rating svg {
    width: 24px;
    height: 24px;
  }
  
  .review-body {
    margin-bottom: 1.5rem;
  }
  
  .review-body p {
    color: var(--text-mid);
    line-height: 1.6;
  }
  
  .review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
  }
  
  .review-date {
    color: var(--text-light);
    font-size: 0.875rem;
  }
  
  .review-platform {
    display: flex;
    align-items: center;
  }
  
  .review-platform img {
    height: 30px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 1024px) {
    .reviews-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .review-card {
        padding: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .review-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
  
    .review-footer {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
  
    .rating-number {
      font-size: 3rem;
    }
  
    .rating-stars svg {
      width: 24px;
      height: 24px;
    }

    .reviews-grid-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .review-card {
        max-width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .filter-controls select,
    .filter-controls input {
      font-size: 0.9rem;
    }
  
    .reviewer-name {
      font-size: 1.1rem;
    }
  
    .review-body p {
      font-size: 0.95rem;
    }
  }