/* ====== Testimonials Top Section ====== */
.testimonials-top {
    display: flex;
    justify-content: center;
    gap: 30rem;
    padding-top: 97px;
    margin-bottom: -18rem;
}

.testimonials-top h2 {
    text-transform: uppercase;
}

.testimonials-title-left {
    padding-top: 221px;
    max-width: 31%;
    font-size: 43px;
    line-height: 55px;
}

.testimonials-title-right {
    text-align: right;
    max-width: 35%;
    font-size: 43px;
    line-height: 55px;
    padding-top: 38px;
}

/* ====== Testimonials Container ====== */
.testimonials-container {
    max-width: 1350px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
}

/* ====== Testimonial Content ====== */
.testimonial-content {
    padding: 24px;
    background: radial-gradient(55.21% 155.24% at 55.21% 50.22%, #EFECF3 0%, #D0E0EE 100%);
    border-radius: 16px;
    max-width: 333px;
    margin: -40px auto 0 auto;
    position: relative;
    transform: translateX(200px);
}

.testimonial-content p {
    font-size: 16px;
    line-height: 24px;
}

.testimonial-author {
    text-align: right;
    display: block;
}

.testimonial-text {
    padding-top:14px;
    padding-bottom: 13px;
}

/* ====== Testimonial Image ====== */
.testimonial-image {
    display: flex;
    justify-content: center;
}

.testimonial-image img {
    width: 383px;
    height: 437px;
    object-fit: cover;
    object-position: 70% 100%;
    border-radius: 16px;
}

/* ====== Quote ====== */
.quote {
    margin-top: -80px;
    display: flex;
    justify-content: center;
}

/* ====== Slick Arrows ====== */
.testimonials-row .slick-arrow {
    bottom: 17%;
    top: auto;
    transform: translateX(-50%);
    z-index: 111;
}

.testimonials-row .slick-prev {
    left: 37%;
}

.testimonials-row .slick-next {
    left: 47%;
}

.testimonials-row .slick-prev::before,
.testimonials-row .slick-next::before {
    content: '';
    display: block;
    width: 27px;
    height: 10px;
    background-size: contain;
    transition: opacity 0.3s ease;
}

.testimonials-row .slick-prev::before {
    background: url("data:image/svg+xml,%3Csvg width='27' height='10' viewBox='0 0 27 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.74074 9.029L1 5.029M1 5.029L5.74074 1M1 5.029L25.8889 5.029' stroke='%23121A20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
    transform: translateX(-50%);
}

.testimonials-row .slick-next::before {
    background: url("data:image/svg+xml,%3Csvg width='27' height='10' viewBox='0 0 27 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.1479 9.029L25.8887 5.029M25.8887 5.029L21.1479 1M25.8887 5.029L0.999783 5.029' stroke='%23121A20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
}

.testimonials-row .slick-prev:hover::before,
.testimonials-row .slick-next:hover::before {
    opacity: 0.8;
}

/* ====== Testimonials Bottom ====== */
.testimonials-bottom {
    position: absolute;
    bottom: 0;
    left: 5.3rem;
}

.testimonials-bottom-icons img {
    width: 56px;
    height: 56px;
    border: 1px solid var(--color-1);
    border-radius: 50%;
    object-position: 85% 100%;
    object-fit: cover;
}
.testimonials-bottom-title{
    padding-bottom: 15px;
}
.testimonials-bottom-icons img:nth-child(n+2) {
    margin-left: -23px;
    position: relative;
    z-index: -1;
}

.testimonials-bottom-title h3 {
    font-weight: 400;
    font-size: 32px;
    line-height: 39px;
    font-family: var(--font-main);
}

.testimonials-bottom-title p {
    font-size: 16px;
    line-height: 24px;
    font-family: var(--font-main);
}

/* ====== Media Queries ====== */
@media (max-width: 1400px) { .testimonials-container { max-width: 1300px; } }
@media (max-width: 1320px) { .testimonials-container { max-width: 1200px; } }
@media (max-width: 1220px) { .testimonials-container { max-width: 1100px; } }
@media (max-width: 1150px) { .testimonials-container { max-width: 950px; } }
@media (max-width: 1000px) { .testimonials-container { max-width: 900px; } }
@media (max-width: 950px) {
    .testimonials-container { max-width: 800px; }
    .testimonials-top { gap: 24rem; }
}
@media (max-width: 850px) {
    .testimonials-container { max-width: 700px; }
    .testimonial-content { max-width: 225px; transform: translateX(154px); }
}
@media (max-width: 1110px){
    .testimonials-title-right,
    .testimonials-title-left {
        max-width: 100%;
        font-size: 25px;
        line-height: 30px;
    }
    .testimonial-image img { width: 352px; height: 378px; }
}
@media (max-width: 767px){
    .testimonials-top{
        gap: 0;
        margin-bottom: 0;
        padding: 72px 10px 0;
        flex-direction: column;
    }
    .testimonials-title-right { text-align: left; font-size: 32px; line-height: 120%; }
    .testimonials-title-left {
        padding-top: 7px;
        text-align: right;
        font-size: 32px;
        line-height: 120%;
        max-width: 262px;
        margin-left: auto;
    }
    .slider-container { padding-top: 18px; }
    .testimonials-bottom {
        position: static;
        padding: 81px 10px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .testimonial-image img {
        border-radius: 8px;
        height: 403px;
    }
    .testimonial-content {
        transform: none;
        margin: -70px auto 0 43px;
        max-width: 268px;
        padding: 12px 24px;
    }
    .quote { margin-top: -66px; }
    .testimonials-row .slick-arrow { bottom: -8%; }
    .testimonials-row .slick-prev { left: auto; right: 80px; }
    .testimonials-row .slick-next { left: auto; right: 0; }
    .testimonial-text { padding-bottom: 0; }
}
@media (max-width: 400px){
    .testimonial-image img{ width: 100%; }
}
