@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

body {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    background-color: white;
    color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-size: 1.15em;
}

header {
    background-color: white;
    color: #154360;
    padding: 1em 0;
    text-align: center;
    font-size: 0.9em;
}

.header-links {
    margin-top: 0.6em;
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.header-links a {
    color: #154360;
    text-decoration: none;
}

.header-links a:hover {
    text-decoration: underline;
}

nav {
    background-color: #d4e6f1;
    color: black;
    display: flex;
    justify-content: center;
    padding: 0.5em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: black;
    text-decoration: none;
    margin: 0 1em;
    font-size: 0.9em;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2em;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    font-size: 0.9em;
    box-sizing: border-box;
}

.teaching-section {
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid #ececec;
    border-radius: 6px;
}

main > .teaching-section:nth-of-type(odd) {
    background-color: #ffffff;
}

main > .teaching-section:nth-of-type(even) {
    background-color: #f7f7f7;
}

.teaching-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.teaching-column {
    min-width: 0;
}

.teaching-column h5 {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #154360;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fafafa;
}

.section-nav a {
    color: #154360;
    text-decoration: none;
    font-size: .9rem;
}

.section-nav a:hover {
    text-decoration: underline;
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.content-column {
    min-width: 0;
}

main ul {
    list-style-type: disc;
}

footer {
    background-color: white;
    color: #154360;
    padding: 0.8em 1.2em;
    width: 100%;
    font-size: 0.7em;
    margin-top: auto;
    text-align: center;
    box-sizing: border-box;
}

/* Ensure section navigation scrolls naturally (not sticky) */
.section-nav {
    position: static;
}