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

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: var(--body-font);
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  font-size: 20px;
}

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

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

.testimonials-4 {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 25px;
}

.testimonials-4 .testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-4 .testimonials-header h2 {
  font-size: 42px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.testimonials-4 .testimonials-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.testimonials-4 .testimonials-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonials-4 .testimonial-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative; /* Change from testimonial-profile to testimonial-item */
}

.testimonials-4 .testimonial-header {
  background: var(--primary-color);
  padding: 30px;
  color: white;
  position: relative;
}

.testimonials-4 .profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  margin-bottom: 15px;
}

.testimonials-4 .profile-info {
  text-align: center;
}

.testimonials-4 .profile-name {
  font-size: 24px;
  margin-bottom: 5px;
}

.testimonials-4 .profile-details {
  font-size: 16px;
  opacity: 0.9;
}

.testimonials-4 .testimonial-content {
  padding: 30px;
}

.testimonials-4 .pain-history {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 8px;
}

.testimonials-4 .history-label {
  color: var(--tertiary-color);
  font-size: 14px;
}

.testimonials-4 .history-value {
  color: var(--primary-color);
  font-weight: bold;
}

.testimonials-4 .testimonial-quote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--tertiary-color);
  margin: 0 0 30px 0;
  padding: 20px;
  background: rgba(129, 183, 26, 0.1);
  border-radius: 8px;
  position: relative;
  font-style: italic;
}

.testimonials-4 .testimonial-quote::before {
  content: "\201C"; /* Using Unicode for left double quotation mark */
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 60px;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonials-4 .results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.testimonials-4 .result-item {
  text-align: center;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.testimonials-4 .result-item:hover {
  transform: translateY(-3px);
}

.testimonials-4 .result-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}

.testimonials-4 .result-label {
  display: block;
  font-size: 12px;
  color: var(--tertiary-color);
  margin-bottom: 5px;
}

.testimonials-4 .result-value {
  display: block;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
}

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

@media (max-width: 768px) {
  .testimonials-4 .testimonials-header h2 {
    font-size: 32px;
  }

  .testimonials-4 .results-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-4 .success-badge {
    position: static;
    display: inline-block;
    margin-top: 15px;
  }
}

/* Testimonials Template 4 - Updated image centering */
.testimonials-4 .testimonial-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background: var(--primary-color);
  color: white;
}

.testimonials-4 .profile-image-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.testimonials-4 .profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.testimonials-4 .success-badge {
  position: absolute;
  bottom: -5px;
  right: -20px;
  background: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Testimonials Template 4 - Updated badge positioning */
.testimonials-4 .testimonial-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background: var(--primary-color);
  color: white;
  position: relative; /* Added for absolute positioning context */
}

.testimonials-4 .profile-image-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.testimonials-4 .profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.testimonials-4 .success-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
