/* Testimonials Section */
.testimonials-section {
background-color: #f9f9fb;
padding: var(--section-padding);
position: relative;
}
.testimonials-section::before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-image:
radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.03) 0%, transparent 25%),
radial-gradient(circle at 80% 80%, rgba(88, 101, 242, 0.03) 0%, transparent 25%);
pointer-events: none;
}
/* Carousel Layout */
.testimonial-carousel {
max-width: 1000px;
margin: 40px auto;
position: relative;
}
.carousel-container {
position: relative;
overflow: hidden;
margin-bottom: 20px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
background: white;
}
.carousel-slides {
position: relative;
height: 750px; /* Set a fixed initial height to prevent jumps */
min-height: 200px;
transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slides.height-initialized {
transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
visibility: hidden;
transition: opacity 0.6s ease, visibility 0.6s ease;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.carousel-slide.active {
opacity: 1;
visibility: visible;
position: relative;
}
.carousel-slide img {
max-width: 100%;
height: auto;
display: block;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
/* Remove transform scale and excess margin */
}
/* Carousel Navigation */
.carousel-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 50px;
height: 50px;
border-radius: 50%;
background: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
color: var(--primary-color);
}
.carousel-arrow-left {
left: 15px;
}
.carousel-arrow-right {
right: 15px;
}
.carousel-arrow:hover {
background: var(--accent-color);
color: white;
transform: translateY(-50%) scale(1.1);
}
.carousel-arrow:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.3);
}
/* Carousel Indicators */
.carousel-indicators {
display: flex;
justify-content: center;
margin-top: 20px;
gap: 10px;
}
.indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ccc;
border: none;
cursor: pointer;
transition: all 0.3s ease;
}
.indicator.active {
background: var(--accent-color);
transform: scale(1.2);
}
.indicator:hover {
background: #aaa;
}
.indicator.active:hover {
background: var(--accent-color);
}
/* Mobile Adjustments */
@media (max-width: 768px) {
.carousel-container {
margin: 0 10px 20px 10px;
}
.carousel-arrow {
width: 40px;
height: 40px;
}
.carousel-arrow-left {
left: 10px;
}
.carousel-arrow-right {
right: 10px;
}
.carousel-slide {
padding: 15px;
}
.indicator {
width: 10px;
height: 10px;
}
}
@media (max-width: 576px) {
.carousel-arrow {
width: 36px;
height: 36px;
}
.carousel-arrow svg {
width: 20px;
height: 20px;
}
.carousel-slide {
padding: 10px;
}
}