/* =========================================================
GRID
========================================================= */

.customer-testimonials-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
width: 100%;
align-items: stretch;
}

/* =========================================================
CARD
========================================================= */

.customer-testimonial-item {
min-width: 0;
display: flex;
height: 100%;
}

.customer-testimonial-content {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;

background: #fff;
border: 1px solid #e7e7e7;
border-radius: 16px;

padding: 32px 24px;

min-height: 260px;

box-sizing: border-box;

transition:
transform 0.25s ease,
box-shadow 0.25s ease,
border-color 0.25s ease;
}

.customer-testimonial-card-link:hover .customer-testimonial-content,
.customer-testimonial-card-link:focus .customer-testimonial-content {
  transform: translateY(-4px);
  border-color: #dcdcdc;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================================
LOGO
========================================================= */

.customer-testimonial-logo {
width: 100%;
height: 90px;

display: flex;
align-items: center;
justify-content: center;

margin-bottom: 24px;
}

.customer-testimonial-logo img {
display: block;

max-width: 180px;
max-height: 80px;

width: auto;
height: auto;

object-fit: contain;
}

/* =========================================================
COMPANY NAME
========================================================= */

.customer-testimonial-name {
margin: 0;

font-size: 20px;
line-height: 1.3;
font-weight: 600;

color: #222;
}

/* =========================================================
SECTOR
========================================================= */

.customer-testimonial-sector {
margin-top: 8px;

font-size: 14px;
line-height: 1.5;

color: #777;
}

/* =========================================================
ACTION
========================================================= */

.customer-testimonial-action {
margin-top: auto;
padding-top: 24px;
}

.customer-testimonial-link {
display: inline-flex;
align-items: center;
justify-content: center;

padding: 10px 18px;

border-radius: 999px;

background: #6366f1;
border: 1px solid #6366f1;

color: #fff;
text-decoration: none;

font-size: 14px;
font-weight: 500;
line-height: 1;

transition:
background-color 0.2s ease,
border-color 0.2s ease,
transform 0.2s ease;
}

.customer-testimonial-link:hover {
background: #4f46e5;
border-color: #4f46e5;

color: #fff;
text-decoration: none;

transform: translateY(-1px);
}

/* =========================================================
SLIDER
========================================================= */

.customer-testimonials-slider {
display: flex;

gap: 24px;

width: 100%;

overflow-x: auto;
overflow-y: hidden;

scroll-snap-type: x proximity;
-webkit-overflow-scrolling: touch;

padding-bottom: 32px;

box-sizing: border-box;
}

/* =========================================================
SLIDER CARD
========================================================= */

.customer-testimonials-slider .customer-testimonial-item {
flex: 0 0 calc((100% - 48px) / 3);

min-width: 0;

scroll-snap-align: start;
}

/* =========================================================
SLIDER SCROLLBAR
========================================================= */

.customer-testimonials-slider::-webkit-scrollbar {
height: 8px;
}

.customer-testimonials-slider::-webkit-scrollbar-track {
background: #ececec;
border-radius: 999px;
}

.customer-testimonials-slider::-webkit-scrollbar-thumb {
background: linear-gradient(
90deg,
#7c3aed,
#4f46e5
);

border-radius: 999px;
}

.customer-testimonials-slider::-webkit-scrollbar-thumb:hover {
background: linear-gradient(
90deg,
#8b5cf6,
#6366f1
);
}

/* Firefox */

.customer-testimonials-slider {
scrollbar-width: thin;
scrollbar-color: #6366f1 #ececec;
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 991px) {

.customer-testimonials-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-testimonials-slider .customer-testimonial-item {
flex-basis: calc((100% - 24px) / 2);
}

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 575px) {

.customer-testimonials-grid {
grid-template-columns: 1fr;
}

.customer-testimonials-slider {
gap: 16px;
}

.customer-testimonials-slider .customer-testimonial-item {
flex-basis: 85%;
}

.customer-testimonial-content {
padding: 28px 20px;
min-height: 240px;
}

.customer-testimonial-logo {
height: 80px;
}

.customer-testimonial-logo img {
max-width: 160px;
max-height: 70px;
}

}
.customer-testimonial-card-link {
  display: flex;
  width: 100%;
  height: 100%;

  color: inherit;
  text-decoration: none;
}

.customer-testimonial-card-link:hover,
.customer-testimonial-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.customer-testimonial-card-link .customer-testimonial-content {
  width: 100%;
}