html {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: rgba(0,0,0,0.8);
  line-height: 1.65;
}
@media screen and (min-width: 58em) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  color: inherit;
  background-color: #ffffff;  
  margin-top: 71px; /* Offset body content by navbar height. */
  padding-top: 0;
  padding-left: 0;
  counter-reset: captions;
}
@media screen and (max-width: 1200px) { /* Match max-width of .nav-bar query. */
  body {
    margin-top: 51px; /* Offset body content by navbar height. */
  }
}

.max-width-640 {
  max-width: 640px;
}

.margin-auto {
  margin-left: auto;
  margin-right: auto;
}

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

/* Body text */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Lists */
ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  margin-bottom: .5rem;
  line-height: 1.25;
  color: #313131;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word; /* Ensures very long heading words do not overflow into content. */
}
h1 {
  font-size: 1.6rem;
  font-weight: 500;
}
h2 {
  margin-top: 0.3rem;
  font-size: 1.4rem;
}
h3 {
  font-weight: 500;
  margin-top: 0.3rem;
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-weight: 700;
  margin-top: 1rem;
  font-size: 1rem;
}


/*************************************************
 *  Home Sections
 **************************************************/


.home-section {
background-color: #ffffff;
padding: 30px 0 30px 0;
animation: intro 0.3s both;
animation-delay: 0.15s;
}

.home-section:first-of-type {
  padding-top: 10px;
}


/*************************************************
 *  Biography
 **************************************************/

#profile {
  text-align: center;
  padding: 30px 10px;
  position: relative;
}

#profile .portrait {
  background-image: url('../img/portrait.jpg');
  width: 220px;
  height: 240px;
  margin: 0 auto;
  border-radius: 15%;
  background-size: cover;
}

#profile .portrait-title h2 {
  font-size: 1.5em;
  font-weight: 300;
  color: #000000;
  margin: 20px 0 10px 0;
}

#profile .portrait-title h3 {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(0,0,0, 0.54);
  margin: 0px 0 10px 0;
}

/* Keep Profile column fixed + consistent gap until 770px */
@media (min-width: 770px) {
  /* Target the ABOUT row that contains #profile + the About text */
  #about .row[itemtype*="schema.org/Person"] {
    display: flex;
    flex-wrap: nowrap;      /* prevents stacking/squeezing behavior */
    align-items: flex-start;
    gap: 6px;              /* <-- controls the gap between profile and about */
  }

  /* Force the left profile area to keep a stable width */
  #about .row[itemtype*="schema.org/Person"] > .col-md-3 {
    flex: 0 0 280px;        /* fixed column width */
    max-width: 280px;
  }

  /* About content takes the remaining space */
  #about .row[itemtype*="schema.org/Person"] > .col-md-9 {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;           /* important so text wraps instead of pushing layout */
  }

  /* Prevent the portrait from shrinking weirdly */
  #profile .portrait {
    width: 220px;           /* adjust if you want larger */
    height: 220px;          /* keep it square like Academic */
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile layout: stack normally below 770px */
@media (max-width: 769.98px) {
  #about .row[itemtype*="schema.org/Person"] {
    display: block;         /* back to normal stacked layout */
  }

  #profile .portrait {
    width: 180px;
    height: 180px;
  }
}

ul.network-icon {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

#profile .network-icon li {
  margin-right: 15px;
}

.big-icon {
  font-size: 1.6rem;
}

ul.ul-edu li {
  position: relative;
  padding: 0px 15px 4px 0px;
}

ul.ul-edu li .description p.course {
  font-size: 0.9rem;
}

ul.ul-edu li .description p.institution {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.6);
}

ul.ul-contact li {
  font-size: 0.9rem;
  margin-top: 10px;
  margin-left: -3px;
}

/*************************************************
 *  Publications
 **************************************************/

.pub-list-item .pub-authors {
  line-height: normal;
  font-style: normal;
  font-size: 1rem;
  /*color: #3170A5;*/
  color: #000000;
  margin-top: 2px;
  margin-bottom: 2px;
}

.pub-list-item .pub-publication {
  color: #090;
  font-size: 1rem;
}

.pub-list-item .pub-abstract {
  margin-top: 8px;
  font-size: 1rem;
  color: #4b4f56;
}

.pub-list-item .name {
  color: black;
  font-size: 1.2rem;
  margin-bottom: 1px;
}

/*************************************************
 * Talks
 **************************************************/

.talk-metadata {
  color: #4b4f56;
  font-size: 0.9rem;
  /* margin-bottom: 0.5rem; */
}



/*************************************************
 *  Navigation Bar
 **************************************************/
.navbar-light {
  font-family: 'Lato', sans-serif;
  background: #f2f2f2;  
  box-shadow: 0 0.125rem 0.25rem 0 rgba(0,0,0,.11);
  background-color: rgb(242,242,242);
}

.navbar-light .navbar-brand {
  font-weight: bold;
  font-size: 1.2em;
  color: #000000bd;
  letter-spacing: 0.5px; /* optional: makes it look cleaner */
}

