/* Videos Page */
.main-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

#latest-video, #video-archive {
    margin-bottom: 40px;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 20px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



/* Ensure the video container stacks elements vertically */
.video {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Align the numbering and title horizontally */
.video-header {
    display: flex;
    align-items: center; /* Vertically align the number and title */
    margin-bottom: 10px;
}

/* Style the numbering */
.video-number {
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

/* Style the title */
.video-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.video-title a {
    color: #0056b3;
    text-decoration: none;
}

.video-title a:hover {
    text-decoration: underline;
}

/* Ensure the thumbnail is below the title */
.video-thumbnail {
    margin-top: 10px; /* Add spacing above the thumbnail */
    display: flex;
    justify-content: space-between; /* Space items evenly horizontally */
    align-items: center; /* Align items vertically in the center */
    gap: 10px; /* Add spacing between the thumbnail and description */
    justify-content: center; /* Center the thumbnail horizontally */
}


.video-thumbnail img {
        width: 300px; /* Set a fixed width for the thumbnail */
        height: 200px; /* Set a fixed height to maintain consistency */
        object-fit: cover; /* Ensure the image scales properly without distortion */
        border-radius: 5px; /* Keep the rounded corners */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}


/* Style the description */
.video-thumbnail p {
    font-size: 14px;
    color: #555;
    text-align: justify;
}

.video-thumbnail img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .video-thumbnail img {
        width: 200px; /* Smaller size for tablets */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .video-thumbnail img {
        width: 150px; /* Smaller size for mobile devices */
        height: 100px;
    }
}

