/* ============================
   FONT IMPORTS (SELF-HOSTED)
   ============================ */
@font-face {
    font-family: 'Instrument Serif';
    src: url('my_webpage_files/Fonts/InstrumentSerif-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Instrument Serif';
    src: url('my_webpage_files/Fonts/InstrumentSerif-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url('my_webpage_files/Fonts/Roboto-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: url('my_webpage_files/Fonts/Roboto-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: 'Merriweather';
    src: url('my_webpage_files/Fonts/Merriweather-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'Merriweather';
    src: url('my_webpage_files/Fonts/Merriweather-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* ============================
   COLOR PALETTE
   ============================ */
:root {
    --pitt-blue: #003594;
    --pitt-gold: #FFB81C;
}

/* ============================
   GLOBAL
   ============================ */
body {
    margin: 0;
    font-family: 'Roboto', 'Merriweather', serif;
    background: #f5f5f5;
    color: #222;
}

main {
    max-width: 1100px;
    margin: 20px auto;
    background: white;
    padding: 40px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* ============================
   NAVIGATION
   ============================ */
header {
    background: var(--pitt-blue);
    color: white;
    padding: 20px 40px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-weight: 400;
    font-style: bold;
    color: #FFB81C;
}

.menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding-bottom: 5px;
}

.menu a:hover,
.menu a.active {
    border-bottom: 3px solid var(--pitt-gold);
}

/* ============================
   CAROUSEL
   ============================ */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
}

.carousel-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.prev, .next {
    cursor: pointer;
    font-size: 2rem;
    color: var(--pitt-gold);
    font-weight: bold;
    padding: 10px;
}

/* ============================
   PEOPLE PAGE
   ============================ */
/* No grid cards anymore */

.profile-grid {
    display: flex;
    flex-direction: column;

    gap: 0;
}


/* Each person becomes one horizontal row */

.profile-container {
    display: grid;

    grid-template-columns: 215px 1fr;
    gap: 35px;

    align-items: start;

    width: 100%;
    padding: 30px 0;

    background: transparent;

    border: none;
    border-bottom: 1px solid var(--border);

    box-shadow: none;

    text-align: left;
}


/* Remove old hover movement */

.profile-container:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}


/* Profile photos */

.profile-container img,
.profile-container img.principal-investigator {
    display: block;

    width: 190px !important;
    height: 220px !important;
    min-width: 190px;

    margin: 0;

    /* Completely fill the frame â?? no white or empty edges */
    object-fit: cover;

    /* Keep faces/heads higher in the visible crop */
    object-position: center 20%;

    border: 1px solid var(--border);
    border-radius: 3px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    transition: none;
}



.profile-container img:hover,
.profile-container img.principal-investigator:hover {
    transform: none;
}


/* Text section */

.profile-text {
    width: 100%;

    display: block;
}


/* Person name */

.profile-title {
    margin: 0 0 8px;

    font-family: "Merriweather", serif;

    font-size: 1.35rem;
    font-weight: bold;

    color: var(--purdue-black);
}


/* Biography */

.profile-container .profile-description,
.profile-text .profile-description {

    display: block;

    margin: 10px 0 16px;

    font-size: 0.95rem;

    line-height: 1.7;

    color: var(--text-light);

    text-align: left;
}


/* Qualifications */

.profile-text .profile-qualifications {

    margin-top: 0;
    padding-top: 0;

    border-top: none;

    font-size: 0.9rem;

    line-height: 1.7;

    color: var(--text);
}


.profile-qualifications a {
    color: var(--Pitt-gold);

    text-decoration: none;
    font-weight: bold;
}


.profile-qualifications a:hover {
    color: var(--purdue-black);

    text-decoration: underline;
}


/* PI and postdoc sections */

.section > .profile-container {
    max-width: none;

    margin: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .section {
        padding: 35px 20px;
    }


    .profile-container {
        grid-template-columns: 165px 1fr;

        gap: 22px;

        padding: 25px 0;
    }


    .profile-container img,
    .profile-container img.principal-investigator {

        width: 145px !important;
        height: 170px !important;
        min-width: 145px;

        object-fit: cover;
        object-position: center 20%;
    }


    .profile-title {
        font-size: 1.2rem;
    }

}


@media (max-width: 500px) {

    .profile-container {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .profile-container img,
    .profile-container img.principal-investigator {

        width: 170px !important;
        height: 200px !important;
        min-width: 170px;

        object-fit: cover;
        object-position: center 20%;
    }

}
/* ============================
   RESEARCH PAGE
   ============================ */
.topics-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.topic {
    width: 300px;
    cursor: pointer;
    text-align: center;
}

.topic img {
    width: 100%;
    border-radius: 6px;
}

.description-area {
    margin-top: 30px;
    padding: 20px;
    border: 3px solid var(--pitt-gold);
    border-radius: 6px;
}

.description-area img {
    width: 300px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ============================
   FOOTER
   ============================ */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
}


.intro-paragraph p b {
    font-family: 'Merriwether', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--pitt-blue);
}

.intro-paragraph {
    text-align: center;
}

.intro-paragraph p b {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--pitt-blue);
}

.pub-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

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

.pub-list li {
    margin-bottom: 18px;
    line-height: 1.5;
    font-family: 'Roboto', 'Merriweather', serif;
    font-size: 1rem;
}

.pub-list a {
    color: var(--pitt-blue);
    font-weight: bold;
    text-decoration: none;
}

.pub-list a:hover {
    text-decoration: underline;
}
.pub-container {
    max-height: 600px;
    overflow-y: auto;
}

.section-header {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--pitt-blue);
    padding-bottom: 6px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFB81C; /* horizontal line */
}

.hr-thin {
    border: none;
    border-bottom: 1px solid #d0d0d0;
    margin: 30px 0;
}
