.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Make each video item a row */
.video-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 10px;
    max-width: 900px;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #d4d4d4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image on the left */
.video-item img {
    width: 320px;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

/* Text on the right */
.video-item .video-info {
    padding: 10px;
    flex: 1;
}

.video-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: black;
}

.video-item p {
    font-size: 14px;
    color: #222;
    margin: 5px 0;
}

/* Stack nicely on small screens */
@media (max-width: 768px) {
    .video-item {
        flex-direction: column;
    }

    .video-item img {
        width: 100%;
    }
    .video-container {
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
}

}
