/* Add this at the top of CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Includes padding and border in width/height calculations */
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%; /* Ensure the body does not exceed viewport width */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f1f7fc; /* Soft light blue background */
    padding-bottom: 50px; /* Space for footer */
}

header {
    background: #203864; /* Dark blue */
    color: #fff;
    padding: 20px;
    text-align: center;
    position: fixed; /* Fix header to the top */
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better visibility */
}

main {
    padding: 20px;
    margin-top: 80px; /* Add a margin equal to the header's height to prevent overlap */
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px; /* Space for the fixed header */
    z-index: 999;
}



.filters label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #003366;
    display: block;
}

.filters div {
    margin-right: 20px;
}

.filters select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px; /* Optional: Add some padding for clarity */
}

.video-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-card-content {
    padding: 20px;
    transition: color 0.3s ease;
}

.video-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: #003366;
    font-weight: 600;
}

.video-card p {
    margin: 5px 0;
    color: #555;
}

.icon {
    margin-right: 8px;
}

footer {
    background-color: #203864; /* Dark blue */
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    margin-top: 20px; /* Space above footer */
}
