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

/* ===== BASE ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
  padding: 50px 20px 40px;
}

.container {
  max-width: 840px;
  margin: 0 auto;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 2.1rem;
  font-weight: 500;
  color: #111111;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222222;
  margin-top: 44px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 6px;
}

p {
  font-size: 0.95rem;
  margin-bottom: 14px;
  text-align: justify;
}

a {
  color: #105ba3;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover { color: #003d80; text-decoration: underline; }

/* ===== PROFILE ===== */
.profile-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 10px;
}

.bio-text { flex: 1; }

.bio-links {
  margin-top: 16px;
  font-size: 0.95rem;
}
.bio-links a { font-weight: 500; }

.profile-photo-container {
  flex-shrink: 0;
  width: 175px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  object-fit: cover;
  /* placeholder style — remove when real photo is set */
  background-color: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #999;
}

/* ===== NEWS ===== */
.news-list {
  list-style: none;
  font-size: 0.93rem;
}
.news-list li {
  margin-bottom: 7px;
  line-height: 1.5;
}
.news-date {
  font-weight: 600;
  color: #444;
  display: inline-block;
  min-width: 80px;
}

/* ===== PUBLICATIONS ===== */
.section-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: -10px;
  margin-bottom: 18px;
  text-align: left;
}

.project-item {
  display: flex;
  gap: 20px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.project-image-container {
  flex-shrink: 0;
  width: 155px;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #aaa;
}

.project-details { flex: 1; font-size: 0.93rem; }

.project-title {
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.4;
}

.project-authors {
  color: #555;
  margin-bottom: 3px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.project-authors strong { color: #111; }

.project-venue {
  font-style: italic;
  color: #666;
  margin-bottom: 5px;
  font-size: 0.88rem;
}

.project-links { font-size: 0.88rem; }

/* ===== EXPERIENCE & EDUCATION ===== */
.exp-item {
  margin-bottom: 22px;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-org {
  font-weight: 600;
  font-size: 0.96rem;
  color: #111;
}
.exp-period {
  font-size: 0.84rem;
  color: #888;
  white-space: nowrap;
}
.exp-role {
  font-size: 0.90rem;
  color: #555;
  margin: 2px 0 5px;
}
.exp-detail {
  font-size: 0.86rem;
  color: #888;
}

/* ===== LISTS ===== */
.bullet-list {
  padding-left: 20px;
  font-size: 0.93rem;
}
.bullet-list li {
  margin-bottom: 6px;
  line-height: 1.55;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 60px;
  padding-top: 14px;
  border-top: 1px solid #eaeaea;
  font-size: 0.80rem;
  color: #aaa;
  text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .profile-section {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  p { text-align: left; }
  .profile-photo-container { width: 145px; margin-bottom: 8px; }
  .bio-links { text-align: center; }
  .project-item { flex-direction: column; gap: 10px; }
  .project-image-container { width: 100%; max-width: 240px; }
  .exp-header { flex-direction: column; gap: 2px; }
}
