/* 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;
  }
  
  a {
	color: #1772d0;
	text-decoration: none;
  }
  
  a:focus,
  a:hover {
	color: #f09228;
	text-decoration: none;
  }
  
  body,
  td,
  th,
  tr,
  p,
  a {
	font-family: 'Lato', Verdana, Helvetica, sans-serif;
	font-size: 14px
  }
  
  strong {
	font-family: 'Lato', Verdana, Helvetica, sans-serif;
	font-size: 14px;
  }
  
  heading {
	font-family: 'Lato', Verdana, Helvetica, sans-serif;
	font-size: 22px;
  }
  
  papertitle {
	font-family: 'Lato', Verdana, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700
  }
  
  name {
	font-family: 'Lato', Verdana, Helvetica, sans-serif;
	font-size: 32px;
  }
  
  .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;
  }

  /* addded by zifeng */
  .carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 9999;
  }

  .carousel-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 20px;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-weight: 500;
    max-width: 90%;
    line-height: 1.4;
  }

  .carousel-title a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .carousel-title a:hover {
    color: #f09228;
    text-decoration: none;
  }

  .carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .img-center-carousel {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
  }

  .carousel-close {
    position: absolute;
    top: 25px;
    right: 100px;
    padding: 0;
    margin: auto;
    width: 50px;
    height: auto;
  }

  .carousel-prompt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 10px;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-style: italic;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
  }

  .carousel-prompt:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
  }

  .research {
    margin-bottom: 30px;
  }

  .research h4 {
    float: left;
  }

  .research div {
    text-align: end;
    font-size: 0.9em;
  }

  .thumbnail {
    width: 100%;
    float: left;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .thumbnail:hover {
    opacity: 0.9;
  }

  .thumbnail-right {
    margin-left: 35%;
  }

  #exp li {
    margin-bottom: 50px;
  }

  .school-logo {
    width: 6%;
    float: left;
  }

  .school-text {
    margin-left: 10%;
    width: 60%;
  }


/* add button and filters */

button {
    padding: 3px 10px;
    margin: 2px;
	font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #2e8ff7cc;
    color: white;
  }

button:hover {
    background-color: #0056b3;
}

.hidden {
	display: none;
}

/* Publication Filter Styles */
.filter-container {
  margin: 2px 0 12px 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-label {
  font-size: 0.9em;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.filter-btn {
  padding: 4px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 16px;
  background: white;
  color: #555;
  font-size: 0.85em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.filter-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.scholar-link {
  font-size: 0.85em;
  margin: 0 0 0 auto;
}

.scholar-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.scholar-link a:hover {
  text-decoration: underline;
}

/* Publication Card Styles */
#publications-container tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  margin-top: 0;
  padding: 10px;
  border-radius: 4px;
  position: relative;
}

#publications-container tr:hover {
  transform: translateX(5px);
  background-color: #f8f9fa;
}

#publications-container tr.carousel-active {
  transform: none;
  background-color: transparent;
}

#publications-container tr.carousel-active:hover {
  transform: translateX(5px);
  background-color: #f8f9fa;
}

#publications-container td {
  padding: 20px 0;
}

#publications-container papertitle {
  font-size: 15px;
  line-height: 1.4;
  display: inline-block;
  margin-bottom: 4px;
}

#publications-container .tag {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 0.8em;
  color: #666;
}

#publications-container a[href*="paper"] {
  margin-right: 8px;
}

#publications-container p {
  margin-top: 8px;
  line-height: 1.5;
  color: #444;
}

/* Experience Section Improvements */
#exp li {
  margin-bottom: 40px;
  transition: transform 0.2s ease;
}

#exp li:hover {
  transform: translateX(5px);
}

.school-logo {
  width: 6%;
  float: left;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.school-logo:hover {
  opacity: 1;
}

.school-text {
  margin-left: 10%;
  width: 60%;
  line-height: 1.5;
}

/* Research Section Improvements */
.research ul {
  list-style-type: none;
  padding-left: 0;
}

.research ul li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.research ul ul {
  padding-left: 20px;
  margin-top: 8px;
}

.research ul ul li {
  margin-bottom: 8px;
  color: #555;
}

/* General Typography Improvements */
heading {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  display: block;
}

name {
  font-size: 34px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  display: block;
}

/* Link Improvements */
a {
  color: #1772d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive Improvements */
@media (max-width: 768px) {
  .school-logo {
    width: 10%;
  }
  
  .school-text {
    margin-left: 15%;
    width: 75%;
  }
  
  #publications-container td {
    padding: 15px 0;
  }
  
  .filter-buttons {
    justify-content: center;
  }
}

.news-scroll-container {
  max-height: 240px;  /* Adjusted to show exactly 6 news items */
  overflow-y: auto;
  padding-right: 10px;
  margin: 10px 0;
}

.news-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.news-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.news-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.news-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 8px;
  line-height: 1.4;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.news-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}