#aios-testimonials.aios-testimonials-page {
    margin-bottom: 66px;
}

#aios-testimonials .aios-testimonials {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.aios-testimonials-image {
    padding-bottom: 40px;
}

.aios-testimonials-image img {
    display: block;
    width: 100%;
    height: auto;
}

#aios-testimonials .hide-content,
.aios-testimonials-popup {
    display: none;
}

#aios-testimonials .aios-testimonials-lists {
    width: 50%;
    flex-grow: 0;
    padding: 15px;
}

.plyr__video-wrapper {
    width: 100%;
}

#aios-testimonials .aios-testimonials-lists a {
    padding: 80px 50px;
    text-align: center;
    border: 1px solid var(--aios-testimonials-primary);
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    height: 100%;
    display: flex;
    width: 100%;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

#aios-testimonials.aios-testimonials-page .aios-testimonials-content {
    /*padding-top: 50px;
    padding-bottom: 50px;*/
    text-align: justify;
}

#aios-testimonials .aios-testimonials-lists .aios-testimonials-content {
    font-size: 17px;
    line-height: 1.6;
    margin: 1.12em 0;
    padding: 0;
}

#aios-testimonials.aios-testimonials-page .aios-testimonials-content img {
    float: right;
    width: 50%;
    padding-left: 2vw;
    padding-bottom: 1vw;
}

.aiosp-wrap div[class*="aios-testimonials-popup-"] .aios-testimonials-popup {
    display: block;
}

#aios-testimonials .aios-testimonials-lists h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0.83em 0;
}

#aios-testimonials .aios-testimonials-lists h3 strong {
    font-size: 14px;
}

#aios-testimonials.aios-testimonials-page .show-more-testimonials {
    display: block;
    margin: 66px auto 0;
}

#aios-testimonials.aios-testimonials-page .show-more-testimonials:hover {
    background-color: var(--aios-testimonials-primary);
    border-color: var(--aios-testimonials-primary);
}

/*#aios-testimonials .aios-testimonials-lists:first-child h3,
#aios-testimonials .aios-testimonials-lists:first-child p {
    font-size: 25px;
}*/
#aios-testimonials .star_rating_display {
    text-align: center;
}

#aios-testimonials .star_rating_display i,
.aiosp-wrap div[class*="aios-testimonials-popup-"] .aiosp-content .star_rating_display i {
    color: var(--aios-testimonials-primary);
    font-size: 25px;
    margin: 0 1px;
}

.aios-testimonials-popup .aios-testimonials-video {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

.aios-testimonials-popup .aios-testimonials-video canvas,
.aios-testimonials-popup .aios-testimonials-video video {
    display: block;
    width: 100%;
}

.aios-testimonials-popup .aios-testimonials-video iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.aiosp-wrap div[class*="aios-testimonials-popup-"] .aiosp-content {
    width: 50%;
    min-height: auto;
    padding: 80px;
}

.aiosp-wrap div[class*="aios-testimonials-popup-"] .aiosp-content .star_rating_display {
    text-align: center;
    padding-bottom: 30px;
}

.aiosp-wrap div[class*="aios-testimonials-popup-"] .aiosp-content .aios-testimonials-popup-content {
    font-size: 20px;
    line-height: 1.7;
    text-align: center;
    color: #000;
}

.aiosp-wrap div[class*="aios-testimonials-popup-"] .aiosp-content h2 {
    padding-top: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: bolder;
    color: #000;
}

.aios-popup-body .aiosp-close {
    color: #000;
}

.ai-testimonials-pagination {
    position: relative;
    display: block;
    margin: 50px 0;
    width: 100%;
}

.ai-testimonials-pagination ul {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    margin: 0;
    padding: 0;
}

.ai-testimonials-pagination ul li {
    position: relative;
    display: block;
    margin: 15px 0;
    padding: 0 16px;
}

.ai-testimonials-pagination ul li+li {
    border-left: 1px solid #898989;
}

.ai-testimonials-pagination ul li.aios-testimonialsNext,
.ai-testimonials-pagination ul li.aios-testimonialsPrev+li {
    border: none;
}

.ai-testimonials-pagination ul li:last-child {
    padding-right: 0;
}

.ai-testimonials-pagination ul li a,
.ai-testimonials-pagination ul li span {
    position: relative;
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    outline: 0;
    color: #898989;
    transition: 0.4s ease-in-out;
}

.ai-testimonials-pagination ul li .current,
.ai-testimonials-pagination ul li a:hover {
    color: var(--aios-testimonials-primary, #bfb183);
}

.ai-testimonials-pagination ul li.aios-testimonialsNext a,
.ai-testimonials-pagination ul li.aios-testimonialsPrev a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease-in-out;
    width: 46px;
    height: 44px;
    background: var(--aios-testimonials-primary);
    color: #fff;
}

.ai-testimonials-pagination ul li.aios-testimonialsNext i,
.ai-testimonials-pagination ul li.aios-testimonialsPrev i {
    font-style: inherit;
    font-weight: 700;
    color: inherit;
}

.ai-testimonials-pagination .aios-testimonialsNext,
.ai-testimonials-pagination .aios-testimonialsPrev {
    padding: 0;
}

.ai-testimonials-pagination ul li.aios-testimonialsNext a:first-child,
.ai-testimonials-pagination ul li.aios-testimonialsPrev a:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
    background: 0 0;
}

@media only screen and (max-width: 991px) {
    #aios-testimonials .aios-testimonials-lists {
        padding: 15px !important;
        width: 100%;
    }

    #aios-testimonials.aios-testimonials-page h1 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    #aios-testimonials .aios-testimonials-lists a {
        padding: 50px 30px;
    }

    .aiosp-wrap div[class*="aios-testimonials-popup-"] .aiosp-content {
        width: 700px;
        max-width: 95%;
        padding: 50px 30px;
    }

    .aios-testimonials-lists h3,
    .aios-testimonials-lists p {
        font-size: 17px !important;
    }

    #aios-testimonials .star_rating_display i {
        font-size: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .aiosp-wrap div[class*="aios-testimonials-popup-"] .aiosp-content .aios-testimonials-popup-content {
        font-size: 15px;
    }
}

/* Highlighted Testimonials Section */
.aios-testimonials-highlighted {
    margin-bottom: 66px;
}

/* Each highlighted review */
.highlighted-review {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* spacing between blocks */
    /* padding: 40px; */
    border: 1px solid var(--aios-testimonials-primary);
    margin-top: 40px;
    font-family: "Baskervville", serif;
}
.highlighted-review.no-thumb .star_rating_display {
    margin-top: 0;
}
.slide.video-thumb {
    border: 3px solid rgba(178, 47, 64);
}

.slide.video-thumb a {
    position: relative;
    display: block;
}


/* Common block styling */
.highlighted-block {
    width: fit-content;
    margin: auto;
    padding: 40px;
}

/* Slick slider container */
.highlighted-media.slick-slider {
    width: 100%;
    margin: 0 auto;
    margin-top: 40px;
}

.highlighted-media .slide {
    position: relative;
    text-align: center;
}

.highlighted-media .slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Client review */
.highlighted-client-review {
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    padding: 0 15px;
    margin: 0 100px;
}

/* Headline */
.highlighted-headline h3 {
    font-size: 25px;
    font-weight: 700;
    /* text-align: center; */
    margin: 0;
    /* background: -webkit-linear-gradient(90deg, #a11d2c, #d04e62, #9f1d2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    line-height: 34px;
}

.highlighted-headline p {
    margin-top: 6px;
    /* text-align: center; */
}

.highlighted-headline {
    color: white;
    background: rgba(178, 47, 64, .83);
    padding: 30px 20px;
    width: 100%;
}

/* What We Have Done */
.highlighted-what-we-did {
    font-size: 16px !important;
    line-height: 1.6;
    text-align: center;
    padding: 0 15px;
}

/* Slick dots styling */
.highlighted-media.slick-slider .slick-dots {
    bottom: -30px;
}

/* Rating stars */
.star_rating_display {
    text-align: center;
    font-size: 20px;
    color: #f5c518;
}

.aiosp-gallery .aiosp-img {
    max-height: 75vh !important;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}


.aiosp-gallery .aiosp-title {
    text-align: justify;
    padding: 10px 15px;
    font-size: 0.95em;
    color: #fff;
    margin-top: 10px;
}

.aiosp-gallery .aiosp-close {
    position: fixed;
    top: 0px;
    right: -45px;
    color: #fff;
    border: none;
    font-size: 1.8em;
    padding: 0 12px;
    line-height: 1;
    cursor: pointer !important;
    z-index: 9999;
    width: fit-content !important;
}

.aiosp-gallery .aiosp-iframe-scaler .aiosp-close {
    top: -40px;
    right: 0;
}

.aiosp-gallery .aiosp-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.aiosp-gallery .aiosp-container {
    position: absolute;
}

/* Slider container */
.highlighted-media {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 70px;
    /* space for arrows */
}

/* Slide images */
.highlighted-media .slide img {
    width: 100%;
    height: 60vh;
    display: block;
    object-fit: cover;
}

/* Shared arrow styles */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 70px;
    width: 60px;
    background: transparent;
    color: #fff;
    border: none;
    z-index: 10;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slick-prev:before {
    rotate: 180deg;
    display: block;
}

/* Hover */
.slick-prev:hover,
.slick-next:hover {
    background: #b22f40;
}

/* Position arrows OUTSIDE the slider */
.slick-prev {
    left: 0;
}

.slick-next {
    right: 0;
}

/* Dots */
.slick-dots {
    position: relative;
    margin-bottom: 30px;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
}

.slick-dots li.slick-active button {
    background: #b22f40;
}

/* Container - 3 cards per row */
#aios-testimonials .aios-testimonials {
    display: flex;
    flex-wrap: wrap;
    /* space between cards */
    justify-content: flex-start;
}

/* Each testimonial wrapper */
#aios-testimonials .aios-testimonials-lists {
    width: calc(33.333%);
    /* 3 per row */
    box-sizing: border-box;
}

/* Card styles applied to the <a> tag */
#aios-testimonials .aios-testimonials-lists>a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    /* border: 2px solid #b22f40; */
    /* Monopoly border */
    padding: 40px 40px 90px 40px !important;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px;
    position: relative;
    background-size: cover;
    background-position: center;
}



/* Testimonial image */
#aios-testimonials .aios-testimonials-lists>a .aios-testimonials-image {
    margin-bottom: 15px;
    overflow: hidden;
}

/* Testimonial content */
#aios-testimonials .aios-testimonials-lists>a .aios-testimonials-content {
    font-size: 16px;
    line-height: 1.5;
    margin: 15px 0;
    text-align: justify;
}

#aios-testimonials .aios-testimonials-lists>a .aios-testimonials-content.has-image{
    color: #fff!important;
}

/* Testimonial title */
#aios-testimonials .aios-testimonials-lists>a h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: auto;
    line-height: 10px !important;
    font-family: 'Times New Roman', Times, serif;
}

/* Star rating - top-right corner */
#aios-testimonials .aios-testimonials-lists>a .star_rating_display {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #b22f40;
    /* Monopoly red */
    padding: 6px 10px;
    display: flex;
    gap: 2px;
}

/* Stars white */
#aios-testimonials .aios-testimonials-lists>a .star_rating_display i {
    color: #fff;
    font-size: 16px;
}


/* Quotation marks for testimonials content */
.aios-testimonials-lists>a .aios-testimonials-content {
    position: relative;
    margin: 15px 0;
    padding: 0 20px !important;
}

/* Opening quote */
.aios-testimonials-lists>a .aios-testimonials-content::before,
.highlighted-client-review::before {
    content: "“";
    /* left quote */
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 50px;
    color: #b22f40;
    /* Monopoly red */
    font-weight: bold;
    line-height: 1;
}

/* Closing quote */
.aios-testimonials-lists>a .aios-testimonials-content::after,
.highlighted-client-review::after {
    content: "”";
    /* right quote */
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 50px;
    color: #b22f40;
    /* Monopoly red */
    font-weight: bold;
    line-height: 1;
}


.highlighted-client-review {
    position: relative;
    text-align: justify;
}

.reviewer-details-d {
    position: absolute;
    z-index: 6;
    padding: 25px 20px;
    /* height: 140px; */
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    bottom: 0;
    text-align: center;
    opacity: 1;
    background: rgba(178, 47, 64, .83);
}

.reviewer-details {
    position: absolute;
    display: grid !important;
    z-index: 6;
    padding: 30px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    bottom: 0;
    text-align: center;
    opacity: 0;
    background: rgba(178, 47, 64, .83);
}

.aios-testimonials-lists>a:hover>.reviewer-details {
    opacity: 1;
}

.reviewer-details .aios-testimonials-content {
    color: white;
}


.reviewer-details .reviewer-info:before,
.highlighted-block.highlighted-headline:before {
    position: absolute;
    content: '';
    /* left: 0; */
    background: url(/wp-content/plugins/aios-testimonials/templates/themes/default/assets/images/star-img.png) no-repeat center/cover;
    width: 47px;
    height: 45px;
    z-index: 0;
    /* top: 0; */
}

.reviewer-details .reviewer-info .reviewer-d-info {
    display: block;
}

.reviewer-info {
    display: block;
    text-align: left;
    width: 100%;
    padding-left: 60px;
    position: relative;
}

.reviewer-info:before {
    position: absolute;
    content: '';
    left: 0;
    background: url(/wp-content/plugins/aios-testimonials/templates/themes/default/assets/images/star-img.png) no-repeat center/cover;
    width: 47px;
    height: 45px;
    z-index: 0;
}

#aios-testimonials .reviewer-details-d h3,
#aios-testimonials .reviewer-details h3 {
    color: #fff;
    background: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

#aios-testimonials .reviewer-details-d span,
#aios-testimonials .reviewer-details span,
.highlighted-headline-info p {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.highlighted-headline-info p{
    font-family: sans-serif;
}

.aios-testimonials-popup .reviewer-location {
    display: block;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: -webkit-linear-gradient(90deg, #a11d2c, #d04e62, #9f1d2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-family-title);
}

.aios-testimonials .aios-testimonials-content,
.highlighted-client-review {
    font-size: 14px !important;
}

.highlighted-client-review {
    font-size: 20px !important;
}

.aios-testimonials-highlighted .star_rating_display {
    background-color: #b22f40;
    width: fit-content;
    margin: auto;
    padding: 5px;
    margin-top: 40px;
}

.aios-testimonials-highlighted i {
    color: white !important;
}

.highlighted-headline-info {
    margin-left: 70px;
}

.highlighted-media-thumbnail-wrap {
        padding: 0 65px;
    max-width: 900px;
    margin: auto;
    width: 100%;
}

.highlighted-media-thumbnail .slide a {
    height: 100%;
    position: relative;
    display: block;
}

.highlighted-media-thumbnail .slide img {
    object-fit: cover;
    display: block;
    position: relative;
    width: 100%;
}

.highlighted-media-thumbnail .slick-slide {
    padding: 5px;
}


.reviewer-details {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.5);
    width: 150%;
    height: 150%;
}



#aios-testimonials .aios-testimonials-lists>a:hover .reviewer-details .aios-testimonials-content {
    font-size: 16px !important;
}

.aios-testimonials-lists>a:hover>.reviewer-details {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



@media only screen and (max-width: 1300px) {
    .reviewer-details.right {
        left: 25% !important;
    }

    .reviewer-details.left {
        left: 75% !important;
    }
}

@media only screen and (max-width: 991px) {
    #aios-testimonials .aios-testimonials-lists {
        width: calc(50% - 15px);
    }

     .reviewer-details.two-right {
        left: 25% !important;
    }

    .reviewer-details.two-left {
        left: 75% !important;
    }

    .highlighted-media-thumbnail-wrap{
        margin: unset;
    }
}

/* Responsive */
@media only screen and (max-width: 767px) {
    #aios-testimonials .aios-testimonials-lists {
        width: 100%;
    }

    .reviewer-details {
        left: 50% !important;
    }

    .highlighted-client-review,
    .highlighted-what-we-did {
        font-size: 15px;
    }

    .highlighted-client-review {
        margin: 0 30px !important;
    }

    .highlighted-headline h3 {
        font-size: 20px;
    }

    .highlighted-media {
        max-width: 100%;
        margin: 0;
        overflow: visible;
        /* arrows need to be clickable */
        padding: 0 30px;
    }

    .highlighted-media-thumbnail-wrap {
        padding: 0 30px;
    }

    /* Slide images full width */
    .highlighted-media .slide img {
        width: 100%;
        object-fit: cover;
        display: block;
    }

    /* Arrows below slider */
    .highlighted-media .slick-prev,
    .highlighted-media .slick-next {
        top: auto;
        bottom: 10px;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.5);
        padding: 0.5em 1em;
        height: 40px;
        width: 40px;
        z-index: 20;
    }

    .highlighted-media .slick-prev {
        left: 0%;
    }

    .highlighted-media .slick-next {
        right: 0%;
    }

    /* Dots below arrows */
    .highlighted-media .slick-dots {
        bottom: -25px;
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .highlighted-media .slick-dots li button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ccc;
    }

    .highlighted-media .slick-dots li.slick-active button,
    .highlighted-media .slick-dots li button:hover {
        background: #b22f40;
    }
}

@media only screen and (max-width: 480px) {
    .highlighted-media .slide img {
        height: 30vh;
    }

    .reviewer-details{
        display: none!important;
    }

    ..ai-testimonials-pagination{
        padding: 0 20px;
    }
}