/* style.css */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* 전체 페이지 스타일 */
body {
    font-family: "Pretendard", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #3b302c; /* 진한 회색-갈색 글씨 */
    background-color: #f7f3e9; /* 부드러운 베이지 배경 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 메인 컨테이너 (전체 내용을 감싸는 영역) */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fffaf0; /* 밝은 크림색 컨테이너 배경 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    flex-grow: 1;
}

/* 헤더 스타일 */
header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2d8c9;
}

header h1 {
    color: #4b423d; /* 짙은 갈색 헤더 글씨 */
    margin-bottom: 5px;
}

header h2 {
    font-size: 1.2em;
    color: #6a605c; /* 부드러운 회색 글씨 */
}

nav {
    margin-top: 10px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #5c85b8; /* 푸른색 링크 */
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4a6c93; /* 호버 시 더 진한 푸른색 */
}

/* 섹션(단락) 스타일 - 둥근 모서리 박스 */
section {
    padding: 20px;
    margin-top: 20px;
    background-color: #fcf9f3; /* 섹션 배경색 */
    border: 1px solid #e2d8c9;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

section h2 {
    color: #5c4e48;
    border-bottom: 2px solid #bdaaa4;
    padding-bottom: 5px;
}

/* 목록 스타일 */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

#what-i-do {
    font-family: sans-serif; /* 기본 글꼴 설정 */
    background-color: #fcfbf8; /* 이미지와 유사한 배경색 */
    padding: 20px;
    border: 1px solid #e0e0e0;
    max-width: 800px; /* 너무 넓어지지 않게 최대 너비 설정 */
}

#what-i-do h2 {
    font-size: 1.5em; /* '주요 업무' 글자 크기 */
    margin-bottom: 10px;
}

/* h2 제목 바로 아래의 가로줄 스타일 */
#what-i-do hr {
    border: 0;
    border-top: 1px solid #cecece;
}

/* 각 업무 항목을 감싸는 div */
.task-item {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* 업무 제목 스타일 (예: 한의학 연구 기획 및 자문) */
.task-item .title {
    font-weight: 600; /* 약간 굵은 글씨 */
    font-size: 1.1em;
    margin: 0 0 10px 0; /* 위아래, 좌우 여백 설정 */
    color: #333;
}

/* 세부 설명 스타일 (들여쓰기 적용) */
.task-item .description {
    margin: 5px 0 5px 20px; /* 왼쪽에 20px 여백을 주어 들여쓰기 효과 */
    color: #555; /* 제목보다 약간 연한 글씨색 */
    line-height: 1.6; /* 줄 간격 */
}

/* 정보 목록 (flexbox) 스타일 */
.info-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #dcd3c7;
    padding: 5px 0;
}

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

/* 저술 활동 항목 스타일 */
.work-item {
    margin-bottom: 25px;
}

.work-item h3 {
    margin-bottom: 5px;
    color: #635048;
}

.work-item ul, .work-item ol {
    list-style-type: disc;
    padding-left: 20px;
}

.book-link {
    text-decoration: none;
    color: #4b3832;
    font-weight: bold;
}

.book-link:hover {
    color: #5c85b8; /* 푸른색 호버 효과 */
    text-decoration: underline;
}

/* 푸터 스타일 */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #7a6c65;
    font-size: 0.9em;
    border-top: 1px solid #e2d8c9;
}

footer p {
    margin: 5px 0;
}

/* 반응형 디자인을 위한 미디어 쿼리 */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 10px;
    }
    .info-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .info-list li span:last-child {
        margin-top: 5px;
    }
    section {
        padding: 15px;
    }
}
