/* Yale Official Brand Colors */
:root {
    --yale-blue: #00356B;
    --yale-gray: #978D85;
    --yale-light-gray: #f4f4f4;
    --yale-text: #333333;
    --white: #ffffff;
    --yale-accent: #286DC0;
}

body {
    font-family: "YaleNew", Georgia, "Times New Roman", serif;
    line-height: 1.6;
    color: var(--yale-text);
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

/* Header & Navigation */
header {
    background: var(--yale-blue);
    color: var(--white);
    padding: 2rem 0;
    border-bottom: 4px solid var(--yale-gray);
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    padding: 0;
    list-style: none;
    margin-top: 1.5rem;
}

nav ul li {
    display: inline;
    margin-right: 25px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--yale-gray);
    border-bottom: 2px solid var(--yale-gray);
}

/* Main Content Area */
main {
    padding-bottom: 50px;
}

h2, h3 {
    color: var(--yale-blue);
}

hr {
    border: 0;
    border-top: 1px solid var(--yale-gray);
    margin: 2rem 0;
}

/* Sections */
.hero {
    display: flex;
    padding: 3rem 0;
    gap: 40px;
    align-items: flex-start;
}

.bio-text { flex: 2; }
.bio-image { flex: 1; }
.bio-image img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--yale-gray);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* People Page */
.person-entry {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.person-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--yale-blue);
}

.person-details h4 {
    margin: 0;
    color: var(--yale-blue);
    font-size: 1.3rem;
}

/* Publications */

/* Update your CSS with this specific rule */
ol.pub-list {
    list-style-type: decimal;
    padding-left: 2rem; /* Ensures the numbers are visible and not cut off */
}

.pub-list {
    list-style: none;
    padding: 0;
}

.pub-list li {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pub-title {
    font-weight: bold;
    display: block;
    color: #000;
}

.pub-authors {
    font-style: italic;
    color: #555;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 2rem;
}

.map-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--yale-blue);
    color: white !important;
    text-decoration: none;
    border-radius: 2px;
}

/* Footer & Sponsors */
footer {
    background: var(--yale-light-gray);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--yale-gray);
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.sponsor-grid img {
    height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.sponsor-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero, .contact-grid, .person-entry {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .bio-image { order: -1; width: 60%; margin: 0 auto; }
}
