/*
 * Testimonial Section Styles
 */
.testimonials-section {
    overflow: hidden;
    position: relative;
}
.testimonials-section .container {
    position: relative;
}
.testimonials-section article.testimonial {
    width: auto;
    margin-right: 20px;
    background-color: #2E2E2E;
    background: linear-gradient(104deg, #414141 0%, #262626 89.35%);
    color: #fff;
    padding: 20px 20px 27px;
    border-radius: 20px;
    flex: 1 0;
    flex-grow: 0;
    min-width: 120px;
    cursor: pointer;
    min-height: 380px;
    position: relative;
    transition: flex-grow .3s ease-in-out;
    overflow: hidden;
}
.testimonials-section article.testimonial::after {
    content: attr(data-tagline);
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.6px;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.20);
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    bottom: 15px;
    right: 16px;
    height: calc(100% - 30px);
    width: auto;
    transform: rotate(-180deg);
    padding-bottom: 60px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}
article.testimonial .inside-article {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity .1s ease .1s;
}
article.testimonial.swiper-slide-active .inside-article {
    opacity: 1;
    transition: opacity .3s ease .3s;
}
article.testimonial .entry-content {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -0.2px;
    padding: 24px 26px;
    flex: 1 0;
    position: relative;
    opacity: 0;
}
article.testimonial .entry-content::before {
    content: "";
    border-radius: 10px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj4KICA8ZGVmcz4KICAgIDxyYWRpYWxHcmFkaWVudCBp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z4KPC9zdmc+');
    position: absolute;
    inset: 0;
}
article.testimonial .entry-content .internal-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    position: absolute;
    inset: 24px 26px;
    border: unset;
    margin: unset;
    padding: 0;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: -0.2px;
    align-self: flex-start;
}
article.testimonial .entry-content .internal-content > * {
    display: inline;
}
article.testimonial .entry-content .internal-content::before {
    content: open-quote;
}
article.testimonial .entry-content .internal-content::after {
    content: close-quote;
}
article.testimonial .entry-footer {
    display: none;
    opacity: 0;
    padding: 26px 26px 0;
    transition: all 0.3s ease-in-out;
    position: relative;
    max-height: 80px;
}
article.testimonial .entry-footer:empty {
    display: none !important;
}
article.testimonial .entry-content::after {
    content: "";
    height: 1px;
    width: calc(100% - 52px);
    left: 26px;
    bottom: -1px;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.30);
}
article.testimonial .entry-footer .content-buttons {
    justify-self: flex-end;
    margin-left: auto;
}
article.testimonial .entry-footer .testimonial-tagline {
    font-size: 20px;
    font-style: italic;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.6px;
    text-transform: capitalize;
    align-self: center;
    margin-right: 18px;
    flex: 1 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
article.testimonial .entry-content .internal-content :last-child {
    margin-bottom: 0;
}
article.testimonial .testimonial-content-meta {
    position: absolute;
    bottom: 40px;
    left: 25px;
    width: calc(100% - 50px);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.14px;
    display: grid;
    grid-template-areas: "icon name-job-title"
                         "icon additional-info";
    grid-gap: 0 8px;
    grid-template-columns: 40px auto;
    align-items: center;
    padding-right: 102px;
}
article.testimonial .testimonial-name-job-title {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.16px;
    grid-area: name-job-title;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
article.testimonial .testimonial-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    grid-area: icon;
    margin-top: 6px;
}
article.testimonial .testimonial-footer-additional-content {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: -0.14px;
    grid-area: additional-info;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
article.testimonial::before {
    content: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 17L17 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 1H17V14' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    top: 23px;
    right: 18px;
    opacity: 1;
    position: absolute;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}
article.testimonial .review-stars {
    display: inline-flex;
    flex-wrap: wrap;
    width: max-content;
    position: absolute;
    bottom: 0;
    right: 0;
}
article.testimonial .testimonial-side-stars {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    bottom: 15px;
    left: 15px;
    transform: rotate(180deg);
    transform-origin: center;
    display: inline-flex;
    flex-wrap: wrap;
}
article.testimonial .testimonial-side-stars svg {
    transform: rotate(20deg);
    margin-bottom: 3px;
}
article.testimonial .mobile-stars {
    display: none;
}
article.testimonial .review-stars svg:not(:last-child) {
    margin-right: 3px;
}
article.testimonial.swiper-slide-active::before,
.testimonials-slider:not(.swiper-initialized) article.testimonial.swiper-slide-active::before {
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
article.testimonial.swiper-slide-active .entry-content,
.testimonials-slider:not(.swiper-initialized) article.testimonial:first-child .entry-content {
    opacity: 1;
    transition: all 0.3s ease-in-out;
}
article.testimonial.swiper-slide-active .entry-footer,
.testimonials-slider:not(.swiper-initialized) article.testimonial:first-child .entry-footer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}
.testimonials-section article.testimonial.swiper-slide-active::after,
.testimonials-slider:not(.swiper-initialized) article.testimonial:first-child::after {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}
.testimonials-section article.testimonial.swiper-slide-active .testimonial-side-stars,
.testimonials-slider:not(.swiper-initialized) article.testimonial:first-child .testimonial-side-stars {
    display: none;
}
.testimonials-section article.testimonial.swiper-slide-active {
    flex-grow: 1;
}
.testimonials-section .testimonial-button-next,
.testimonials-section .testimonial-button-prev {
    background-color: #f4f1fb;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: unset;
    position: absolute;
    top: calc(100% + 30px);
    left: 15px;
    cursor: pointer;
}
.testimonials-section .testimonial-button-next {
    right: 15px;
    left: unset;
}
.testimonials-section .testimonial-desktop-pagination {
    position: absolute;
    top: calc(100% + 44px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 1025px) {
    .testimonials-slider:not(.swiper-initialized) article.testimonial:first-child {
        flex-grow: 1;
    }
    .testimonials-section {
        padding-bottom: 88px;
    }
    .testimonials-section .testimonials-slider {
        width: calc(100% + 20px);
    }
    .testimonials-section.background-white + section:not(.background-white),
    .testimonials-section.background-black + section:not(.background-black),
    .testimonials-section.background-lavender + section:not(.background-lavender),
    .testimonials-section.background-peach + section:not(.background-peach) {
        margin-top: 30px;
    }
}
@media (max-width: 1580px) {
    article.testimonial .testimonial-footer-additional-content {
        text-wrap: pretty;
    }
}
@media (max-width: 1380px) {
    .testimonials-section article.testimonial {
        min-height: 440px;
    }
    article.testimonial .testimonial-content-meta {
        padding-right: 0;
    }
    article.testimonial .review-stars:not(.mobile-stars) {
        display: none;
    }
    article.testimonial .mobile-stars {
        display: inline-flex;
        margin-bottom: 2px;
        position: relative;
        top: unset;
        right: unset;
    }
    article.testimonial .entry-footer {
        max-height: 135px;
    }
    article.testimonial .entry-footer .testimonial-tagline {
        flex: 0 0 100%;
        margin: 0;
        font-size: 16px;
        font-style: italic;
        font-weight: 700;
        line-height: 30px; /* 187.5% */
        letter-spacing: -0.48px;
    }
    article.testimonial .entry-footer .content-buttons {
        margin: 8px 0 0;
        width: 100%;
        justify-content: flex-start;
    }
}
@media (max-width: 1220px) { 
    .testimonials-section article.testimonial:nth-child(n+6) {
        display: none; /* remove last two testimonials */
    }
}
@media (max-width: 1024px) {
    .testimonials-section .container {
        position: initial;
    }
    .testimonials-section .testimonial-button-next,
    .testimonials-section .testimonial-button-prev,
    .testimonials-section .testimonial-desktop-pagination {
        display: none;
    }
    article.testimonial .testimonial-side-stars {
        display: none;
    }
    .testimonials-section article.testimonial {
        flex: 1 0 auto;
        padding: 15px 15px 30px;
        width: calc(50% - 10px);
        flex-grow: 1;
    }
    article.testimonial .inside-article {
        opacity: 1;
    }
    article.testimonial .entry-content {
        padding: 15px;
        opacity: 1;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
    }
    article.testimonial .entry-footer {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        padding: 26px 15px 0;
        opacity: 1;
    }
    article.testimonial .testimonial-content-meta {
        padding-right: 0;
        position: relative;
        width: 100%;
        left: unset;
        bottom: unset;
        align-items: flex-start;
    }
    article.testimonial .entry-content .internal-content {
        position: relative;
        inset: unset;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 23px; /* 143.75% */
        letter-spacing: -0.16px;
        margin: 0 0 18px;
    }
    article.testimonial::before {
        display: none;
    }
    article.testimonial .entry-content::after {
        width: calc(100% - 30px);
        left: 15px;
        height: 2px;
        bottom: -2px;
    }
    .testimonials-section article.testimonial::after {
        display: none;
    }
    article.testimonial .review-stars {
        display: inline-flex;
        flex-wrap: wrap;
        width: max-content;
        position: absolute;
        bottom: unset;
        right: 0;
        left: 0;
        top: calc(100% + 14px);
    }
    article.testimonial .mobile-stars {
        display: inline-flex;
        margin-bottom: 2px;
        position: relative;
        top: unset;
        right: unset;
    }
    .testimonials-section + .text-marquee-section {
        padding-top: 40px !important;
    }
}
@media (max-width: 768px) {
    article.testimonial .testimonial-name-job-title {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        letter-spacing: -0.14px;
    }
    article.testimonial .testimonial-footer-additional-content {
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 18px; /* 150% */
        letter-spacing: -0.12px;
    }
    .testimonials-section article.testimonial {
        min-height: 390px;
    }
}
@media (max-width: 575px) {
    .testimonials-section article.testimonial {
        width: 100%;
    }
}

/* testimonial swiper pagination */
.testimonials-section .swiper-pagination-bullet {
    --swiper-pagination-bullet-width: 12px;
    --swiper-pagination-bullet-height: 12px;
    --swiper-pagination-bullet-border-radius: 6px;
    --swiper-pagination-bullet-opacity: 1;
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-color: #362D50;
    --swiper-pagination-bullet-inactive-color: #D8D1EE;
    --swiper-pagination-bullet-horizontal-gap: 3px;
    transition: all 0.3s ease-in-out;
}
.testimonials-section .swiper-pagination-bullet-active {
    width: 37px;
    transition: all 0.3s ease-in-out;
}
.testimonials-section .swiper-pagination {
    --swiper-pagination-bottom: 0;
}
.testimonials-section .testimonial-desktop-pagination .desktop-bullet {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    margin: 0 3px;
    background-color: #D8D1EE;
    border: unset;
    padding: unset;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.testimonials-section .testimonial-desktop-pagination .desktop-bullet.active {
    width: 37px;
    background-color: #362D50;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}