@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600&display=swap');

:root {
    --purple-50: hsl(260, 100%, 95%);
    --purple-300: hsl(264, 82%, 80%);
    --purple-500: hsl(263, 55%, 52%);

    --white: hsl(0, 0%, 100%);
    --grey-100: hsl(214, 17%, 92%);
    --grey-200: hsl(0, 0%, 81%);
    --grey-400: hsl(224, 10%, 45%);
    --grey-500: hsl(217, 19%, 35%);
    --dark-blue: hsl(219, 29%, 14%);
    --black: hsl(0, 0%, 7%);
}


body {
    font-family: 'Barlow Semi Condensed', sans-serif;
    background-color: var(--grey-100);
    color: var(--white);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1110px;
    margin: 24px auto;
    padding: 24px;
}

.testimonial--purple {
    background-image: url('images/bg-pattern-quotation.svg');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 80px;
    background-color: var(--purple-500);
    color: var(--white);
    border-radius: 10px;
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.testimonial__header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    margin-left: 10px;
}

.testimonial__header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: thin solid var(--white);
}

.testimonial__author h2{
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
}

.testimonial__author p {
    font-size: 13px;
    color: var(--grey-200);
    margin-top: auto;
}

.testimonial__highlight {
    font-weight: 600;
    color: var(--white);
    font-size: 18px;
    padding-left: 20px;
    margin-top: -5px;
    padding-right: 20px;
}

.testimonial__text {
    padding-left: 20px;
    padding-bottom: 20px;
    padding-right: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--purple-300);
    font-weight: 500;
}

.testimonial--grey {
    grid-column: 3;
    grid-row: 1;
    background: var(--grey-500);
    border-radius: 10px;
}

.testimonial--grey p:last-child{
    color: var(--grey-200);
    font-weight: 500;
}

.testimonial--white {
    grid-column: 4;
    grid-row: 1 / 3;
    background: var(--white);
    border-radius: 10px;
    color: var(--black);
    padding-bottom: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial--white p {
    color: var(--black);
}

.testimonial--white p:last-child {
    color: var(--grey-400);
    font-size: 14px;
    line-height: 2;
    font-weight: 500;
}

.testimonial--white .testimonial__name {
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
}

.testimonial--black {
    grid-column: 2 / 4;
    grid-row: 2;
    background: var(--black);
    border-radius: 10px;
}

.testimonial--black p:last-child {
    color: var(--grey-200);
    font-size: 14px;
    font-weight: 500;
}

.testimonial--light {
    grid-column: 1;
    grid-row: 2;
    background: var(--white);
    border-radius: 10px;
    color: var(--black);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial--light p {
    color: var(--black);
}

.testimonial--light p:last-child {
    color: var(--grey-400);
    font-size: 14px;
    font-weight: 500;
}

.testimonial--light .testimonial__name{
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .testimonials-grid {
        display: flex;
        flex-direction: column;
    }
}