/* ====================================
   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);
}

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

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

/* Testimonials Template 3: Modern Card Layout */
.testimonials-3 {
  padding: 120px 0;
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
}

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

.testimonials-3 .testimonials-header {
  text-align: center;
  margin-bottom: 80px;
}

.testimonials-3 h2 {
  font-size: 48px;
  color: var(--tertiary-color);
  margin-bottom: 25px;
  line-height: 1.2;
}

.testimonials-3 .lead-text {
  font-size: 24px;
  color: var(--tertiary-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonials-3 .testimonials-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

/* Featured Testimonial */
.testimonials-3 .testimonial-featured .testimonial-card {
  background: white;
  border-radius: 25px;
  padding: 40px;
  height: 100%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.testimonials-3 .success-tag {
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Regular Testimonials */
.testimonials-3 .testimonials-regular {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.testimonials-3 .testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

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

/* Card Header */
.testimonials-3 .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.testimonials-3 .author-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonials-3 .author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

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

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

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

/* Testimonial Content */
.testimonials-3 .pain-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--tertiary-color);
  margin-bottom: 25px;
}

.testimonials-3 .results-text {
  background: rgba(129, 183, 26, 0.08);
  padding: 25px;
  border-radius: 15px;
  margin-top: 25px;
  border-left: 4px solid var(--primary-color);
}

.testimonials-3 .testimonial-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--tertiary-color);
}

/* Media Queries */
@media (max-width: 992px) {
  .testimonials-3 .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .testimonials-3 {
    padding: 80px 0;
  }

  .testimonials-3 h2 {
    font-size: 36px;
  }

  .testimonials-3 .lead-text {
    font-size: 20px;
  }

  .testimonials-3 .testimonial-card {
    padding: 25px;
  }

  .testimonials-3 .pain-description {
    font-size: 18px;
  }
}

/* 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;
  }
}
