/* ===== Reset & Base ===== */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: #fdfdfd;
  color: #2c3c4c;
  font-size: 15px;
  line-height: 1.7;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

a { color: #2471a3; text-decoration: none; transition: color 0.25s ease; }
a:hover { color: #e67e22; }

h1, h2, h3, h4 { color: #1e293b; font-weight: 600; }
h1 { font-size: 2.2em; margin-bottom: 4px; }
h2 { font-size: 1.35em; margin-top: 0; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #667eea; display: inline-block; }
h3 { font-size: 1.05em; }

p { margin-bottom: 14px; }

/* ===== Layout: Sidebar + Main ===== */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  padding: 48px 24px 80px;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 48px;
  align-self: flex-start;
}

.sidebar .profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.sidebar .name {
  font-size: 1.5em;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 4px;
}

.sidebar .subtitle {
  font-size: 0.92em;
  color: #64748b;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.5;
}

.sidebar .links {
  list-style: none;
  text-align: center;
}

.sidebar .links li {
  margin-bottom: 8px;
}

.sidebar .links a {
  color: #1e293b;
  background: rgba(102, 126, 234, 0.08);
  padding: 6px 14px;
  border-radius: 6px;
  display: block;
  width: 150px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.92em;
  transition: all 0.25s ease;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.sidebar .links a:hover {
  background: rgba(102, 126, 234, 0.18);
  transform: translateY(-1px);
  color: #667eea;
}

/* ===== Main Content ===== */
.main {
  flex: 1;
  min-width: 0;
}

.section {
  margin-bottom: 36px;
}

.hr {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin: 28px 0;
}

/* ===== Biography ===== */
.bio {
  font-size: 0.98em;
  line-height: 1.75;
}

/* ===== Publication Cards ===== */
.publication {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-left: 3px solid #667eea;
  background: #f8f9fc;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.publication:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateX(3px);
}

.pub-title {
  font-weight: 600;
  font-size: 1.02em;
  color: #1e293b;
  line-height: 1.45;
}

.pub-title a { color: #1e293b; }
.pub-title a:hover { color: #667eea; }

.pub-authors {
  font-size: 0.9em;
  color: #475569;
  margin: 4px 0;
  line-height: 1.55;
}

.pub-venue {
  font-size: 0.88em;
  font-style: italic;
  color: #64748b;
  margin-bottom: 6px;
}

.pub-desc {
  font-size: 0.88em;
  color: #475569;
  margin-top: 6px;
}

.pub-desc ul {
  padding-left: 18px;
  margin: 4px 0 0;
}

.pub-desc li {
  margin-bottom: 2px;
}

.pub-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn {
  display: inline-block;
  padding: 3px 10px;
  background: #eef0f5;
  border-radius: 4px;
  font-size: 0.82em;
  color: #334155;
  transition: all 0.25s ease;
}
.btn:hover { background: #dde1ea; transform: translateY(-1px); color: #334155; }
.btn-orange { background: #ff9800; color: #fff !important; }
.btn-orange:hover { background: #f57c00; }

/* ===== Experience ===== */
.experience-item {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f8f9fc;
  border-radius: 6px;
  border-left: 3px solid #a78bfa;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-org {
  font-weight: 600;
  font-size: 1em;
  color: #1e293b;
}

.exp-date {
  font-size: 0.85em;
  color: #64748b;
  white-space: nowrap;
}

.exp-role {
  font-size: 0.9em;
  color: #475569;
  margin-top: 2px;
}

.exp-detail {
  font-size: 0.88em;
  color: #64748b;
  margin-top: 4px;
}

.exp-detail ul {
  padding-left: 18px;
  margin-top: 4px;
}

/* ===== Projects ===== */
.project-item {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f8f9fc;
  border-radius: 6px;
  border-left: 3px solid #34d399;
}

.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.proj-name {
  font-weight: 600;
  font-size: 1em;
  color: #1e293b;
}

.proj-tags {
  font-size: 0.82em;
  color: #64748b;
  font-style: italic;
}

.proj-date {
  font-size: 0.85em;
  color: #64748b;
  white-space: nowrap;
}

.proj-detail {
  font-size: 0.88em;
  color: #475569;
  margin-top: 6px;
}

.proj-detail ul {
  padding-left: 18px;
  margin-top: 4px;
}

.proj-detail li {
  margin-bottom: 2px;
}

/* ===== Awards & Skills & Others ===== */
.awards-list, .skills-list, .volunteer-list, .lang-list {
  list-style: none;
  padding: 0;
}

.awards-list li, .volunteer-list li, .lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92em;
}

.awards-list li:last-child, .volunteer-list li:last-child, .lang-list li:last-child {
  border-bottom: none;
}

.award-name, .volunteer-name, .lang-name {
  color: #334155;
  font-weight: 500;
}

.award-year, .volunteer-year, .lang-score {
  color: #94a3b8;
  font-size: 0.88em;
  white-space: nowrap;
  margin-left: 12px;
}

.skills-list li {
  margin-bottom: 8px;
  font-size: 0.92em;
}

.skill-label {
  font-weight: 600;
  color: #1e293b;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.8em;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  max-width: 960px;
  margin: 0 auto;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    padding: 24px 16px 48px;
    gap: 24px;
  }

  .sidebar {
    width: 100%;
    position: static;
    text-align: center;
  }

  .sidebar .profile-photo {
    width: 140px;
    height: 140px;
  }

  .exp-header, .proj-header {
    flex-direction: column;
    gap: 2px;
  }

  .awards-list li, .volunteer-list li, .lang-list li {
    flex-direction: column;
    gap: 2px;
  }

  .award-year, .volunteer-year, .lang-score {
    margin-left: 0;
  }
}
