.testimonial-card-list {overflow: hidden;position: relative;width: 100%;}
.testim-head{margin:0 0 60px;}
.testim-head h6{color:var(--greyscale_color7);}
.author__position p{color:var(--greyscale_color9);margin: 0; line-height: normal;font-weight:600;}
.author__position span{color:var(--greyscale_color7);font-size:14px;}
/* .testimonial-card-list:after,.testimonial-card-list:before {
    background: linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 50.44%, #FFF 100%);
    content: " ";
    display: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 200px;
    z-index: 1
}

.testimonial-card-list:after {
    background: linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 50.44%, #FFF 100%);
    left: auto;
    right: 0
      
} */

.testimonial-card-list:hover .testimonial-card-list__row {
    animation-play-state: paused
}

.testimonial-card-list__row {  
    display: flex;
    flex-wrap: nowrap;
    flex-flow: row;
}

/* .testimonial-card-list__row{
  animation: translateinfinite 50s linear infinite;
}

.testimonial-card-list__row--reverse{
    animation: translateinfinite1 50s linear infinite; 
}
*/

.mobile-testimonial{display:none;}
.testimonial-card {
border-radius: 25px;
  {# height: 248px; #}
border-radius: 12px;
border: 1px solid var(--greyscale_color4);
background: var(--greyscale_color);
box-shadow: 0px 4px 11px -1px rgba(10, 10, 10, 0.04);  
margin:0.5em;
width:400px;
}

.testimonial-card__container {
    align-content: space-between;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding:24px
}

.author__title {width:52px;}
.author__position{width:calc(100% - 52px);}
.author__position {width:calc(100% - 52px); padding-left:14px;}

/* @keyframes translateinfinite {
  0%{
  transform:translateX(0); 
  }
	100% { 
    transform:translateX(-100%);
  }
}

@keyframes translateinfinite1 {
  0%{
  transform:translateX(0); 
  }
	100% { transform:translateX(100%);  }
}
 */

@media (min-width: 992px) {
  
   

    .testimonial-card-list:after,.testimonial-card-list:before {
        display: block
    }

    .testimonial-card-list__row--reverse {
        display: flex
    }
}



:root {
  --color-text: navy;
  --color-bg: papayawhip;
  --color-bg-accent: #ecdcc0;
  --size: clamp(1rem, 1rem + 5vmin, 2rem);
  --gap: calc(var(--size) / 2);
  --duration: 60s;
  --scroll-start: 0;
  --scroll-end: calc(-100% - var(--gap));
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: papayawhip;
    --color-bg: navy;
    --color-bg-accent: #2626a0;
  }
}

* {
  box-sizing: border-box;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  mask-image: linear-gradient(
    var(--mask-direction, to right),
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
  width:auto;
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll-x var(--duration) linear infinite;
  width:auto;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group {
    animation-play-state: paused;
  }
}

.marquee--vertical {
  --mask-direction: to bottom;
}

.marquee--vertical,
.marquee--vertical .marquee__group {
  flex-direction: column;
}

.marquee--vertical .marquee__group {
  animation-name: scroll-y;
}

.marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: -3s;
}

@keyframes scroll-x {
  from {
    transform: translateX(var(--scroll-start));
  }
  to {
    transform: translateX(var(--scroll-end));
  }
}

@keyframes scroll-y {
  from {
    transform: translateY(var(--scroll-start));
  }
  to {
    transform: translateY(var(--scroll-end));
  }
}

/* Element styles */
.marquee svg {
  display: grid;
  place-items: center;
  width: var(--size);
  fill: var(--color-text);
  background: var(--color-bg-accent);
  aspect-ratio: 16/9;
  padding: calc(var(--size) / 10);
  border-radius: 0.5rem;
}

.marquee--vertical svg {
  aspect-ratio: 1;
  width: calc(var(--size) / 1.5);
  padding: calc(var(--size) / 6);
}

/* Parent wrapper */
.wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: auto;
  max-width: 100vw;
}

.wrapper--vertical {
  flex-direction: row;
  height: 100vh;
}

/* Toggle direction button */
.toggle {
  --size: 3rem;
  position: relative;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: var(--size);
  height: var(--size);
  font: inherit;
  text-align: center;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 50%;
  color: inherit;
  background-color: var(--color-bg-accent);
  z-index: 1;
}

.toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--color-text);
}

.toggle span {
  position: absolute;
  display: inline-block;
  top: 50%;
  left: calc(100% + 0.4em);
  width: fit-content;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: fade 400ms 4s ease-out forwards;
  user-select: none;
}

.toggle svg {
  --size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  fill: currentcolor;
  transform: translate(-50%, -50%);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.toggle--vertical svg {
  transform: translate(-50%, -50%) rotate(-90deg);
}

@keyframes fade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


@media(max-width:767px){
  .testimonial-card-list{display:none;}
  .mobile-testimonial{display:block;padding:0 18px;}
 .mt-slider .slick-slide {margin: 0 10px;}
 .mt-slider .slick-list {margin: 0 -10px;}
  .testimonial-card{
  width:320px;
  margin:0;
  }
}

