.testimonial-slider {
    text-align: center;
    font-family: 'lato', sans-serif;
    height: 50vh;
    min-height: 400px;
    width: 70%;
    margin: 50px auto;
    display: grid;
    grid-template-rows: 1fr auto;
}

@media(max-width: 1024px) {
    .testimonial-slider {
    width: 100%;
    }
}

@media(max-width: 768px) {
    .testimonial-slider {
    height: 60vh;
    }
}

@media(max-width: 550px) {
    .testimonial-slider {
    padding: 0;
    }
}

.testimonial-content {
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

@media(max-width: 550px) {
    .testimonial-content {
    padding: 0 5%;
    }
}

.testimonial-content blockquote, p{
    padding: 0;
    margin: 0;
}

.testimonial-review blockquote {
    font-size: 1.5em;
    font-style: italic;
    color: #555;
    margin: 0;
}

@media(max-width: 1500px) {
    .testimonial-review blockquote {
    font-size: 1.2em;
    }
}

@media(max-width: 550px) {
    .testimonial-review blockquote {
    font-size: 1em;
    }
}

.testimonial-stars {
    font-size: 1.5em;
}

.star_rating{
    display: flex;
    flex-direction: row;
}

.testimonial-star-icon {
  width: 30px;
  height: 30px;
  display: inline-block;
}

@media(max-width: 768px) {
    .testimonial-star-icon {
    width: 20px;
    height: 20px;
    }
}

.testimonial-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.testimonial-meta p {
    margin: 0;
    font-size: 0.9em;
    color: #777;
}

.testimonial_image_height img{
    height: 80px;
    cursor: pointer;
    padding: 10px;
    margin: 0 30px;
    filter: grayscale(100%);
    transition: filter 0.1s ease;
}

@media(max-width: 550px) {
    .testimonial_image_height img {
    height: 60px;
    margin: 0 15px;
    }
}

.testimonial_image_height.is-active img{
    filter: grayscale(0);
}

.splide {
    position: relative;
    overflow: hidden;
}

.splide::before,
.splide::after {
    content: "";
    position: absolute;
    top: 0;
    width: 70px;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

@media(max-width: 550px) {
    .splide::before,
    .splide::after {
    width: 10px;
    }
}

.splide::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.splide::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.testimonial-content {
    position: relative; /* allows absolutely-positioned arrows */
}

.testimonial-arrows button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    color: #333;
    transition: 0.2s ease;
    z-index: 10; /* ensure above gradients */
}

/* Left arrow */
.testimonial-prev {
    left: -40px; /* adjust for your layout */
}

/* Right arrow */
.testimonial-next {
    right: -40px; /* adjust for your layout */
}

.testimonial-arrows button:hover {
    transform: translateY(-50%) scale(1.2);
    color: #000;
}

@media (max-width: 1024px) {
    .testimonial-prev {
    left: 0px;
    }
    .testimonial-next {
    right: 0px;
    }
}

@media (max-width: 768px) {
    .testimonial-arrows {
        display: none !important;
    }
    }


/* for my 4K resolution gang */
@media(min-width: 2200px) {
    .testimonial-review blockquote {
    font-size: 2em;
    }
    .testimonial-star-icon {
    width: 40px;
    height: 40px;
    }
    .testimonial-meta p {
    font-size: 1.5em;
    }
    .testimonial_image_height img {
    height: 120px;
    margin: 0 50px;
    }
}

@media(min-width: 3000px) {
    .testimonial-review blockquote {
    font-size: 3em;
    }
    .testimonial-star-icon {
    width: 50px;
    height: 50px;
    }
    .testimonial-meta p {
    font-size: 2em;
    }
    .testimonial_image_height img {
    height: 150px;
    margin: 0 75px;
    }
}