.doctor-testimonials {
    display: flex;
    gap: 20px;
    align-items: center;
}

.doctor-testimonials__content, .doctor-testimonials__testimonials {
    flex:  1;
}

.doctor-testimonials__textbox {
    padding-right: 40px;
}

/* make Flickity show multiple cards */
.doctor-testimonials__testimonials { 
    width: 100%; 
}


/* optional: image fills card nicely */
.doctor-testimonial__image img { 
    display:block; 
    width:100%; 
    height:auto; 
}

.doctor-testimonial.carousel-cell {
  flex: 0 0 auto;
  width: 60%;
  margin-right: 16px;
}

.doctor-testimonials__carouse.lg-only:after {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient( to right, rgba(255,255,255,0), #fffe);
  content: "";
  z-index: 2;
}

/*Edge Fade Out*/
.doctor-testimonials__carousel.lg-only:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient( to left, rgba(255,255,255,0), #fffe);
  content: "";
  z-index: 2;
}

.doctor-testimonial__image {
    border-radius: 4px;
    overflow: hidden;
}

h3.doctor-testimonial__name {
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.17;
    color: #000;
    margin-bottom: 10px;
    margin-top: 0;
}

.doctor-testimonial__title {
    text-align: center;
    color: #098B8A;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25;
    text-transform: capitalize;
}

.doctor-testimonial__title-wrap {
    border-radius: 7.8px;
    border: 0.65px solid #098B8A;
    background: #E6EEEE;
    padding: 6px 12px;
    margin-bottom: 15px;
}

.doctor-testimonial__details {
    padding-top: 25px;
}

.doctor-testimonial__details p {
    font-size: 18px;
    line-height: 1.23;
}

.doctor-testimonials__slider-controls {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-testimonials__slider-controls .slider-arrows {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    max-width: 120px;
    justify-content: space-between;
}

.doctor-testimonials__slider-controls .progress-fill {
    height: 100%;
    background: #007B80;
    width: 33.33%;
    transition: width 0.5s ease;
}


.container--doc-testimonials {
    padding-right: 0;
}

.custom_sec .sm-only {
    display: none;
}

@media screen and (max-width: 990px) {
    .doctor-testimonials {
        flex-direction: column;
    }

    .doctor-testimonials__textbox { 
        text-align: center;
    }

    .doctor-testimonials__carousel { overflow: visible; }


    .doctor-testimonial.carousel-cell{
        width: 87%;          
        max-width: 420px;
        margin-right: 16px;
    }

    .doctor-testimonial__image img{
        width: 100%;
        height: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .doctor-testimonials__textbox { text-align: center; }

    .custom_sec .sm-only {
        display: block;
    }

    .custom_sec .lg-only {
        display: none;
    }

    .doctor-testimonials__textbox {
        padding-right: 0;
    }

    .doctor-testimonials__slider-controls .slider-arrows {
        width: 100px;
    }
}

@media screen and (max-width: 610px) {
    .doctor-testimonials__paragraph p {
        font-size: 16px;
        padding-right: 10px;
    }

    .doctor-testimonials__content {
        padding-right: 16px;
    }

    .doctor-testimonial.carousel-cell {
        margin-right: 12px;
    }

    .doctor-testimonial__title { 
        line-height: 1;
    }
}


@media screen and (max-width: 375px) {
    .doctor-testimonials__paragraph p {
        font-size: 14px;
    }
}

@media screen and (min-width: 990px) {
    .container--doc-testimonials {
        padding-right: 0;
        margin-right: 0;
        padding-left: 40px;
    }
}