
/* Hero */
.testimonials-hero {
    padding: 4rem 0 3rem;
}

    .testimonials-hero h1 {
        font-size: clamp(2rem, 4vw, 3.25rem);
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 1.15;
        margin-bottom: 1.25rem;
        max-width: 780px;
    }

    .testimonials-hero .lead {
        color: #c7c7c8;
        line-height: 1.75;
        max-width: 540px;
        font-size: 1rem;
    }

/* List */
.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1rem 0 3rem;
}

.testimonial-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    border: 1px solid #495057;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}

    .testimonial-card:hover {
        border-color: #6c757d;
    }

/* Sidebar */
.testimonial-sidebar {
    background-color: #03131d;
    border-right: 1px solid #495057;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    border: 2px solid var(--tc);
    color: var(--tc);
    background-color: rgba(20, 151, 229, 0.1);
}

.testimonial-org {
    font-size: 1rem;
    font-weight: 700;
    color: #f8f9fa;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: darkgrey;
    margin-bottom: 0.375rem;
}

.testimonial-since {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc);
    font-weight: 600;
}

.testimonial-product {
    border-top: 1px solid #495057;
    padding-top: 0.875rem;
}

.testimonial-product-label {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: darkgrey;
    margin-bottom: 0.375rem;
}

.testimonial-product-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tc);
    text-decoration: none;
    transition: opacity 0.15s;
}

    .testimonial-product-link:hover {
        opacity: 0.7;
        color: var(--tc);
    }

.testimonial-highlight {
    margin-top: auto;
    padding: 0.625rem 0.75rem;
    background-color: rgba(20, 151, 229, 0.1);
    border: 1px solid rgba(20, 151, 229, 0.25);
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--tc);
    line-height: 1.4;
}

/* Color variants */
.tst-color-1 {
    --tc: #1497E5;
}

.tst-color-2 {
    --tc: #22d3ee;
}

.tst-color-3 {
    --tc: #4ade80;
}

/* Content */
.testimonial-content {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonial-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 140px;
    background-color: #03131d;
    border: 1px solid #495057;
    border-radius: 10px;
    padding: 0.875rem 1rem;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: darkgrey;
    margin-bottom: 0.375rem;
}

.stat-value {
    font-size: 0.8125rem;
}

.stat-before {
    color: darkgrey;
    text-decoration: line-through;
    font-size: 0.6875rem;
}

.stat-after {
    font-weight: 700;
    color: var(--tc);
}

.testimonial-quote {
    margin: 0;
    font-size: 0.9375rem;
    color: #c7c7c8;
    line-height: 1.8;
    font-style: italic;
}

    .testimonial-quote p {
        margin-bottom: 0.875rem;
    }

    .testimonial-quote details {
        margin: 0;
    }

    .testimonial-quote details[open] .testimonial-quote-extra p:last-child {
        margin-bottom: 0;
    }

.testimonial-toggle {
    list-style: none;
    cursor: pointer;
    font-style: normal;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1497E5;
    transition: opacity 0.15s;
}

    .testimonial-toggle::-webkit-details-marker {
        display: none;
    }

    .testimonial-toggle::after {
        content: "Read full testimonial ↓";
    }

    details[open] .testimonial-toggle::after {
        content: "Show less ↑";
    }

    .testimonial-toggle:hover {
        opacity: 0.7;
    }

/* Submit CTA */
.testimonial-cta {
    margin-top: 1rem;
    margin-bottom: 3rem;
    background-color: #03131d;
    border: 1px solid #495057;
    border-radius: 14px;
    padding: 2.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

    .testimonial-cta h3 {
        font-size: 1.375rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: #f8f9fa;
    }

    .testimonial-cta p {
        color: #c7c7c8;
        max-width: 460px;
        margin-bottom: 0;
    }

.testimonial-cta-btn {
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 767px) {
    .testimonial-card {
        grid-template-columns: 1fr;
    }

    .testimonial-sidebar {
        border-right: none;
        border-bottom: 1px solid #495057;
    }

    .testimonial-stats {
        flex-direction: column;
    }

    .testimonial-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
