/* Using Helvetica font family for clean, modern typography */

a {
  color: #2d6bc7;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Icon styling */
.fas, .fab, .far {
  margin-right: 4px;
  transition: transform 0.3s ease;
}

body{
  margin: 0;
}
td,
th,
tr,
p,
a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

strong {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  padding: 20px;
}

.papertitle {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

section {
  padding-top: 0;
}

.desktop-component ul,
.mobile-component ul {
  width: 100%;
  position: fixed;
  list-style: none;
  background-color: #ffffff;
  text-align:center;
  padding-inline-start: 0%;
  margin-block-start: 0%;
  z-index: 999;
}

.desktop-component ul li,
.mobile-component ul li {
  display: inline-block;
}

.desktop-component ul li a,
.mobile-component ul li a {
  padding: 10px;
  display: block;
  color: #616161;
}

.desktop-component ul li a:hover,
.mobile-component ul li a:hover {
  color: #ff7700;
}

@media (max-width: 1240px) {
  .desktop-component {
    display: none;
  }

  .mobile-component {
    display: block;
  }
}

@media (min-width: 769px) {
  .desktop-component {
    display: block;
  }

  .mobile-component {
    display: none;
  }
}

.AAAI {
  background-color: #4192e8;
  padding: 6px 12px;
  display: inline-block;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.insub {
  background-color: #858585;
  padding: 6px 12px;
  display: inline-block;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.arxiv {
  background-color: #b10000;
  padding: 6px 12px;
  display: inline-block;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.accepted {
  background-color: #22c55e;
  padding: 6px 12px;
  display: inline-block;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.award {
  background-color: #f59e0b;
  padding: 6px 12px;
  display: inline-block;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

hr {
  border: none;
  height: 1px;
  background-color: rgb(231, 231, 231);
}

.paper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #efeeee;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
}
.paper-container .image {
  display: none;
}
.paper-container .text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
  width: 100%;
}
.paper-container img {
  max-width: 100%;
  height: left;
  transition: transform 0.3s ease;
}
.paper-container:hover {
  background-color: #f4f4f4;
}

.paper-container .papertitle {
  margin-bottom: 6px;
  display: inline-block;
  color: #333333;
  transition: all 0.3s ease;
}

.paper-container:hover .papertitle {
  color: #222222;
}

.paper-container p {
  margin-top: 2px;
  margin-bottom: 0px;
}

.paper-description {
  font-size: 12px;
  color: #888888;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.paper-container .paper-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.paper-misc {
  margin: 4px 0;
  font-style: italic;
  font-size: 12px;
}

.paper-title-section {
  flex: 0 0 auto;
}

.paper-bottom-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Experience section styling */
.experience-section {
  margin: 0 20px;
  padding: 0;
}

.experience-item {
  background-color: #ffffff;
  border: 1px solid #efeeee;
  padding: 20px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  position: relative;
}

.experience-item:hover {
  background-color: #efeeee;
}

.exp-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.exp-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-info {
  flex: 1;
}

.exp-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 3px;
}

.exp-position {
  font-size: 12px;
  margin-bottom: 3px;
}

.exp-mentor {
  font-size: 12px;
  color: #666666;
  margin-bottom: 3px;
}

.exp-period {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  color: #666666;
  font-weight: normal;
}

td {
  padding-left: 2px;
  padding-right: 2px;
}

.bio {
  flex: 1 1 70%;
  padding: 20px;
}
.bio p {
  text-align: left;
}
.links {
  text-align: left;
  margin-top: 1em;
}
.links a {
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Mobile bio layout override */
.bio-layout {
  display: block !important;
  padding: 20px;
  padding-top: 40px;
}

.bio-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 15px !important;
  margin-bottom: 15px !important;
  min-width: auto !important;
}

.bio-right {
  margin-top: 10px;
}

.profile-img-container {
  width: 80px !important;
  height: 80px !important;
  margin-bottom: 0 !important;
  cursor: default !important;
  overflow: visible !important;
  position: static !important;
}

.profile-img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-overlay {
  display: none !important;
}

.name-info {
  flex: 1;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
  text-align: left;
}

.bio-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* News section styling */
.news-container {
  margin: 0 20px;
  padding: 0;
}

.news-item {
  background-color: #ffffff;
  border: 1px solid #efeeee;
  padding: 20px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: #efeeee;
}

.news-date {
  font-weight: bold;
  font-size: 12px;
  color: #666666;
  margin-bottom: 6px;
}

.news-content {
  font-size: 13px;
  line-height: 1.4;
}

/* Service section styling */
.service-container {
  margin: 0 20px;
  padding: 0;
}

.service-item {
  background-color: #ffffff;
  border: 1px solid #efeeee;
  padding: 20px;
  margin-bottom: 12px;
  transition: background-color 0.3s ease;
}

.service-item:hover {
  background-color: #efeeee;
}

.service-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  color: #666666;
}

.service-content {
  font-size: 14px;
  line-height: 1.5;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
}

.service-tag {
  display: inline-block;
  padding: 6px 10px;
  font-weight: 700;
  background: #026dab;
  color: #ffffff;
}

.service-year {
  display: inline-block;
  padding: 6px 10px;
  background: #d8efff;
  color: #4a4a4a;
  font-weight: 700;
}

.service-content ul {
  margin-left: 0;
}

.service-content ul li {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.nav-dot {
  font-size: 1.4em;
}

.nav-dot--brown { color: #8B4513; }
.nav-dot--gold  { color: #FFD700; }
.nav-dot--blue  { color: #0000FF; }

.link-icon {
  vertical-align: text-bottom;
}

.scroll-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
  padding: 0;
}

.footer-text {
  text-align: center;
  font-size: small;
}

.copyright {
  font-size: medium;
  color: rgb(143, 143, 143);
}

.buttom {
  display: inline-block;
  padding: 6px 12px;
  background-color: #e5e5e5;
  transition: all 0.3s ease;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  flex-shrink: 0;
}

.buttom:hover {
  background-color: #666666;
  color: #ffffff;
}

.bio-button {
  background-color: #3589cd !important;
  color: #ffffff !important;
}

.bio-button:hover {
  background-color: #ff7700 !important;
  color: #ffffff !important;
}

.misc-button {
  background-color: #ffdc91 !important;
  color: #000000 !important;
}

.misc-button:hover {
  background-color: #ffc400 !important;
  color: #ffffff !important;
}

/* Author links styling - only apply to author paragraphs, not button paragraphs */
.paper-container p:not(.paper-links) a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.paper-container p:not(.paper-links) a:hover {
  color: #1e3a8a;
  text-decoration: none;
}

footer {
  padding: 0 20px 20px;
}
