body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
}
header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.name {
  font-weight: bold;
  font-size: 1.1rem;
}

.name a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}
.name a:hover {
  text-decoration: underline;
}


.menu {
  margin-left: auto;
}
.menu a {
  margin-left: 1rem;
  text-decoration: none;
  color: #555;
}
.menu a:hover {
  text-decoration: underline;
}
main {
  max-width: 768px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}
h1 {
  margin-top: 2rem;
  font-size: 2rem;
}
.desc {
  margin-top: 1rem;
  max-width: 600px;
}
.icons {
  margin-top: 1rem;
}
.icons a {
  margin-right: 1rem;
}
.updates {
  margin-top: 3rem;
}
.updates h2 {
  font-size: 1.3rem;
}
.updates ul {
  list-style: none;
  padding-left: 0;
}
.updates li {
  margin: 0.5rem 0;
}
.updates span {
  color: #888;
  display: inline-block;
  width: 90px;
}


/* 전체 화면을 플렉스 레이아웃으로 설정 */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* 메인 콘텐츠가 남은 공간 채우도록 */
main.container {
  flex: 1 0 auto;
}

/* 푸터를 하단에 고정 */
footer {
  flex-shrink: 0;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
  background: #fff;
}
footer a {
  color: #555;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* 필터 탭 스타일 */
.filter-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-tabs button {
  border: none;
  background: none;
  font-weight: 500;
  color: #555;
  cursor: pointer;
}
.filter-tabs .active {
  font-weight: bold;
  color: #000;
}

/* 프로젝트 카드 레이아웃 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
  transition: box-shadow 0.2s ease-in-out;
}
.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.project-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.project-card h3 {
  margin: 0.5rem 0;
}
.project-card .tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-card .tags span {
  background-color: #f1f1f1;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.project-detail .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #555;
  text-decoration: none;
}
.project-detail h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.project-meta {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 2rem;
}
.cover-image {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  margin: 2rem 0;
}
.project-detail ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.project-detail .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.project-detail .tags span {
  background-color: #f1f1f1;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}


.publication-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
}

.pub-thumb {
  width: 300px;
  border-radius: 8px;
  object-fit: cover;
}

.pub-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.pub-content p {
  margin: 0.25rem 0;
  color: #444;
}

.pdf-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  background: #f5f5f5;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}
.pdf-link:hover {
  background: #eaeaea;
}


.about .intro-box {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}
.profile-photo {
  width: 200px;
  border-radius: 12px;
}
.bio {
  flex: 1;
}
h2 {
  margin-top: 2rem;
}
.entry {
  margin-top: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.entry .right {
  float: right;
  color: #888;
  font-size: 0.9rem;
}
.compact-list {
  list-style-type: disc;
  margin-left: 1.5rem;
}


.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}
.skills-grid h3 {
  margin-bottom: 0.3rem;
  font-weight: bold;
}
.skills-grid p {
  margin: 0.25rem 0;
  color: #333;
}



/* 점은 그대로 유지하되 들여쓰기 제거 */
.flat-list {
  list-style-type: disc;
  margin-left: 0;        /* 전체 들여쓰기 제거 */
  padding-left: 1rem;    /* 리스트 점은 유지하되 너무 붙지 않도록 */
}

.flat-list li {
  margin: 0.3rem 0;       /* 줄 간격 약간 조정 */
  text-indent: 0;         /* 내용 들여쓰기 제거 */
}


.profile-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.profile-image img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.contact-icons {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-icons a {
  margin-right: 1rem;
  color: #333;
  text-decoration: none;
}


.item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.item-main {
  flex: 1;
}

.item-main .sub {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.item-date {
  color: #999;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: 1rem;
}

/* 각 제목 섹션의 상단 간격 보강 */
.section {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}

/* 제목 간격 자체도 살짝 강화 */
h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}