/* ====================================
   Root Variables and Base Styles
   ==================================== */
/* Root Variables */
:root {
  --primary-color: #81b71a;
  --secondary-color: #4ebbf7;
  --tertiary-color: #6d6d6d;
  --body-font: Arial, sans-serif;
  --title-font: Helvetica, Arial, sans-serif;
}

/* Base Typography */
body {
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--title-font);
}

p,
span,
a,
li,
button {
  font-family: var(--body-font);
}

/* ====================================
     Common Components
     ==================================== */
.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.3;
}

.feature-item {
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
}

.tag {
  transition: background-color 0.2s ease;
}

.tag:hover {
  background-color: var(--secondary-color);
}

.cta-button {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.testimonials-5 {
  padding: 120px 0;
  background: #f8f8f8;
}

.testimonials-5 .testimonials-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.testimonials-5 .masonry-grid {
  column-count: 3;
  column-gap: 30px;
}

.testimonials-5 .testimonial-card {
  break-inside: avoid;
  margin-bottom: 30px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.testimonials-5 .testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonials-5 .card-header {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--primary-color);
}

.testimonials-5 .author-avatar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonials-5 .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-5 .card-content {
  padding: 60px 30px 30px;
}

.testimonials-5 .testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tertiary-color);
  margin-bottom: 20px;
}

.testimonials-5 .author-info {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonials-5 .author-info h4 {
  font-size: 18px;
  color: var(--tertiary-color);
  margin: 0 0 5px 0;
}

.testimonials-5 .author-info p {
  font-size: 14px;
  color: var(--tertiary-color);
  opacity: 0.8;
  margin: 0;
}

/* Common Testimonial Styles */
.testimonial-highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial-highlight-secondary {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Media Queries for Testimonials */
@media (max-width: 1200px) {
  .testimonials-5 .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 992px) {
  .testimonials-3 .timeline-wrapper::before {
    left: 20px;
  }

  .testimonials-3 .timeline-item,
  .testimonials-3 .timeline-item:nth-child(even) {
    flex-direction: row;
  }

  .testimonials-3 .timeline-marker {
    margin-right: 40px;
  }

  .testimonials-3 .testimonial-card {
    width: calc(100% - 90px);
  }
}

@media (max-width: 768px) {
  .testimonials-1 .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-4 .focus-card {
    padding: 30px;
  }

  .testimonials-4 .highlight-text {
    font-size: 24px;
  }

  .testimonials-5 .masonry-grid {
    column-count: 1;
  }

  .testimonials-1 h2,
  .testimonials-2 h2,
  .testimonials-3 h2,
  .testimonials-4 h2,
  .testimonials-5 h2 {
    font-size: 36px;
  }
}
