.card,.card-wrap {
    position: relative
}

.quote-icon-after img,.quote-icon-before img {
    width: 20px;
    height: auto
}

:root {
    --theme-color1: #e27f2a
}

*,::after,::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'work sans',sans-serif
}

[data-theme=blue] {
    background-color: #757629
}

.content-grid {
    --padding-inline: 1rem;
    width: 100%;
    --content-max-width: 1500px;
    --breakout-max-width: 85ch;
    --breakout-size: calc((var(--breakout-max-width) - var(--content-max-width)) / 2);
    display: grid;
    grid-template-columns: [full-width-start] minmax(var(--padding-inline),1fr) [breakout-start] minmax(0,var(--breakout-size)) [content-start] min(100% - (var(--padding-inline) * 2),var(--content-max-width)) [content-end] minmax(0,var(--breakout-size)) [breakout-end] minmax(var(--padding-inline),1fr) [full-width-end]
}

.content-grid>:not(.breakout,.full-width) {
    grid-column: content;
    width: 100%;
    padding-inline:0px}

.content-grid>.breakout {
    grid-column: breakout
}

.content-grid>.full-width {
    grid-column: full-width
}

.testimonial-section.content-grid {
    width: 100%;
    max-width: 1500px;
    margin-inline:auto}

.testimonials-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    width: 100%
}

.left-panel {
    flex: 0 0 30%
}

.label {

    display: inline-flex;
    align-items: center;
    padding: 8px 25px 8px 20px;
    /* background-color: #ECF5F4; */
    background: linear-gradient(135deg, #ECF5F4 0, #ECF5F4 100%);
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #2478a9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Sora', sans-serif;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);

    /* remove the old gradient text styles */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;

}

.heading {
    font-family: 'Work Sans',serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
    margin-bottom: 18px
}

.card-quote,.stars,.subtext {
    font-size: 14px
}

.subtext {
    color: #666;
    line-height: 1.6;
    margin-bottom: 28px
}

.dots {
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    padding: 8px 16px;
    width: fit-content
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background .3s,transform .3s;
    flex-shrink: 0
}

.dot:hover {
    background: #f8a0a8;
    transform: scale(1.2)
}

.dot.active {
    background: #2478a9;
    transform: scale(1.1)
}

.carousel-outer {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    cursor: grab
}

.carousel-outer:active {
    cursor: grabbing
}

.carousel-track {
    display: flex;
    will-change: transform
}

.slide {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    align-items: stretch
}

.card-wrap {
    flex: 1;
    min-width: 0;
    padding-top: 55px
}

.card {
    background: #2478a914;
    border-radius: 12px;
    padding: 80px 24px 28px;
    overflow: visible;
    height: 100%
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 55%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Crect x='0' y='40' width='8' height='40' fill='%23ddd' rx='1'/%3E%3Crect x='12' y='30' width='8' height='50' fill='%23ddd' rx='1'/%3E%3Crect x='24' y='20' width='8' height='60' fill='%23ddd' rx='1'/%3E%3Crect x='36' y='35' width='8' height='45' fill='%23ddd' rx='1'/%3E%3Crect x='48' y='25' width='8' height='55' fill='%23ddd' rx='1'/%3E%3Crect x='60' y='15' width='8' height='65' fill='%23ddd' rx='1'/%3E%3Crect x='72' y='30' width='8' height='50' fill='%23ddd' rx='1'/%3E%3Crect x='84' y='20' width='8' height='60' fill='%23ddd' rx='1'/%3E%3Crect x='96' y='35' width='8' height='45' fill='%23ddd' rx='1'/%3E%3Crect x='108' y='10' width='8' height='70' fill='%23ddd' rx='1'/%3E%3C/svg%3E") bottom right/contain no-repeat;
    opacity: .5;
    pointer-events: none;
    border-radius: 0 0 12px
}

.avatar-bg {
    position: absolute;
    top: 0;
    left: 24px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 10px 10px 38px;
    overflow: hidden;
    border-radius: 100px;
    background-color: #2478a9;
    width: 72px;
    z-index: 2
}

.avatar-bg img.avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block
}

.avatar-bg img.icon-quote {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-top: 10px;
    display: block;
    filter: brightness(0) invert(1)
}

.card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    padding-left: 88px;
    margin-top: -55px
}

.card-header .name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px
}

.card-header .role {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px
}

.stars {
    color: var(--theme-color1);
    letter-spacing: 3px
}

.card-body {
    position: relative;
    z-index: 1
}

.quote-icon-before {
    display: inline-block;
    margin-bottom: 4px
}

.quote-icon-before img {
    vertical-align: middle;
    margin-right: 4px
}

.card-quote {
    color: #444;
    line-height: 1.8;
    margin-top: 2px
}

.quote-icon-after {
    display: block;
    text-align: right !important;
    margin-top: 6px
}

.quote-icon-after img {
    display: inline-block;
}

@media (max-width: 820px) {
    .testimonials-section {
        flex-direction:column;
        align-items: flex-start;
        padding: 40px 0;
        gap: 28px
    }

    .left-panel {
        flex: none;
        width: 100%
    }

    .heading {
        font-size: 30px
    }

    .carousel-outer {
        width: 100%
    }
}

@media (max-width: 500px) {
    .heading {
        font-size:26px
    }
}
