.quantivs-testimonials-wrapper {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.quantivs-testimonials-grid {
display: grid;
grid-gap: 30px;
margin-bottom: 30px;
}
.quantivs-testimonials-wrapper[data-columns="2"] .quantivs-testimonials-grid {
grid-template-columns: repeat(2, 1fr);
}
.quantivs-testimonials-wrapper[data-columns="3"] .quantivs-testimonials-grid {
grid-template-columns: repeat(3, 1fr);
}
.quantivs-testimonials-wrapper[data-columns="4"] .quantivs-testimonials-grid {
grid-template-columns: repeat(4, 1fr);
}
.quantivs-testimonials-wrapper[data-columns="5"] .quantivs-testimonials-grid {
grid-template-columns: repeat(5, 1fr);
}
.quantivs-testimonial-item {
background: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 300px;
display: flex;
flex-direction: column;
position: relative;
}
.quantivs-testimonial-item:hover {
transform: translateY(-5px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
background-color: var(--hover-color, #0056b3);
color: #fff;
}
.quantivs-testimonial-item:hover .quantivs-testimonial-content,
.quantivs-testimonial-item:hover .quantivs-author-name,
.quantivs-testimonial-item:hover .quantivs-author-title {
color: #fff;
}
.quantivs-testimonial-image {
text-align: center;
margin-bottom: 15px;
flex-shrink: 0;
}
.quantivs-testimonial-image img {
border-radius: 50%;
width: 80px;
height: 80px;
object-fit: cover;
}
.quantivs-testimonial-content {
font-size: 16px;
line-height: 1.6;
margin-bottom: 15px;
font-style: italic;
color: #555;
flex: 1;
overflow-y: auto;
padding-right: 10px;
}
.quantivs-testimonial-content::-webkit-scrollbar {
width: 6px;
}
.quantivs-testimonial-content::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}
.quantivs-testimonial-content::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}
.quantivs-testimonial-content::-webkit-scrollbar-thumb:hover {
background: #555;
}
.quantivs-testimonial-rating {
color: #ffd700;
margin-bottom: 10px;
text-align: center;
flex-shrink: 0;
}
.quantivs-testimonial-rating .star {
font-size: 18px;
margin: 0 2px;
}
.quantivs-testimonial-rating .star.filled {
color: #ffd700;
}
.quantivs-testimonial-author {
text-align: center;
margin-top: auto;
padding-top: 15px;
flex-shrink: 0;
}
.quantivs-author-name {
font-size: 18px;
font-weight: bold;
margin: 0 0 5px;
color: #333;
}
.quantivs-author-title {
font-size: 14px;
color: #666;
display: block;
}
.quantivs-testimonials-pagination {
margin-top: 20px;
text-align: center;
}
.quantivs-testimonials-pagination .page-numbers {
display: inline-block;
padding: 8px 12px;
margin: 0 4px;
border: 1px solid #ddd;
border-radius: 4px;
text-decoration: none;
color: #333;
min-width: 36px;
line-height: 1.5;
}
.quantivs-testimonials-pagination .page-numbers.current {
background-color: var(--hover-color, #0056b3);
color: white;
border-color: var(--hover-color, #0056b3);
}
.quantivs-testimonials-pagination .page-numbers:hover:not(.current) {
background-color: #f5f5f5;
text-decoration: none;
}
.quantivs-testimonials-pagination .prev,
.quantivs-testimonials-pagination .next {
padding: 8px 15px;
}
.quantivs-testimonials-load-more {
text-align: center;
margin-top: 30px;
}
.quantivs-load-more-button {
background: #007bff;
color: #fff;
border: none;
padding: 12px 24px;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s;
font-size: 16px;
}
.quantivs-load-more-button:hover {
background: #0056b3;
}
@media screen and (max-width: 1024px) {
.quantivs-testimonials-wrapper[data-columns="5"] .quantivs-testimonials-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media screen and (max-width: 768px) {
.quantivs-testimonials-wrapper[data-columns] .quantivs-testimonials-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 480px) {
.quantivs-testimonials-wrapper[data-columns] .quantivs-testimonials-grid {
grid-template-columns: 1fr;
}
}
.quantivs-testimonial-item:hover .quantivs-testimonial-content::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
}
.quantivs-testimonial-item:hover .quantivs-testimonial-content::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.5);
}
.quantivs-testimonial-item:hover .quantivs-testimonial-content::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.7);
}
.quantivs-testimonials-wrapper.loading {
position: relative;
}
.quantivs-testimonials-wrapper.loading:after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.5);
z-index: 1;
}