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

header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.site-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0;
}

.site-subtitle {
    margin-top: 4px;
    color: #555;
    font-size: 18px;
}

nav {
    margin-top: 22px;
    background-color: #002D72;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 14px 22px;
    font-size: 16px;
    display: block;
}

nav a:hover {
    background-color: #005EB8;
    text-decoration: none;
}

.hero {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 24px 70px;
}

main > h2:first-child {
    margin-top: 0;
    margin-bottom: 25px;
}

h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    margin-top: 45px;
}

.intro {
    font-size: 16px;
    color: #444;
    width: 100%;
    max-width: none;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.research-card {
    border-top: 3px solid #333;
    padding-top: 15px;
}

.research-card h3 {
    margin-top: 0;
    font-size: 21px;
}

.research-image,
.research-video {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.research-video {
    background: #000;
}

footer {
    border-top: 1px solid #ddd;
    padding: 25px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

@media (max-width: 750px) {

    header {
        padding: 22px 18px 0;
    }

    .hero {
        padding: 0 18px;
    }

    main {
        padding: 8px 18px 55px;
    }

    .research-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-title {
        font-size: 28px;
    }

    .site-subtitle {
        font-size: 16px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 25px;
    }

    .intro {
        font-size: 16px;
    }

    nav a {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* ========================================
   Mentoring page
======================================== */

.mentoring-philosophy {
    max-width: 950px;
    margin-bottom: 60px;
}

.mentoring-philosophy h3,
.mentoring-section h3 {
    color: #002D72;
    border-bottom: 1px solid #d9e2ec;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.mentoring-philosophy p {
    font-size: 16px;
    line-height: 1.7;
}

.mentoring-story {
    font-size: 16px !important;
    color: #444;
}

.mentoring-section {
    margin-top: 60px;
}

.section-intro {
    font-size: 18px;
    color: #555;
    max-width: 850px;
    margin-bottom: 30px;
}


/* Current students */

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #d5e2ef;
    border-radius: 8px;
    background: #f7f9fc;
    text-decoration: none;
    color: #222;
    transition: transform 0.15s ease,
                box-shadow 0.15s ease,
                background 0.15s ease;
}

.person-card:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 5px 16px rgba(0, 45, 114, 0.12);
}

.person-photo {
    width: 85px;
    height: 85px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.person-info {
    flex: 1;
    min-width: 0;
}

.person-name {
    color: #002D72;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.25;
}

.person-role {
    color: #666;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.3;
}


/* Academic faculty list */

.faculty-list {
    width: 100%;
    border-top: 1px solid #ddd;
}

.faculty-entry {
    display: grid;
    grid-template-columns: 70px 240px 1fr;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    color: inherit;
}

.faculty-photo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

.faculty-person {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.faculty-name {
    color: #002D72;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
}

.faculty-role {
    color: #777;
    font-size: 13px;
    margin-top: 3px;
    line-height: 1.3;
}

.faculty-position {
    color: #555;
    font-size: 15px;
    line-height: 1.4;
}

.faculty-entry:hover {
    background: #f7f9fc;
}

/* ========================================
   Individual profile pages
======================================== */

.profile-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 45px;
}

.profile-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.profile-heading h1 {
    margin: 0 0 8px 0;
    color: #002D72;
}

.profile-title {
    font-size: 20px;
    font-weight: bold;
    color: #444;
    margin: 0 0 4px 0;
}

.profile-affiliation {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}


/* Google Scholar / ORCID links */

.profile-links {
    margin-top: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-links a {
    color: #002D72;
    font-weight: bold;
    text-decoration: none;
}

.profile-links a:hover {
    text-decoration: underline;
}


/* Profile sections */

.profile-section {
    margin-top: 42px;
}

.profile-section h2 {
    color: #002D72;
    font-size: 24px;
    border-bottom: 1px solid #d9e2ec;
    padding-bottom: 6px;
    margin-bottom: 18px;
}

.profile-section p {
    max-width: 850px;
    font-size: 16px;
    line-height: 1.7;
}


/* Publications */

.profile-publication {
    max-width: 850px;
    margin-bottom: 16px;
}

.profile-publication p {
    margin: 0;
}


/* Gallery */
/* Gallery */

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 18px;
    margin-top: 20px;
}

.profile-gallery figure {
    margin: 0;
}

/* Photos and videos use the same gallery dimensions */

.profile-gallery img,
.profile-gallery video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

/* Black background while video is loading */

.profile-gallery video {
    background: #000;
    object-fit: contain;
}

.profile-gallery figcaption {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

/* Back to mentoring page */

.profile-back {
    margin-top: 45px;
}

.profile-back a {
    color: #002D72;
    text-decoration: none;
    font-weight: bold;
}

.profile-back a:hover {
    text-decoration: underline;
}


/* Mobile profile page */

@media (max-width: 750px) {

    .profile-header {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 15px;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .profile-gallery {
        grid-template-columns: 1fr;
    }

}

/* Mobile */
@media (max-width: 750px) {

    .people-grid {
        grid-template-columns: 1fr;
    }

    .faculty-entry {
        grid-template-columns: 60px 1fr;
        gap: 12px 16px;
    }

    .faculty-photo {
        width: 60px;
        height: 60px;
        grid-row: 1;
    }

    .faculty-person {
        grid-column: 2;
    }

    .faculty-position {
        grid-column: 2;
        font-size: 14px;
        margin-top: 4px;
    }
}

.research-page {
    max-width: 1000px;
}

.research-intro {
    padding: 36px 0 42px;
}

.research-eyebrow,
.research-era {
    color: #005EB8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.research-intro h1 {
    color: #002D72;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
    margin: 12px 0 22px;
}

.research-intro > p {
    color: #444;
    font-size: 18px;
    max-width: 800px;
}

.research-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.research-jump a {
    border: 1px solid #ccd9e8;
    border-radius: 30px;
    color: #002D72;
    font-size: 13px;
    padding: 7px 13px;
    text-decoration: none;
}

.research-jump a:hover {
    background: #f3f7fb;
}

.research-section {
    border-top: 1px solid #dfe7f0;
    padding: 55px 0;
    scroll-margin-top: 25px;
}

.research-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(280px, 0.87fr);
    gap: 42px;
    align-items: center;
}

/* Alternate the side occupied by the illustration. */
.research-section:nth-of-type(odd) .research-visual {
    order: -1;
}

.research-section h2 {
    color: #002D72;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    margin: 12px 0 18px;
}

.research-section p {
    margin: 0 0 15px;
}

.research-idea {
    color: #263f60;
    font-size: 18px;
    font-weight: bold;
}

.research-papers {
    border-top: 1px solid #dfe7f0;
    margin-top: 20px;
    padding-top: 15px;
}

.research-papers > strong {
    color: #526174;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.research-papers ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.research-papers li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.research-papers a {
    color: #002D72;
}

.research-visual {
    background: #f3f7fb;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 45, 114, 0.08);
    margin: 0;
    overflow: hidden;
}

.research-visual img {
    display: block;
    height: auto;
    max-height: 390px;
    object-fit: contain;
    width: 100%;
}

.research-image-fallback {
    align-items: center;
    color: #486381;
    font-size: 14px;
    justify-content: center;
    min-height: 240px;
    padding: 28px;
    text-align: center;
}

.research-visual figcaption {
    background: white;
    border-top: 1px solid #dbe5ef;
    color: #526174;
    font-size: 12px;
    line-height: 1.5;
    padding: 12px 16px;
}

.research-outro {
    background: #f3f7fb;
    margin: 20px 0 0;
    padding: 26px;
}

.research-outro p {
    margin: 0;
}

.research-footer a {
    color: #002D72;
}
/* Publications page: book covers */
.publication-book {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}

.publication-book-cover img {
    display: block;
    width: 125px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.publication-book-details p {
    margin: 0;
}

@media (max-width: 750px) {
    .publication-book {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 16px;
    }

    .publication-book-cover img {
        width: 90px;
    }
}


@media (max-width: 750px) {
    .research-intro {
        padding: 26px 0 32px;
    }

    .research-section {
        padding: 40px 0;
    }

    .research-section-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .research-section:nth-of-type(odd) .research-visual {
        order: 0;
    }
}

