/* ========================================
   Video Carousel for Elementor – Styles
   ======================================== */

/* === Variables === */
:root {
    --vce-primary: #2979FF;
    --vce-dark: #1a1a2e;
    --vce-text: #555555;
    --vce-white: #ffffff;
    --vce-card-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    --vce-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --vce-card-radius: 12px;
}

/* === Wrapper === */
.vce-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 80px 20px 40px;
    box-sizing: border-box;
}

/* === Inner — centers everything, contains nav arrows === */
.vce-carousel-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px; /* space for nav arrows */
    box-sizing: border-box;
}

/* === Slides Track — holds slides, gets height from JS === */
.vce-slides-track {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: visible;
}

/* === Individual Slide === */
.vce-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 1;
    transition: all var(--vce-transition);
    pointer-events: none;
    transform: translateY(-30px) scale(0.88);
}

/* Active (front center) */
.vce-slide.vce-active {
    position: relative;
    transform: translateY(0) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* 1 step behind — peeks from top */
.vce-slide.vce-prev,
.vce-slide.vce-next {
    transform: translateY(-26px) scale(0.94);
    opacity: 0.7;
    z-index: 5;
}

/* 2 steps behind — peeks further from top */
.vce-slide.vce-prev-2,
.vce-slide.vce-next-2 {
    transform: translateY(-48px) scale(0.88);
    opacity: 0.4;
    z-index: 2;
}

/* === Slide Card === */
.vce-slide-card {
    background: var(--vce-white);
    border-radius: var(--vce-card-radius);
    box-shadow: var(--vce-card-shadow);
    overflow: hidden;
}

.vce-active .vce-slide-card {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15);
}

/* === Video Area === */
.vce-video-area {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.vce-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vce-active .vce-video-area:hover .vce-thumb {
    transform: scale(1.02);
}

.vce-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c0c8d8 0%, #e2e6ed 100%);
}

.vce-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vce-video-container video,
.vce-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* === Play Button === */
.vce-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 15;
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 0;
    outline: none;
}

.vce-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.vce-play-btn.vce-hidden {
    opacity: 0;
    pointer-events: none;
}

/* === Expand Button === */
.vce-expand-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: background 0.2s ease;
    padding: 0;
}

.vce-expand-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* === Progress Bar === */
.vce-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
    z-index: 15;
}

.vce-time-current,
.vce-time-total {
    font-size: 11px;
    font-weight: 500;
    color: var(--vce-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-width: 32px;
    text-align: center;
    user-select: none;
}

.vce-progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.vce-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--vce-white);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* === Navigation Buttons === */
.vce-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--vce-primary);
    background: var(--vce-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.25s ease;
    padding: 0;
    outline: none;
    color: var(--vce-primary);
    box-shadow: 0 2px 12px rgba(41, 121, 255, 0.15);
}

.vce-nav-btn:hover {
    background: var(--vce-white);
    color: var(--vce-primary);
    box-shadow: 0 4px 20px rgba(41, 121, 255, 0.25);
    border-color: var(--vce-primary);
}

.vce-nav-btn:hover svg {
    stroke: var(--vce-primary);
}

.vce-nav-btn svg {
    stroke: var(--vce-primary);
    transition: stroke 0.25s ease;
}

.vce-nav-prev {
    left: 0;
}

.vce-nav-next {
    right: 0;
}

/* === Testimonial === */
.vce-testimonial {
    padding: 20px 24px 24px;
}

.vce-person-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.vce-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #eef2f7;
    display: block;
}

.vce-avatar-placeholder {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
    display: block;
}

.vce-person-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vce-person-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vce-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.3;
}

.vce-person-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--vce-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.3;
}

.vce-slide-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--vce-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    border-top: 1px solid #eef2f7;
    padding-top: 14px;
}

/* === Navigation Dots (mobile) === */
.vce-nav-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 0 0;
}

.vce-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d0d5dd;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    outline: none;
}

.vce-nav-dot.vce-dot-active {
    background: var(--vce-primary);
    transform: scale(1.25);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .vce-carousel-wrapper {
        padding: 70px 15px 30px;
    }

    .vce-carousel-inner {
        padding: 0 55px;
    }

    .vce-nav-btn {
        width: 42px;
        height: 42px;
    }

    .vce-slide.vce-prev,
    .vce-slide.vce-next {
        transform: translateY(-22px) scale(0.94);
        opacity: 0.6;
    }

    .vce-slide.vce-prev-2,
    .vce-slide.vce-next-2 {
        transform: translateY(-40px) scale(0.88);
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .vce-carousel-wrapper {
        padding: 60px 10px 20px;
    }

    .vce-carousel-inner {
        padding: 0 10px;
    }

    .vce-nav-btn {
        display: none;
    }

    .vce-nav-dots {
        display: flex;
    }

    .vce-slide.vce-prev,
    .vce-slide.vce-next {
        transform: translateY(-20px) scale(0.94);
        opacity: 0.55;
    }

    .vce-slide.vce-prev-2,
    .vce-slide.vce-next-2 {
        transform: translateY(-36px) scale(0.88);
        opacity: 0.25;
    }

    .vce-testimonial {
        padding: 16px 18px 20px;
    }

    .vce-person-name {
        font-size: 14px;
    }

    .vce-person-role {
        font-size: 12px;
    }

    .vce-slide-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vce-carousel-wrapper {
        padding: 50px 5px 15px;
    }

    .vce-carousel-inner {
        padding: 0 5px;
    }

    .vce-slide.vce-prev,
    .vce-slide.vce-next {
        transform: translateY(-16px) scale(0.94);
        opacity: 0.5;
    }

    .vce-slide.vce-prev-2,
    .vce-slide.vce-next-2 {
        transform: translateY(-28px) scale(0.88);
        opacity: 0.2;
    }

    .vce-play-btn svg {
        width: 40px;
        height: 40px;
    }

    .vce-testimonial {
        padding: 14px 14px 18px;
    }

    .vce-avatar {
        width: 36px;
        height: 36px;
    }

    .vce-person-name {
        font-size: 13px;
    }

    .vce-person-role {
        font-size: 11px;
    }

    .vce-slide-desc {
        font-size: 12px;
        line-height: 1.55;
    }

    .vce-time-current,
    .vce-time-total {
        font-size: 10px;
    }

    .vce-progress-bar {
        padding: 6px 10px;
    }
}
