/* ========== FEEDBACKS PAGE ========== */
.feedbacks-header { 
  margin-bottom: 6rem; 
  text-align: center; /* Center the header */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  margin-bottom: 3rem;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  background: rgba(11, 138, 66, 0.06);
  border-radius: 100px;
  border: 1px solid rgba(11, 138, 66, 0.15);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.back-link:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-2px);
  gap: 0.8rem;
}

.section-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.subsection-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-green);
  margin-bottom: 3.5rem;
  position: relative;
  display: block;
  text-align: center; /* Center subsection titles */
}

.subsection-title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--primary-green);
  border-radius: 10px;
}

/* Video Testimonials */
.video-feedback-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); /* Changed to auto-fit */
  gap: 2.5rem;
  margin-bottom: 6rem;
  justify-content: center; /* Center the cards */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.video-feedback-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center; /* Center text inside card */
}

.video-feedback-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7; /* More rectangular/panoramic */
  background: #000;
  overflow: hidden;
}

.video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.8;
}

.video-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 138, 66, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.video-feedback-card:hover .video-thumbnail-img { transform: scale(1.05); opacity: 1; }

.play-button-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-icon {
  width: 60px; height: 60px;
  background: rgba(11,138,66,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-feedback-card:hover .play-icon {
  transform: scale(1.15);
  background: var(--light-green);
}

.video-feedback-info { padding: 1.5rem; }
.video-feedback-info h4 { font-size: 1.1rem; font-weight: 700; color: var(--dark-green); margin-bottom: 0.4rem; }
.video-feedback-info p { font-size: 0.88rem; color: var(--text-muted); }

/* Written Testimonials */
.testimonials-section {
  margin-top: 8rem;
  text-align: center;
}

.testimonials-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 420px)); /* auto-fit + max-width per card */
  gap: 2.5rem;
  margin-bottom: 8rem;
  text-align: left;
  justify-content: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-modern-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(6, 51, 43, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 auto; /* Ensure centering in grid cells */
  width: 100%;
  max-width: 450px; /* Optional: cap width for better look */
}

.testimonial-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 138, 66, 0.15);
}

.client-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }

.client-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-green);
  background: #f0f0f0;
}

.client-avatar img { width: 100%; height: 100%; object-fit: cover; }

.client-badge { display: flex; flex-direction: column; }
.client-name { font-weight: 700; color: var(--dark-green); font-size: 1rem; }

.client-line {
  width: 24px;
  height: 2px;
  background: var(--primary-green);
  margin-top: 0.3rem;
  border-radius: 4px;
  opacity: 0.7;
}
.client-role { font-size: 0.75rem; color: var(--primary-green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.client-comment { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; font-style: italic; position: relative; }

/* CTA Section */
.feedback-cta {
  text-align: center;
  background: var(--dark-green);
  padding: 5rem 2rem;
  border-radius: var(--radius);
  color: #fff;
  margin-bottom: 6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feedback-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.feedback-cta h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feedback-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.8rem;
  background: #fff;
  color: var(--dark-green);
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(11, 138, 66, 0.3);
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(6,51,43,0.95);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.video-modal.active { opacity: 1; pointer-events: auto; }

.video-modal-content {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 100px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 20px; /* Space around video */
}

.video-modal.active .video-modal-content { transform: scale(1); }

.video-modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20001;
  transition: background 0.3s ease, transform 0.3s ease;
}

.video-modal-close:hover { background: var(--primary-green); transform: rotate(90deg); }

.video-modal video { width: 100%; height: 100%; object-fit: contain; }

/* Responsive */
@media (max-width: 900px) {
  .feedbacks-header { margin-bottom: 4rem; }
  .testimonials-modern-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .video-modal-content { 
    width: 95%;
    max-width: 450px;
    aspect-ratio: 9/16; /* Portrait for mobile shorts */
  }
}

@media (max-width: 580px) {
  .section-title { font-size: 2.2rem; }
  .subsection-title { font-size: 1.6rem; margin-bottom: 2.5rem; }
  .video-feedback-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .video-thumbnail-wrapper { aspect-ratio: 16/9; } /* Standard rect on mobile */
  .testimonial-modern-card { padding: 1.8rem; }
  .feedback-cta { padding: 4rem 1.5rem; }
  .feedback-cta h3 { font-size: 1.8rem; }
  .cta-button { width: 100%; justify-content: center; }
}
