:root {
    --bg-light: #f8f9fa;
    --panel-bg-light: #ffffff;
    --panel-border-light: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --accent: #FFCB05;
    --um-blue: #00274C;
    /* --link-hover-border: var(--um-blue); */
    --link-hover-border: var(--accent);
}

#utc-time {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-dark);
}

* {
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--panel-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

.header h1 {
        margin: 0;
        font-size: clamp(1.2rem, 3.5vw, 1.5rem);
        font-weight: 700;
        color: var(--um-blue);
        line-height: 1.2;
    }
    
.header h1 span {
    color: var(--accent);
    -webkit-text-stroke: 1.5px var(--um-blue);
}

.nav-panel {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--panel-border-light);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.nav-wrapper:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
}


body {
    background-color: var(--bg-light);
    padding: 1rem 0;
    padding-bottom: 80px;
    font-size: 2em;
    min-height: 100vh;
    color: var(--text-dark);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

h1 {
    text-align: center;
    color: var(--um-blue);
}

h2, h3 {
        margin-top: 2rem;
        margin-bottom: 0.5em;
        font-weight: 700;
        line-height: 1.2;
        text-align: center; /* Ensures headings are always centered */
        color: var(--um-blue);
    }
h1 {
    font-size: clamp(2rem, 7vw, 2.5rem);
    color: var(--um-blue);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--um-blue);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-dark);
}

a {
    color: var(--um-blue);
    text-decoration: none;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--panel-border-light);
    margin: 2rem auto;
    width: 90%;
}

.nav-item-link { 
    text-decoration: none; 
    display: block; 
    color: inherit; 
}

.nav-item {
    background: var(--panel-bg-light);
    border: 1.5px solid var(--panel-border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    padding: 10px 8px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    color: var(--um-blue);
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-link:hover .nav-item {
    transform: scale(1.05);
    border-color: var(--link-hover-border);
    box-shadow: 0 6px 12px rgba(0, 39, 76, 0.1);
}

.footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.media-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--panel-border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    margin: 1rem auto 0 auto;
    max-width: 800px;
}

.media-container img,
.media-container video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

@media (max-width: 400px) {
    .header h1 {
        font-size: 1.3rem;
    }
}

.content-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
}

.content-wrapper h1,
.content-wrapper h2 {
    text-align: left;
}

.content-wrapper h1 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Spacing for sub-sections */
.content-wrapper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark); /* Slightly less prominent than H1 */
}

/* Styling for paragraphs and lists for better readability */
.content-wrapper p,
.content-wrapper ul {
    line-height: 1.7;
    margin-bottom: 1.25em;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: left;
}

.content-wrapper ul {
    padding-left: 25px;
}

.content-wrapper li {
    margin-bottom: 0.5em;
    text-align: left;
}

.content-wrapper strong {
    color: var(--um-blue);
    font-weight: 600;
}

.content-wrapper a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.table-container {
    overflow-x: auto;
    border: 1px solid var(--panel-border-light);
    border-radius: 8px;
    margin: 1.5em 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Prevents the table from squishing too much */
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--panel-border-light);
    vertical-align: middle;
    white-space: nowrap; /* Prevents text from wrapping inside cells */
}

.data-table td {
    color: var(--text-muted);
}

.data-table th {
    background-color: #f8f9fa; /* Light grey for header */
    font-weight: 600;
    color: var(--um-blue);
    text-align: left;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    font-size: 0.85rem;
}
.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    font-size: 0.85rem;
}