/* ====================================================
   NeuroPlanck Video Testimonials Widget
   ==================================================== */

.np-videos {
    background: #fff;
    padding: 10px 0;
    position: relative;
    width: 100%;
}

.np-videos__container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
}

/* Header */
.np-videos__subtitle {
    display: block;
    font-family: 'Geologica', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.np-videos__title {
    font-family: 'Geologica', Arial, Helvetica, sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.np-videos__desc {
    font-family: 'Cabin', Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

/* Carousel */
.np-videos__carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.np-videos__row-wrapper {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    text-align: center;
}
.np-videos__row-wrapper::-webkit-scrollbar {
    display: none;
}

.np-videos__row {
    display: inline-flex;
    gap: 16px;
    padding: 20px 0;
}
.np-videos__row--scroll {
    text-align: left;
}

/* Arrows */
.np-videos__arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.np-videos__arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.np-videos__arrow:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.np-videos__arrow--prev:hover svg { transform: translateX(-2px); }
.np-videos__arrow--next:hover svg { transform: translateX(2px); }

/* Video card */
.np-videos__card {
    flex: 0 0 175px;
    width: 175px;
    height: 310px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
    scroll-snap-align: center;
}
.np-videos__card:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 2;
}

/* Video element */
.np-videos__card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Duration badge — hidden */
.np-videos__duration {
    display: none;
}

/* Controls */
.np-videos__controls {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.np-videos__ctrl {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0 !important;
}
.np-videos__ctrl:hover {
    background: rgba(0,0,0,0.85) !important;
    transform: scale(1.1);
}
.np-videos__ctrl svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    color: #fff !important;
    stroke: #fff !important;
    pointer-events: none;
}
.np-videos__ctrl svg.np-hidden {
    display: none !important;
}

/* Stats row */
.np-videos__stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 50px;
}
.np-videos__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.np-videos__stat-number {
    font-family: 'Geologica', Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
}
.np-videos__stat-label {
    font-family: 'Cabin', Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #888;
}

/* ─── Elementor Overrides ─── */
.elementor-widget-np_videos {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.elementor-widget-np_videos .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
.elementor-section:has(.elementor-widget-np_videos) {
    padding: 0 !important;
    margin: 0 !important;
}
.elementor-section:has(.elementor-widget-np_videos) > .elementor-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.elementor-section:has(.elementor-widget-np_videos) > .elementor-container > .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .np-videos {
        padding: 60px 0;
    }
    .np-videos__title {
        font-size: 28px;
    }
    .np-videos__arrow {
        display: none;
    }
    .np-videos__card {
        flex: 0 0 150px;
        width: 150px;
        height: 270px;
    }
    .np-videos__row {
        justify-content: flex-start;
        width: max-content;
        padding-left: 4px;
        padding-right: 4px;
    }
    .np-videos__stats {
        gap: 40px;
    }
    .np-videos__stat-number {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .np-videos {
        padding: 40px 0;
    }
    .np-videos__container {
        padding: 0 16px;
    }
    .np-videos__title {
        font-size: 22px;
    }
    .np-videos__desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .np-videos__card {
        flex: 0 0 130px;
        width: 130px;
        height: 230px;
        border-radius: 16px;
    }
    .np-videos__row {
        gap: 10px;
    }
    .np-videos__ctrl {
        width: 28px;
        height: 28px;
    }
    .np-videos__ctrl svg {
        width: 13px;
        height: 13px;
    }
    .np-videos__stats {
        gap: 24px;
        flex-wrap: wrap;
        margin-top: 30px;
    }
    .np-videos__stat-number {
        font-size: 24px;
    }
}
