/* ==========================================================================
   VINTUSHTECH — TESTIMONIALS SLIDER SECTION STYLES
   Editorial Monochrome: True Black, Pure White, Layered Semantic Grays
   ========================================================================== */

.testimonials-section {
    padding: 120px 0 100px;
    background: #fafafa;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #f4f4f5;
    border-bottom: 1px solid #f4f4f5;
    scroll-margin-top: 100px;
}

/* Header */
.testimonials-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 24px;
}

.testimonials-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #18181b;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.testimonials-section-badge i {
    color: #000000;
    font-size: 10px;
}

.testimonials-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 14px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.testimonials-header p {
    font-size: 16px;
    color: #71717a;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 24px;
}

.testimonials-rating-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13.5px;
    color: #27272a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    justify-content: center;
}

.rating-stars-badge {
    color: #000000;
    display: inline-flex;
    gap: 2px;
    font-size: 12px;
}

.rating-sep {
    color: #d4d4d8;
}

.rating-verified-text {
    color: #18181b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rating-verified-text i {
    color: #000000;
}

/* Track & Viewport */
.testimonials-track-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.testimonials-viewport {
    overflow: hidden;
    padding: 20px 4px 30px;
    cursor: grab;
    width: 100%;
}

.testimonials-viewport:active {
    cursor: grabbing;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: max-content;
    will-change: transform;
}

/* Card */
.testimonial-card {
    flex: 0 0 360px;
    width: 360px;
    max-width: 360px;
    min-width: 0;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    user-select: none;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    border-color: #d4d4d8;
}

.testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.testimonial-rating {
    display: inline-flex;
    gap: 3px;
    color: #000000;
    font-size: 13px;
}

.testimonial-quote-icon {
    font-size: 20px;
    color: #e4e4e7;
}

.testimonial-featured-badge {
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 9px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.testimonial-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #27272a;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #f4f4f5;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 3px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.author-role {
    font-size: 12.5px;
    color: #71717a;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.author-role span {
    color: #18181b;
    font-weight: 500;
}

/* Navigation Controls */
.testimonials-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 0 24px;
}

.testimonials-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e4e4e7;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (hover: hover) and (pointer: fine) {
    .testimonials-nav-btn:hover {
        background: #000000;
        color: #ffffff;
        border-color: #000000;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
}
.testimonials-nav-btn:active {
    transform: scale(0.95);
    background: #f4f4f5;
}

.testimonials-nav-btn:active {
    transform: translateY(0) scale(0.96);
}

.testimonials-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: #d4d4d8;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
}

.testimonials-dot.active {
    width: 24px;
    background: #000000;
}

/* View All Testimonials Button */
.testimonials-footer-actions {
    text-align: center;
    margin-top: 45px;
    padding: 0 24px;
}

.btn-view-all-testimonials {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-view-all-testimonials:hover {
    background: #27272a;
    border-color: #27272a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.btn-view-all-testimonials i {
    transition: transform 0.25s ease;
    font-size: 13px;
}

.btn-view-all-testimonials:hover i {
    transform: translateX(4px);
}

.testimonials-count-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 320px;
        width: 320px;
        max-width: 320px;
        padding: 26px 22px;
    }
}

@media (max-width: 991px) {
    .testimonials-track-wrapper {
        padding: 0 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .testimonials-viewport {
        width: 100%;
        overflow: hidden;
        padding: 14px 0 20px;
    }

    .testimonials-track {
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 calc(100vw - 32px);
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        min-width: 0;
        box-sizing: border-box;
        padding: 24px 20px;
        border-radius: 18px;
        overflow: hidden;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 70px 0 50px;
    }

    .testimonials-header h2 {
        font-size: 26px;
    }

    .testimonials-track-wrapper {
        padding: 0 16px;
        box-sizing: border-box;
    }

    .testimonials-viewport {
        padding: 10px 0 18px;
    }

    .testimonials-track {
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 calc(100vw - 32px);
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        min-width: 0;
        box-sizing: border-box;
        padding: 22px 18px;
        border-radius: 18px;
        overflow: hidden;
    }

    .testimonial-text {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .testimonials-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .btn-view-all-testimonials {
        width: 100%;
        max-width: 340px;
        justify-content: center;
        padding: 13px 20px;
    }
}

@media (max-width: 480px) {
    .testimonials-header {
        padding: 0 16px;
        margin-bottom: 30px;
    }

    .testimonials-header h2 {
        font-size: 23px;
    }

    .testimonials-track-wrapper {
        padding: 0 14px;
        box-sizing: border-box;
    }

    .testimonials-track {
        gap: 0;
    }

    .testimonial-card {
        flex: 0 0 calc(100vw - 28px);
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        min-width: 0;
        box-sizing: border-box;
        padding: 20px 16px;
        border-radius: 16px;
        overflow: hidden;
    }

    .testimonial-text {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .testimonials-rating-bar {
        padding: 6px 14px;
        font-size: 12px;
        gap: 8px;
    }
}
