/**
 * Modified template-testimonials.css - Styling for testimonial templates
 * With improved dark theme support and golden glow effect for cards
 */

/* Premium Section Styling */
.premium-section {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
}

/* Premium Glow Effects */
.premium-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  z-index: -1;
  filter: blur(50px);
}

.premium-glow-primary {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(33, 147, 176, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  top: -120px;
  right: 5%;
}

.premium-glow-secondary {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(var(--accent-gold-rgb), 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -150px;
  left: 10%;
}

/* Section Header Styling */
.section-header h2 {
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle-above {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--light-text-secondary);
  margin-top: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Enhanced visibility for section description */
.section-description {
  color: var(--light-text-primary);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Testimonial Card Styling */
.testimonial-card {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: none;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Golden glow effect for cards */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 175, 55, 0.2) 0%,
    rgba(212, 175, 55, 0) 70%
  );
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* Card glow inside element */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0) 0%,
    rgba(212, 175, 55, 0.1) 50%,
    rgba(212, 175, 55, 0) 100%
  );
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-card:hover .card-glow {
  opacity: 1;
}

/* Light theme styles */
body:not(.dark-theme) .testimonial-card {
  background-color: var(--light-secondary);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Dark theme styles */
body.dark-theme .testimonial-card {
  background-color: var(--dark-secondary);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Enhanced Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card-animated {
  animation: fadeInUp 0.8s forwards;
}

.testimonial-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
}

/* Testimonial Content */
.testimonial-content {
  position: relative;
  padding: 25px 20px;
  border-radius: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Light theme styles */
body:not(.dark-theme) .testimonial-content {
  background-color: var(--light-secondary);
  color: var(--light-text-primary);
}

/* Dark theme styles */
body.dark-theme .testimonial-content {
  background-color: var(--dark-secondary);
  color: var(--dark-text-primary);
}

.testimonial-content:before {
  content: "\201C";
  font-family: Georgia, serif;
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 4rem;
  line-height: 1;
  opacity: 0.2;
  color: rgba(212, 175, 55, 0.5);
}

.testimonial-text {
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Light theme styles */
body:not(.dark-theme) .testimonial-text {
  color: var(--light-text-secondary);
}

/* Dark theme styles */
body.dark-theme .testimonial-text {
  color: var(--dark-text-secondary);
}

/* Author Info */
.author-info {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  position: relative;
}

/* Gold border for author image */
.author-image {
  border: 2px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details {
  flex-grow: 1;
}

.author-name {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 1rem;
}

/* Light theme styles */
body:not(.dark-theme) .author-name {
  color: var(--light-text-primary);
}

/* Dark theme styles */
body.dark-theme .author-name {
  color: var(--dark-text-primary);
}

.author-location {
  color: rgba(212, 175, 55, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
}

.author-location i {
  margin-right: 5px;
}

/* Rating Stars */
.testimonial-rating {
  margin-top: 10px;
}

.testimonial-rating i {
  color: rgba(212, 175, 55, 0.9);
  font-size: 0.9rem;
  margin-right: 2px;
}

/* Carousel Controls */
.testimonial-control .control-icon {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial-control:hover .control-icon {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.7), rgba(212, 175, 55, 0.9));
  color: var(--dark-text-primary);
  transform: scale(1.1);
}

.testimonial-control .control-icon i {
  color: var(--dark-color);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.testimonial-control:hover .control-icon i {
  color: var(--dark-text-primary);
}

/* Carousel Indicators */
#testimonialCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.3);
  margin: 0 6px;
  transition: all 0.3s ease;
}

#testimonialCarousel .carousel-indicators .active {
  background-color: rgba(212, 175, 55, 0.8);
  width: 12px;
  height: 12px;
}

/* Loading Indicator */
#testimonials-loading {
  padding: 20px 0;
}

#testimonials-loading .spinner-border {
  color: rgba(212, 175, 55, 0.8) !important;
}

#testimonials-loading .loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 15px;
  color: rgba(212, 175, 55, 0.8);
}

/* View All Button */
#testimonials .btn-primary {
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

#testimonials .btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.7), rgba(212, 175, 55, 0.9));
  z-index: -1;
  transition: all 0.5s ease;
}

#testimonials .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

#testimonials .btn-primary:hover:before {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 1));
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 991px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .testimonial-control .control-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767px) {
  .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .author-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .author-image {
    margin-bottom: 10px;
  }
}