/* General Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background for a clean look */
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

a {
    color: #007bff; /* Primary link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: #007bff;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.title-main {
    font-size: 2.5em;
    margin-bottom: 5px;
    font-weight: 700;
}

.title-subtitle {
    font-size: 1.2em;
    font-weight: 400;
}

.main-nav {
    background-color: #343a40;
    padding: 10px 0;
    border-bottom: 3px solid #0056b3;
}

.main-nav .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: white;
    padding: 8px 15px;
    margin: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 700;
}

.main-nav a:hover {
    background-color: #007bff;
    text-decoration: none;
}

/* Main Content Area */
.content-area {
    padding-top: 30px;
    padding-bottom: 50px;
}

.card {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: #007bff;
    font-size: 1.8em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.subsection-title {
    color: #343a40;
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Policy List */
.policy-list {
    list-style: none;
    padding: 0;
}

.policy-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #007bff;
}

.policy-list .policy-title {
    font-size: 1.1em;
    color: #212529;
    margin-bottom: 5px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.data-table thead tr {
    background-color: #007bff;
    color: white;
    text-align: center;
}

.data-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.data-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.data-table tbody tr:hover {
    background-color: #e2e6ea;
}

/* Special Row Styles */
.light-text-row td {
    color: #6c757d; /* Lighter text for past or non-current entries */
}

.cancelled-row td {
    background-color: #ffcccc; /* Highlight cancelled lectures */
    font-style: italic;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid #007bff;
}

.footer-content a {
    color: #ccc;
}

.footer-content a:hover {
    color: white;
}

.to-top {
    margin: 10px 0;
    font-size: 0.9em;
}

.clock-display {
    font-size: 1.2em;
    margin: 10px 0;
    color: #fff;
    font-family: 'Roboto', monospace;
}

.credits {
    font-size: 0.8em;
    line-height: 1.4;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-main {
        font-size: 1.8em;
    }

    .title-subtitle {
        font-size: 1em;
    }

    .main-nav .container {
        flex-direction: column;
    }

    .main-nav a {
        margin: 3px 0;
        width: 100%;
        text-align: center;
    }

    .data-table {
        display: block;
        overflow-x: auto; /* Allows table to scroll horizontally on small screens */
        white-space: nowrap;
    }
}