/* ====================================================================
   GD GOENKA PUBLIC SCHOOL, PURNEA
   TESTIMONIALS COMPONENT STYLES
   ==================================================================== */

.testimonial-section {
  background-color: #f8fafc;
  padding: 70px 0 65px;
  position: relative;
  overflow: hidden;
}

.testimonial-section .section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #1e3a8a;
  margin-bottom: 8px;
  text-align: center;
  display: block;
}

.testimonial-section .section-title {
  font-size: 38px;
  font-weight: 800;
  color: #1a2b6b;
  line-height: 1.25;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: -0.5px;
}

.testimonial-section .section-subtitle {
  font-size: 16px;
  color: #64748b;
  font-weight: 400;
  text-align: center;
  margin-bottom: 45px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Styling */
.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  padding: 32px 28px;
  height: 100%;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  margin: 10px 0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.09), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
  border-color: rgba(203, 213, 225, 0.9);
}

/* Card Header */
.testimonial-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.testimonial-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
  font-size: 15px;
}

.testimonial-stars i {
  color: #f59e0b;
}

.testimonial-quote-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-quote-icon svg {
  width: 24px;
  height: 20px;
  fill: #f6e7ca;
  opacity: 0.9;
}

/* Quote Text */
.testimonial-card-body {
  flex-grow: 1;
}

.testimonial-quote-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 22px 0;
  min-height: 95px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author Info */
.testimonial-author-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.testimonial-avatar {
    width: 48px!important;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
    background-color: #e2e8f0;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.testimonial-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-author-role {
  font-size: 12px;
  font-weight: 600;
  color: #b48c36;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Carousel Dots Styling */
.testimonial-section .owl-dots {
  text-align: center;
  margin-top: 26px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.testimonial-section .owl-dots .owl-dot {
  outline: none;
  background: transparent;
  border: none;
  padding: 0;
}

.testimonial-section .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 0;
  background: #cbd5e1;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
}

.testimonial-section .owl-dots .owl-dot.active span {
  background: #0284c7;
  width: 22px;
  border-radius: 10px;
}

/* Button */
.btn-see-all-testimonials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  background: #ffffff;
  color: #1a2b6b;
  border: 2px solid #1a2b6b;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-see-all-testimonials:hover {
  background: #1a2b6b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 43, 107, 0.22);
}

.btn-see-all-testimonials i {
  transition: transform 0.2s ease;
}

.btn-see-all-testimonials:hover i {
  transform: translateX(4px);
}

/* Dedicated Testimonials Page Specific Styles */
.testimonials-page-wrapper {
  background-color: #f8fafc;
  padding: 50px 0 80px;
}

.testimonials-grid-card {
  margin-bottom: 24px;
  height: calc(100% - 24px);
}

.testimonials-grid-card .testimonial-quote-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .testimonial-section .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .testimonial-section {
    padding: 50px 0 45px;
  }

  .testimonial-section .section-title {
    font-size: 26px;
  }

  .testimonial-section .section-subtitle {
    font-size: 14.5px;
    margin-bottom: 30px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-quote-text {
    font-size: 14px;
    min-height: auto;
  }
}