/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

/* ==========================================================================
   2. Layout & Containers
   ========================================================================== */
header, section, footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* Header Layout: Photo on Right */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* ==========================================================================
   3. Typography & Links
   ========================================================================== */
h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
}

.bio {
    max-width: 650px;
    margin: 0.5rem 0 1.2rem 0;
    color: #444;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav.links a {
    margin-right: 1rem;
}

/* ==========================================================================
   4. News Section
   ========================================================================== */
#news .news-item {
    margin-bottom: 0.6rem;
}

#news .date {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #555;
}

/* ==========================================================================
   5. Publications Section
   ========================================================================== */
/* Publication Layout: Thumbnails on Left */
.pub-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pub-thumbnail {
    flex-shrink: 0;
    width: 130px;
}

.pub-thumbnail img {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 2px;
}

.pub-info {
    flex: 1;
}

.pub-item .title {
    font-size: 1.05rem;
    font-weight: bold;
    display: block; /* Keeps the title on its own line */
    /* margin-bottom: 2px; */
}

.pub-item em {
    color: #444;
}

/* Ensure your bolded name stays the standard font size */
.pub-item strong {
    font-size: 1rem;
    font-weight: 600;
}

.contribution-note {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   6. Profile Photo
   ========================================================================== */
.profile-photo {
    aspect-ratio: 1 / 1; 
    width: 180px; /* 150px */
    object-fit: cover; 
    height: auto;
    border-radius: 4px; /* Rectangular with slight rounded corners */
    border: 1px solid #eee;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
footer {
    font-size: 0.9rem;
    color: #666;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

/* ==========================================================================
   8. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    .pub-item {
        flex-direction: column;
    }
}