.seedco-testimonials-page {
    background: #f7f9f7;
}

.seedco-testimonials-hero {
    padding: 4.5rem 0 3.5rem;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(189, 209, 66, 0.22),
            transparent 32%
        ),
        linear-gradient(135deg, #00311b 0%, #006b39 100%);
}

.seedco-testimonials-hero h1 {
    max-width: 760px;
    margin: 0.5rem 0 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.seedco-testimonials-hero__description {
    max-width: 680px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.75;
}

.seedco-testimonials-explorer {
    padding: 4rem 0 5rem;
}

.seedco-testimonials-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.5fr);
    gap: 2.5rem;
    align-items: start;
}

/* Toolbar */

.seedco-testimonials-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.seedco-testimonials-toolbar__label {
    margin: 0;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
}

.seedco-testimonials-count {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
}

.seedco-country-filter {
    min-width: 210px;
}

.seedco-country-filter label {
    display: block;
    margin-bottom: 0.4rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.seedco-country-filter select {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 2.5rem 0.65rem 0.85rem;
    border: 1px solid #d8ded9;
    border-radius: 0.65rem;
    outline: none;
    color: #17211b;
    background-color: #fff;
    font-size: 0.875rem;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.seedco-country-filter select:focus {
    border-color: #009f4f;
    box-shadow: 0 0 0 3px rgba(0, 159, 79, 0.14);
}

/* Testimonial results */

.seedco-testimonials-results {
    display: grid;
    gap: 1rem;
    transition: opacity 180ms ease;
}

.seedco-testimonials-results.is-loading {
    opacity: 0.42;
    pointer-events: none;
}

.seedco-archive-testimonial__card {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 1.4rem;
    border: 1px solid #e1e6e2;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 49, 27, 0.045);
    transition:
        transform 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.seedco-archive-testimonial__card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #009f4f;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms ease;
}

.seedco-archive-testimonial__card:hover {
    border-color: rgba(0, 159, 79, 0.48);
    box-shadow:
        0 18px 42px rgba(0, 49, 27, 0.1),
        0 4px 12px rgba(0, 159, 79, 0.06);
    transform: translateY(-4px);
}

.seedco-archive-testimonial__card:hover::before {
    transform: scaleX(1);
}

.seedco-archive-testimonial__header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.seedco-archive-testimonial__image,
.seedco-archive-testimonial__placeholder {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    border-radius: 50%;
}

.seedco-archive-testimonial__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.seedco-archive-testimonial__card:hover
.seedco-archive-testimonial__image img {
    transform: scale(1.08);
}

.seedco-archive-testimonial__placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #006b39, #009f4f);
    font-size: 1rem;
    font-weight: 750;
}

.seedco-archive-testimonial__author h3 {
    margin: 0;
    color: #102419;
    font-size: 0.95rem;
    font-weight: 700;
}

.seedco-archive-testimonial__author p {
    margin: 0.2rem 0 0;
    color: #6b7c72;
    font-size: 0.76rem;
    line-height: 1.5;
}

.seedco-archive-testimonial blockquote {
    margin: 1.1rem 0 0;
    color: #35463c;
    font-size: 0.91rem;
    line-height: 1.75;
    transition: color 260ms ease;
}

.seedco-archive-testimonial__card:hover blockquote {
    color: #006b39;
}

.seedco-testimonials-empty {
    padding: 3rem 1.5rem;
    border: 1px dashed #cfd8d1;
    border-radius: 1rem;
    text-align: center;
    background: #fff;
}

.seedco-testimonials-empty h3 {
    margin: 0;
    color: #1d2c23;
    font-size: 1.15rem;
}

.seedco-testimonials-empty p {
    margin: 0.5rem 0 0;
    color: #68776e;
}

/* AJAX loading */

.seedco-testimonials-loading {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: #526158;
    font-size: 0.875rem;
}

.seedco-testimonials-loading[hidden] {
    display: none;
}

.seedco-testimonials-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 159, 79, 0.2);
    border-top-color: #009f4f;
    border-radius: 50%;
    animation: seedco-testimonials-spin 700ms linear infinite;
}

@keyframes seedco-testimonials-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Map */

.seedco-testimonials-map-column {
    position: sticky;
    top: 2rem;
}

.seedco-testimonials-map-card {
    padding: 1.6rem;
    border: 1px solid #dfe6e1;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 49, 27, 0.07);
}

.seedco-testimonials-map-card__heading h2 {
    margin: 0.35rem 0 0;
    color: #12241a;
    font-size: 1.6rem;
    font-weight: 750;
}

.seedco-testimonials-map-card__heading > p:last-child {
    margin: 0.75rem 0 0;
    color: #69786f;
    font-size: 0.875rem;
    line-height: 1.65;
}

.seedco-africa-map {
    position: relative;
    margin-top: 1.25rem;
    min-height: 350px;
}

.seedco-africa-map__svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    overflow: visible;
}

.seedco-map-country {
    cursor: default;
}

.seedco-map-country > path,
.seedco-map-country > polygon,
.seedco-map-country > polyline {
    transition:
        fill 220ms ease,
        stroke 220ms ease,
        filter 220ms ease;
}

.seedco-map-country:hover > path,
.seedco-map-country:hover > polygon,
.seedco-map-country:hover > polyline,
.seedco-map-country:focus > path,
.seedco-map-country:focus > polygon,
.seedco-map-country:focus > polyline {
    fill: #006b39 !important;
    stroke: #bdd142 !important;
    filter: drop-shadow(0 3px 4px rgba(0, 49, 27, 0.22));
}

.seedco-map-country.has-testimonials {
    cursor: pointer;
}

.seedco-map-country.has-testimonials:hover > path,
.seedco-map-country.has-testimonials:hover > polygon,
.seedco-map-country.has-testimonials:hover > polyline,
.seedco-map-country.has-testimonials:focus > path,
.seedco-map-country.has-testimonials:focus > polygon,
.seedco-map-country.has-testimonials:focus > polyline,
.seedco-map-country.is-active > path,
.seedco-map-country.is-active > polygon,
.seedco-map-country.is-active > polyline {
    fill: #008b47 !important;
    stroke: #ff1b2a !important;
}

.seedco-map-marker {
    pointer-events: none;
}

.seedco-map-marker__pulse {
    fill: rgba(255, 27, 42, 0.22);
    transform-box: fill-box;
    transform-origin: center;
    animation: seedco-map-pulse 2s ease-out infinite;
}

.seedco-map-marker__dot {
    fill: #ff1b2a;
    stroke: #fff;
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 3px rgba(50, 0, 0, 0.38));
}

@keyframes seedco-map-pulse {
    0% {
        opacity: 0.8;
        transform: scale(0.55);
    }

    75%,
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Map tooltip */

.seedco-map-tooltip {
    position: absolute;
    z-index: 10;
    width: min(280px, calc(100% - 1rem));
    padding: 1rem;
    border: 1px solid rgba(189, 209, 66, 0.5);
    border-radius: 0.8rem;
    color: #fff;
    background: rgba(0, 49, 27, 0.97);
    box-shadow: 0 18px 38px rgba(0, 30, 16, 0.25);
    pointer-events: none;
    transform: translate(12px, 12px);
}

.seedco-map-tooltip[hidden] {
    display: none;
}

.seedco-map-tooltip__country {
    margin: 0;
    color: #bdd142;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seedco-map-tooltip blockquote {
    margin: 0.55rem 0 0;
    color: #fff;
    font-size: 0.83rem;
    line-height: 1.55;
}

.seedco-map-tooltip__author {
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
}

.seedco-map-tooltip__author strong,
.seedco-map-tooltip__author span {
    display: block;
}

.seedco-map-tooltip__action {
    display: block;
    margin-top: 0.65rem;
    color: #bdd142;
    font-size: 0.68rem;
    font-weight: 700;
}

.seedco-map-legend {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    color: #627168;
    font-size: 0.75rem;
}

.seedco-map-legend__dot {
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ff1b2a;
    box-shadow: 0 0 0 1px #ff1b2a;
}

.seedco-africa-map__error {
    padding: 2rem;
    border-radius: 0.75rem;
    color: #991b1b;
    text-align: center;
    background: #fef2f2;
}

/* Responsive layout */

@media (max-width: 1023px) {
    .seedco-testimonials-layout {
        grid-template-columns: 1fr;
    }

    .seedco-testimonials-map-column {
        position: static;
        grid-row: 1;
    }

    .seedco-africa-map {
        max-width: 650px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .seedco-testimonials-hero {
        padding: 3.5rem 0 2.8rem;
    }

    .seedco-testimonials-explorer {
        padding: 2.5rem 0 4rem;
    }

    .seedco-testimonials-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .seedco-country-filter {
        width: 100%;
    }

    .seedco-testimonials-map-card {
        padding: 1rem;
    }

    .seedco-africa-map {
        min-height: 280px;
    }

    .seedco-map-tooltip {
        position: absolute;
        right: 0.5rem !important;
        bottom: 0.5rem;
        left: 0.5rem !important;
        width: auto;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seedco-archive-testimonial__card,
    .seedco-archive-testimonial__card::before,
    .seedco-archive-testimonial blockquote,
    .seedco-archive-testimonial__image img,
    .seedco-map-country > path,
    .seedco-map-country > polygon,
    .seedco-map-country > polyline {
        transition: none;
    }

    .seedco-archive-testimonial__card:hover,
    .seedco-archive-testimonial__card:hover
    .seedco-archive-testimonial__image img {
        transform: none;
    }

    .seedco-map-marker__pulse,
    .seedco-testimonials-spinner {
        animation: none;
    }
}