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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #f3f4f6;
  background-color: #0f1117;
}

a {
  color: #3fbf95;
  text-decoration: none;
}

a:hover {
  color: #7ee6c2;
  text-shadow: 0 0 6px rgba(126, 230, 194, 0.3);
}

/* Header & Nav */
.header {
  background-color: #161b22;
  border-bottom: 1px solid #2d333b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: 1450px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: #f3f4f6;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #60a5fa;
  text-shadow: none;
}

main {
  max-width: 1450px;
  margin: 0 auto;
  padding: 32px 40px;
}

.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* Sidebar Profile */
.profile-sidebar {
  background-color: #e5e7eb;
  padding: 24px 20px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: sticky;
  top: 100px;
  color: #111827;
}
.profile-photo {
  width: 150px;           /* 'Minju Seol' 글씨 너비보다 살짝 넓은 크기 */
  height: auto;           /* 원본 사진 비율을 왜곡 없이 유지 */
  display: block;
  margin: 0 auto 16px auto; /* 중앙 정렬 및 아래 이름과의 간격 */
  border-radius: 0;       /* 완전 직사각형 유지 */
}
.profile-sidebar h1 {
  font-size: 24px;
  margin-bottom: 6px;
  color: #111827;
}

.profile-title {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 20px;
}

.profile-info {
  text-align: left;
  font-size: 15px;
  color: #374151;
}

.profile-info p {
  margin-bottom: 14px;
}

.profile-info strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.social-icons a {
  color: #111827;
  font-size: 22px;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: #7ee6c2; /* 기존 초록 링크색과 다르면 이 값 조정해주세요 */
}
.section {
  background-color: #e5e7eb;
  margin-bottom: 28px;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  color: #111827;
  scroll-margin-top: 75px; 
}

.section h2 {
  font-size: 26px;
  margin-bottom: 22px;
  color: #111827;
  border-bottom: 2px solid #d1d5db;
  padding-bottom: 10px;
}

.section p,
.section li,
.section h3 {
  color: #111827;
}

#about p {
  text-align: justify;
}

.news-list .news-text {
  text-align: justify;
}

.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.date {
  min-width: 80px;
  font-size: 16px;
  font-weight: 700;
  color: #3fbf95;
  flex-shrink: 0;
}

.news-text {
  flex: 1;
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #111827;
}

.card p {
  font-size: 15px;
  color: #111827;
  line-height: 1.5;
}

.timeline-item {
  margin-bottom: 24px;
}

.timeline-item h3 {
  font-size: 20px;
  color: #111827;
  margin-bottom: 4px;
}

.sub-info {
  font-size: 16px;
  color: #4b5563;
  font-weight: 500;
  margin-bottom: 4px;
}

/* Publications Section */
.publication-category {
  font-size: 20px;
  margin-top: 22px;
  margin-bottom: 12px;
  color: #374151;
}

.publication-list {
  padding-left: 24px;
  margin-bottom: 12px;
}

.publication-list li {
  margin-bottom: 20px;
  text-align: left;
}

.pub-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}

.pub-authors {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 2px;
}

.pub-venue {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 2px;
}

.footer {
  text-align: center;
  padding: 28px;
  color: #6b7280;
  font-size: 14px;
}

/* Mobile ---------------------------------------------------------------------*/
@media (max-width: 768px) {
  main {
    padding: 20px 16px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 24px 20px;
    margin-bottom: 20px;
    border-radius: 16px;
    scroll-margin-top: 135px; 
  }

  .card h3 {
    margin-top: 0;
  }

  .section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .section h3, 
  .publication-category,
  .timeline-item h3 {
    font-size: 17px;
    margin-top: 16px;
    margin-bottom: 8px;
  }

  .section p, 
  .profile-info,
  .news-text,
  .pub-authors, 
  .pub-venue {
    font-size: 14.5px;
    line-height: 1.55;
  }

  #about p,
  .news-list .news-text {
    text-align: left;
  }

  .news-list li {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
  }

  .date {
    font-size: 14px;
  }

  .publication-list {
    padding-left: 20px;
    margin-bottom: 12px;
  }

  .pub-title {
    font-size: 15.5px;
    line-height: 1.4;
  }

  .profile-sidebar {
    position: static;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .profile-sidebar h1 {
    font-size: 22px;
  }

  .profile-title {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(1, 3fr);
    gap: 13px;
  }
  
  .card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
  }
  
  .card h3 {
    font-size: 16px;
    margin-top: 0; 
    margin-bottom: 8px;
    color: #111827;
  }
  .nav {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    gap: 12px 14px;
  }

  .nav-links a {
    font-size: 13px;
  }
}
