/* Hero Section */
.feedback-hero {
  position: relative;
  background: url('../images/feedback1.png') center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-bottom: 40px;
}
.feedback-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.feedback-hero .hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
}
.feedback-hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}
.feedback-hero p {
  font-size: 20px;
}

/* Rating Summary Section */
.rating-summary h2 {
  font-size: 32px;
  font-weight: 700;
  color: #141452;
}
.rating-summary h5 {
  font-size: 18px;
}
.rating-summary div {
  font-size: 16px;
  color: #555;
}
.donut-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.donut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.donut-item canvas {
  width: 80px !important;
  height: 80px !important;
}

/* Feedback Section */
/* ================================
   Feedback Section
================================ */
.feedback-section {
  position: relative;
  padding: 60px 0;
  text-align: center;
  color: #333;
  background: url('../images/feedback2.jpg') center/cover no-repeat;
}

.feedback-section::before {
  content: none; /* removed blur effect */
}

.feedback-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
  text-align: center;
}

/* ================================
   Testimonials Grid
================================ */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   Testimonial Card
================================ */
.testimonial-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 300px; /* fixed width */
  height: 360px; /* equal height for all cards */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ================================
   Avatar
================================ */
.testimonial-card .avatar {
  margin-bottom: 15px;
}
.testimonial-card .avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #1f8f82;
  object-fit: cover;
}

/* ================================
   Student Name + Category
================================ */
.testimonial-card h5 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #141452;
  text-align: center;
}
.testimonial-card .category {
  font-size: 17px;
  color: #1f8f82;
  font-weight: 500;
  text-align: center;
  display: block;
  margin-bottom: 10px;
}

/* ================================
   Feedback Text
================================ */
.testimonial-card p {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  text-align: center;
  flex-grow: 1;
  overflow: hidden;
}

/* ================================
   Stars
================================ */
.stars {
  margin-top: auto;
  text-align: center;
}
.stars .star {
  font-size: 25px;
  color: #ccc;
  margin: 50px 2px;
}
.stars .star.filled {
  color: #ffb400;
}

/* ================================
   Animation
================================ */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   Footer (moved from inline styles)
================================ */
.footer {
  background-color: #1f1f1f;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #1f8f82;
}

/* ================================
   Responsive
================================ */
@media (max-width: 992px) {
  .testimonial-card {
    width: 280px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    gap: 20px;
  }
  .testimonial-card {
    width: 100%;
    max-width: 90%;
    height: auto; /* flexible on mobile */
  }
}

}