/* =========================================================
   SITE-WIDE MEDICAL BACKGROUND PATTERN
========================================================= */

body {
    background-color: var(--bg-color);
    background-image:
        url('../images/site-bg-medical-pattern.svg'),
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(2, 95, 190, 0.04), transparent 55%),
        radial-gradient(ellipse 70% 45% at 0% 100%, rgba(254, 109, 2, 0.03), transparent 50%);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size: 720px 720px, 100% 100%, 100% 100%;
    background-attachment: scroll, scroll, scroll;
    background-position: center top, center top, center bottom;
}

/* Soften pattern over dark sections so they stay readable */
.dark-section,
.hero.dark-section {
    background-color: var(--dark-color, #0A2548);
    background-image:
        url('../images/site-bg-medical-pattern.svg'),
        url('../images/dark-section-bg-image.png');
    background-repeat: repeat, no-repeat;
    background-size: 720px 720px, cover;
    background-position: center top, top center;
    background-blend-mode: soft-light, normal;
}

.dark-section:not(.hero)::before {
    content: none;
}

/* Soft peach band option for light sections */
.bg-section:not(.dark-section) {
    background-color: rgba(255, 255, 255, 0.94);
}

/* =========================================================
   TESTIMONIALS ANTHOLOGY — equal cards, wider, mobile-ready
========================================================= */

.testimonials-anthology {
    --ta-ink: var(--heading-color, #123A5C);
    --ta-muted: var(--text-color, #5A6573);
    --ta-panel: transparent;
    --ta-active: var(--heading-color, #123A5C);
    --ta-accent: var(--label-color, #43992a);
    --ta-soft: var(--label-soft, #EAF5E6);
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 90px 0 80px;
    background: transparent;
    overflow: hidden;
}

.testimonials-anthology::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 85% 40%, rgba(2, 95, 190, 0.05), transparent 70%),
        radial-gradient(ellipse 45% 50% at 10% 70%, rgba(254, 109, 2, 0.04), transparent 65%);
    z-index: 0;
}

.testimonials-anthology .container {
    max-width: 1280px;
    position: relative;
    z-index: 1;
    padding-left: 20px;
    padding-right: 20px;
}

.testimonials-panel {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.testimonials-panel::before,
.testimonials-panel::after {
    display: none;
}

.testimonials-panel-header,
.testimonials-carousel-shell,
.testimonials-panel-footer {
    position: relative;
    z-index: 1;
}

.testimonials-panel-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
    padding: 0 12px;
}

.testimonials-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-family: Sora, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ta-accent);
}

.testimonials-panel-header h2 {
    margin: 0 0 16px;
    font-family: Sora, sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ta-ink);
    font-weight: 700;
}

.testimonials-panel-header h2 em,
.testimonials-panel-header h2 span {
    font-family: var(--accent-font, Sora, sans-serif) !important;
    font-style: normal !important;
    font-weight: 600 !important;
    color: var(--label-color, #43992a) !important;
    white-space: normal;
}

.testimonials-panel-header p {
    margin: 0 auto;
    max-width: 580px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ta-muted);
}

.testimonials-carousel-shell {
    position: relative;
    padding: 8px 64px 12px;
    width: 100%;
}

.testimonialsAnthologySwiper {
    overflow: hidden;
    padding: 12px 4px 20px;
}

.testimonialsAnthologySwiper .swiper-wrapper {
    align-items: stretch;
}

.testimonialsAnthologySwiper .swiper-slide {
    height: auto;
    display: flex;
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease;
}

.testimonialsAnthologySwiper .swiper-slide-active {
    opacity: 1;
    z-index: 2;
}

.testimonialsAnthologySwiper .swiper-slide-prev,
.testimonialsAnthologySwiper .swiper-slide-next {
    opacity: 1;
    transform: none;
}

.testimonial-card {
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 28px 26px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(2, 95, 190, 0.1);
    box-shadow: 0 14px 36px rgba(2, 95, 190, 0.08);
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card {
    background: var(--ta-active);
    border-color: transparent;
    box-shadow: 0 20px 44px rgba(2, 95, 190, 0.24);
    color: #fff;
}

.testimonial-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.testimonial-card-stars {
    display: flex;
    gap: 4px;
    color: var(--ta-accent);
    font-size: 13px;
}

.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card-stars {
    color: #ffb27a;
}

.testimonial-card-quote {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 56px;
    line-height: 0.6;
    font-weight: 600;
    color: rgba(254, 109, 2, 0.28);
    opacity: 1;
    transform: none;
}

.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card-quote {
    opacity: 1;
    color: rgba(255, 178, 122, 0.55);
}

.testimonial-card-text {
    margin: 0;
    flex: 1 1 auto;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    line-height: 1.45;
    font-style: italic;
    font-weight: 500;
    color: #3D4A5C;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 9;
    line-clamp: 9;
}

.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card-text {
    color: rgba(255, 255, 255, 0.96);
}

.testimonial-card-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 4px;
}

.testimonial-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--ta-soft);
    color: var(--ta-accent);
    font-family: Sora, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card-avatar {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.testimonial-card-author strong {
    display: block;
    font-family: Sora, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ta-ink);
    line-height: 1.25;
}

.testimonial-card-author span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: var(--ta-accent);
    font-weight: 500;
}

.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card-author strong,
.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card-author span {
    color: #fff;
}

.testimonialsAnthologySwiper .swiper-slide-active .testimonial-card-author span {
    color: rgba(255, 255, 255, 0.72);
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(2, 95, 190, 0.12);
    border-radius: 50%;
    background: #fff;
    color: var(--ta-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 95, 190, 0.1);
    transform: translateY(-50%);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.testimonials-prev { left: 4px; }
.testimonials-next { right: 4px; }

.testimonials-nav:hover {
    background: var(--ta-accent);
    color: #fff;
    border-color: var(--ta-accent);
}

.testimonials-panel-footer {
    margin-top: 18px;
    text-align: center;
    padding: 0 12px;
}

.testimonials-closing {
    margin: 0 0 14px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
    font-style: italic;
    color: var(--ta-muted);
}

.testimonials-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Sora, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ta-ink);
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
}

.testimonials-cta:hover {
    color: var(--ta-accent);
    gap: 12px;
}

@media (max-width: 1199px) {
    .testimonials-carousel-shell {
        padding: 8px 56px 12px;
    }

    .testimonial-card {
        min-height: 360px;
        padding: 26px 24px;
    }

    .testimonial-card-text {
        font-size: 19px;
        -webkit-line-clamp: 8;
        line-clamp: 8;
    }
}

@media (max-width: 991px) {
    .testimonials-anthology {
        padding: 64px 0;
    }

    .testimonials-carousel-shell {
        padding: 8px 52px 10px;
    }

    .testimonials-panel-header h2 {
        font-size: clamp(28px, 5vw, 40px);
    }

    .testimonials-panel-header h2 em {
        white-space: normal;
        display: inline;
    }

    .testimonial-card {
        min-height: 340px;
        padding: 24px 22px;
    }

    .testimonial-card-text {
        font-size: 18px;
        -webkit-line-clamp: 8;
        line-clamp: 8;
    }
}

@media (max-width: 767px) {
    .testimonials-anthology {
        padding: 48px 0 56px;
    }

    .testimonials-anthology .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .testimonials-panel-header {
        margin-bottom: 28px;
        padding: 0 4px;
    }

    .testimonials-panel-header h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .testimonials-panel-header h2 em {
        display: block;
        margin-top: 2px;
        white-space: normal;
    }

    .testimonials-panel-header p {
        font-size: 15px;
    }

    .testimonials-carousel-shell {
        padding: 0;
    }

    .testimonials-nav {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: -4px;
        transform: none;
        left: calc(50% - 52px);
    }

    .testimonials-next {
        left: calc(50% + 12px);
        right: auto;
    }

    .testimonialsAnthologySwiper {
        overflow: hidden;
        padding: 8px 0 56px;
    }

    .testimonialsAnthologySwiper .swiper-slide {
        width: 100% !important;
    }

    .testimonial-card {
        min-height: 300px;
        padding: 22px 20px 20px;
        border-radius: 18px;
        gap: 14px;
    }

    .testimonial-card-text {
        font-size: 17px;
        line-height: 1.45;
        -webkit-line-clamp: 9;
        line-clamp: 9;
    }

    .testimonial-card-quote {
        font-size: 44px;
    }

    .testimonial-card-avatar {
        width: 44px;
        height: 44px;
    }

    .testimonials-closing {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .testimonials-nav {
        width: 38px;
        height: 38px;
        left: calc(50% - 48px);
    }

    .testimonials-next {
        left: calc(50% + 10px);
    }

    .testimonial-card {
        min-height: 300px;
        padding: 20px 18px;
    }

    .testimonial-card-text {
        font-size: 16px;
        -webkit-line-clamp: 8;
        line-clamp: 8;
    }

    .testimonials-panel-header h2 {
        font-size: 26px;
    }
}

/* Sync common accents with brand orange */
.section-sub-title,
.google-review-rating i {
    color: var(--brand-secondary);
}
