body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    line-height: 1.6;
}

header {
    background: linear-gradient(
        to bottom,
        #1a4d80,
        #003366,
        #001f3f
    );
    color: white;
    padding: 1rem;
}


header h1 {
    margin-bottom: 1px;  /* reduce space below the main title */
}

.subtitle {
    font-size: 1.2rem;       /* smaller than h1 */
    font-weight: normal;
    color: #ffffff;          /* white text */
    margin-top: 0;           /* tight with h1 */
    margin-bottom: 15px;     /* space before nav */
}

nav {
    margin-top: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
    background: white;
}

section {
    margin-bottom: 2rem;
}

.person {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.person img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #003366;
    color: white;
    margin-top: 2rem;
}

/* Boxed sections for Welcome, Research, News only */
section:not(#recent-publications) {
    background-color: #f0f8ff;
    border-left: 5px solid #3399ff;

    margin-bottom: 0.75rem;      /* reduce spacing between sections */
    padding: 1rem 2rem;          /* top/bottom 1rem, left/right 2rem */

    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(224, 224, 224, 0.3);
}

section p:last-child {
    margin-bottom: 0;
}

/* Section headers */
section h2 {
    color: #003366;
    margin-top: 0;
}

/* Recent Publications - each entry is boxed */
.pub-entry {
    background-color: #e6f2ff; /* light blue */
    border-left: 5px solid #3399ff;
    padding: 12px 18px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    line-height: 1.3;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pub-entry strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.pub-entry em {
    font-style: italic;
}

.pub-entry a {
    color: #0059b3;
    text-decoration: none;
}

.pub-entry a:hover {
    text-decoration: underline;
}

.pub-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* People cards */
.people-card {
    display: flex;
    align-items: flex-start;
    background-color: #f0f8ff;
    border-left: 5px solid #3399ff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.1);
}



/* People photo */
.people-photo {
    width: 150px;
    height: auto;
    border-radius: 8px;
    margin-right: 20px;
}

/* Info next to photo */
.people-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.people-info p {
    margin: 3px 0;  /* tighten vertical spacing */
}

.people-info a {
    color: #0059b3;
    text-decoration: none;
}

.people-info a:hover {
    text-decoration: underline;
}

.highlight-box {
    background-color: #fff8cc;
    padding: 18px 25px;   /* reduced from 30px */
    margin: 20px 0;       /* reduced from 40px */
    border: 1px solid #e6d98c;
    border-radius: 0;
}

.opportunities-section .position-card {
    border-left: 5px solid #c9b458;
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-card {
    display: flex;
    gap: 30px; /* space between image and text */
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 30px;

    align-items: center; /* <-- vertically center image relative to text */
}


.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-image {
    flex: 1; /* image takes about 1/3 */
    min-width: 200px;
}

.project-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.project-content {
    flex: 2; /* text takes about 2/3 */
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .project-card {
        flex-direction: column; /* image on top on narrow screens */
    }
}

.publications-list li {
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.publications-list li strong {
  color: #3399ff; /* highlight title in blue */
}


.book {
    display: flex;
    align-items: center; /* vertically center the text relative to the image */
    margin-bottom: 1.5rem;
}

.book-image {
    width: 120px;  /* adjust as needed */
    height: auto;
    margin-right: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.book-info h3 {
    margin: 0 0 0.5rem 0;
}

.book-info p {
    margin: 0;
}
