body {
    font-family: 'Noto Sans KR', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

nav {
    background-color: #444;
    color: #fff;
    padding: 0.5em 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 프로젝트 리스트 개선 */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: start; /* 카드들이 위쪽 정렬되도록 */
}

/* 프로젝트 카드 개선 */
.project-item {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto; /* 자동 높이 조정 */
    min-height: 200px; /* 최소 높이 설정 */
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 프로젝트 제목 */
.project-item h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.3;
    flex-shrink: 0; /* 제목 크기 고정 */
}

/* 프로젝트 설명 */
.project-item p {
    margin: 0 0 16px 0;
    color: #666;
    line-height: 1.5;
    flex-grow: 1; /* 남은 공간을 차지하여 버튼을 아래로 밀어냄 */
}

/* 프로젝트 링크 버튼 */
.project-item a {
    display: inline-block;
    margin-top: auto; /* 버튼을 카드 하단으로 밀어냄 */
    padding: 10px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start; /* 버튼을 왼쪽 정렬 */
}

.project-item a:hover {
    background-color: #0056b3;
}

/* Profile Picture Styling */
.profile-picture {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.profile-picture img {
    display: inline-block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* 원형 프로필 사진 */
    border: 3px solid #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-flex {
    display: flex;
    align-items: flex-start; /* 상단 정렬로 변경 */
    gap: 32px;
    margin-bottom: 20px;
}

.about-description {
    flex: 1;
    padding-top: 8px; /* 텍스트를 약간 아래로 조정 */
}

.about-description p {
    margin: 0;
    line-height: 1.6;
}

/* 반응형 디자인 개선 */
@media (max-width: 768px) {
    .project-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-picture {
        margin-bottom: 16px;
    }
    
    .about-description {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    main {
        margin: 10px;
        padding: 15px;
    }
    
    section {
        padding: 12px;
    }
    
    .project-item {
        padding: 16px;
        min-height: 180px;
    }
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #333;
    color: #fff;
    margin-top: 20px;
}

/* Publication List Styling */
.publication-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.publication-item {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-item h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 700;
}

.publication-item p {
    margin: 0 0 8px 0;
    color: #666;
    line-height: 1.5;
}

.publication-item a {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.publication-item a:hover {
    background-color: #0056b3;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
}

.status-accepted {
    background-color: #28a745;
}

.status-under-review {
    background-color: #ffc107;
    color: #333;
}

.status-published {
    background-color: #17a2b8;
}
