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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Barlow Semi Condensed', sans-serif;
}
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
body{
   display: flex;
   flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: hsl(260, 100%, 95%);
    padding: 1rem;
}
section{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.3rem;
    padding: 1rem;
    width: 75%;
}
.card {
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    box-shadow: 2px 2px 10px hsl(224, 10%, 45%, 0.5);
     color: hsl(0, 0%, 100%);
    
}
.card .profile{
    display: inline-flex;
    align-items: center;
    gap: 1rem;
   
}
.profile img{
    width: 30px;
    height: 30px;
    border-radius: 100%;
}
.profile h4{
  font-size: 0.8rem;
  font-weight: 500;
}
.profile p{
    font-size: 0.6rem;
    opacity: 0.5;
    
}
.content{
    margin-top: 0.6rem;
}
.content h2{
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 600;;
}
.content p{
    margin-top: 0.6rem;
    font-size: 0.7rem;
    line-height: 1.5;
    opacity: 0.5;
     
}
.card-1{
    grid-column: 1/span 2;
    grid-row: 1;
    background-color: hsl(263, 55%, 52%);
  
}

.quotation{
    display: flex;
    align-items: center;
    gap: 0.5rem;
   
}
.card-2{
    grid-column: 3;
    grid-row: 1;
    background-color: hsl(217, 19%, 35%);
}
.card-5{
    grid-column: 4;
    grid-row: 1/ span 2;
    background-color: hsl(0, 0%, 100%);
    color: hsl(0, 0%, 7%)
}
.card-3{
    grid-column: 1;
    grid-row: 2;
    background-color: hsl(0, 0%, 100%);
    color:hsl(0, 0%, 7%);
}
.card-4{
    grid-column: 2/span 2;
    grid-row: 2;
    background-color: hsl(219, 29%, 14%);
}
.feedback{
    display: flex;
    z-index: 2;
    position: relative;
}
.quotation{
    z-index: -100;
    position: absolute;
    right: -1px;
    top: -4rem;
    padding-left: 2rem;
}
/* ==========
   responsive
   ==========
*/
@media(max-width: 1200px){
    section{
        width: 80%;
        padding: 0.6rem;
    }
}
@media(max-width: 1000px){
    section{
        width: 90%
    }
}
@media(max-width: 900px){
    section{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto;
    }
    .card-1{
        grid-column: 1/span 2;;
        grid-row:1
    }
    .card-2{
        grid-column: 1;
        grid-row: 2
    }
    .card-3{
        grid-column: 2;
        grid-row: 2;
    }
    .card-4{
        grid-column: 1/span 2;
        grid-row: 3
    }
    .card-5{
        grid-column: 1/span 2;
        grid-row: 4;
    }
    .card{
        padding: 1.3rem;
    }
    section{
       padding: 2rem 0;
    }
}
@media(max-width: 520px){
    section{
        display: block;

    }
    .card{
        margin: 1.5rem 0
    }
    section{
        padding: 0.6rem
    }
}