/* Testimonial Section-Specific Custom Styling */

:root {
    --tst-bg: #131735;
    /* Sleek dark mode background matching mockup */
    --tst-card-bg: rgba(255, 255, 255, 0.03);
    /* Subtle glassmorphism card background */
    --tst-card-border: rgba(255, 255, 255, 0.07);
    --tst-accent: #008df6;
    /* Brand blue accent */
    --tst-text-main: #ffffff;
    --tst-text-muted: rgba(255, 255, 255, 0.6);
}

.testimonial-sec {
    overflow: hidden;
    position: relative;
    font-family: "Sen", sans-serif;
}

.testimonial-container {
    background-color: var(--tst-bg);
    padding: 50px 0px 50px 30px;
    align-items: flex-start;
}

/* Badge Styling */
.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--tst-text-main);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.testimonial-badge__circle {
    width: 6px;
    height: 6px;
    background-color: var(--tst-accent);
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 8px var(--tst-accent);
}

/* Header adjustments for full-width layout */
.testimonial-header {
    margin-bottom: 40px;
}

.testimonial-title {
    font-weight: 700;
    line-height: 1.25;
    color: var(--tst-text-main);
    font-size: 36px;
}

.testimonial-desc {
    color: var(--tst-text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 850px;
}

/* Viewport & Slider Track */
.testimonial-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    cursor: grab;
}

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

.testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Card design matching mockup */
.testimonial-card {
    flex: 0 0 580px;
    /* Width of cards on desktop to allow side-by-side view */
    display: flex;
    background: #FFFFFF1A;
    /* Dark premium card background */
    border: 1px solid var(--tst-card-border);
    border-radius: 24px;
    overflow: hidden;
    opacity: 0.45;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    user-select: none;
    min-height: 370px;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card__left {
    flex: 0 0 40%;
    /* background: rgba(255, 255, 255, 0.015); */
    /* border-right: 1px solid var(--tst-card-border); */
    /* padding: 30px 24px; */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
}

.testimonial-card__right {
    flex: 0 0 60%;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 24px;
}

@media (max-width: 767.98px) {
    .testimonial-card {
        flex: 0 0 calc(100vw - 40px);
        flex-direction: column;
        max-width: 100%;
    }

    .testimonial-card__left {
        flex: 0 0 auto;
        border-right: none;
        padding: 24px;
    }

    .testimonial-card__right {
        flex: 0 0 auto;
        padding: 24px;
    }
}

/* Profile and Avatar inside card prefix */
.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar-container {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    padding: 4px;
}

.testimonial-avatar {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
}

.testimonial-company {
    font-size: 18px;
    font-weight: 700;
    color: var(--tst-text-main);
    margin: 0;
    line-height: 1.25;
}

.testimonial-client {
    font-size: 13px;
    color: var(--tst-text-muted);
    margin: 2px 0 0 0;
    font-weight: 400;
}

/* Grid Graphic Section in Left Card */
.testimonial-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.testimonial-grid-img {
    max-width: 155px;
    height: auto;
    opacity: 1;
    mix-blend-mode: screen;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Right Column of Card - Review Content */
.testimonial-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: #fdb913;
    /* Premium gold color matching mockup exactly */
}

.testimonial-google-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 20px;
}

.testimonial-google-logo {
    display: flex;
    align-items: center;
}

.testimonial-google-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--tst-text-main);
    letter-spacing: 0.3px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    font-weight: 400;
}

/* Navigation buttons at bottom */
.testimonial-controls {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.testimonial-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(24, 30, 48);
    /* Dark matching active buttons */
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--tst-text-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.12);
    /* Subtle hover overlay instead of accent color */
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.testimonial-btn.disabled {
    opacity: 0.2;
    /* Very dim state matching disabled mockup */
    cursor: not-allowed;
}

/* Reset image dragging issues in slider track */
.testimonial-track img {
    -webkit-user-drag: none;
    user-drag: none;
}

/* Extra alignments */
.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}


@media (max-width:1199.98px) {
    .testimonial-grid {
        width: 100% !important;
    }

    .testimonial-viewport-container {
        width: 100% !important;
        display: flex;
        flex-direction: column;
    }

    .testimonial-controls {
        order: 1;
        margin: 20px 0;
        justify-content: center;

    }

    .testimonial-viewport {
        order: 2;
    }

}

@media (max-width: 767.98px) {
    .py-100 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .testimonial-graphic {
        display: none;
    }
}