/* ====================================================
   TESTIMONIAL PAGE - Mantra Softech
   ==================================================== */

/* --- Hero --- */
.testi-hero {
    background-color: var(--ma-white);
    background-image: url('../../../images/pages/media/media-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0 80px 0;
    position: relative;
}

    .testi-hero > .container {
        position: relative;
        z-index: 2;
    }


.testi-hero-eyebrow {
    display: inline-block;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(147, 197, 253, .15);
    border: 1px solid rgba(147, 197, 253, .35);
    border-radius: 4px;
    padding: 4px 12px;
    margin-bottom: 18px;
    font-family: var(--ma-font-semibold);
    font-size: var(--ma-metadata);
}

.testi-hero h1 {
    color: var(--ma-white);
    margin-bottom: 16px;
}

.testi-hero-sub {
    color: var(--ma-white);
    max-width: 520px;
    margin-bottom: 28px;
    opacity:0.85;
}

.testi-hero-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.testi-stat {
    flex: 1;
    min-width: 90px;
    padding-right: 20px;
}

    .testi-stat .stat-num {
        display: block;
        font-size: 1.9rem;
        font-weight: 600;
        color: var(--ma-white);
        line-height: 1;
    }

    .testi-stat .stat-label {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.55);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 4px;
        display: block;
    }

.testi-hero-logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
}

.testi-logo-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.testi-logo-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

    .testi-logo-badge img {
        height: 32px;
        width: auto;
        max-width: 80px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: 0.75;
    }

/* --- Filter Bar --- */
.testi-filter-bar {
    background: #fff;
    border-bottom: 2px solid #e6eaf4;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 14px rgba(38,68,140,0.07);
}

.testi-filter-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .testi-filter-inner::-webkit-scrollbar {
        display: none;
    }

.testi-cat-btn {
    padding: 16px 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    margin-bottom: -2px;
}

    .testi-cat-btn:hover {
        color: var(--ma-type-primary);
    }

    .testi-cat-btn.active {
        color: var(--ma-type-primary);
        border-bottom-color: var(--ma-type-primaryhoverlight);
    }

/* --- Testimonial Cards Section --- */
.testi-section {
    background: #f4f6fb;
    padding: 60px 0 80px;
}

.testi-section-title {
    margin-bottom: 6px;
}

.testi-section-sub {
    margin-bottom: 44px;
}

/* Quote card */
.testi-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f4;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

    .testi-card:hover {
        box-shadow: 0 8px 30px rgba(38,68,140,0.12);
        transform: translateY(-3px);
    }

.testi-card-header {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    height: 120px;
}

.testi-card-header-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

    .testi-card-header-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(20%);
        transition: filter 0.3s;
    }

.testi-card:hover .testi-card-header-img img {
    filter: grayscale(0%);
}

.testi-card-header-overlay {
    flex: 1;
    background: linear-gradient(to right, var(--ma-type-primary), #022A59);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    position: relative;
}

.testi-card-logo {
    height: 36px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    flex-shrink: 0;
}

.testi-card-org {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.testi-card-sector-tag {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255,133,0,0.9);
    padding: 2px 9px;
    border-radius: 20px;
}

.testi-card-body {
    padding: 22px 24px;
    flex: 1;
    position: relative;
}

.testi-quote-mark {
    position: absolute;
    top: 14px;
    left: 18px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(38,68,140,0.1);
    font-family: Georgia, serif;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

.testi-card-body p {
    font-size: 0.87rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    padding-top: 8px;
    font-style: italic;
}

.testi-card-footer {
    padding: 12px 24px 18px;
    border-top: 1px solid #eef1f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.testi-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ma-type-primary);
}

.testi-stars {
    display: flex;
    gap: 2px;
}

    .testi-stars span {
        color: var(--ma-type-primaryhoverlight);
        font-size: 0.85rem;
    }

/* Category filter pane */
.testi-cat-pane {
    display: none;
}

    .testi-cat-pane.active {
        display: block;
    }

/* --- Placeholder header (no photo) --- */
.testi-card-header-img-placeholder {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

.ph-teal {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

.ph-blue {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.ph-green {
    background: linear-gradient(135deg, #166534 0%, #16a34a 100%);
}

.ph-orange {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

.ph-violet {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.ph-red {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}

/* Text-only logo badge */
.testi-card-logo-text {
    height: 34px;
    min-width: 52px;
    padding: 0 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* CTA Section moved to global cta-wrapper */


@media (max-width: 991px) {
    .testi-hero-logos {
        margin-top: 36px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .testi-logo-row {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .testi-hero {
        padding: 60px 0 48px;
    }

    .testi-hero-stats {
        gap: 16px;
        margin-top: 28px;
        padding-top: 24px;
    }

    .testi-stat {
        min-width: 80px;
    }

    .testi-card-header {
        height: auto;
        flex-direction: column;
    }

    .testi-card-header-img {
        width: 100%;
        height: 140px;
    }

    .testi-card-header-overlay {
        height: 70px;
        width: 100%;
    }
}
