.quotes-header {
    background: linear-gradient(
        rgba(33, 33, 33, 0.9),
        rgba(33, 33, 33, 0.7)),
        url(../images/testimonials-bg.jpg) 50% 40% no-repeat;
}

.quotes-section {
    width: 100%;
    height: 140vh;
    background-color: #191919;
    position: relative;
}

.quotes-top {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quotes-top h3 {
    font-size: 2rem;
    font-weight: 300;
    color: #ccc;
}

.quotes-top h1 {
    font-size: 5rem;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .4rem;
    margin: 2rem 0;
}

.quotes-top i {
    font-size: 1.6rem;
    color: #32b0ce;
    margin: 0 0.5rem;
}

.quotes-wrapper {
    width: 55%;
    height: 50rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.slider {
    width: 500%;
    height: 100%;
    display: flex;
    transition: all 1s cubic-bezier(1, 0, 0, 1);
}

.slide {
    width: 20%;
    position: relative;
    cursor: pointer;
}

.slide-bg {
    width: 70%;
    height: 65%;
    background-color: rgba(50, 176, 206, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateZ(-6deg);
    border-radius: 2rem;
    opacity: .7;
}

.slide-content {
    width: 70%;
    height: 65%;
    background-color: #eee;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5rem;
}

.slide i {
    font-size: 12rem;
    color: #32b0ce;
    position: absolute;
}

.slide i:nth-child(1) {
    top: -20%;
    left: 10%;
}

.slide i:nth-child(2) {
    bottom: -20%;
    right: 10%;
}

.slide-img {
    width: 35%;
    height: 16rem;
    margin-right: 3rem;
    position: relative;
}

.slide-img::before,
.slide-img::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    border: .2rem solid rgba(0, 0, 0, 0.4);
    border-radius: 3rem 0 3rem 0;
    z-index: -1;
}

.slide-img::after {
    top: -1rem;
    left: -0.5rem;
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3rem 0 3rem 0;
    filter: grayscale(100%);
    transition: filter 1s;
    cursor: pointer;
}

.slide-img img:hover {
    filter: grayscale(0);
}

.slide-text {
    width: 65%;
}

.slide-text h3 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #111;
    margin-bottom: 1rem;
}

.slide-text p {
    width: 32rem;
    font-size: 1.4rem;
    font-weight: 300;
    color: #020d14;
    line-height: 1.6rem;
    margin-bottom: 3rem;
}

.slide-text .page {
    font-size: 1rem;
    color: #072c35;
}

.controls i {
    width: 5rem;
    height: 5rem;
    background-color: #7b8584;
    border-radius: 50%;
    opacity: .6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #444;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.controls i:nth-child(1) {
    left: 15%;
}

.controls i:nth-child(2) {
    right: 15%;
}

.dots {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.dots span {
    width: 1rem;
    height: 1rem;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
}

.dots span.active {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
}

@media(max-width: 1280px) {
    .slide-bg {
        width: 80%;
    }

    .slide-content {
        width: 80%;
    }
}

@media(max-width: 1024px) {
    .slide-bg {
        width: 90%;
    }

    .slide-content {
        width: 90%;
    }

    .controls i:nth-child(1) {
        left: 10%;
    }

    .controls i:nth-child(2) {
        right: 10%;
    }
}

@media(max-width: 820px) {
    .quotes-section {
        height: 100vh;
    }

    .slide-bg {
        width: 95%;
    }

    .slide-content {
        width: 95%;
    }

    .slide-text p {
        width: 30rem;
    }

    .controls i:nth-child(1) {
        display: none;
    }

    .controls i:nth-child(2) {
        display: none;
    }
}

@media(max-width: 430px) {
    .quotes-wrapper {
        width: 60%;
        height: 60rem;
    }

    .slide-bg {
        width: 80%;
        height: 90%;
    }

    .slide-content {
        width: 80%;
        height: 90%;
        flex-direction: column;
        justify-content: space-evenly;
    }

    .slide i {
        font-size: 7rem;
    }

    .slide i:nth-child(1) {
        top: -5%;
    }

    .slide i:nth-child(2) {
        bottom: -5%;
    }

    .slide-img {
        width: 85%;
        height: 16rem;
        margin-right: 0;
    }

    .slide-text {
        width: 100%;
  
    }

    .slide-text p {
        width: 15rem;
        padding-right: .5rem;
    }
}

@media(max-width: 375px) {
    .quotes-section {
        height: 130vh;
    }
}