/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  background-color: hsl(210, 46%, 95%);
  padding: 70px 24px;
  min-height: 100vh;
}

/* Grid container */
.testimonials-grid {
  max-width: 1110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 30px 24px;
}

/* Grid layout */
.daniel {
  grid-column: 1 / 3;
  grid-row: 1;
  background-color: hsl(263, 55%, 52%);
  background-image: url('./images/bg-pattern-quotation.svg');
  background-repeat: no-repeat;
  background-position: top 0 right 80px;
  color: white;
}

.jonathan {
  grid-column: 3;
  grid-row: 1;
  background-color: hsl(217, 19%, 35%);
  color: white;
}

.jeanette {
  grid-column: 1;
  grid-row: 2;
  background-color: white;
  color: hsl(217, 19%, 35%);
}

.patrick {
  grid-column: 2 / 4;
  grid-row: 2;
  background-color: hsl(219, 29%, 14%);
  color: white;
}

.kira {
  grid-column: 4;
  grid-row: 1 / 3;
  background-color: white;
  color: hsl(217, 19%, 35%);
}

/* Testimonial card styles */
.testimonial {
  padding: 26px 32px 32px 32px;
  border-radius: 8px;
  box-shadow: 40px 60px 50px -47px rgba(72, 85, 106, 0.247378);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.profile-image {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 17px;
}

.daniel .profile-image {
  border: 2px solid #A775F1;
}

.name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}

.status {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.5;
}

.testimonial-content {
  font-style: normal;
}

.quote-highlight {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.quote-body {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  opacity: 0.7;
}

/* Attribution */
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 40px;
  color: hsl(228, 45%, 44%);
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    padding: 71px 24px 26px 24px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    gap: 24px;
  }
  
  .daniel {
    grid-column: 1;
    grid-row: 1;
    background-position: top 0 right 24px;
  }
  
  .jonathan {
    grid-column: 1;
    grid-row: 2;
  }
  
  .jeanette {
    grid-column: 1;
    grid-row: 3;
  }
  
  .patrick {
    grid-column: 1;
    grid-row: 4;
  }
  
  .kira {
    grid-column: 1;
    grid-row: 5;
  }
  
  .testimonial {
    padding: 26px 32px 32px 32px;
  }
}
