/* Fade in anination to address resie flicker */
.os-quote-carousel__is-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
  }
  .os-quote-carousel__is-visible {
    opacity: 1;
    visibility: visible;
  }

.os-quote-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* space between arrows and carousel */
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 0 0 4.8rem 0;
}
.os-quote-carousel__carousel {
    width: calc(100% - (2 * 4rem) - (2 * 2rem)); /* or a fixed width like 900px */
    max-width: 100%;
    position: relative;
}
.os-quote-carousel__carousel .slick-track {
    display: flex;
    align-items: stretch;
    padding: 0 0 2rem 0;
  }
  .os-quote-carousel__carousel .slick-list {
    overflow: hidden;
  }
.slick-initialized .os-quote-carousel__card.slick-slide {
    position: relative;
    /* margin: 0 -120px; 
    /* padding: 0 120px;
    transform: scale(0.8); 
    transition: transform 0.5s, z-index 0.5s; */
    z-index: 1;
    overflow: visible;
}
.slick-initialized .os-quote-carousel__card.slick-slide.slick-center {
   /* transform: scale(1); */
    z-index: 2;
}
.slick-initialized .os-quote-carousel__card-inner {
    background-color: white;
    border-radius: var(--os-radius-m);
    box-shadow: var(--os-box-shadow-l);
    padding: var(--wp--preset--spacing--medium);
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--wp--preset--spacing--medium);
    transform: scale(0.8);
    margin: 0 -30px;
    transition: transform 0.5s ease, z-index 0.5s ease;
    z-index: 1;
    position: relative;
}
.slick-center .os-quote-carousel__card-inner {
    transform: scale(1);
    margin: 0 -100px;
    z-index: 2; /* bring to front */
}
.os-quote-carousel__arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: #ebecf0;
    border-radius: 0.5rem;
    transition: var(--os-transition);
}
.os-quote-carousel__arrow svg {
    width: 1.6rem;
    height: auto;
}
.os-quote-carousel__next svg {
    transform: rotate(180deg);
}
.os-quote-carousel__arrow svg path {
    stroke: #383D4C;
}
.os-quote-carousel__arrow:hover {
    background-color: #484e61;
}
.os-quote-carousel__arrow:hover svg path {
    stroke: #ebecf0;
}
.os-quote-carousel .os-slider-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.os-quote-carousel .os-slider-dots ul {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    padding-left: 0;
}
.os-quote-carousel .os-slider-dots ul.slick-dots button {
    width: 1.2rem;
    height: 1.2rem;
}
.os-quote-carousel .os-slider-dots ul li.slick-active button {
    width: 1.6rem;
    height: 1.6rem;
    background-color: var(--wp--preset--color--text-standard);
}
.os-quote-carousel__card p {
    font-size: var(--wp--preset--font-size--headline-4);
    margin-bottom: var(--wp--preset--spacing--x-small);
}
.os-quote-carousel__card-meta {
    font-size: var(--wp--preset--font-size--body-2);
    letter-spacing: 0.06em;
    font-weight: 400;
}
.os-quote-carousel__card-name {
    font-weight: 500;
}
.os-quote-carousel__card-role,
.os-quote-carousel__card-company {
    color: var(--wp--preset--color--text-standard);
    margin-left: var(--wp--preset--spacing--xx-small);
    padding-left: calc(var(--wp--preset--spacing--xx-small) + 5px);
    border-left: 1px solid var(--wp--preset--color--light-grey);
}
.os-quote-carousel__card-link {
    margin-top: auto;
}
.os-quote-carousel__card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--small);
    align-items: center;
}
.os-quote-carousel__card-header .os-quote-carousel__card-logo {
    display: flex;
    justify-content: flex-end;
}
.os-quote-carousel__card-header .os-quote-carousel__card-logo figure {
    margin-bottom: 0;
    width: 150px;
    height: 75px;
}
.os-quote-carousel__card-header .os-quote-carousel__card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.os-quote-carousel__card-footer {
    display: flex;
    justify-content: flex-end;
}
@media screen and (max-width: 960px) {
    .slick-initialized .os-quote-carousel__card.slick-slide {
        transform: scale(1);
        margin: 0 0;
        padding: 1.2rem;
    }
    .slick-initialized .os-quote-carousel__card-inner {
        transform: none;
        margin: 0;
    }
}
@media screen and (max-width: 768px) {
    .os-quote-carousel__carousel {
        width: 100%;
    }
    .os-quote-carousel__arrow {
        display: none !important;
    }
}
@media screen and (max-width: 480px) {
    .os-quote-carousel__card-header {
        flex-direction: column;
        align-items: center;
    }
    .os-quote-carousel__card-header svg {
        width: 40px;
        height: auto;
    }
    .os-quote-carousel__card-header .os-quote-carousel__card-logo {
        justify-content: center;
    }
    .os-quote-carousel__card-header .os-quote-carousel__card-logo figure {
        margin-bottom: 0;
        width: 75%;
        height: 100px;
    }
    .os-quote-carousel__card-meta {
        display: flex;
        flex-direction: column;
        gap:0;
    }
    .os-quote-carousel__card-role,
    .os-quote-carousel__card-company {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }
}