.testimonials {
    background-image: url('../img/background-1.png');
    background-color: #fbfbfb;
    background-position: center center;
    border-radius: 20px;
    padding-bottom: 50px;
}

.testimonials__header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials__header .title {
    margin-bottom: 10px;
}

.testimonials__header  p {
    color: var(--text-dark);
    font-size: 36px;
    font-style: normal;
    font-family: "Parkinsans";
    font-weight: 400;
    line-height: 45px;
    letter-spacing: -1.1px;
    text-align: justify;
}

.testimonial-item {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 85%;
    min-height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item i {
    font-size: 40px;
    color: #f1f1f1;
    margin-bottom: 15px;
    position: absolute;
    top: 20px;
    right: 20px;

}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    margin: auto 0;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

.testimonial-content p {
    margin-bottom: 10px;
}

.testimonial-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: center;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.testimonial-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Owl Carousel custom styles */
.testimonials-carousel .owl-stage-outer {
    padding-bottom: 30px;
}

.testimonials-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    color: #333 !important;
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 48px;
    padding: 0;
    line-height: 1;
}

.testimonials-carousel .owl-nav button.owl-prev {
    color: #9fa1a9 !important;
    font-size: 56px;
    left: -60px;
}

.testimonials-carousel .owl-nav button.owl-next {
    color: #9fa1a9 !important;
    font-size: 56px;
    right: -60px;
}

.testimonials-carousel .owl-nav button:hover {
    background: transparent !important;
    color: #555 !important;
}

.testimonials-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.testimonials-carousel .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ddd;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.testimonials-carousel .owl-dot.active {
    background: #333;
}

.testimonials-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.testimonials-carousel .owl-item {
    display: flex;
    height: auto;
}

@media (max-width: 768px) {
    .testimonials-carousel .owl-nav button.owl-prev {
        left: -30px;
        font-size: 36px;
    }

    .testimonials-carousel .owl-nav button.owl-next {
        right: -30px;
        font-size: 36px;
    }
}
