.resourcevideos-container {
    background: white;
}

.resourcevideos-title {
    color: var(--primary);
    font-size: 48px;
    margin: 0 0 30px;
}

.resourcevideos-grid {
    display: grid;
    gap: 20px;
    align-items: start;
}

.resourcevideos-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resourcevideos-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.resourcevideos-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #3a3a3a;
    overflow: hidden;
}

.resourcevideos-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resourcevideos-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.resourcevideos-card:hover .resourcevideos-play {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.resourcevideos-play i {
    font-size: 24px;
    color: #3a3a3a;
    margin-left: 3px; /* optical centering for play icon */
}

.resourcevideos-video-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

@media (max-width: 991px) {
    .resourcevideos-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .resourcevideos-title {
        font-size: 36px;
    }
}
