
.testimonials-section {
    position: relative;
    background-color: #EEEEEE;
    color: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 80px 30px;
}
.testimonials-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonials-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: #000;
    font-size: 25px;
    position: relative;
    padding-bottom: 20px;
}
.testimonials-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    perspective: 1000px;
}
.testimonials-image-slider,
.testimonials-text-slider {
    position: relative;
    width: 45%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform-style: preserve-3d;
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.testimonial-item.active {
    opacity: 1;
    visibility: visible;
}
.testimonial-item.image .image-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15),
                inset 0 0 0 5px rgba(231, 76, 60, 0.3);
    overflow: hidden;
    animation: zoomIn 1s forwards;
    transform-origin: center center;
}
.testimonial-item.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}
.testimonial-item.image:hover img {
    filter: grayscale(0%);
}
.testimonial-item.text {
    flex-direction: column;
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: rotateY(-20deg) scale(0.9);
    animation: slideInFromRight 1s forwards;
}
 .testimonial-item.text.active {
    transform: rotateY(0deg) scale(1);
}
.testimonial-item.text .text-content {
    max-width: 500px;
}
.testimonial-item.text h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #EFA654;
    font-size: 18px;
    font-weight: bold;
}
.testimonial-item.text p {
    font-size: 15px;
    /*line-height: 1.9;*/
    color: #555;
    margin-bottom: 25px;
    font-weight: 500;
}
.testimonial-item.text h4 {
    margin-bottom: 0;
    font-size: 12px;
    color: #34495e;
    font-weight: bold;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px) rotateY(-30deg); }
    to { opacity: 1; transform: translateX(0) rotateY(0deg); }
}
@keyframes slideOutToLeft {
    from { opacity: 1; transform: translateX(0) rotateY(0deg); }
    to { opacity: 0; transform: translateX(-50px) rotateY(30deg); }
}
@media (max-width: 768px) {
    .testimonials-container {
        flex-direction: column;
        gap: 40px;
    }
    .testimonials-image-slider,
    .testimonials-text-slider {
        width: 100%;
        height: auto;
    }
    .testimonial-item.image .image-container {
        width: 180px;
        height: 180px;
    }
    .testimonials-section h2 {
        font-size: 2em;
    }
    .testimonial-item.text {
        padding: 30px;
    }
    .testimonials-nav {
        justify-content: center;
        gap: 20px;
        position: static;
        margin-top: 20px;
        transform: none;
    }
    .testimonials-nav .nav-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .testimonial-item {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;  
        animation: none;
        display: flex;    
        justify-content: center;
        align-items: center;
        height: auto;   
        padding: 20px 10px;
    }
    .testimonial-item.image .image-container {
        width: 150px; 
        height: 150px;
        border-width: 5px;
    }
    .testimonial-item.text {
        padding: 20px; 
        width: 100%; 
        transform: none !important; 
    }
     .testimonial-item.text h3 {
        font-size: 16px;
    }
    .testimonial-item.text p {
        font-size: 13px;
        line-height: 1.7;
    }
    .testimonial-item.text h4 {
        font-size: 11px;
    }
    .testimonial-item.active {
         opacity: 1;
         visibility: visible;
         transform: none;/
    }
     .testimonial-item.image.active .image-container {
         animation: none;
     }
     .testimonial-item.text.active {
         animation: none;
     }
     .testimonials-nav {
        justify-content: center;
        gap: 20px;
        position: static;
        margin-top: 20px;
        transform: none;
    }
    .testimonials-nav .nav-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
.testimonials-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: flex;
    gap: 30px;
}
.nav-button {
    background-color: #EFA654;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.nav-button:hover {
    transform: translateY(-3px) scale(1.05);
}
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.background-elements .element {
    position: absolute;
    background-color: rgba(239, 167, 84, 0.42);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: floatElement 25s infinite ease-in-out alternate;
    filter: blur(10px);
}
.background-elements .element:nth-child(1) { animation-duration: 20s; left: 5%; top: 10%; width: 180px; height: 180px; }
.background-elements .element:nth-child(2) { animation-duration: 28s; left: 70%; top: 60%; width: 150px; height: 150px; }
.background-elements .element:nth-child(3) { animation-duration: 22s; left: 40%; top: 30%; width: 120px; height: 120px; }
.background-elements .element:nth-child(4) { animation-duration: 26s; left: 15%; top: 70%; width: 100px; height: 100px; }
@keyframes floatElement {
    0% { transform: translate(0, 0) rotate(0deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { transform: translate(40px, -60px) rotate(180deg); border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;}
    100% { transform: translate(-40px, 60px) rotate(360deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}