/* PP Hover Video Card v1.1.0 */

.pp-hvc {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

a.pp-hvc,
a.pp-hvc:hover,
a.pp-hvc:focus {
    text-decoration: none;
    outline: none;
    color: inherit;
}

/* ── Video wrap — stacking context for video + canvas/poster ─────────────── */
.pp-hvc__video-wrap {
    position: relative;
    width: 100%;
    height: 280px;           /* overridden by Elementor slider */
    overflow: hidden;
    background: #111;
}

/* ── Video ─────────────────────────────────────────────────────────────── */
.pp-hvc__video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 600ms ease, opacity 300ms ease;
    opacity: 0;              /* hidden until hover — JS swaps opacity */
    pointer-events: none;
}

.pp-hvc:hover .pp-hvc__video {
    transform: scale(1.1);   /* overridden by Elementor control */
}

/* ── Auto-poster: canvas drawn from video frame ─────────────────────────── */
.pp-hvc__canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;              /* JS sets to 1 once frame is captured */
    transition: opacity 300ms ease;
}

/* ── Manual poster image ─────────────────────────────────────────────────── */
.pp-hvc__poster {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 300ms ease;
}

/* ── Fallback (no video set) ─────────────────────────────────────────────── */
.pp-hvc__fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp-hvc__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #888;
    font-size: 13px;
    font-family: sans-serif;
    text-align: center;
    padding: 16px;
    box-sizing: border-box;
}

/* ── Label panel ─────────────────────────────────────────────────────────── */
.pp-hvc__label {
    padding: 16px;
    background: #ffffff;
}

.pp-hvc__title {
    margin: 0 0 8px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1b3c54;
    line-height: 1.3;
}

.pp-hvc__desc {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    line-height: 1.65;
}

.pp-hvc__arrow {
    color: #e8611a;
    margin-left: 5px;
    font-size: 13px;
    display: inline-block;
    transition: margin-left 200ms ease;
}

.pp-hvc:hover .pp-hvc__arrow {
    margin-left: 9px;
}
