
/* Filter Buttons */
.testimonial-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Testimonials Grid Layout */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Testimonial Card */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Video Play Button */
.video-play-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  z-index: 10;
}

.video-play-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* Testimonial Header */
.testimonial-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.testimonial-avatar-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #667eea);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 5px 0;
}

.testimonial-designation {
  font-size: 13px;
  color: #777;
  margin: 0 0 8px 0;
}

/* Star Rating */
.testimonial-rating {
  display: flex;
  gap: 3px;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 14px;
}

/* Content */
.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-message {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  font-style: italic;
  margin-bottom: 15px;
  flex: 1;
}

.read-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  gap: 10px;
  color: #667eea;
}

/* Course Badge */
.course-badge {
  margin-top: 15px;
  padding: 8px 14px;
  background: #f0f4ff;
  border-radius: 8px;
  font-size: 13px;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* View All Button */
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-color), #667eea);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-view-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: white;
  gap: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonial-card {
    padding: 24px;
  }
  
  .filter-btn {
    font-size: 13px;
    padding: 8px 18px;
  }
}

/* Animation for filtered items */
.testimonial-card.hidden {
  display: none;
}

.testimonial-card.show {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========== TESTIMONIAL POPUP STYLES ========== */
.testimonial-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.testimonial-popup.show {
  opacity: 1;
  visibility: visible;
}

.testimonial-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.popup-inner {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.testimonial-popup.show .popup-inner {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.popup-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
  color: #333;
}

.review-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.review-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.review-avatar-fallback {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color, #764ba2), #667eea);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.review-name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
}

.review-designation {
  font-size: 14px;
  color: #777;
}

.review-message {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.review-message p {
  margin: 0;
  white-space: pre-wrap;
}

/* ========== VIDEO MODAL STYLES ========== */
.placement-video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.placement-video-modal-content {
  position: relative;
  background-color: #000;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.placement-video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 1;
}

.placement-video-modal-close:hover,
.placement-video-modal-close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#placement-video-frame {
  width: 100%;
  height: 500px;
  border: none;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .popup-inner {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .review-photo,
  .review-avatar-fallback {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .review-name {
    font-size: 18px;
  }
  
  .review-message {
    font-size: 15px;
  }
  
  .placement-video-modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  #placement-video-frame {
    height: 300px;
  }
  
  .placement-video-modal-close {
    top: -40px;
    font-size: 35px;
    width: 35px;
    height: 35px;
  }
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

