/* Container for the video blocks */
.video-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center align the videos */
    gap: 20px; /* Space between blocks */
    margin: 1% 10%;
    padding: 0 10px;
}

/* Each video block */
.video-block {
    width: 100%; /* Full width of the container */
    max-width: 700px; /* Limit max width of the video block */
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Ensure iframe is responsive and has a 16:9 aspect ratio */
.video-block iframe {
    width: 100%;
    height: auto;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
}

/* Text styling */
.video-block h2,
.video-block p {
    color: black;
    margin: 10px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .video-container {
        margin: 1% 5%; /* Adjust margin for smaller screens */
    }

    .video-block {
        width: 100%; /* Full width on smaller screens */
    }

    .video-block iframe {
        max-width: 100%; /* Adjust iframe width for mobile */
    }
}
