/* =========================================================
   TACKETT RESEARCH GROUP
   Purdue-inspired shared website theme
   Used by: Home / Research / People / Publications
   ========================================================= */


/* ---------- COLOR SYSTEM ---------- */

:root {
    --purdue-gold: #CFB991;
    --purdue-black: #000000;
    --aged-gold: #8E6F3E;

    --background: #f8f7f4;
    --surface: #ffffff;
    --surface-soft: #f1efe9;

    --text: #262626;
    --text-light: #666666;

    --border: #dedbd2;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background-color: var(--background);
    color: var(--text);

    line-height: 1.65;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    background: var(--purdue-black);
    border-bottom: 4px solid var(--purdue-gold);
    padding: 0 32px;
}


/* Works with both:
   <header><nav class="navbar">...</nav></header>

   AND your old research-page header structure.
*/

.navbar,
header {
    position: relative;
}

.navbar {
    max-width: 1200px;
    min-height: 82px;

    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 35px;
}


/* ---------- LOGO / GROUP NAME ---------- */

.logo {
    color: white;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: normal;

    letter-spacing: 0.4px;

    white-space: nowrap;
}


/* gold accent in front of group name */

.logo::before {
    content: "";
    display: inline-block;

    width: 5px;
    height: 30px;

    margin-right: 13px;

    background-color: var(--purdue-gold);

    vertical-align: middle;
}


/* ---------- NAVIGATION ---------- */

.menu {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 28px;

    padding: 0;
    margin: 0;
}


.menu li {
    margin: 0;
    padding: 0;
}


.menu li a {
    position: relative;

    color: #ffffff;

    text-decoration: none;

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

    letter-spacing: 0.8px;

    text-transform: uppercase;

    padding: 31px 0 27px;

    transition: color 0.2s ease;
}


.menu li a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 20px;

    width: 0;
    height: 2px;

    background-color: var(--purdue-gold);

    transition: width 0.25s ease;
}


.menu li a:hover {
    color: var(--purdue-gold);
}


.menu li a:hover::after {
    width: 100%;
}


/* Optional active-page indicator */

.menu li a.active {
    color: var(--purdue-gold);
}

.menu li a.active::after {
    width: 100%;
}


/* =========================================================
   GENERAL PAGE ELEMENTS
   ========================================================= */

main {
    width: 100%;
}


h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--purdue-black);
    font-weight: normal;
}


h2 {
    font-size: 2rem;
}


a {
    color: var(--aged-gold);
}


a:hover {
    color: var(--purdue-black);
}


/* Standard content width */

.page-container {
    max-width: 1160px;

    margin: 0 auto;

    padding-left: 30px;
    padding-right: 30px;
}


/* =========================================================
   HOME PAGE CAROUSEL
   ========================================================= */

.carousel {
    position: relative;
    overflow: hidden;

    width: 90%;
    max-width: 900px;

    height: 450px;

    margin: 40px auto;

    background-color: #000;

    border-radius: 3px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}


.carousel-container {
    display: flex;

    width: 100%;
    height: 100%;

    transition: transform 0.6s ease-in-out;
}


.slide {
    flex: 0 0 100%;

    width: 100%;
    height: 100%;
}


.slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background-color: #000;
}


/* Carousel arrows */

.carousel-controls {
    position: absolute;

    top: 50%;
    left: 0;

    width: 100%;

    transform: translateY(-50%);

    display: flex;
    justify-content: space-between;

    padding: 0 18px;

    z-index: 5;

    pointer-events: none;
}


.carousel-controls span {
    pointer-events: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background-color: rgba(0, 0, 0, 0.6);

    color: white;

    font-size: 1.7rem;

    cursor: pointer;

    border-left: 3px solid var(--purdue-gold);
}


.carousel-controls span:hover {
    background-color: #000;
    color: var(--purdue-gold);
}


/* Tablet */

@media (max-width: 900px) {

    .carousel {
        width: 92%;
        height: 400px;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .carousel {
        width: 94%;
        height: 300px;

        margin: 25px auto;
    }

}


/* ---------- CAROUSEL BUTTONS ---------- */

.carousel-controls {
    position: absolute;

    top: 50%;
    left: 0;

    width: 100%;

    transform: translateY(-50%);

    display: flex;
    justify-content: space-between;

    padding: 0 25px;

    z-index: 5;

    pointer-events: none;
}


.carousel-controls span {
    pointer-events: auto;

    display: flex;

    justify-content: center;
    align-items: center;

    width: 45px;
    height: 45px;

    background: rgba(0, 0, 0, 0.65);

    color: white;

    font-size: 1.8rem;

    cursor: pointer;

    border-left: 3px solid var(--purdue-gold);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.carousel-controls span:hover {
    background: var(--purdue-black);
    color: var(--purdue-gold);
}


/* ---------- INTRO ---------- */

.intro-paragraph {
    background: var(--surface);

    color: var(--text);

    text-align: center;

    padding: 55px 25px;

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


.intro-paragraph p {
    margin: 0 0 12px;
}


.intro-paragraph b {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 2rem;

    font-weight: normal;

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


.intro-paragraph i {
    display: block;

    max-width: 780px;

    margin: auto;

    font-style: normal;

    font-size: 1.08rem;

    color: var(--text-light);
}


/* =========================================================
   RECENT UPDATES
   ========================================================= */

.recent-updates {
    max-width: 900px;
    margin: 0 auto;
    padding: 65px 30px 85px;
}


.recent-updates h2 {
    text-align: center;

    margin: 0 0 45px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: normal;

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


.recent-updates h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin: 12px auto 0;

    background-color: var(--purdue-gold);
}


/* Main list */

.updates-list {
    border-top: 1px solid var(--border);
}


/* Individual update */

.update-item {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 25px;

    align-items: start;

    padding: 22px 5px;

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


/* Date */

.update-date {
    font-family: Georgia, "Times New Roman", serif;

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

    color: var(--aged-gold);
}


/* Update description */

.update-text {
    font-size: 1rem;

    line-height: 1.65;

    color: var(--text);
}


/* Subtle interaction */

.update-item {
    transition:
        padding-left 0.2s ease,
        background-color 0.2s ease;
}


.update-item:hover {
    padding-left: 10px;

    background-color: rgba(207, 185, 145, 0.08);
}


/* Mobile */

@media (max-width: 600px) {

    .update-item {
        grid-template-columns: 1fr;

        gap: 5px;

        padding: 18px 5px;
    }

    .update-date {
        font-size: 0.85rem;
    }

}


/* =========================================================
   RESEARCH PAGE
   ========================================================= */

.topics-section {
    max-width: 1160px;

    margin: 0 auto;

    padding: 65px 30px 30px;

    text-align: center;
}


.topics-section h2 {
    margin-top: 0;
    margin-bottom: 22px;
}


.topics-section h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin: 12px auto 0;

    background: var(--purdue-gold);
}


.topics-section > p {
    max-width: 900px;

    margin: 0 auto 50px;

    font-size: 1.05rem;

    line-height: 1.8;

    color: var(--text-light);
}


/* ---------- RESEARCH CARDS ---------- */

.topics-container {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    padding: 0;

    border-radius: 0;
}


.topic {
    background: var(--surface);

    color: var(--text);

    padding: 0 0 22px;

    border: 1px solid var(--border);
    border-top: 4px solid var(--purdue-gold);

    border-radius: 2px;

    overflow: hidden;

    cursor: pointer;

    text-align: center;

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.topic:hover {
    transform: translateY(-5px);

    background: var(--surface);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.13);
}


.topic img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: contain;

    background: white;

    border: none;

    margin: 0 0 20px;
}


.topic h3 {
    font-size: 1.25rem;

    margin: 10px 18px 0;
}


/* ---------- RESEARCH DESCRIPTION ---------- */

.description-area {
    max-width: 900px;

    margin: 30px auto 80px;

    padding: 40px;

    background: var(--surface);

    color: var(--text);

    border: none;
    border-left: 5px solid var(--purdue-gold);

    border-radius: 0;

    box-shadow: var(--shadow);

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.description-area img {
    max-width: 450px;

    width: 45%;

    height: auto;

    border: none;

    border-radius: 2px;

    margin-bottom: 25px;
}


.description-area p {
    max-width: 750px;

    margin: 0;

    font-size: 1.05rem;

    line-height: 1.8;

    color: var(--text);
}


/* =========================================================
   PEOPLE PAGE - SIMPLE DIRECTORY STYLE
   ========================================================= */

.section {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
    padding: 45px 30px;
}


/* Section headings */

.section h2 {
    margin: 0 0 30px;

    padding-bottom: 10px;

    border-bottom: 2px solid var(--purdue-gold);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: normal;

    color: var(--purdue-black);

    text-align: left;
}


/* 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: Georgia, "Times New Roman", 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(--aged-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%;
    }

}


/* =========================================================
   PUBLICATIONS PAGE
   ========================================================= */

.publications {
    max-width: 950px;

    margin: 65px auto 80px;

    padding: 0 30px;

    background: transparent;

    border-radius: 0;
}


.publications h2 {
    text-align: center;

    margin: 0 0 45px;

    font-size: 2rem;
}


.publications h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    margin: 12px auto 0;

    background: var(--purdue-gold);
}


/* ---------- PUBLICATION ENTRY ---------- */

.publication-item {
    position: relative;

    margin-bottom: 18px;

    padding: 24px 28px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-left: 4px solid var(--purdue-gold);

    border-radius: 2px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.publication-item:hover {
    background: var(--surface);

    border-color: var(--border);
    border-left-color: var(--purdue-gold);

    transform: translateX(3px);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.08);
}


.publication-title {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.08rem;

    font-weight: bold;

    line-height: 1.45;

    color: var(--purdue-black);

    margin-bottom: 8px;
}


.publication-authors {
    margin-bottom: 5px;

    font-style: normal;

    font-size: 0.93rem;

    color: var(--text);
}


.publication-journal {
    font-size: 0.9rem;

    color: var(--text-light);
}


.publication-journal a,
.publication-item a {
    color: var(--aged-gold);

    font-weight: bold;

    text-decoration: none;
}


.publication-journal a:hover,
.publication-item a:hover {
    color: var(--purdue-black);

    text-decoration: underline;
}


/* Older publication lists */

.publication-item ul {
    margin: 18px 0;

    padding-left: 20px;
}


.publication-item ul li,
.publication-item ul {
    line-height: 1.7;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 30px;

    padding: 35px 30px;

    text-align: center;

    background: var(--purdue-black);

    color: #cccccc;

    border-top: 4px solid var(--purdue-gold);

    font-size: 0.85rem;
}


footer p {
    margin: 5px 0;
}


footer a {
    color: var(--purdue-gold);

    text-decoration: none;
}


footer a:hover {
    color: white;
}


/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 900px) {

    header {
        padding: 0 20px;
    }

    .navbar {
        flex-direction: column;

        justify-content: center;

        padding: 20px 0;

        gap: 15px;
    }

    .logo {
        white-space: normal;

        text-align: center;
    }

    .menu {
        flex-wrap: wrap;

        justify-content: center;

        gap: 20px;
    }

    .menu li a {
        padding: 6px 0 10px;
    }

    .menu li a::after {
        bottom: 4px;
    }


    .topics-container {
        grid-template-columns: 1fr;
    }


    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .carousel,
    .slide {
        height: 420px;
    }
}


@media (max-width: 600px) {

    .logo {
        font-size: 1.3rem;
    }

    .menu {
        gap: 14px;
    }

    .menu li a {
        font-size: 0.78rem;
    }


    .carousel,
    .slide {
        height: 320px;
    }


    .intro-paragraph {
        padding: 40px 20px;
    }

    .intro-paragraph b {
        font-size: 1.65rem;
    }


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


    .section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .topics-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .description-area {
        margin-left: 20px;
        margin-right: 20px;

        padding: 25px;
    }

    .description-area img {
        width: 100%;
    }


    .publications {
        padding-left: 18px;
        padding-right: 18px;
    }


    .publication-item {
        padding: 20px;
    }


    .photo-library {
        padding-left: 20px;
        padding-right: 20px;
    }
}