/* ==========================================================================
   LVMR Testimonial Carousel Stylesheet
   ========================================================================== */

/* Scoped variables for responsive styling via Elementor */
.lvmr-tc-wrapper {
    --lvmr-tc-cols: 3;
    --lvmr-tc-gap: 24px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.lvmr-tc-wrapper *, 
.lvmr-tc-wrapper *::before, 
.lvmr-tc-wrapper *::after {
    box-sizing: border-box;
}

/* --- 1. CAROUSEL TRACK LAYOUT --- */
.lvmr-tc-carousel-outer {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.lvmr-tc-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0 24px 0;
}

.lvmr-tc-track {
    display: flex;
    gap: var(--lvmr-tc-gap);
    width: 100%;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
    align-items: stretch; /* All slides same height — tallest card sets the row height */
}

.lvmr-tc-track:active {
    cursor: grabbing;
}

.lvmr-tc-slide {
    flex: 0 0 calc((100% - (var(--lvmr-tc-gap) * (var(--lvmr-tc-cols) - 1))) / var(--lvmr-tc-cols));
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
    display: flex;          /* Let card stretch to full slide height */
    overflow: visible;
}

.lvmr-tc-slide.lvmr-hidden {
    display: none !important;
}

/* --- 2. TESTIMONIAL CARD DESIGN --- */
.lvmr-tc-card {
    background: linear-gradient(135deg, #004fff 0%, #031245 55%, #01071b 100%);
    border-radius: 40px;
    overflow: hidden;       /* Clip card corners cleanly */
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card Image Header with Blend Mask */
.lvmr-tc-card-image {
    position: relative;
    margin: 20px 20px 0 20px;
    border-radius: 20px;
    overflow: hidden;               /* Clip to border-radius */
    flex-shrink: 0;                 /* Don't shrink — image area stays consistent */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix border-radius on Safari */
}

.lvmr-tc-card-image img {
    width: 100%;
    height: 100%;                   /* Fill the container */
    object-fit: cover;              /* Cover without stretching */
    object-position: top center;    /* Always show face/top of image, never crop from top */
    display: block;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) var(--lvmr-tc-mask-start, 60%), rgba(0, 0, 0, 0) var(--lvmr-tc-mask-end, 100%));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) var(--lvmr-tc-mask-start, 60%), rgba(0, 0, 0, 0) var(--lvmr-tc-mask-end, 100%));
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.lvmr-tc-card:hover .lvmr-tc-card-image img {
    transform: scale(1.04);
}

/* Card Body Content */
.lvmr-tc-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Quote Icon */
.lvmr-tc-quote {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    line-height: 1;
}

.lvmr-tc-quote i {
    font-size: 32px;
    color: #38BDF8;
    display: block;
    transition: color 0.3s ease;
    line-height: 1;
}

.lvmr-tc-quote svg {
    width: 36px;
    height: auto;
    fill: #38BDF8;
    color: #38BDF8;
    display: block;
    transition: fill 0.3s ease, color 0.3s ease;
}

/* Testimonial Quote Text */
.lvmr-tc-text {
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
    margin: 0 0 24px 0;
    font-weight: 400;
}

/* Meta Content Footer */
.lvmr-tc-meta {
    margin-top: auto; /* Push metadata to card bottom */
}

/* Name */
.lvmr-tc-name {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

/* Designation/Subtitle */
.lvmr-tc-designation {
    font-size: 14px;
    font-weight: 500;
    color: #38BDF8; /* Default sky blue designation color */
    margin: 0;
    line-height: 1.4;
}

/* --- 3. NAVIGATION CONTROLS --- */
.lvmr-tc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(3, 20, 69, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
}

.lvmr-tc-arrow svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
    stroke-width: 2.5px;
    transition: color 0.3s ease;
}

.lvmr-tc-prev {
    left: -23px;
}

.lvmr-tc-next {
    right: -23px;
}

.lvmr-tc-arrow:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

.lvmr-tc-arrow:hover svg {
    color: #031445;
}

.lvmr-tc-arrow.lvmr-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Pagination Dots */
.lvmr-tc-dots-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.lvmr-tc-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lvmr-tc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.lvmr-tc-dot.lvmr-active {
    background-color: #FFFFFF;
    transform: scale(1.3);
}

.lvmr-tc-dot:hover:not(.lvmr-active) {
    background-color: rgba(255, 255, 255, 0.55);
}

/* --- 4. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .lvmr-tc-wrapper {
        --lvmr-tc-cols: 2;
    }
    .lvmr-tc-arrow {
        width: 42px;
        height: 42px;
    }
    .lvmr-tc-prev {
        left: -15px;
    }
    .lvmr-tc-next {
        right: -15px;
    }
}

@media (max-width: 767px) {
    .lvmr-tc-wrapper {
        --lvmr-tc-cols: 1;
    }
    .lvmr-tc-arrow {
        display: none !important; /* Hide arrows on touch screens */
    }
    .lvmr-tc-card-image {
        /* No fixed height on mobile either — image shows fully */
    }
    .lvmr-tc-card-body {
        padding: 24px;
    }
    .lvmr-tc-text {
        font-size: 15px;
        margin-bottom: 20px;
    }
}
