.testimonial-area .owl-carousel .owl-item img {
    width: auto;
    margin: auto;
}

.testimonial-area {
    position: relative; /* Needed for absolute positioning */
    background-color: #f5f5dc;
}

.testimonial-area .owl-theme .owl-nav {
    position: absolute !important;
    top: 50% !important;
    width: 100% !important;
    transform: translateY(-50%) !important;
    pointer-events: none;
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 0 !important;
    padding: 0 50px; /* Adjust horizontal spacing */
}

.testimonial-area .owl-theme .owl-nav .owl-prev,
.testimonial-area .owl-theme .owl-nav .owl-next {
    background: rgba(0,0,0,0);
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    pointer-events: auto !important;
}

.testimonial-area .owl-theme .owl-nav .owl-prev i,
.testimonial-area .owl-theme .owl-nav .owl-next i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--main-color);
    display: inline-block;
    color: var(--white-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 50px;
}

.testimonial-area .owl-theme .owl-nav .owl-prev i::after,
.testimonial-area .owl-theme .owl-nav .owl-next i::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--heading-color);
    z-index: -1;
    transition: var(--transition);
}

.testimonial-area .owl-theme .owl-nav .owl-prev:hover i::after,
.testimonial-area .owl-theme .owl-nav .owl-next:hover i::after {
    height: 100%;
    bottom: auto;
    top: 0;
    animation: fadeInLeft 1s linear;
}

.testimonial-area.style-three {
    background-image: url(.././images/testimonial/testimonial-bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
}

.testimonial-area.style-three .owl-theme .owl-nav .owl-prev i,
.testimonial-area.style-three .owl-theme .owl-nav .owl-next i {
    background: rgba(0,0,0,0);
    border: 1px solid var(--optional-color) !important;
    color: var(--optional-color) !important;
}

.testimonial-area.style-three .owl-theme .owl-nav .owl-prev i::after,
.testimonial-area.style-three .owl-theme .owl-nav .owl-next i::after {
    background-color: var(--optional-color);
}

.testimonial-area.style-three .owl-theme .owl-nav .owl-prev:hover i,
.testimonial-area.style-three .owl-theme .owl-nav .owl-next:hover i {
    color: var(--white-color) !important;
}

.testimonial-area.style-three .single-testimonial-content ul li i {
    color: var(--optional-color);
}

.single-testimonial-content {
    text-align: center;
    max-width: 750px;
    margin: auto;
}

.single-testimonial-content h3 {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.single-testimonial-content span {
    margin-bottom: 20px;
    display: block;
}

.single-testimonial-content p {
    color: var(--heading-color);
}

.single-testimonial-content ul {
    padding: 0;
    list-style-type: none;
    margin-top: 21px;
    margin-bottom: 0;
}

.single-testimonial-content ul li {
    display: inline-block;
    margin: 0 5px;
}

.single-testimonial-content ul li i {
    color: var(--main-color);
    font-size: 25px;
}

.testimonial-avatar {
    position: relative;
    display: inline-block;
}

.testimonial-avatar .avatar {
    border-radius: 50%;
}

.testimonial-avatar .quat {
    position: absolute;
    top: 10px;
    left: 10px;
}
