/* ==================================================
   RU-INSPIRED PERSONAL HOMEPAGE
   ================================================== */

:root {
    --red-dark: #9b1b30;
    --red-bright: #cc071e;
    --text: #202020;
    --muted: #666666;
    --nav-background: #eeeeee;
    --border: #dddddd;
    --page-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--red-dark);
    text-decoration: none;
}

a:hover {
    color: var(--red-bright);
    text-decoration: underline;
}


/* ==================================================
   UNIVERSITY / LOGO BAR
   ================================================== */

.university-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.university-bar-inner {
    max-width: var(--page-width);
    height: 54px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

.ru-logo {
    display: inline-flex;
    align-items: center;
    height: 34px;
}

.ru-logo img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 190px;
}


/* ==================================================
   MAIN NAVIGATION
   ================================================== */

.topbar {
    background: var(--nav-background);
}

.topbar-inner {
    max-width: var(--page-width);
    min-height: 56px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.name-in-nav {
    color: var(--red-dark);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.navigation a {
    color: var(--red-dark);
    font-size: 15px;
    text-decoration: none;
}

.navigation a:hover {
    color: var(--red-bright);
    text-decoration: underline;
}

/* Simple CV button */
.cv-button {
    border: 1px solid var(--red-dark);
    padding: 5px 13px;
    font-weight: 700;
}

.cv-button:hover {
    color: #ffffff !important;
    background: var(--red-dark);
    text-decoration: none !important;
}


/* ==================================================
   BREADCRUMB BAR
   ================================================== */

.breadcrumb-bar {
    background: #ffffff;
}

.breadcrumb-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #555555;
    font-size: 14px;
}

.breadcrumb-inner a {
    color: #666666;
}

.breadcrumb-inner span {
    color: #777777;
}


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

main {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 62px 30px 100px;
}


/* ==================================================
   INTRODUCTION / PROFILE
   ================================================== */

.introduction {
    margin-bottom: 76px;
}

.profile {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 42px;
    align-items: start;
}

.profile-photo {
    width: 220px;
    height: 275px;
    background: var(--nav-background);
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

h1 {
    margin: 0 0 12px;
    color: var(--red-bright);
    font-size: 46px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.position {
    margin: 0 0 30px;
    color: var(--red-dark);
    font-size: 20px;
    line-height: 1.4;
}

.intro-text {
    max-width: 850px;
    font-size: 18px;
    line-height: 1.65;
}


/* ==================================================
   SECTIONS
   ================================================== */

section {
    margin-bottom: 70px;
}

h2 {
    margin: 0 0 25px;
    color: var(--red-bright);
    font-size: 31px;
    line-height: 1.2;
    font-weight: 700;
}

h3 {
    margin: 38px 0 8px;
    color: var(--red-dark);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

p {
    max-width: 850px;
    margin: 0 0 18px;
}


/* ==================================================
   THREE HIGHLIGHTS
   ================================================== */

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

.highlight {
    min-width: 0;
}

.highlight-image-link {
    display: block;
}

.highlight-figure {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.highlight-figure img {
    width: 100%;
    object-fit: contain;
    display: block;
}

.highlight h3 {
    margin: 0 0 8px;
    color: var(--red-dark);
    font-size: 21px;
}

.highlight p {
    margin-bottom: 12px;
}


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

.research-group {
    margin-bottom: 45px;
}

.research-group h3 {
    margin-bottom: 8px;
}


/* ==================================================
   GROUP MEMBERS
   ================================================== */

.members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 55px;
    row-gap: 45px;
    margin-top: 35px;
}

.member {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: start;
}

.member-photo {
    width: 120px;
    height: 145px;
    background: var(--nav-background);
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-info h3 {
    margin: 0 0 2px;
    color: var(--red-dark);
    font-size: 19px;
}

.member-role {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 9px;
}

.member-info p {
    font-size: 15px;
    margin-bottom: 8px;
}


/* ==================================================
   FORMER GROUP MEMBERS
   ================================================== */

.former-members-list {
    max-width: 850px;
    margin-top: 25px;
}

.former-member {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.former-member:first-child {
    border-top: 1px solid var(--border);
}

.former-member strong {
    color: var(--red-dark);
}

.former-member span {
    color: var(--muted);
}


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

.publication {
    max-width: 900px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    margin: 35px 0 42px;
    align-items: start;
}

.publication-figure {
    width: 150px;
    height: 115px;
 /*   background: var(--nav-background);*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.publication-figure img {
    width: 100%;
    object-fit: contain;    
    display: block;
}

.publication-content {
    min-width: 0;
}

.publication-title {
    color: var(--red-dark);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.publication-details {
    color: var(--muted);
    font-size: 14px;
}

.publication-content p {
    margin-top: 10px;
    margin-bottom: 10px;
}

.more-link {
    margin-top: 30px;
}


/* ==================================================
   TEACHING / LISTS
   ================================================== */

ul {
    max-width: 850px;
    padding-left: 22px;
}

li {
    margin-bottom: 9px;
}


/* ==================================================
   CONTACT PANEL
   ================================================== */

.contact-section {
    background: var(--nav-background);
    margin: 80px -30px 0;
    padding: 55px 30px 60px;
}

.contact-inner {
    max-width: var(--page-width);
    margin: 0 auto;
}

.contact-section h2 {
    margin-bottom: 30px;
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-columns p {
    margin-bottom: 25px;
}


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

footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 25px 30px;
}


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

@media (max-width: 800px) {

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .navigation {
        gap: 18px;
        flex-wrap: wrap;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

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

    .profile {
        grid-template-columns: 180px 1fr;
        gap: 28px;
    }

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

@media (max-width: 600px) {

    .former-member {
        display: block;
    }

    .former-member span {
        display: block;
        margin-top: 2px;
    }

    body {
        font-size: 16px;
    }

    .university-bar-inner {
        padding: 0 20px;
    }

    .breadcrumb-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    main {
        padding: 45px 20px 70px;
    }

    h1 {
        font-size: 37px;
    }

    h2 {
        font-size: 27px;
    }

    .position {
        font-size: 18px;
    }

    .intro-text {
        font-size: 17px;
    }

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

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

    .publication {
        grid-template-columns: 110px 1fr;
        gap: 18px;
    }

    .publication-figure {
        width: 110px;
        height: 90px;
    }

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

    .contact-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* ==================================================
   INDIVIDUAL HIGHLIGHT PAGE
   ================================================== */

.single-highlight-figure {
    max-width: 850px;
    margin: 35px 0;
    background: var(--nav-background);
    overflow: hidden;
}

.single-highlight-figure img {
    display: block;
    width: 100%;
    height: auto;
}
