.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 {
    background: linear-gradient(90deg, #2478a9, #2478a9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 14px
}

.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("../img/dots.png");
    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;
    margin-top: 6px
}

@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
    }
}