/* Testimonials section styles */
.testimonials-section {
  background: url('../assets/wzorki.jpg') center center;
  background-size: cover;
  padding: 0;
  color: #000000;
  width: 100%;
  position: relative;
  z-index: 1;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: -1;
}

.testimonials-section .section-title {
  padding-top: 30px;
  margin-bottom: 40px;
}

.testimonials-container {
  width: 100%;
  position: relative;
  padding: 0;
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
}

.testimonial-card {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Makes it square */
  background-color: #001C33;
  color: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  z-index: 5;
  transform: scale(1.02);
}

.testimonial-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-stars {
  color: #FFD700;
  font-size: 20px;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
  opacity: 0.9;
}

.testimonial-author {
  font-weight: 600;
  font-size: 18px;
  color: #00AEEF;
  text-align: right;
}

.testimonial-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.testimonial-card:hover .testimonial-overlay {
  background: rgba(0, 85, 164, 0.7);
}

/* Responsive design */
@media (max-width: 1200px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonial-card {
    padding-top: 90%; /* Slightly reduced height for tablets */
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-text {
    font-size: 13px;
  }
  
  .testimonial-card {
    padding-top: 70%; /* Reduced height for mobile */
  }
  
  .testimonial-card-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    padding-top: 50%; /* Much reduced height for small phones */
  }
}
