/* Base styles */
:root {
  --text-color: #333;
  --link-color: #0066cc;
  --link-hover: #004499;
  --bg-color: #fff;
  --border-color: #ddd;
  --muted-color: #666;
  --award-color: #c41e3a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Header section */
.header {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.profile-photo {
  width: 150px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.profile-photo-placeholder {
  width: 150px;
  height: 180px;
  background-color: #f0f0f0;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-color);
  font-size: 12px;
  flex-shrink: 0;
}

.header-info h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-info .name-korean {
  font-size: 18px;
  color: var(--muted-color);
  margin-bottom: 15px;
}

.contact-info {
  font-size: 14px;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 3px;
}

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

.quick-links a {
  white-space: nowrap;
}

/* Section styles */
.section {
  margin-bottom: 35px;
}

.section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
}

/* Research interests */
.research-interests {
  font-size: 15px;
}

/* Courses list */
.courses-list {
  list-style: none;
}

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

.course-semester {
  color: var(--muted-color);
  display: inline-block;
  min-width: 100px;
}

.course-code {
  font-weight: 500;
}

/* Publications list */
.publications-list {
  list-style: none;
  counter-reset: pub-counter;
}

.publications-list > li {
  display: flex;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.publications-list > li:last-child {
  border-bottom: none;
}

.pub-number {
  min-width: 35px;
  color: var(--muted-color);
  font-size: 14px;
  padding-top: 2px;
}

.pub-content {
  flex: 1;
}

.pub-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.pub-authors {
  font-size: 14px;
  margin-bottom: 4px;
}

.pub-venue {
  font-size: 14px;
  color: var(--muted-color);
  margin-bottom: 6px;
}

.pub-links {
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.pub-links a {
  color: var(--link-color);
}

.pub-award {
  color: var(--award-color);
  font-weight: 500;
  font-size: 13px;
}

/* Year grouping */
.year-group {
  margin-bottom: 25px;
}

.year-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted-color);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .contact-info {
    text-align: center;
  }

  .course-semester {
    display: block;
    min-width: auto;
  }
}
