/* --- Global Styles --- */

/* Sets the default font and ensures borders/padding don't increase the element's size */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* --- Global Reset & Box-Sizing --- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* * 🚀 KEY STICKY FOOTER SOLUTION 🚀
 * Set the body as a flex container to manage vertical space.
 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;

    /* 1. Ensure the body takes up the full viewport height */
    min-height: 100vh;
    /* 2. Enable Flexbox */
    display: flex;
    /* 3. Stack content vertically */
    flex-direction: column;
}

/* --- Header & Navigation --- */
header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 5px;
    color: #ff9900; /* Bright color for the title */
}

header p {
    font-size: 0.9em;
    font-style: italic;
}

header hr {
    border-color: #555;
    margin: 10px 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff9900;
}

/* --- Main Content Area --- */
main {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto; /* Centers the main content */
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;

    /* 4. Allow the main content to take up all available space, 
       pushing the footer down. */
    flex-grow: 1; 
}

main h2 {
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
}

main ol {
    margin-left: 40px;
}

/* Style for the links in the lecture list */
main li a {
    color: #333;
    text-decoration: none;
}

main li a:hover {
    text-decoration: underline;
    color: #007bff;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 15px;
    background-color: #ddd;
    color: #333;
    font-size: 0.9em;
    /* No need for position/bottom, Flexbox handles the placement! */
    /* Add a top border for visual separation */
    border-top: 1px solid #ccc;
}