*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
/* Testimonials Page Styles */
.testimonials-container {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-hero-section {
  max-height: fit-content;
  text-align: center;
  margin-bottom: 0;
  padding-top: 0;
  
}

.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 30vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527)),
    url("hero_testimonials.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100vw;
}

.hero-section h1 {
  color: var(--primary-color);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.hero-section .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  gap: 40px;
  padding: 20px 0;
}

.testimonials-section {
  margin-bottom: 40px;
}

.testimonials-section h2 {
  color: var(--primary-color);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 30px;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

.user-details h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.user-details p {
  color: var(--text-color);
  font-size: 0.9rem;
}

.rating {
  margin-bottom: 15px;
}

.stars {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.quote {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
}

/* Overall Rating Section */
.overall-rating {
  background: var(--accent-color);
  border-radius: 20px;
  padding: 30px;
  margin-top: 40px;
}

.overall-rating h2 {
  color: var(--primary-color);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 30px;
}

.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}

.average-rating {
  text-align: center;
}

.rating-number {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.total-reviews {
  display: block;
  color: var(--text-color);
  font-size: 0.9rem;
  margin-top: 10px;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: 15px;
}

.star-label {
  color: var(--text-color);
  font-size: 0.9rem;
}

.bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.bar .fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 75%;
}

.bar .fill[data-percentage="80"] {
  width: 80%;
}
.bar .fill[data-percentage="15"] {
  width: 15%;
}
.bar .fill[data-percentage="3"] {
  width: 3%;
}
.bar .fill[data-percentage="1"] {
  width: 1%;
}

.percentage {
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials-container {
    padding: 60px 15px;
  }

  .rating-summary {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .average-rating {
    text-align: center;
    margin-bottom: 20px;
  }

  .rating-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .testimonials-section h2{
    text-align: center;
  }

  .overall-rating h2{
    text-align: center;
  }

  .testimonial-card {
    padding: 20px;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
  }

  .rating-bar {
    grid-template-columns: 70px 1fr 40px;
    gap: 10px;
  }
}

@media (min-width:700px){
  .section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.527)),
    url("hero_testimonials.jpg");
  background-position: center top 30%;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100vw;
  margin-top: -23px;
}


}
