/* Testimonials Page Styles */

/* Hero Section */
.testimonials-hero {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('event1.JPG') center/cover no-repeat;
  text-align: center;
  color: white;
}

.testimonials-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.testimonials-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Featured Testimonials Section */
.featured-testimonials {
  padding: 80px 0;
  background-color: white;
}

.featured-testimonials .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.featured-testimonials .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Testimonial Grid & Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
  gap: 40px;
}

.testimonial-card {
  background-color: var(--light);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-header {
  position: relative;
}

.testimonial-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.testimonial-card .testimonial-author {
  position: absolute;
  bottom: -30px;
  left: 30px;
  display: flex;
  align-items: center;
}

.author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.testimonial-card .author-details {
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 5px;
}

.author-name {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.author-info {
  font-size: 0.9rem;
  color: #666;
}

.testimonial-card .testimonial-content {
  padding: 50px 30px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.8;
  flex-grow: 1;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 60px;
  position: absolute;
  color: var(--secondary);
  opacity: 0.2;
}

.testimonial-text::before {
  top: -20px;
  left: -15px;
}

.testimonial-text::after {
  content: '\201D';
  bottom: -40px;
  right: -15px;
}

.testimonial-service {
  display: inline-block;
  background-color: var(--secondary);
  color: white;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
  margin-top: auto;
}

.testimonial-date {
  font-size: 0.8rem;
  color: #777;
  margin-top: 15px;
  text-align: right;
}

.testimonial-rating {
  margin: 15px 0;
  color: #ffc107;
}

/* More Testimonials Section */
.more-testimonials {
  padding: 80px 0;
  background-color: var(--light);
}

.more-testimonials .section-title {
  text-align: center;
}

.more-testimonials .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-list {
  margin-top: 30px;
}

.simple-testimonial {
  padding: 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.simple-testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.simple-author-info {
  display: flex;
  align-items: center;
}

.simple-author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.simple-author-details h4 {
  margin: 0;
  font-size: 1.1rem;
}

.simple-author-details p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.simple-testimonial-rating {
  color: #ffc107;
}

.simple-testimonial-text {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 10px;
}

.simple-testimonial-service {
  display: inline-block;
  background-color: #e9ecef;
  color: var(--primary);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.simple-testimonial-date {
  font-size: 0.8rem;
  color: #777;
  text-align: right;
  margin-top: 10px;
}

/* Submit Review Section */
.submit-review {
  padding: 80px 0;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('logo.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
}

.submit-review-title {
  color: white;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.submit-review-text {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.review-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: left;
}

.review-form .form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--primary);
}

/* Star Rating */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #ddd;
  font-size: 25px;
  padding: 5px;
  transition: color 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #ffc107;
}

/* Upload */
.upload-group {
  margin-bottom: 20px;
}

.upload-label {
  display: inline-block;
  padding: 12px 15px;
  background-color: var(--light);
  border: 1px dashed #ddd;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: var(--transition);
}

.upload-label:hover {
  background-color: #e9ecef;
}

.upload-label i {
  margin-right: 10px;
  color: var(--secondary);
}

.upload-input {
  display: none;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.preview-item {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .testimonials-title {
    font-size: 2.5rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .testimonials-title {
    font-size: 2rem;
  }
  .testimonial-card .testimonial-author {
    left: 20px;
    bottom: -25px;
  }
  .author-img {
    width: 70px;
    height: 70px;
  }
  .review-form {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .testimonials-title {
    font-size: 1.8rem;
  }
  .testimonial-img {
    height: 200px;
  }
  .testimonial-card .testimonial-author {
    left: 15px;
    bottom: -20px;
  }
  .author-img {
    width: 60px;
    height: 60px;
  }
  .testimonial-card .author-details {
    padding: 8px 12px;
  }
  .author-name {
    font-size: 1rem;
  }
  .testimonial-card .testimonial-content {
    padding: 40px 20px 20px;
  }
}
