/* CSS Reset: http://meyerweb.com/eric/tools/css/reset */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/**************************************************/
/* Base Styles */

#main {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

#body {
    font-family: roboto, sans-serif;
    color: #a0a8b0;
}

p {
    font-size: 14px;
    line-height: 24px;
}

a {
    text-decoration: none;
    color: #4a85c8;
    transition: border-bottom 0.2s ease;
}

a:hover,
a:focus {
    border-bottom: 1px solid #4a85c8;
    outline: none;
}

a:focus-visible {
    outline: 2px solid #4a85c8;
    outline-offset: 2px;
    border-radius: 2px;
}

i {
    font-style: italic;
}

h1,
h2 {
    font-size: 24px;
    line-height: 24px;
    margin: 30px 0 20px 0;
    color: #003373;
}

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

/**************************************************/
/* Header */

#header {
    height: 58px;
    font-size: 14px;
    line-height: 58px;
    padding-top: 42px;
    text-align: right;
    border-bottom: 1px solid #ddd;
    padding-right: 30px;
}

#header a {
    text-decoration: none;
    border-bottom: none;
    color: #a0a8b0;
}

#header a:hover,
#header a:focus {
    color: #4a85c8;
    border-bottom: none;
}

/**************************************************/
/* Profile Section */

#profile {
    padding: 30px 30px 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

#profile-pic {
    flex: 0 0 auto;
    text-align: center;
}

#profile img {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 18px;
    display: block;
}

#profile-name {
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 20px;
    margin-top: 0;
    color: #003373;
    padding: 0;
}

#profile-intro {
    flex: 1 1 300px;
    min-width: 0;
}

#profile p {
    margin-bottom: 20px;
}

/**************************************************/
/* Recent Work Slider */

.recent-work {
    height: 200px;
    padding: 30px 30px 35px 30px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 0 30px;
    -webkit-overflow-scrolling: touch;
}

.slider {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 20px;
}

.slider a {
    flex: 0 0 auto;
    border: none;
}

.slider a:focus {
    border: none;
    outline: 2px solid #4a85c8;
    outline-offset: 4px;
    border-radius: 10px;
}

.slider img,
.slider video {
    height: 205px;
    width: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

/* Custom scrollbar for webkit browsers */
.recent-work::-webkit-scrollbar {
    background: none;
    height: 8px;
}

.recent-work::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
    margin-left: 240px;
    margin-right: 240px;
}

.recent-work::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.recent-work::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/**************************************************/
/* Dividers */

.divider {
    width: 100%;
    border-bottom: 1px solid #ddd;
}

/**************************************************/
/* Lists */

ul {
    font-size: 14px;
    line-height: 24px;
    list-style-position: inside;
    list-style-type: disc;
    margin-left: 30px;
    margin-right: 30px;
    color: #a0a8b0;
}

.talks-list {
    padding-left: 0;
}

.talks-list li {
    margin-bottom: 0;
}


/**************************************************/
/* Toggle Buttons */

.showBtn {
    margin-top: 10px;
    margin-bottom: 30px;
    margin-left: 30px;
    font-size: 14px;
    line-height: 24px;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 14px;
    line-height: 24px;
    color: #003373;
    cursor: pointer;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.toggle-btn:hover,
.toggle-btn:focus {
    color: #4a85c8;
    outline: none;
}

.toggle-btn:focus-visible {
    outline: 2px solid #4a85c8;
    outline-offset: 2px;
    border-radius: 2px;
}

.showBtn button {
    color: #003373;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.showBtn button:hover,
.showBtn button:focus {
    color: #003373;
    border-bottom: 1px solid #003373;
}

#moreNews {
    display: none;
}

#lessNewsBtn {
    display: none;
}

#lessTalksBtn {
    display: none;
}

/* Ensure more talks items are hidden by default */
.more-talks-item {
    /* display: none !important; */
    display: none;
}

/**************************************************/
/* Research Section */

.research {
    padding: 0;
}

.research-proj {
    margin: 0 30px;
    padding: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.research-proj:last-of-type {
    border-bottom: none;
}

.nonRep {
    display: none;
}

.research-thumb {
    flex: 0 0 180px;
    max-width: 100%;
    margin-top: 7px;
    margin-bottom: 0;
}

.research-thumb:hover,
.research-thumb:focus {
    border-bottom: none;
}

.research-thumb img,
.research-thumb video {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.research-thumb video {
    margin-top: 0;
}

.research-proj-content {
    flex: 1 1 300px;
    min-width: 0;
}

.research-proj-title {
    color: #003373;
    font-size: 16px;
    line-height: 26px;
    display: block;
    margin-bottom: 8px;
}

.research-proj-title:hover,
.research-proj-title:focus {
    border-bottom: 1px solid #003373;
}

.research-proj p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
}

.research-proj p strong {
    color: #fdc450;
    font-weight: 700;
}

#morePubs {
    display: none;
}

#morePubsBtn {
    margin-left: 30px;
}

#lessPubsBtn {
    display: none;
    margin-left: 30px;
}

/**************************************************/
/* Other Sections */

h3 {
    margin-left: 30px;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 15px;
}

#repBtn {
    color: #49bf9d;
    display: inline;
    text-decoration: none;
    border-bottom: 1px solid #a4dfce;
}

#repBtn a {
    color: inherit;
}

#repBtn a:hover,
#repBtn a:focus {
    color: #49bf9d;
}

#showAllBtn {
    color: #191e3f;
    display: inline;
    text-decoration: none;
}

#showAllBtn a {
    color: inherit;
}

#showAllBtn a:hover,
#showAllBtn a:focus {
    color: #49bf9d;
}

.sponsors {
    margin-bottom: 120px;
}

.sponsors h1 {
    margin-bottom: 0;
}

.sponsor-thumb img {
    margin-left: 20px;
    height: 100px;
}

.sponsor-thumb a:hover,
.sponsor-thumb a:focus {
    border: none;
}

.people {
    padding-left: 30px;
}

.student-profile {
    width: 125px;
    float: left;
    text-align: center;
    margin: 0 30px 30px 0;
    font-size: 14px;
    line-height: 20px;
}

.student-profile p {
    color: #003373;
}

.student-profile p a {
    color: #003373;
}

.student-profile p a:hover,
.student-profile p a:focus {
    border-bottom: 1px solid #003373;
}

.student-profile img {
    width: 100%;
    border-radius: 10px;
}

/**************************************************/
/* Responsive Design */

/* Tablet and below */
@media screen and (max-width: 768px) {
    #main {
        max-width: 100%;
    }

    h1,
    h2 {
        font-size: 22px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #profile {
        padding: 20px;
        gap: 30px;
    }

    #profile img {
        width: 180px;
    }

    #profile-intro {
        flex-basis: 100%;
    }

    .recent-work {
        padding: 20px 20px 35px 20px;
        margin: 0 0 20px;
        height: 180px;
    }

    .slider img,
    .slider video {
        height: 180px;
    }

    .recent-work::-webkit-scrollbar-track {
        margin-left: 140px;
        margin-right: 140px;
    }

    ul {
        margin-left: 20px;
        margin-right: 20px;
    }

    .showBtn {
        margin-left: 20px;
    }

    .research-proj {
        margin: 0 20px;
        padding: 20px 0;
        gap: 20px;
    }

    .research-thumb {
        flex: 0 0 150px;
    }

    .research-proj-content {
        flex-basis: 100%;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {

    h1,
    h2 {
        font-size: 20px;
        margin: 20px 0 15px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    p {
        font-size: 13px;
        line-height: 22px;
    }

    #profile {
        padding: 15px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    #profile-pic {
        width: 100%;
        text-align: center;
    }

    #profile img {
        width: 200px;
        margin: 0 auto 18px;
    }

    #profile-intro {
        flex-basis: 100%;
        text-align: left;
    }

    #profile-name {
        text-align: center;
    }

    .recent-work {
        padding: 15px 15px 30px 15px;
        margin: 0 0 15px;
        height: 160px;
    }

    .recent-work::-webkit-scrollbar-track {
        margin-left: 40px;
        margin-right: 40px;
    }

    .slider {
        gap: 15px;
    }

    .slider img,
    .slider video {
        height: 120px;
    }

    ul {
        margin-left: 15px;
        margin-right: 15px;
        font-size: 13px;
        line-height: 22px;
    }

    .showBtn {
        margin-left: 15px;
        font-size: 13px;
    }

    .research-proj {
        margin: 0 15px;
        padding: 15px 0;
        gap: 15px;
        flex-direction: column;
    }

    .research-thumb {
        flex: 0 0 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .research-proj-content {
        flex-basis: 100%;
    }

    .research-proj-title {
        font-size: 15px;
        line-height: 24px;
    }

    .research-proj p {
        font-size: 13px;
        line-height: 22px;
    }
}

/* Large screens */
@media screen and (min-width: 1200px) {
    #main {
        max-width: 960px;
    }
}

/* Print styles */
@media print {
    .recent-work {
        overflow: visible;
        height: auto;
    }

    .slider {
        flex-wrap: wrap;
        width: 100%;
    }

    .slider a {
        margin-bottom: 20px;
    }
}