/* Container for each video block */
.video-card {
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

/* This fixes the overlapping issue */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-wrapper iframe, 
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Ensures local video fills the box */
}