/* General Body and Layout */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000080; /* Light grey background */
    color: #333;
    line-height: 1.6;
}

.page-wrapper {
    max-width: 1000px; /* Max width for desktop content */
    margin: 20px auto; /* Center the content area with some top/bottom margin */
    padding: 0 15px; /* Horizontal padding for smaller screens */
}

.main-content-area {
    background-color: #000080;
    padding: 25px;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
}

/* Header Styling */
.video-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Separator for header */
}

.header-text {
    font-size: 2.2em; /* Larger font for desktop */
    color: #FFFFFF; /* Darker blue-grey for headings */
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Very subtle text shadow */
}

.header-description {
    font-size: 1.1em;
    color: #FFFFFF;
    max-width: 800px; /* Constrain description width */
    margin: 0 auto; /* Center description */
}

/* Responsive Video Embed */
.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width = 9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #000; /* Black background for video area */
    border-radius: 6px;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Remove default iframe border */
}

/* Related Content Section */
.related-content-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center; /* Center content within this section */
}

.related-content-section h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
}

.video-container {
    display: inline-block; /* Allows multiple figures on one line (desktop) */
    vertical-align: top; /* Aligns them at the top */
    width: 100%; /* Full width on mobile */
    max-width: 300px; /* Max width for each video thumbnail on desktop */
    margin: 15px;
    padding: 15px;
    background-color: #000080;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out; /* Smooth hover effect */
}

.video-container:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.video-container a {
    text-decoration: none;
    color: #000080; /* Standard link blue */
    display: block; /* Make the entire figure clickable */
}

.video-container img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 4px; /* Rounded corners for images */
    display: block; /* Remove extra space below image */
    margin: 0 auto 10px auto; /* Center image and add bottom margin */
}

.video-container figcaption {
    font-size: 0.95em;
    color: #000080;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9em;
    background-color: #fcfcfc;
    border-radius: 0 0 8px 8px; /* Match main content area bottom corners */
}

/* Media Queries for Responsiveness */

/* For screens smaller than 768px (e.g., tablets in portrait, large phones) */
@media (max-width: 768px) {
    .page-wrapper {
        margin: 10px auto;
        padding: 0 10px;
    }

    .main-content-area {
        padding: 15px;
    }

    .header-text {
        font-size: 1.8em;
    }

    .header-description {
        font-size: 1em;
    }

    .related-content-section h2 {
        font-size: 1.5em;
    }

    .video-container {
        max-width: 90%; /* Allow related videos to take more width on tablets */
        margin: 10px auto; /* Center individual related video blocks */
    }
}

/* For screens smaller than 480px (e.g., most mobile phones) */
@media (max-width: 480px) {
    .header-text {
        font-size: 1.5em;
    }

    .header-description {
        font-size: 0.95em;
    }

    .related-content-section h2 {
        font-size: 1.3em;
    }

    .video-container {
        padding: 10px;
        margin: 10px auto;
    }

    footer {
        font-size: 0.8em;
        padding: 15px;
    }
}