:root {
    font-size: 0.8em!important;
    --bg-color:  #fff; /* #fdfcf0 따뜻한 종이색 */
    --text-color: #2c2c2c;
    --sunday-red: #d9534f;
    --fc-event-text-color: #2c2c2c;
}

.fc .fc-button {font-size: 0.8em!important;}

h1, h2, h3, h4, h5, h6 {font-size: 1.1em!important;}

body {
    font-family: 'Noto Serif KR', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
}

#main-header {
    position: fixed; top: 0; width: 100%;
    background: var(--bg-color); border-bottom: 1px solid #eee;
    z-index: 1000; transition: transform 0.4s ease;
}
.header-hide { transform: translateY(-100%); }

#main-nav { display: flex; justify-content: center; gap: 50px; padding: 20px 0; }
.nav-icon { cursor: pointer; text-align: center; }
.nav-icon img { width: 24px; height: 24px; display: block; margin: 0 auto 5px; filter: grayscale(1); }
.nav-icon span { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }

#content-container { max-width: 700px; margin: 120px auto 0; padding: 0 20px; }

/* 캘린더 커스텀 */
.fc-header-toolbar { display: flex !important; position: relative !important; justify-content: flex-end !important; margin-bottom: 50px !important; }
.fc-toolbar-chunk:nth-child(2) { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; }
.fc-day-sun .fc-col-header-cell-cushion, .fc-day-sun .fc-daygrid-day-number { color: var(--sunday-red) !important; }
.fc-event {
    background: transparent !important; border: none !important;
    color: var(--text-color) !important; text-decoration: underline !important;
    font-size: 0.85rem; cursor: pointer;
}

.fc-button:focus {box-shadow: none!important;}

.fc-direction-ltr .fc-daygrid-event.fc-event-start, .fc-direction-rtl .fc-daygrid-event.fc-event-end {
    margin-left: 10px!important;
    margin-right: 10px!important;
}

/* 상세 뷰 스타일 */
#detail-title { font-size: 1.8rem; font-weight: 400; margin-top: 20px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #ddd; }
#detail-content { line-height: 2.2; white-space: pre-wrap; font-size: 1.05rem; }

.view-section { display: none; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 인덱스 아이템 */
.index-item { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; }


/* 페이지네이션 전체 컨테이너 */
#pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* 개별 페이지 아이템 */
.pg-item {
    padding: 0 15px;
    cursor: pointer;
    color: #555;
    border-left: 1px solid #ddd; /* 이미지 속 세로 구분선 */
    transition: color 0.2s;
}

/* 첫 번째 아이템은 왼쪽 선 제거 */
.pg-item:first-child {
    border-left: none;
}

/* 현재 활성화된 페이지 (이미지처럼 굵게 표시) */
.pg-active {
    font-weight: 700;
    color: #000;
}

/* 생략 표시 (...) */
.pg-dots {
    padding: 0 15px;
    color: #999;
    border-left: 1px solid #ddd;
}

.pg-item:hover {
    color: #000;
}