/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== PROFILE HEADER ===== */
.profile {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e0e0e0;
  order: 1;
}

.profile-info {
  flex: 1;
  min-width: 250px;
}

.profile-info h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
}

.profile-info .subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 2px;
}

.profile-info .university {
  font-size: 15px;
  color: #555;
  margin-bottom: 14px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
}

.profile-links .sep {
  color: #999;
}

/* ===== SECTIONS ===== */
.section {
  margin-bottom: 36px;
}

.section h2 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}

.section h2 a {
  font-size: 13px;
  font-weight: 400;
}

.section p {
  margin-bottom: 10px;
  font-size: 15px;
  text-align: justify;
}

/* ===== AFFILIATION LOGOS ===== */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 30px 0;
  padding: 16px 0;
}

.affiliation-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s;
}

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

.affiliation-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  text-align: center;
}

/* ===== NEWS ===== */
.news-list {
  list-style: disc;
  padding-left: 24px;
}

.news-list li {
  margin-bottom: 8px;
  font-size: 14.5px;
}

.news-list .date {
  color: #555;
}

.highlight {
  color: #d32f2f;
  font-weight: 600;
}

.highlight-blue {
  color: #1a73e8;
  font-weight: 600;
}

.btn-outline {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.archived-news {
  display: none;
}

.archived-news.show {
  display: block;
}

/* ===== RESEARCH INTERESTS ===== */
.interests-text {
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== RESEARCH PAPERS ===== */
.paper {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.paper:last-child {
  border-bottom: none;
}

.paper-img {
  width: 160px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f5f5f5;
  object-fit: cover;
  overflow: hidden;
}

.paper-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e7ff, #f0e6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #888;
}

.paper-info {
  flex: 1;
  min-width: 250px;
}

.paper-info h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
}

.paper-authors {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 3px;
}

.paper-authors .me {
  font-weight: 600;
  color: #222;
  text-decoration: underline;
}

.paper-venue {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 6px;
  font-style: italic;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}

.paper-desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.5;
}

/* ===== PROFESSIONAL SERVICE ===== */
.service-list {
  list-style: disc;
  padding-left: 24px;
  font-size: 14.5px;
}

.service-list li {
  margin-bottom: 6px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .profile-links {
    justify-content: center;
  }

  .paper {
    flex-direction: column;
  }

  .paper-img {
    width: 100%;
    height: 160px;
  }
}
