/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Global subtle blue background tint */
body {
  background-color: #fafbfd;
  background-image: linear-gradient(to bottom, #fafbfd 0%, #f8f9fc 100%);
  position: relative;
}

/* Triangle mesh canvas */
#triangle-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

/* Social links hover effect */
.social-links a {
  display: inline-block;
  transition: transform 0.2s ease;
  padding: 2px 4px;
}

.social-links a:hover {
  transform: translateY(-2px);
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.6;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: 600;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

/* News Section Styles */
.news-section {
  padding: 20px;
  width: 100%;
  vertical-align: middle;
  margin-top: 30px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  max-width: 100%;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  padding: 6px 0;
  align-items: baseline;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.news-date {
  font-weight: 600;
  color: #1a73e8;
  min-width: 110px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
  color: #2c3e50;
}

/* Teaching Section Styles */
.teaching-section {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
}


.teaching-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.teaching-item {
  padding: 15px 0;
  border-bottom: 1px solid #e8eaed;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.teaching-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
  border-bottom-color: #d0d7de;
}

.teaching-item:last-child {
  border-bottom: none;
}

.teaching-role {
  color: #2c3e50;
  line-height: 1.6;
  margin-bottom: 6px;
}

.teaching-meta {
  color: #5f6368;
  font-size: 13px;
  font-style: italic;
}

/* Profile section white rectangle */
.profile-row {
  background-color: #ffffff;
  border-radius: 4px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-row td {
  background-color: transparent;
}

/* Hide mobile photo on desktop */
.profile-photo-mobile {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-photo-mobile {
    display: block;
    text-align: center;
    margin: 15px 0;
  }
  
  .profile-photo-mobile .profile-photo {
    border-radius: 0 !important;
    max-width: 200px !important;
    width: auto !important;
  }
  
  .profile-photo-cell {
    display: none !important;
  }
  
  .profile-row {
    display: block;
  }
  
  .profile-row td {
    display: block;
    width: 100% !important;
  }
  
  .profile-text-cell {
    padding: 2.5% !important;
  }
  
  .news-section {
    margin-top: 20px;
    padding-top: 20px;
  }
  
  .news-item {
    flex-direction: column;
    gap: 5px;
  }
  
  .news-date {
    min-width: auto;
    width: 100%;
  }
  
  .teaching-item {
    padding: 12px 0;
  }
}

/* Carousel styles for mobile */
.papers-carousel-container {
  position: relative;
  width: 100%;
}

.papers-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 115, 232, 0.85);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  border-radius: 8px;
  user-select: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.carousel-nav:hover {
  background-color: rgba(26, 115, 232, 0.95);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  display: none;
  text-align: center;
  padding: 15px 0;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 5px;
  transition: background-color 0.3s;
}

.carousel-indicator.active {
  background-color: #1a73e8;
}

/* Mobile styles - show carousel */
@media (max-width: 768px) {
  .papers-carousel-container {
    position: relative;
    min-height: 400px;
  }
  
  .papers-carousel-wrapper {
    overflow: hidden;
    position: relative;
  }
  
  .papers-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .papers-table tbody {
    display: block;
  }
  
  .paper-item {
    display: none;
    width: 100%;
    margin-bottom: 0;
  }
  
  .paper-item.active {
    display: table-row;
  }
  
  .paper-item td {
    display: block;
    width: 100% !important;
    padding: 15px !important;
  }
  
  .paper-item td:first-child {
    text-align: center;
    padding-bottom: 10px !important;
    border-radius: 2px 2px 0 0;
  }
  
  .paper-item td:last-child {
    border-radius: 0 0 2px 2px;
  }
  
  .paper-item td img {
    max-width: 100%;
    height: auto;
    width: auto !important;
  }
  
  .paper-item td .one {
    width: 100% !important;
    height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .carousel-nav {
    display: block;
    font-size: 24px;
    padding: 12px 16px;
  }
  
  .carousel-indicators {
    display: flex;
  }
}

/* Paper item hover effects (desktop) */
.paper-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  cursor: pointer;
}

.paper-item td:first-child {
  border-radius: 2px 0 0 2px;
}

.paper-item td:last-child {
  border-radius: 0 2px 2px 0;
}

.paper-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.12);
  background-color: #fafbfd !important;
}

/* Visitor Map Styles */
#visitor-map {
  margin-top: 10px;
  background-color: #f5f7fa;
  border: 1px solid #e8eaed;
}

#visitor-map .leaflet-container {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

/* Responsive map adjustments */
@media (max-width: 768px) {
  #visitor-map {
    height: 400px !important;
  }
}