:root {
--primary-color: #0a2540;
--accent-color: #87cf3a;
--text-color: #333;
--background-color: #fff;
--bubble-dark: #0a2540;
--bubble-light: #87cf3a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.testimonial-slider {
max-width: 1140px;
margin: 0 auto;
padding: 20px;
position: relative;
}
.slider-track-container {
position: relative;
overflow: hidden;
width: 100%;
margin: 0 auto;
}
.slider-track {
display: flex;
position: relative;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
touch-action: pan-y;
cursor: grab;
}
.slider-track:active {
cursor: grabbing;
}
.testimonial {
flex: 0 0 33.333%;
width: 33.333%;
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
transform: scale(0.9);
padding: 0 15px;
}
.testimonial.active {
transform: scale(1);
}
.testimonial-bubble {
width: 100%;
background-color: #003024;
border-radius: 25px;
padding: 30px;
margin-bottom: 20px;
position: relative;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
margin-top: 25px; }
.testimonial.active .testimonial-bubble {
background-color: #AAF051;
}
.testimonial-bubble::after {
content: '';
position: absolute;
bottom: -14px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid #003024;
transition: border-top-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial.active .testimonial-bubble::after {
border-top-color: #AAF051;
}
.quote-icon {
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%);
font-size: 32px;
color: #AAF051;
width: 50px;
height: 50px;
display: flex;
top: 10px;
align-items: center;
justify-content: center;
transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 2;
}
.testimonial.active .quote-icon {
color: #003024;
}
.testimonial-content {
font-size: 1em;
line-height: 1.6;
color: white;
text-align: center;
margin-bottom: 0;
padding-top: 10px; }
.testimonial.active .testimonial-content {
color: #003024;
}
.testimonial-profile {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
.profile-image {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 10px;
border: 3px solid #AAF051;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.profile-info {
text-align: center;
}
.profile-info h3 {
color: #003024;
font-size: 1.1em;
margin-bottom: 5px;
}
.profile-info p {
color: #666;
font-size: 0.9em;
margin-bottom: 5px;
}
.rating {
color: #AAF051;
font-size: 1.2em;
display: flex;
gap: 2px;
}
.slider-dots {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 20px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #003024;
cursor: pointer;
transition: background-color 0.3s;
}
.dot.active {
background: #AAF051;
}
.slider-navigation {
display: flex;
justify-content: center;
margin-top: 20px;
gap: 20px;
}
.nav-button {
background: none;
border: none;
padding: 0;
cursor: pointer;
transition: transform 0.3s ease;
}
.nav-button {
background: none !important;
border: none;
padding: 10px;
cursor: pointer;
transition: background 0.3s ease;
}
.nav-button:hover,
.nav-button:focus {
background: transparent !important; box-shadow: none !important; }
.nav-button:hover i {
color: #555; background: transparent !important;
}
.nav-button:hover {
transform: scale(1.1);
}
.nav-button i,
.nav-button svg {
font-size: 32px;
color: #003024;
transition: color 0.3s ease;
}
.nav-button:hover i,
.nav-button:hover svg {
color: #AAF051;
}
.nav-button svg {
fill: #003024;
width: 32px;
height: 32px;
}
.nav-button:hover svg {
fill: #AAF051;
} @media (max-width: 767px) {
.testimonial {
flex: 0 0 100%;
width: 100%;
padding: 0 10px;
transform: scale(1);
}
.testimonial:not(.active) {
opacity: 0;
visibility: hidden;
position: absolute;
}
.testimonial.active {
opacity: 1;
visibility: visible;
position: relative;
}
.slider-track-container {
overflow: hidden;
}
.testimonial-bubble {
padding: 20px;
}
.quote-icon {
font-size: 24px;
width: 40px;
height: 40px;
}
} @media (min-width: 768px) and (max-width: 991px) {
.testimonial {
flex: 0 0 50%;
width: 50%;
}
} @media (max-width: 480px) {
.slider-navigation {
position: relative;
z-index: 10;
}
.nav-button i,
.nav-button svg {
font-size: 28px;
}
} .testimonial-slider.modern-template .testimonial {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 15px;
margin: 10px 0;
}
.testimonial-slider.modern-template .modern-card {
position: relative;
border-radius: 10px;
padding: 20px 25px;
margin: 0;
width: 90%;
max-width: 450px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
box-sizing: border-box;
overflow: visible; }
.testimonial-slider.modern-template .quote-top-left,
.testimonial-slider.modern-template .quote-bottom-right {
position: absolute;
font-size: 35px;
font-weight: bold;
line-height: 1;
z-index: 100; }
.testimonial-slider.modern-template .quote-top-left {
top: 5px;
left: 15px;
}
.testimonial-slider.modern-template .quote-bottom-right {
bottom: 5px;
right: 15px;
}
@media (max-width: 767px) {
.testimonial-slider.modern-template .quote-top-left,
.testimonial-slider.modern-template .quote-bottom-right {
font-size: 30px;
}
}
.testimonial-slider.modern-template .author-section {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
margin-top: 0;
}
.testimonial-slider.modern-template .author-info {
display: flex;
align-items: center;
}
.testimonial-slider.modern-template .author-info .profile-image {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
margin-right: 12px;
border: 2px solid #ffffff;
}
.testimonial-slider.modern-template .author-text {
display: flex;
flex-direction: column;
} .testimonial-slider.modern-template .author-text h3 {
margin: 0 0 2px 0;
font-size: 20px;
font-weight: 600;
line-height: 1.2;
}
.testimonial-slider.modern-template .author-text .position {
margin: 0;
font-size: 12px;
line-height: 1.2;
}
.testimonial-slider.modern-template .rating {
font-size: 14px;
} .testimonial-slider.modern-template .mobile-rating {
display: none;
}
.testimonial-slider.modern-template .desktop-rating {
display: block;
}
.testimonial-slider.modern-template .testimonial-text {
margin-top: 10px;
padding: 0;
}
.testimonial-slider.modern-template .testimonial-content {
font-size: 16px;
line-height: 1.5;
margin: 0;
text-align: left;
font-style: normal;
} @media (max-width: 767px) {
.testimonial-slider.modern-template .modern-card {
width: 95%;
padding: 40px 30px;
max-width: 465px;
}
.testimonial-slider.modern-template .testimonial-content {
font-size: 16px;
}
.testimonial-slider.modern-template .author-info .profile-image {
width: 50px;
height: 50px;
}
.testimonial-slider.modern-template .author-text h3 {
font-size: 20px;
}
.testimonial-slider.modern-template .author-text .position {
font-size: 14px;
} .testimonial-slider.modern-template .mobile-rating {
display: block;
margin-top: 5px;
font-size: 12px;
}
.testimonial-slider.modern-template .desktop-rating {
display: none;
} .testimonial-slider.modern-template .testimonial:not(.active) {
opacity: 0;
visibility: hidden;
position: absolute;
}
.testimonial-slider.modern-template .testimonial.active {
opacity: 1;
visibility: visible;
position: relative;
} .testimonial-slider.modern-template .testimonial:not(.active) .modern-card,
.testimonial-slider.modern-template .testimonial.active .modern-card {
transform: scale(1);
opacity: 1;
}
} .testimonial-slider.modern-template .slider-dots {
margin-top: 5px;
}
.testimonial-slider.modern-template .slider-dots .dot {
width: 8px;
height: 8px;
margin: 0 4px;
}
.testimonial-slider.modern-template .nav-button {
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
}
.testimonial-slider.modern-template .nav-button.prev {
left: 10px;
}
.testimonial-slider.modern-template .nav-button.next {
right: 10px;
}
.testimonial-slider.modern-template .nav-button:hover {
background: rgba(255, 255, 255, 0.3);
} .testimonial-slider.modern-template .testimonial.active .modern-card {
transform: scale(1);
opacity: 1;
}
.testimonial-slider.modern-template .testimonial:not(.active) .modern-card {
transform: scale(0.9);
opacity: 0.7;
transition: transform 0.3s ease, opacity 0.3s ease;
}