/* TESTIMONIALS SECTION STYLES */

/* Page Hero */
.testimonials-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #d8ebef 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.testimonials-hero .container {
  width: 100%;
}
.testimonials-hero::before,
.testimonials-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 60, 48, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.testimonials-hero::before {
  top: -35%;
  right: -10%;
}
.testimonials-hero::after {
  bottom: -30%;
  left: -15%;
}
.testimonials-title {
  color: var(--color-primary);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
}
.testimonials-subtitle {
  color: #556;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Testimonials Section Container */
.testimonials-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #d8ebef 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 60, 48, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Compact mini-review cards (used for both main grid and quick strip) */
.mini-review {
  background: #fff;
  border: 1px solid rgba(0, 60, 48, 0.08);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 60, 48, 0.08);
  padding: 18px 18px 14px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini-review:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 60, 48, 0.16);
}
.mini-review p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #465;
}
.mini-review .reviewer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mini-review .reviewer img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.mini-review .reviewer .name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary);
}
.mini-review .reviewer .meta {
  font-size: 0.78rem;
  color: #6c7;
}

.testimonials-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(95, 160, 10, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Testimonial Card */
.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 70px 24px 20px;
  box-shadow: 0 4px 24px rgba(0, 60, 48, 0.08);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0, 60, 48, 0.09);
  margin-top: 65px; /* space for avatar */
  margin-bottom: 0;
  min-height: 340px;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(0, 60, 48, 0.18);
  border-color: var(--color-primary);
}

/* Avatar - Overlapping top of card */
.testimonial-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #ffffff;
  box-shadow: 0 8px 28px -6px rgba(0, 60, 48, 0.25);
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.3, 1),
    box-shadow 0.4s ease;
  background: linear-gradient(135deg, #fff 0%, #f5fff9 100%);
}

.testimonial-card:hover .testimonial-avatar {
  transform: translateX(-50%) scale(1.07);
  box-shadow: 0 12px 40px -4px rgba(0, 60, 48, 0.3);
}

/* Quote Icon - Removed from top, will be added beside text */
.testimonial-quote-icon {
  display: none;
}

/* Testimonial Text with quote marks */
.testimonial-text {
  font-size: clamp(0.9rem, 0.92rem + 0.15vw, 1.02rem);
  line-height: 1.55;
  color: #455;
  margin-bottom: 10px;
  flex-grow: 1;
  font-style: italic;
  position: relative;
  padding: 0 6px;
}

.testimonial-text::before {
  content: "“";
  font-size: 2.8rem;
  color: var(--color-primary);
  font-family: Georgia, serif;
  position: absolute;
  left: -2px;
  top: -12px;
  line-height: 1;
  opacity: 0.18;
}

.testimonial-text::after {
  content: "”";
  font-size: 2.6rem;
  color: var(--color-primary);
  font-family: Georgia, serif;
  position: absolute;
  right: -2px;
  bottom: -6px;
  line-height: 1;
  opacity: 0.15;
}

/* Author Section - Bottom */
.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 10px;
  border-top: 2px solid rgba(0, 60, 48, 0.15);
  width: 100%;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-primary);
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.testimonial-role {
  font-size: 0.75rem;
  color: #6b7a74;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Star Rating - Hidden */
.testimonial-rating {
  display: none;
}

/* More Testimonials Button */
.more-testimonials-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 60, 48, 0.3);
  transition: all 0.3s ease;
  border: 2px solid var(--color-primary);
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

.more-testimonials-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.more-testimonials-btn:hover::before {
  transform: scaleX(1);
}

.more-testimonials-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(95, 160, 10, 0.4);
  color: white !important;
  border-color: var(--color-primary-hover);
}

.more-testimonials-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.more-testimonials-btn:hover i {
  transform: translateX(5px);
}

/* CTA Section */
.testimonials-cta {
  background-color: var(--surface-green-150);
}
.testimonials-cta .btn-cta-primary {
  border-radius: 8px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 991px) {
  .testimonials-hero {
    min-height: 450px;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
  }

  .testimonial-card {
    padding: 64px 20px 18px;
    margin-top: 60px;
    min-height: 320px;
  }

  .testimonial-text {
    font-size: 0.9rem;
    margin-top: 2px;
  }

  .testimonial-avatar {
    width: 94px;
    height: 94px;
    top: -48px;
  }

  .testimonial-text::before,
  .testimonial-text::after {
    font-size: 2.2rem;
  }

  .testimonial-text::after {
    bottom: 4px;
  }
}

@media (max-width: 768px) {
  .testimonials-hero {
    min-height: 400px;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
  }

  .testimonials-section {
    padding: 3rem 0 !important;
  }

  .testimonial-card {
    padding: 58px 18px 14px;
    margin-top: 56px;
    min-height: 300px;
  }

  .testimonial-text {
    font-size: 0.87rem;
    margin-bottom: 6px;
    padding: 0 6px;
  }

  .testimonial-avatar {
    width: 88px;
    height: 88px;
    top: -44px;
  }

  .testimonial-name {
    font-size: 0.95rem;
  }

  .more-testimonials-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    margin-top: 2.5rem;
  }

  .testimonial-text::before {
    left: -3px;
    top: -8px;
    font-size: 2rem;
  }

  .testimonial-text::after {
    right: -3px;
    bottom: 6px;
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .testimonial-card {
    padding: 52px 14px 12px;
    margin-top: 52px;
    min-height: 280px;
  }

  .testimonial-text {
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0 4px;
    margin-bottom: 6px;
  }

  .testimonial-avatar {
    width: 78px;
    height: 78px;
    top: -40px;
    border-width: 5px;
  }

  .testimonial-name {
    font-size: 0.9rem;
  }

  .testimonial-role {
    font-size: 0.8rem;
  }

  .more-testimonials-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    margin-top: 2rem;
  }

  .testimonial-text::before,
  .testimonial-text::after {
    font-size: 1.8rem;
  }

  .testimonial-text::after {
    bottom: 1px;
  }
}

/*  Header/Nav fixes (testimonials page only) */

nav.navbar .navbar-nav .nav-item + .nav-item {
  /* reduce left margin so links remain compact in the header */
  margin-left: 0.25rem;
}

/* Ensure header buttons keep expected compact sizing */
nav.navbar .btn {
  padding: 0.35rem 0.9rem; /* match header inline button sizing */
  font-size: 0.95rem;
}

/* Make sure the login/apply buttons don't inherit large hero CTA styles */
nav.navbar .btn-brand,
nav.navbar .btn-cta-primary,
nav.navbar .btn-hero-primary {
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
}
