.reviews-section {
    background: #fff;
    color: #202124;
    padding: 64px 0 76px
}

.reviews-container {
    max-width: 1920px;
    padding: 0 5%
}

.reviews-section #reviews-title {
    text-align: center;
    color: #202124;
    font-size: clamp(32px,4vw,33px);
    font-weight: 400;
    margin: 0 0 60px;
    font-weight: 600;
}

.reviews-section #reviews-title span {
    color: #2a463e;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 270px minmax(0,1fr);
    gap: 40px;
    align-items: center
}

.reviews-summary {
    display: flex;
    align-items: flex-start;
    gap: 18px
}

.reviews-summary>img {
    flex: none;
    object-fit: contain;
    margin-top: 5px
}

.reviews-section .reviews-summary h3 {
    font-size: 20px;
    line-height: 1.4;
    color: #202124;
    margin: 0 0 8px;
    font-weight: 600
}

.reviews-summary p {
    margin: 4px 0 20px;
    font-size: 16px
}

.review-stars {
    color: #ffbf00;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.5;
    white-space: nowrap
}

.review-write {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 6px;
    color: #202124;
    text-decoration: none;
    font-weight: 600
}

.review-write:hover {
    color: #1684d5;
    background: #f1f6fc
}

.reviews-carousel {
    min-width: 0;
    position: relative
}

.reviews-section .reviewsSwiper {
    padding-bottom: 36px
}

.reviews-section .swiper-wrapper {
    align-items: stretch
}

.reviews-section .swiper-slide {
    height: auto
}

.reviews-section .review-card {
    box-sizing: border-box;
    height: 100%;
    min-height: 310px;
    background: #f6f7f8;
    color: #202124;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 2px 10px #00000008
}

.review-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

.review-person>img:first-child,.review-avatar {
    width: 46px!important;
    height: 46px!important;
    border-radius: 50%;
    object-fit: cover;
    flex: none
}

.review-initial {
    display: grid;
    place-items: center;
    background: #6536ac;
    font-size: 25px
}

.review-person-name {
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere
}

.review-person-name span {
    display: block;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px
}

.review-person .review-google {
    width: 25px!important;
    height: 25px!important;
    object-fit: contain;
    margin-left: auto;
    flex: none;
    border-radius: 0
}

.review-check {
    display: inline-grid;
    place-items: center;
    vertical-align: middle;
    background: #4285f4;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    letter-spacing: 0;
    color: #fff;
    margin-left: 5px
}

.reviews-section .review-text {
    font-size: 16px;
    line-height: 1.65;
    margin: 12px 0 14px;
    color: #3c4043;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden
}

.reviews-section .review-text.is-expanded {
    display: block
}

.review-more {
    border: 0;
    background: none;
    color: #62676c;
    font: inherit;
    font-size: 14px;
    padding: 0;
    cursor: pointer
}

.review-more:hover {
    color: #1684d5;
    text-decoration: underline
}

.reviews-prev,.reviews-next {
    position: absolute;
    top: calc(50% - 40px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid #aaa;
    border-radius: 50%;
    background: #ddd;
    color: #111;
    font-size: 32px;
    line-height: 1;
    cursor: pointer
}

.reviews-prev {
    left: -19px
}

.reviews-next {
    right: -19px
}

.reviews-carousel .swiper-button-disabled {
    opacity: .35;
    cursor: default
}

.reviews-section .swiper-pagination-bullet {
    background: #91979d
}

.reviews-section .swiper-pagination-bullet-active {
    background: #1684d5
}

.review-verification {
    position: relative;
    display: table;
    margin: 0 0 0 auto
}

.review-verified {
    border: 0;
    border-radius: 4px;
    background: #d8f2e7;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer
}

.review-verification-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: 340px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border: 1px solid #111;
    border-radius: 8px;
    color: #111;
    box-shadow: 0 6px 24px #0004;
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    z-index: 5;
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s
}

.review-verification-popup:after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: -9px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
    transform: rotate(45deg)
}

.review-verification-popup:before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -16px;
    height: 16px
}

.review-verification-popup a {
    color: #111;
    text-decoration: underline
}

.review-verification:hover .review-verification-popup,.review-verification:focus-within .review-verification-popup,.review-verification.is-open .review-verification-popup {
    visibility: visible;
    opacity: 1
}

.reviews-section button:focus-visible,.reviews-section a:focus-visible {
    outline: 3px solid #1684d5;
    outline-offset: 4px
}

@media(max-width: 991px) {
    .reviews-layout {
        grid-template-columns:1fr;
        gap: 30px
    }

    .reviews-summary {
        justify-content: center
    }

    .reviews-section #reviews-title {
        margin-bottom: 32px
    }

    .reviews-section {
        padding: 45px 0
    }

    .reviews-container {
        padding: 0 28px
    }
}

@media(max-width: 639px) {
    .reviews-container {
        padding:0 24px
    }

    .reviews-section .review-card {
        padding: 22px 20px;
        min-height: 300px
    }

    .reviews-summary>img {
        width: 48px;
        height: 48px
    }

    .reviews-section .reviews-summary h3 {
        font-size: 17px
    }

    .reviews-summary {
        gap: 14px
    }

    .reviews-prev {
        left: -16px
    }

    .reviews-next {
        right: -16px
    }

    .reviews-prev,.reviews-next {
        width: 32px;
        height: 32px;
        font-size: 26px
    }

    .review-verification-popup {
        width: 300px
    }

    .review-person-name {
        font-size: 15px
    }
}

@media(prefers-reduced-motion:reduce) {
    .review-verification-popup {
        transition: none
    }
}

/* Keep clamped copy from growing beyond its four visible lines. */
.reviews-section .review-card {
    display: flex;
    flex-direction: column;
}

.reviews-section .review-text {
    flex: 0 0 auto;
    max-height: 6.6em;
    padding: 0;
}

.reviews-section .review-text.is-expanded {
    max-height: none;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.reviews-section .review-more {
    appearance: none;
    display: inline-block;
    align-self: flex-start;
    flex: none;
    width: auto;
    min-height: 32px;
    margin: auto 0 0;
    padding: 4px 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    text-align: left;
    line-height: 1.5;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.reviews-section .review-more:focus:not(:focus-visible) {
    outline: none;
}

.reviews-section .review-more:focus-visible {
    outline: 2px solid #1684d5;
    outline-offset: 3px;
}

.reviews-section .reviews-prev,.reviews-section .reviews-next {
    padding: 0;
    font-size: 0;
}

.reviews-section .reviews-prev::before,.reviews-section .reviews-next::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.reviews-section .reviews-prev::before {
    transform: translateX(2px) rotate(-135deg);
}

.reviews-section .reviews-next::before {
    transform: translateX(-2px) rotate(45deg);
}

/* Google review verification badge. */
.reviews-section .review-check {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 7px;
    vertical-align: middle;
    border-radius: 0;
    background: #4285f4;
    color: transparent;
    font-size: 0;
    line-height: 0;
    clip-path: polygon(50% 0%,60% 9%,73% 6%,78% 19%,91% 22%,91% 36%,100% 46%,92% 57%,94% 71%,81% 77%,76% 91%,62% 90%,50% 100%,39% 91%,25% 94%,20% 81%,7% 77%,9% 63%,0% 51%,9% 40%,6% 26%,20% 21%,25% 8%,39% 10%);
}

.reviews-section .review-check::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    width: 6px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Compact clinic summary for phones. */
@media (max-width:639px) {
    .reviews-section .reviews-summary {
        display:grid;
        grid-template-columns:52px minmax(0,1fr);
        align-items:center;
        gap:12px 14px;
        padding:20px;
        background:#fff;
        border:1px solid #e8eaed;
        border-radius:16px;
        box-shadow:0 4px 18px rgb(32 33 36 / 5%);
    }
    .reviews-section .reviews-summary > img {
        width:52px;
        height:52px;
        margin:0;
        border-radius:10px;
        object-fit:contain;
    }
    .reviews-section .reviews-summary > div { display:contents; }
    .reviews-section .reviews-summary h3 {
        margin:0;
        font-size:16px;
        line-height:1.45;
        font-weight:600;
        overflow-wrap:anywhere;
    }
    .reviews-section .reviews-summary .review-stars {
        grid-column:1 / -1;
        text-align:center;
        font-size:27px;
        line-height:1.2;
        margin-top:4px;
        letter-spacing:2px;
    }
    .reviews-section .reviews-summary p {
        grid-column:1 / -1;
        margin:-4px 0 4px;
        text-align:center;
        font-size:14px;
        line-height:1.5;
        color:#62676c;
    }
    .reviews-section .reviews-summary .review-write {
        grid-column:1 / -1;
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:46px;
        padding:10px 16px;
        border:1px solid #dadce0;
        border-radius:8px;
        background:#f8fafd;
        color:#202124;
        font-size:15px;
        font-weight:600;
        text-align:center;
    }
    .reviews-section .reviews-summary .review-write:hover {
        background:#edf4fd;
        border-color:#1684d5;
        color:#1684d5;
    }
}
@media (max-width:639px) {
    .reviews-section .reviews-container {
        padding-left:32px;
        padding-right:32px;
    }
    .reviews-section .reviews-carousel {
        margin-left:4px;
        margin-right:4px;
    }
    .reviews-section .reviews-prev { left:-16px; }
    .reviews-section .reviews-next { right:-16px; }
}

/* Featured media logos. */
.row.media-logos {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:24px 16px;
    margin:0;
    align-items:start;
}
.row.media-logos > div {
    width:auto;
    min-width:0;
    max-width:none;
    padding:0;
}
.media-logos .image img {
    width:100%;
    max-width:193px;
    height:72px;
    object-fit:contain;
}
.media-logos .image a {
    display:inline-block;
    margin-top:8px;
    font-size:13px;
    line-height:1.5;
}
.media-logos .image p { margin:0; }
@media(max-width:767px) {
    .row.media-logos {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:24px 16px;
        padding:0 8px;
    }
    .media-logos .image img { height:64px; max-width:170px; }
    .media-logos .image a { font-size:12px; }
}
