/* Testimonials page — Techmagnate reference */

.testimonials-page .tm-breadcrumb li + li::before {
    content: '>';
}

.testimonials-wrap {
    background: #fff;
    padding: 2rem 0 4.5rem;
}

.testimonials-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.testimonials-main {
    min-width: 0;
}

.testimonials-page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1.5rem;
    letter-spacing: -.01em;
}

/* Filter pills */
.testi-filters-wrap {
    position: relative;
    margin-bottom: 2rem;
}

.testi-filters-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
}

.testi-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.testi-filters::-webkit-scrollbar {
    display: none;
}

.testi-filter {
    flex-shrink: 0;
    border: 1px solid #C3C3C3;
    background: #fff;
    color: #767B79;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.testi-filter:hover {
    border-color: #023B5E;
    color: #023B5E;
}

.testi-filter.active {
    background: #023B5E;
    border-color: #023B5E;
    color: #fff;
}

/* Cards */
.testi-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testi-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #C3C3C3;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    transition: opacity .25s, transform .25s;
}

.testi-card.is-hidden {
    display: none;
}

.testi-card-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #C3C3C3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
    margin: 0 auto;
}

.testi-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.testi-card-logo span {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0570AE;
}

.testi-card-body {
    min-width: 0;
}

.testi-quote-icon {
    font-size: 1.5rem;
    color: #023B5E;
    line-height: 1;
    margin-bottom: .65rem;
    display: block;
}

.testi-card-body p {
    font-size: .95rem;
    color: #767B79;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.testi-card-author strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: .15rem;
}

.testi-card-author span {
    font-size: .85rem;
    color: #767B79;
}

.testi-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #767B79;
    display: none;
}

.testi-empty.visible {
    display: block;
}

/* Sidebar form */
.testi-sidebar {
    position: sticky;
    top: calc(var(--header-h, 78px) + var(--alert-h, 32px) + 16px);
}

.testi-sidebar-form {
    background: #ffffff;
    border: 1px solid #C3C3C3;
    border-radius: 14px;
    padding: 1.5rem;
}

.testi-sidebar-form h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: 1.25rem;
}

.testi-form input,
.testi-form select,
.testi-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid #C3C3C3;
    border-radius: 8px;
    font-size: .88rem;
    background: #fff;
    color: #023B5E;
    margin-bottom: .75rem;
    display: block;
}

.testi-form input::placeholder,
.testi-form textarea::placeholder {
    color: #C3C3C3;
}

.testi-form input:focus,
.testi-form select:focus,
.testi-form textarea:focus {
    outline: none;
    border-color: #0570AE;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, .1);
}

.testi-form textarea {
    min-height: 90px;
    resize: vertical;
}

.testi-form-agree {
    display: flex;
    gap: .5rem;
    font-size: .75rem;
    color: #767B79;
    line-height: 1.45;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.testi-form-agree a {
    color: #0570AE;
}

.testi-form-submit {
    width: 100%;
    background: #0570AE;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .8rem 1rem;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    transition: background .2s, transform .2s;
}

.testi-form-submit:hover {
    background: #0570AE;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
    .testimonials-layout {
        grid-template-columns: 1fr;
    }

    .testi-sidebar {
        position: static;
        order: -1;
    }

    .testi-card {
        grid-template-columns: 90px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .testi-card-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 575px) {
    .testi-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .testi-card-logo {
        margin: 0 auto;
    }
}
