/**
 * File: testimonials.css
 * Location: /css/testimonials.css
 * Last Modified: 2025-06-11 23:12:00
 * 
 * Description:
 * Styling for testimonial sections and carousels
 * Uses CSS variables from the :root defined in header.php
 */

/* Testimonial Carousel Section */
.testimonial-section {
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 40px 0;
}

.testimonial-section .section-header h2 {
  color: var(--color-text-dark);
}

.testimonial-section .section-header p.lead {
  color: var(--color-text-medium);
}

.testimonial-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/honeycomb-pattern.png');
  background-size: 300px;
  opacity: 0.05;
  z-index: -1;
}

/* New Testimonial Carousel */
.testimonial-carousel-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 60px; /* Increased side padding for nav buttons */
  box-sizing: border-box;
}

.testimonial-carousel {
  overflow: hidden;
  position: relative;
  padding: var(--spacing-md) 0;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 24px);
  width: calc(33.333% - 24px);
  margin: 0 12px;
  flex-shrink: 0;
}

.testimonial-content {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-accent);
  transition: all var(--transition-medium);
  color: var(--color-text-dark);
}

.testimonial-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-icon {
  font-size: 2rem;
  color: var(--color-accent);
  opacity: 0.7;
  margin-bottom: var(--spacing-xs);
  display: block;
}

.testimonial-content p {
  flex-grow: 1;
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--spacing-sm);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-author h4 {
  margin: 0 0 3px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-dark);
}

.testimonial-author p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
  color: var(--color-text-medium);
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #000000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.testimonial-prev {
  left: 5px;
}

.testimonial-next {
  right: 5px;
}

.testimonial-nav:hover {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

/* Responsive Testimonials */
@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 24px);
    width: calc(50% - 24px);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 24px);
    width: calc(100% - 24px);
  }
  
  .testimonial-carousel-container {
    padding: 0 40px;
  }
}
