.testimonials-group-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 2.5rem 0 1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.testimonial-card {
    margin: 0;
    background: #000000;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transition: width 0.6s ease;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: #2a2a2a;
    background: #0a0a0a;
}

.testimonial-card:hover::before {
    width: 100%;
}

.testimonial-wide {
    grid-column: 1 / -1;
}

/* Odd number of cards: the last one fills the row instead of leaving a gap */
.testimonials-grid .testimonial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.testimonial-quote {
    flex: 1;
    color: #d0d0d0;
    line-height: 1.75;
    font-weight: 400;
}

.testimonial-quote p + p {
    margin-top: 0.75rem;
}

.testimonial-quote::before {
    content: '“';
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    line-height: 1;
    height: 1.75rem;
    background: linear-gradient(135deg, #fff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.testimonial-context {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #71767b;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
}

.testimonial-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.testimonial-logos img {
    height: 16px;
    width: auto;
    opacity: 0.85;
}

.testimonial-logos img[src$=".png"] {
    height: 22px;
}

.testimonial-highlights-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.testimonial-intro {
    color: #71767b;
    line-height: 1.6;
    margin-top: -0.75rem;
}

.testimonial-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.testimonial-highlights li {
    padding: 0.5rem 0.9rem;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    color: #d0d0d0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.testimonial-highlights li::before {
    content: '„';
    color: #8b5cf6;
    margin-right: 0.15rem;
}

.testimonial-highlights li::after {
    content: '”';
    color: #8b5cf6;
    margin-left: 0.1rem;
}

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

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-highlights li {
        font-size: 0.85rem;
    }
}

/* My role on the project, beside the client logos */
.testimonial-myrole {
    margin-left: auto;
    padding: 0.2rem 0.7rem;
    border: 1px solid #1d9bf0;
    border-radius: 999px;
    color: #1d9bf0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .testimonial-myrole {
        margin-left: 0;
    }
}
