/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #1b1b1b; }

:root { --accent: #86C2BA; }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 780px) { .container { padding: 0 16px; } }

/* Global link styles */
a { color: #0f766e; text-decoration: none; border-bottom: 1px dashed var(--accent); transition: color .15s ease, border-color .15s ease; }
a:hover { color: #053438; border-bottom-style: solid; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #eee; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
@media (max-width: 780px) {
  .site-header .container { flex-direction: column; gap: 16px; padding: 16px; }
}
.site-title { font-weight: 700; color: #0f172a; text-decoration: none; }
.site-desc { font-size: 0.9rem; color: #475569; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.site-nav a { color: #334155; text-decoration: none; padding: 8px 12px; border-radius: 6px; border-bottom: none; font-size: 0.9rem; }
.site-nav a:hover { background: var(--accent); color: #053438; border-bottom: none; }
.site-nav a.active { background: var(--accent); color: #053438; border-bottom: none; }
@media (max-width: 780px) {
  .site-nav { gap: 4px; }
  .site-nav a { padding: 6px 8px; font-size: 0.85rem; }
}
/* highlight for name in About link when other sections active */
.site-nav .name-highlight { font-weight: 700; }

.site-main { padding: 28px 24px 60px; }
.section { padding: 40px 0; border-bottom: 1px solid #f1f5f9; }
@media (max-width: 780px) {
  .site-main { padding: 20px 24px 40px; }
  .section { padding: 32px 0; }
}
.section:last-child { border-bottom: none; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; }
/* h2 { padding-left: 10px; } */

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 780px) { .grid.two { grid-template-columns: 1.5fr 1fr; } }
/* three-column layout for about */
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 780px) { .grid.three { grid-template-columns: 180px 3fr 1fr; } }

.about-grid { align-items: center; }
.about-avatar { display: flex; justify-content: flex-start; }
.about-info { }
.about-links { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.about-links a { display: inline-flex; align-items: center; gap: 6px; border-bottom: none; font-size: 0.9rem; }
.about-links a:hover { color: #053438; }
@media (max-width: 780px) {
  .about-links { flex-direction: row; align-items: flex-start; gap: 12px; }
}

.name { font-size: 2rem; margin: 0; }
.tagline { color: #475569; margin: 6px 0; }
.location { color: #64748b; }
@media (max-width: 780px) {
  .name { font-size: 1.6rem; }
}
.links a { display: inline-block; margin-right: 10px; color: #0f766e; text-decoration: none; border-bottom: 1px dashed var(--accent); }
.links a:hover { color: #053438; border-bottom-style: solid; }
.avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; transition: opacity 0.3s ease; }
.avatar:hover { opacity: 0; }
.about-avatar { position: relative; }
.about-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-image: url('../../assets/avatar_backside.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.about-avatar:hover::after { opacity: 1; }

.bio { margin-top: 16px; color: #1f2937; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; }
.news-date { color: #475569; font-variant-numeric: tabular-nums; }
.news-text { color: #0f172a; }
.more { display: inline-block; margin-top: 10px; background: var(--accent); color: #053438; text-decoration: none; padding: 6px 10px; border-radius: 6px; }

/* Scrollable news box */
.news-box { max-height: 260px; overflow: auto; padding-right: 6px; }
.news-box::-webkit-scrollbar { width: 10px; }
.news-box::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
.news-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.news-box::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; background: #fff; }
.paper-title { margin: 0 0 6px; font-weight: 600; }
.meta { color: #475569; font-size: 0.95rem; }
.authors { color: #334155; margin: 6px 0 8px; }

/* Research cards - full width with image and content */
.quote { margin-bottom: 2rem; font-size: 1rem; color: #475569; border-left: 8px solid var(--accent); padding: 0.5rem 1rem; background-color: #f5f9ff;}
.research-card {
  display: flex;
  gap: 20px;
  /* border: 1px solid #e2e8f0; */
  /* border-radius: 12px; */
  /* padding: 20px; */
  background: #fff;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.research-image {
  flex-shrink: 0;
  width: 300px;
  height: 168.75px;
}
.teaser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.research-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.research-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.research-authors {
  color: #334155;
  font-size: 0.95rem;
}
.research-venue {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}
.research-links {
  margin-top: 8px;
}
.research-links a {
  margin-right: 12px;
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .research-card {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .research-image {
    width: 100%;
    height: 200px;
  }
  .research-title { font-size: 1.1rem; }
}

.awards-list { list-style: none; padding: 0; margin: 0; }
.awards-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; }
@media (max-width: 780px) {
  .awards-list li { grid-template-columns: 80px 1fr; gap: 8px; }
}
.award-year { color: #475569; font-variant-numeric: tabular-nums; }
.award-name { color: #0f172a; }

/* Papers as Model section */
.papers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .papers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.paper-model-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.paper-model-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.paper-model-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}
.paper-model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-model-content {
  padding: 20px;
}

.paper-model-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.3;
}
.paper-model-title a {
  color: #0f172a;
  border-bottom: none;
}
.paper-model-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.paper-model-venue {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 780px) {
  .paper-model-image {
    height: 180px;
  }
  .paper-model-content {
    padding: 16px;
  }
}

.site-footer { border-top: 1px solid #eee; padding: 20px 0; color: #475569; background: #fff; }

