/* 
 * TourAdviser - Testimonials and FAQ Styles
 * Styles for testimonial sliders and FAQ accordions
 */

/* ===== Testimonial Styles ===== */
.testimonials {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-slider {
  display: grid;
  gap: 2rem;
  margin: 0 auto;
  max-width: 1000px;
}

@media (min-width: 768px) {
  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  padding: 1.5rem;
  flex-grow: 1;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: rgba(30, 107, 184, 0.1);
  position: absolute;
  top: 0;
  left: 1rem;
  line-height: 1;
}

.testimonial-content p {
  position: relative;
  z-index: 1;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #f2f7fc;
  border-top: 1px solid #edf2f7;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.testimonial-author-info h4 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.testimonial-author-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

/* Navigation buttons for slider (if implemented with JS) */
.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #ddd;
  margin: 0 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.testimonial-nav button:hover {
  background-color: #1e6bb8;
  color: #fff;
  border-color: #1e6bb8;
}

/* ===== FAQ Styles ===== */
.faq-section {
  padding: 4rem 0;
  background-color: #fff;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  flex-grow: 1;
}

.faq-toggle {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: #1e6bb8;
  transition: transform 0.3s ease;
}

.faq-toggle::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.faq-toggle::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

.faq-item.active .faq-question {
  background-color: #e6f0f9;
}

.faq-item.active .faq-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1rem 1.5rem;
  max-height: 500px; /* Adjust based on expected content height */
}

.faq-answer p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* ===== Call to Action Section ===== */
.cta-section {
  padding: 4rem 0;
  background-color: #1e6bb8;
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
  color: #fff;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: #1e6bb8;
} 