/* variables */
:root {
    --color-black: #121212;
    --color-dark-blue: #19202d;
    --color-white: #fff;
    --color-gray-100: #e7eaee;
    --color-gray-200: #cfcfcf;
    --color-gray-400: #676d7e;
    --color-gray-500: #48556a;
    --color-purple-50: #ede4ff;
    --color-purple-300: #a775f1;
    --color-purple-500: #733fc8;
}

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

/* Typography */
html {
    font-size: 62.5%;
}

body {
    font-size: 1.3rem;
    font-family: "Barlow Semi Condensed", Arial, Helvetica, sans-serif;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background-color */
.background--light-gray {
    background: var(--color-gray-100);
}

/* Testimonial Block */
.testimonials-block {
    margin: 5rem 1.6rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 3.2rem;
    max-width: 1120px;
}

@media screen and (min-width: 375px) {
    .testimonials-block {
        margin: 7.2rem 3.2rem;
    }
}

@media screen and (min-width: 768px) {
    .testimonials-block {
        grid-template-columns: 1fr 1fr;
        column-gap: 3.2rem;
    }
}

@media screen and (min-width: 1024px) {
    .testimonials-block {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quote-icon {
    display: none;
    position: absolute;
    top: 0;
    right: 15%;
    order: 0;
    z-index: 2;
}

@media screen and (min-width: 768px) {
    .quote-icon {
        display: initial;
    }
}

.testimonial {
    padding: 3.2rem;
    border-radius: 10px;
    box-shadow: 3rem 3rem 25px 0 var(--color-gray-200);
    overflow: hidden;
    z-index: 1;
}

.testimonial--purple {
    background: var(--color-purple-500);
    color: var(--color-purple-50);
    position: relative;
}

.testimonial--purple .testimonial__avatar {
    border: 3px solid var(--color-purple-300);
}

.testimonial--gray {
    background: var(--color-gray-500);
    color: var(--color-gray-100);
}

.testimonial--white {
    background: var(--color-white);
    color: var(--color-gray-400);
}

.testimonial--dark-blue {
    background: var(--color-dark-blue);
    color: var(--color-gray-200);
}

.testimonial--dark-blue .testimonial__avatar {
    border: 3px solid var(--color-purple-300);
}

@media screen and (min-width: 768px) {
    .testimonial--purple {
        grid-column: span 2;
    }

    .testimonial--dark-blue {
        grid-column: span 2;
    }

    .testimonial--white:last-of-type {
        grid-column: span 2;
    }
}

@media screen and (min-width: 1024px) {
    .testimonial--white:last-of-type {
        grid-column: 4 / 5;
        grid-row: 1 / 3;
    }
}

.testimonial__info,
.testimonial__heading {
    margin-bottom: 1.6rem;
}

.testimonial__header {
    display: flex;
}

.testimonial__avatar {
    height: 3rem;
    width: 3rem;
    object-fit: cover;
    border-radius: 100%;
    margin-right: 1.4rem;
}

.testimonial__name {
    font-weight: 600;
    line-height: 1.1;
}

.testimonial__status {
    font-size: 1.1rem;
}

.testimonial__heading {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    z-index: 3;
    position: relative;
}

